Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

nvidia drivers breaking lightdm

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Jakir
Posts: 7
Joined: 2018-03-31 05:28

nvidia drivers breaking lightdm

#1 Post by Jakir »

Okay so I followed the guide on your wiki for my nvidia gtx 760m driver on debian 9 and installed it using the commands:

Code: Select all

apt update
apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-legacy-340xx-driver
apt-get install nvidia-xconfig
sudo nvidia-xconfig
But now when I try to log in I get a screen that says:
[FAILED] Failed to start Light Display Manager.
See 'systemctl status lightdm.service' for details.
I read a guide that said that the problem can be fixed by editing/creating the file /ect/modprobe.d/blacklist.conf and adding the lines:

Code: Select all

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
So I did that and nothing changed. I did notice there was a file named "blacklist nvidia-nouveau" or something along those lines in there. Should I add the code to that file?

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5347
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

Re: nvidia drivers breaking lightdm

#2 Post by dilberts_left_nut »

Code: Select all

See 'systemctl status lightdm.service' for details.
So did you?

You checked that your card needs the legacy drivers?

Installing the nvidia package should blacklist nouveau already.
I read a guide
Anyone can write a "guide", most of them are clueless.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: nvidia drivers breaking lightdm

#3 Post by stevepusser »

Yeah, but that sounds like the guide in the Debian wiki, possibly with some steps omitted in the post. If they were actually skipped, that might be why problems occurred. One thing is to make sure the OP has sudo enabled, and what the actual outputs of the commands were. And also make sure it's not an Optimus system with Intel and Nvidia graphics.
MX Linux packager and developer

Jakir
Posts: 7
Joined: 2018-03-31 05:28

Re: nvidia drivers breaking lightdm

#4 Post by Jakir »

dilberts_left_nut wrote:

Code: Select all

See 'systemctl status lightdm.service' for details.
So did you?

You checked that your card needs the legacy drivers?

Installing the nvidia package should blacklist nouveau already.
I read a guide
Anyone can write a "guide", most of them are clueless.
Yes, this is what it said:

Code: Select all

Lightdm.service - Light Display Manager

  Loaded: loaded (/lib/systemd/system/lightdm.service; enabled; vendor preset: enabled)
  Active: inactive (dead)
    Docs: man:lightdm(1)
But I have no clue what it means or how I'm supposed to fix the problem with this information.

Jakir
Posts: 7
Joined: 2018-03-31 05:28

Re: nvidia drivers breaking lightdm

#5 Post by Jakir »

It works now but I did receive a few warnings!

I checked the guide, again. This time I ran the pre-check phase to determine my gpu and it confirms it is being read as a GeForce gtx 760m. Then I checked the current nvidia drivers (I was previously using the second newest because it said it supported the 7xx line) and it listed itself as supporting the 760m so I installed that instead. The instructions were simpler and only required running the code:

Code: Select all

apt update
apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver
and restarting.

I noticed when I installed the nvidia graphics pack the last 3 lines were:
W: Possible missing firmware /lib/firmware/tigon/tg3_tso5.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3_tso.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3.bin for module tg3
Is there some way to download those firmwares?

jibberjabber
Posts: 162
Joined: 2016-01-10 16:58

Re: nvidia drivers breaking lightdm

#6 Post by jibberjabber »

written by HelpBot#8453
Alias jibberjabber
I am sorry, my english is not that good, and I sometimes have other problems,so my response might not be perfect.
N5RLX > "Jibber jabber ,all day and all night, jibber jabber jibber jabber"

User avatar
Fernando Negro
Posts: 124
Joined: 2013-11-24 01:29
Location: Portugal
Has thanked: 2 times

Re: nvidia drivers breaking lightdm

#7 Post by Fernando Negro »

If you install the *wrong* version of the proprietary NVIDIA driver, you will have problems.

I have had Xorg/LightDM (repeatedly) not initializing (black screen at the end of the boot process, or monitor turning off during boot) on fresh Ubuntu and Debian installations, after having I installed the proprietary NVIDIA driver, because of what I later realized were the wrong versions of the driver I wanted to install.

Debian (at least) is a very stable GNU/Linux distribution. So, if there's something not working properly after you install it, it's immensely likely that it's the end user's fault, for having done something not right.
I just *love* the stability, much more bug-free nature, and modular installation options of Debian. Apart from the unfortunate adoption of "systemd" (viewtopic.php?f=20&t=129881&start=165#p671030) this distribution is *great*.

Post Reply