You are not logged in.
Pages: 1
Hi all,
I forget exactly what broke lightdm but I put it down for a while and am only now picking it back up. I suspect I borked the nvidia drivers.
I have no greeter and lightdm doesn't start. I would be very grateful for any help!
I've tried to provide everything that was asked here
also ran
systemctl edit lightdmadded
[Service]
Environment=SYSTEMD_LOG_LEVEL=debugthen
journalctl -u lightdm.service -f and the output is essentially the same as
systemctl status lightdmLast edited by buzuddha (2021-05-02 16:10:59)
Offline
[ 13.898] (==) Using config file: "/etc/X11/xorg.conf"
....
[ 13.899] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
....
[ 13.927] (--) PCI:*(0@0:2:0) 8086:3e9b:17aa:3f16 rev 0, Mem @ 0x9f000000/16777216, 0x60000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[ 13.927] (--) PCI: (1@0:0:0) 10de:1f91:17aa:3802 rev 161, Mem @ 0xa0000000/16777216, 0x40000000/268435456, 0x50000000/33554432, I/O @ 0x00002000/128You generated a config using nvidia-xconfig that is incompatible with your hybrid setup?
dmesg contains the output of lspci so I can not see if there is any output from the nvidia module failing to load.
Offline
Sounds like that may have been it, this problem came up a while ago so my memory is sketchy here.
Don't know what a hybrid setup refers to.
So what do you recommend?
Last edited by buzuddha (2021-05-01 19:42:27)
Offline
See NVIDIA_Optimus#Available_methods for your choices.
Please also post the output of dmesg as I mentioned the current link is to the output of lspci.
Offline
Thanks, sorry I get your meaning now. I've updated the dmesg link.
I'll give the methods a look-see.
Last edited by buzuddha (2021-05-02 16:12:42)
Offline
Thanks for the dmesg. The linux-lts kernel needs nvidia-lts or nvidia-dkms plus linux-lts-headers.
Offline
ok,
1) installed the nvidia-lts package.
2) startup with non-lts kernel
dmesg with non-lts kernel
startx with non-lts kernel
systemctl status lightdm with non-lts kernel is active! (also confirmed active with lts kernel after nvidia-lts install)
lightdm --test-mode --debug with non-lts kernel
Xorg.0.log with non-lts kernel
still no greeter
Last edited by buzuddha (2021-05-02 17:16:10)
Offline
xorg.conf is still being used.
[ 11.619] (==) Using config file: "/etc/X11/xorg.conf"If that was generated by nvidia-xconfig it will require the display is attached to the GPU. The Xorg.0.log shows there is no display detected as being attached to the GPU. So you are left with a blank screen.
Offline
Thanks loqs for your reply. Sorry for the tardiness.
The Xorg.0.log shows there is no display detected as being attached to the GPU
How can I get Xorg to see my monitor? This is a laptop, I can't have physically disconnected it.
xorg.conf is still being used
Should I expect to be using some different config file?
Last edited by buzuddha (2021-05-20 21:17:49)
Offline
loqs wrote:The Xorg.0.log shows there is no display detected as being attached to the GPU
How can I get Xorg to see my monitor? This is a laptop, I can't have physically disconnected it.
The laptop has two GPUs. One connected to the screen the other not.
loqs wrote:xorg.conf is still being used
Should I expect to be using some different config file?
There is also the default of not using any config file and using auto detection.
See the link I proved in post #4. You have to decide how you want the two GPUs to be used and follow the appropriate steps.
Offline
Thanks loqs!
There is also the default of not using any config file and using auto detection.
Ok so I moved the config files and this worked. I now have a greeter and can log into gnome successfully.
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.moved
mv /etc/X11/xorg.conf.d /etc/X11/xorg.conf.d.movedHowever...
Before resorting to autodetection I had read that using the discrete gpu only would provide better performance and reduced battery, but given that my laptop is almost always plugged in, I wanted performance.
I have looked over that the wiki in post #4 and had previously tried the following.
1) create /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
2) add the two xrandr lines to ~/.xinitrc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --autoLightDM specific instructions
3) add those same lines to /etc/lightdm/display_setup.sh
4) make the script executable
chmod +x /etc/lightdm/display_setup.sh
rwxr-xr-x 1 root root 78 May 20 20:51 /etc/lightdm/display_setup.sh5) uncomment the line [Seat:*] from /etc/lightdm/lightdm.conf
6) add
display-setup-script=/etc/lightdm/display_setup.sh just below [Seat:*]
7) Reboot ->Still no greeter. Still errors with startx.
I'm still confused as to what I'm missing there and while it's a win to have my arch laptop making windows, I would also like to understand why it didn't work and how to achieve what I set out to do!
Thanks again for your help!
Offline
oh, in posting that last bit, I realized that my ~/.xinitrc did not have a shebang in it...
Offline
If you restart lightdm does it then work? If not please post an updated /var/log/Xorg.0.log.
Offline
sudo systemctl restart lightdmdoes work. It logs out and reloads the greeter.
Note: This was after adding in the shebang (see post above)
Last edited by buzuddha (2021-05-22 01:58:43)
Offline
Try the fix from LightDM#LightDM_does_not_appear_or_monitor_only_displays_TTY_output.
Offline
Pages: 1