Page 1 of 8 123 ... LastLast
Results 1 to 10 of 80

Thread: When install driver of NVIDIA graphics card, I get error

  1. #1

    Post When install driver of NVIDIA graphics card, I get error

    Hi All,

    Graphic card: NVIDIA GTX 1070 for notebook
    OS: OpenSUSE leap 42.3

    I install the gcc and kernel-source by YAST. I download NVIDIA*.run file from official site, and blacklist the nouveau driver and reboot.

    Then Ctrl+Alt+F1, init 3, ./NVIDIA*.run

    I get error: The kernel header fiie '/usr/src/linux/include/linux/version.h' does not exist. The most likely reason for this is that the kernel source files in '/use/src/linux' have not been configured.

    How to solve this problem?

    Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: When install driver of NVIDIA graphics card, I get error

    Why don't you use the precompiled drivers from the nvidia repo ?

    Do you have the kernel-*devel packages installed?
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    2,238

    Default Re: When install driver of NVIDIA graphics card, I get error

    Adding to the advice by Knurpht, if you insist on using the Nvidia .run file be aware that you have to uninstall the drm-kmp-default package first, then you need to install kernel-devel and kernel-default-devel, which carry the configuration needed by a standard install.
    AFAIK the source packages as installed are not configured, so you need to provide a kernel configuration yourself.

    Also note that likely your laptop is an "Optimus" system, so you need Bumblebee and simply installing the .run file is likely to bring you a lot of trouble.
    Tumbleweed Gnome on i7 4720HQ + Geforce GTX960M
    testing Leap 15.3

  4. #4

    Arrow Re: When install driver of NVIDIA graphics card, I get error

    Quote Originally Posted by Knurpht View Post
    Why don't you use the precompiled drivers from the nvidia repo ?

    Do you have the kernel-*devel packages installed?
    Hi Knurpht,

    After I install driver from nvidia repo and reboot. I got black screen.

    I does not check kernel-debug-devel, kernel-source-vanilla and kernel-vanilla-devel. Are those neccessary?

    Thanks.

  5. #5

    Default Re: When install driver of NVIDIA graphics card, I get error

    Quote Originally Posted by Knurpht View Post
    Why don't you use the precompiled drivers from the nvidia repo ?

    Do you have the kernel-*devel packages installed?
    After I install all kernel-*-devel packages, I verify by following command:

    myname@linux1:/usr/src/linux/include/linux> ls|grep -i ver
    average.h
    dns_resolver.h
    isdn_divertif.h
    nvme-fc-driver.h
    tty_driver.h
    uio_driver.h
    verify_pefile.h
    vermagic.h
    myname@linux1:/usr/src/linux/include/linux>

    There is still no file version.h

    Thanks

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,342
    Blog Entries
    15

    Default Re: When install driver of NVIDIA graphics card, I get error

    Hi
    So I see you mention vanilla kernel?? Please post the output from;
    Code:
    uname -a
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7

    Default Re: When install driver of NVIDIA graphics card, I get error

    Quote Originally Posted by OrsoBruno View Post
    Adding to the advice by Knurpht, if you insist on using the Nvidia .run file be aware that you have to uninstall the drm-kmp-default package first, then you need to install kernel-devel and kernel-default-devel, which carry the configuration needed by a standard install.
    AFAIK the source packages as installed are not configured, so you need to provide a kernel configuration yourself.

    Also note that likely your laptop is an "Optimus" system, so you need Bumblebee and simply installing the .run file is likely to bring you a lot of trouble.
    I did forget to uninstall drm-kmp-default package before installing kernel-*devel, I will try your advice.

    How to provide kernel configuration myself? Could you talk it more?

    And now I have drm-kmp-default, kernel-devel and kernel-default-devel installed, what should I do next? Should I uninstall these three packages and reinstall kernel-*devel? Or another option: reinstall OS?

    Thanks

  8. #8

    Default Re: When install driver of NVIDIA graphics card, I get error

    Quote Originally Posted by malcolmlewis View Post
    Hi
    So I see you mention vanilla kernel?? Please post the output from;
    Code:
    uname -a
    Here's the output:

    myname@linux1:/usr/src/linux/include/linux> uname -a
    Linux linux1 4.4.76-1-default #1 SMP Fri Jul 14 08:48:13 UTC 2017 (9a2885c) x86_64 x86_64 x86_64 GNU/Linux
    myname@linux1:/usr/src/linux/include/linux>

  9. #9

    Default Re: When install driver of NVIDIA graphics card, I get error

    Quote Originally Posted by OrsoBruno View Post
    Adding to the advice by Knurpht, if you insist on using the Nvidia .run file be aware that you have to uninstall the drm-kmp-default package first, then you need to install kernel-devel and kernel-default-devel, which carry the configuration needed by a standard install.
    AFAIK the source packages as installed are not configured, so you need to provide a kernel configuration yourself.

    Also note that likely your laptop is an "Optimus" system, so you need Bumblebee and simply installing the .run file is likely to bring you a lot of trouble.
    You say that this is a Optimus system. But I can not see my Intel Graphics card. I use following command:

    sudo lspci|grep -i vga

    01:00.0 VGA compatible controller: NVIDIA Corporation Device 1ba1 (rev a1)



    ##########################and###########################

    following command:

    sudo hwinfo --gfxcard
    24: PCI 100.0: 0300 VGA compatible controller (VGA)
    [Created at pci.378]
    Unique ID: VCu0.5386mw9Nrf2
    Parent ID: vSkL.rm7g6PCwW96
    SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
    SysFS BusID: 0000:01:00.0
    Hardware Class: graphics card
    Model: "nVidia GP104M [GeForce GTX 1070 Mobile]"
    Vendor: pci 0x10de "nVidia Corporation"
    Device: pci 0x1ba1 "GP104M [GeForce GTX 1070 Mobile]"
    SubVendor: pci 0x152d "QUANTA Computer Inc"
    SubDevice: pci 0x1158
    Revision: 0xa1
    Driver: "nouveau"
    Driver Modules: "drm"
    Memory Range: 0xd2000000-0xd2ffffff (rw,non-prefetchable)
    Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
    Memory Range: 0xd0000000-0xd1ffffff (ro,non-prefetchable)
    I/O Ports: 0xd000-0xdfff (rw)
    Memory Range: 0xd3000000-0xd307ffff (ro,non-prefetchable,disabled)
    IRQ: 137 (10 events)
    I/O Ports: 0x3c0-0x3df (rw)
    Module Alias: "pci:v000010DEd00001BA1sv0000152Dsd00001158bc03sc00i00"
    Driver Info #0:
    Driver Status: nouveau is active
    Driver Activation Cmd: "modprobe nouveau"
    Config Status: cfg=new, avail=yes, need=no, active=unknown
    Attached to: #8 (PCI bridge)

    Primary display adapter: #24



    Where is my intel graphics card info?

    Thanks

  10. #10
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,288

    Default Re: When install driver of NVIDIA graphics card, I get error

    On some systems it is possible to turn off the Intel GPU from the UEFI/BIOS, Most notebooks do not have that option though. So check the UEFI/BIOS settings

Page 1 of 8 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •