You are not logged in.

#1 2017-01-21 19:40:21

Ychke
Member
Registered: 2017-01-21
Posts: 3

[Solved] Can't get my nvidia card to work

I have tried loads of things it is being detected.
I cannot seem to run anything on it it always uses my integrated graphics. Also my nvidia settings does not seem to open.

lspci | grep -i --color 'vga\|3d\|2d'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940M] (rev a2)
nvidia-settings

ERROR: Unable to find display on any available system

Here is a my X11 config

 nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 375.26  (buildmeister@swio-display-x86-rhel47-01)  Th
u Dec  8 19:07:46 PST 2016

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Module"
    Load           "modesetting"
    Load           "glx"
EndSection

Section "InputDevice"
# generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
   Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 940M"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    DefaultDepth    24
    Option         "UseDisplayDevice" "none"
    SubSection     "Display"
        Virtual     640 480
        Depth       24
    EndSubSection
EndSection

Last edited by Ychke (2017-01-21 21:06:14)

Offline

#2 2017-01-21 19:51:37

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [Solved] Can't get my nvidia card to work

nvidia-xconfig does not work with Hybrid_graphics, follow the NVIDIA Optimus or Bumblebee guides linked from that article.
If you installed the nvidia drivers directly from the nvidia website you will want to remove those first.
Edit:
Welcome to the arch linux forums Ychke.

Last edited by loqs (2017-01-21 19:52:30)

Offline

#3 2017-01-21 19:54:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Can't get my nvidia card to work

Don't use  xconfig: it just breaks things. Read the wiki entry on Optimus.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2017-01-21 20:00:50

Ychke
Member
Registered: 2017-01-21
Posts: 3

Re: [Solved] Can't get my nvidia card to work

I also tried that i get this error

sudo glxinfo | grep NVIDIA
No protocol specified
Error: unable to open display :0

Offline

#5 2017-01-21 20:20:57

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [Solved] Can't get my nvidia card to work

Ychke wrote:

I also tried that i get this error

What commands did you run before you reached that step in the optimus guide?
What were the outputs of those commands?
What xorg.conf did you use?
Please also post your xorg.log that running X now generates.
Why did you run that command with sudo?

Offline

#6 2017-01-21 20:35:51

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [Solved] Can't get my nvidia card to work

Ychke wrote:

I also tried that i get this error

sudo glxinfo | grep NVIDIA
No protocol specified
Error: unable to open display :0

Don't randomly decide to use sudo, it is not a magic "make everything awesome" command.

Last edited by Mr.Elendig (2017-01-21 20:36:33)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2017-01-21 20:51:53

Ychke
Member
Registered: 2017-01-21
Posts: 3

Re: [Solved] Can't get my nvidia card to work

I used sudo because it wouldn't give me an output otherwise, i seemed to have fixed the problem by going through the whole process again.
I must have forgotten something.

Thanks for telling me to use Optimus, that seemed to have fixed my problem.

Offline

#8 2017-01-21 20:53:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Can't get my nvidia card to work

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB