SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-12-18 22:46:16

xnor
New Member
Registered: 2014-12-18
Posts: 3

NVIDIA GeForce 840M drivers not loading correctly

Hello,

I have recently purchased a laptop with an "NVIDIA® GeForce® GT 840M" and "WIRELESS INTEL® N-7260 HMC" among others. I have installed Crunchbang Waldorf but I am unable to get the NVIDIA card working correctly.

I have downloaded the NVIDIA unix drivers from its website and installed it switching to a virtual terminal (e.g. ctr+alt+F1) and running:

$ sudo invoke-rc.d slim stop             # to stop Xserver
$ sudo sh ./path/to/downloaded/file      # Install drivers
$ sudo nvidia-xconfig                    # Create new /etc/X11/xorg.conf
$ sudo shutdown -r now                   # Reboot

However, the xorg.conf file generated by nvidia-xconf breaks something because Xserver won't start and it gives me only a terminal prompt. If I remove that file, xwindow would start correctly, but without loading the nvidia drivers.

my /var/log/Xorg.0.log says:

[       ...]
[     4.135] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     4.135] (++) using VT number 7

[     4.139] (EE) No devices detected.
[     4.139] 
Fatal server error:
[     4.139] no screens found
[     4.139] 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[     4.139] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     4.139] 

my xorg.conf file is:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 343.22  (buildmeister@swio-display-x86-rhel47-05)  Thu Sep 11 16:49:51 PDT 2014


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
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 "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
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"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

and lspci output is:

$ lspci | grep -i nvidia
01:00.0 3D controller: NVIDIA Corporation Device 1341 (rev a2)

I think this can be important: Because of the wifi board, I had to download a newer version (the old one was 3.2, this one is 3.16.0-0.bpo.4-amd64) to install newer drivers as well.

Does anyone know what is going on? What am I doing wrong?

Thanks a lot


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius and a lot of courage to move in the opposite direction.
- E. F. Schumacher

Offline

Be excellent to each other!

#2 2014-12-18 23:04:09

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: NVIDIA GeForce 840M drivers not loading correctly

If you do a kernel upgrade, you need to rebuild the nvidia driver again. The easiest way IMO, is to install smxi and let it do all the heavy lifting for you (it can handle kernels as well btw)

It won't run while X is running so

$ sudo service slim stop
$ sudo su -
# smxi  (or sgfxi, for just the graphics script)

...smxi suggests what you need, gets the driver and does the build/install...

# nvidia-xconfig
# exit
$ sudo service slim start

BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#3 2014-12-18 23:07:47

xnor
New Member
Registered: 2014-12-18
Posts: 3

Re: NVIDIA GeForce 840M drivers not loading correctly

Hi,

Thanks a lot, but I have installed the nvidia drivers after the kernel update and while running that kernel, so I guess I don't have to rebuild it...

Do you have any other thing in mind that I could have a look to?

Thanks again...


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius and a lot of courage to move in the opposite direction.
- E. F. Schumacher

Offline

#4 2014-12-18 23:38:21

xnor
New Member
Registered: 2014-12-18
Posts: 3

Re: NVIDIA GeForce 840M drivers not loading correctly

damo wrote:

If you do a kernel upgrade, you need to rebuild the nvidia driver again. The easiest way IMO, is to install smxi and let it do all the heavy lifting for you (it can handle kernels as well btw)

I have run this script just to check and (even when very handy) it didn't fix the problem


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius and a lot of courage to move in the opposite direction.
- E. F. Schumacher

Offline

#5 2014-12-18 23:41:40

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: NVIDIA GeForce 840M drivers not loading correctly

xnor wrote:

...
Do you have any other thing in mind that I could have a look to?

Thanks again...

Just that I use smxi every time, and never get the problems like yours that I used to have....


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo