The officially official Devuan Forum!

You are not logged in.

#1 2023-08-25 21:01:53

simon_a
Member
Registered: 2023-08-25
Posts: 6  

[SOLVED] Daedalus Nvidia-Xorg logout black screen

Hi.
Hardware: Laptop MSI GE62-6QF-Apache-Pro
GPU: nvidia 970m/intel 530
Installed: nvidia-driver, firmware-misc-nonfree, seatd.
WM/DE: LightDM/Mate
Init: OpenRC

Problem : Logout does not work, I get black screen, can't switch to any tty, non responsive to sysrq button.
I tried other DM, sddm, slim, DE: cinnamon, openbox, no luck.
Workaround: Press powerbutton, laptop will sleep/hibernate. Press power again, get to screenlocker, press switch user.
Reproducible: Always.
Everything else works as expected.

Boot log looks clean:

❯ sudo cat /var/log/boot
Fri Aug 25 21:48:46 2023: Setting up keyboard layout...done.
Fri Aug 25 21:48:46 2023: Activating swap...done.
Fri Aug 25 21:48:46 2023: Checking file systems.../dev/sdb5: clean, 11/60399616 files, 4073552/241568768 blocks
Fri Aug 25 21:48:47 2023: done.
Fri Aug 25 21:48:47 2023: Cleaning up temporary files... /tmp.
Fri Aug 25 21:48:47 2023: Mounting local filesystems...done.
Fri Aug 25 21:48:47 2023: Activating swapfile swap, if any...done.
Fri Aug 25 21:48:47 2023: Cleaning up temporary files....
Fri Aug 25 21:48:47 2023: Starting Setting kernel variables: sysctl.
Fri Aug 25 21:48:47 2023: Configuring network interfaces...done.
Fri Aug 25 21:48:47 2023: Cleaning up temporary files....
Fri Aug 25 21:48:47 2023: Setting up ALSA...warning: 'alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore' failed with error message 'Found hardware: "HDA-Intel" "Realtek ALC898" "HDA:10ec0899,1462116d,00100003 HDA:80862809,80860101,00100000" "0x1462" "0x116d"
Fri Aug 25 21:48:47 2023: Hardware is initialized using a generic method'...done.
Fri Aug 25 21:48:47 2023: Starting: AppArmorLoading AppArmor profiles...Skipping profile in /etc/apparmor.d/disable: usr.bin.thunderbird
Fri Aug 25 21:48:47 2023: done.
Fri Aug 25 21:48:47 2023: .
Fri Aug 25 21:48:47 2023:  * Mounting cgroup filesystem ...                                                                                                   [ ok ]g 25 21:48:47 2023: 
Fri Aug 25 21:48:48 2023: Loading kernel module lp.
Fri Aug 25 21:48:48 2023: Loading kernel module ppdev.
Fri Aug 25 21:48:48 2023: Loading kernel module parport_pc.
Fri Aug 25 21:48:48 2023: Loading kernel module nvidia-drm.
Fri Aug 25 21:48:50 2023: Loading kernel module msr.
Fri Aug 25 21:48:50 2023: Setting sensors limits...done.
Fri Aug 25 21:48:50 2023: Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix.
INIT: Entering runlevel: 2
Fri Aug 25 21:48:50 2023: Starting enhanced syslogd: rsyslogd.
Fri Aug 25 21:48:50 2023: Starting anac(h)ronistic cron: anacron.
Fri Aug 25 21:48:50 2023: Starting system message bus: dbus.
Fri Aug 25 21:48:51 2023: Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Fri Aug 25 21:48:51 2023: Starting bluetooth: bluetoothd.
Fri Aug 25 21:48:51 2023: Starting network connection manager: NetworkManager.
Fri Aug 25 21:48:51 2023: Setting up console font and keymap...done.
Fri Aug 25 21:48:51 2023: Starting periodic command scheduler: cron.
Fri Aug 25 21:48:51 2023: Starting Common Unix Printing System: cupsd.
Fri Aug 25 21:48:51 2023: Starting CUPS Bonjour daemon: cups-browsed.
Fri Aug 25 21:48:51 2023: Starting session management daemon: elogind.
Fri Aug 25 21:48:51 2023: Starting MTA: exim4.
Fri Aug 25 21:48:52 2023: Laptop mode
Fri Aug 25 21:48:52 2023: enabled, not active.
Fri Aug 25 21:48:52 2023: Starting Light Display Manager: lightdm.
Fri Aug 25 21:48:52 2023: Starting NVIDIA Persistence Daemon
Fri Aug 25 21:48:52 2023: Starting SANE network scanner server: saned.
Fri Aug 25 21:48:53 2023: Starting seatd: seatd.
Fri Aug 25 21:48:53 2023: Starting S.M.A.R.T. daemon: smartd.
Fri Aug 25 21:48:56 2023: Starting OpenBSD Secure Shell server: sshd.
Fri Aug 25 21:48:56 2023: Starting tor daemon...Aug 25 21:48:56.169 [warn] Tor was compiled with zstd 1.5.2, but is running with zstd 1.5.4. For safety, we'll avoid using advanced zstd functionality.
Fri Aug 25 21:48:56 2023: done

Dmesg for 6 hours of use:

❯ sudo dmesg --level=emerg,alert,crit,err
[ 8141.014477] pcieport 0000:00:1c.0: AER:   Error of this Agent is reported first
~ ❯  

rc-status

Runlevel: default
 rsyslog                                                           [  started  ]
 smartmontools                                                     [  started  ]
 dbus                                                              [  started  ]
 avahi-daemon                                                      [  started  ]
 cups                                                              [  started  ]
 sudo                                                              [  started  ]
 anacron                                                           [  started  ]
 console-setup.sh                                                  [  started  ]
 pulseaudio-enable-autospawn                                       [  started  ]
 rmnologin                                                         [  started  ]
 exim4                                                             [  started  ]
 laptop-mode                                                       [  started  ]
 tor                                                               [  started  ]
 lightdm                                                           [  started  ]
 cups-browsed                                                      [  started  ]
 saned                                                             [  started  ]
 rsync                                                             [  started  ]
 elogind                                                           [  started  ]
 seatd                                                             [  started  ]
 bluetooth                                                         [  started  ]
 bootlogs                                                          [  started  ]
 cron                                                              [  started  ]
 network-manager                                                   [  started  ]
 nvidia-persistenced                                               [  started  ]
 ssh                                                               [  started  ]
 rc.local                                                          [  started  ]
 stop-bootlogd                                                     [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 umountroot                                                        [  started  ]
 umountfs                                                          [  started  ]
 umountnfs.sh                                                      [  started  ]
Dynamic Runlevel: manual

Last edited by simon_a (2023-08-25 21:17:15)

Offline

#2 2023-08-25 21:26:37

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: [SOLVED] Daedalus Nvidia-Xorg logout black screen

I don't remember seeing firmware-misc-nonfree before.

According to https://www.devuan.org/os/packages you should have these in your sources.list:
non-free-firmware, non-free and contrib

I'm probably missing something . . . sorry for the noise.

Offline

#3 2023-08-25 21:39:58

simon_a
Member
Registered: 2023-08-25
Posts: 6  

Re: [SOLVED] Daedalus Nvidia-Xorg logout black screen

Yes, I have added those to sources on first login to a system I tried to play video and I had choppy video playback.

#deb cdrom:[Devuan GNU/Linux 5.0.0 daedalus amd64 - desktop 20230814]/ daedalus contrib main non-free non-free-firmware

deb http://deb.devuan.org/merged daedalus main non-free-firmware non-free contrib
deb-src http://deb.devuan.org/merged daedalus main non-free-firmware non-free contrib

deb http://deb.devuan.org/merged daedalus-security main non-free-firmware
deb-src http://deb.devuan.org/merged daedalus-security main non-free-firmware

# daedalus-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.devuan.org/merged daedalus-updates main non-free-firmware non-free contrib
deb-src http://deb.devuan.org/merged daedalus-updates main non-free-firmware non-free contrib

Offline

#4 2023-08-26 02:00:22

deepforest
Member
Registered: 2020-03-24
Posts: 354  

Re: [SOLVED] Daedalus Nvidia-Xorg logout black screen

i can be wrong, but may be you need that?
https://wiki.debian.org/Bumblebee


-=linux its buggy crap that have no antifool protection (c)=- smile
*linux is free software, and comes with ABSOLUTELY NO WARRANTY* smile
+ALL YOURS ACTIONS at Linux YOU DO at YOUR OWN RISK!+ smile

Offline

#5 2023-08-26 02:18:02

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,251  

Re: [SOLVED] Daedalus Nvidia-Xorg logout black screen

@simon_a, try with adding the following to /etc/default/seatd

export SEATD_VTBOUND=0

and then restart the service, which may well upset Xorg, but any goodness it might possibly bring doesn't take effect until its next start. A full reboot would also work.

Offline

#6 2023-08-26 06:20:12

simon_a
Member
Registered: 2023-08-25
Posts: 6  

Re: [SOLVED] Daedalus Nvidia-Xorg logout black screen

@deepforest I might try it some day, but previous experience with Devuan 4.0 showed I might get total freeze on login.

@ralph.ronnquist Thank you, it was exactly what I needed. Now every time I hit logout I get to lightdm login screen immediately within 1 second. Is there any logs I could post here that could indicate others might need this one too?

Overall very smooth Daedalus experience.

Offline

#7 2023-08-26 06:56:18

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,251  

Re: [SOLVED] Daedalus Nvidia-Xorg logout black screen

Great. I don't really know what that optional VTBOUND-edness of seatd means, but maybe my intuitive understanding has some foundation.

If you would find it within your comfort zone, you could submit a "bug report" to the Debian packager(s) and  make a case that the setting should be the default for the system-wide seatd service. (it's package seatd, version 0.7.0-6). They may well be able to explain the current default, although I wouldn't be surprised if they haven't delved into it at all.

The technical underpinning is that seatd and Xorg come into conflict about the VT management, and in particular that Xorg fails to react properly to VT switching events. Instead it locks up the display. With setting of 0, seatd skips the VT management, which makes Xorg a happy camper.

Offline

#8 2023-08-26 07:50:08

simon_a
Member
Registered: 2023-08-25
Posts: 6  

Re: [SOLVED] Daedalus Nvidia-Xorg logout black screen

Thanks, I will dedicate some time to gather more technical details from my laptop.
I have seen threads on Debian forum where people complaining on same thing using sddm + KDE plasma.
Soon I will have to install Debian 12 to a newer 3050 laptop and I will see if it will fail there as well.

Offline

#9 2023-08-27 07:04:21

simon_a
Member
Registered: 2023-08-25
Posts: 6  

Re: [SOLVED] Daedalus Nvidia-Xorg logout black screen

Regarding bumblebee.
If you install it, it breaks configuration for X server. BBswitch switches to intel card after loading nvidia-drm module and system will not load, it gets stuck.
Probably many config files have to be filled but I do not have time to do so so I rolled back. Laptop-mode is enough to use computer.

Offline

#10 2023-08-31 10:45:02

simon_a
Member
Registered: 2023-08-25
Posts: 6  

Re: [SOLVED] Daedalus Nvidia-Xorg logout black screen

@ralph.ronnquist
I reproduced same issue on another MSI laptop with Nvidia rtx 3050.
Finally I have correct sequence how to install nvidia-driver on Deadalus for nvidia laptops.
Run:

sudo apt-get install nvidia-persistenced nvidia-driver firmware-misc-nonfree seatd

If you have install errors from apt:

sudo rc-update add nvidia-persistenced
sudo rc-update add seatd

Reason why I was getting black screen was that runlevel for nvidia-persistenced and seatd was set to 'none'
I was getting errors in lightdm.log

** Message: 13:15:40.498: Starting lightdm-gtk-greeter 2.0.8 (Aug 16 2021, 03:07:33)
** Message: 13:15:40.503: [Configuration] Reading file: /usr/share/lightdm/lightdm-gtk-greeter.conf.d/01_debian.conf
** Message: 13:15:40.503: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf
** (lightdm-gtk-greeter:6285): WARNING **: 13:15:40.702: [PIDs] Failed to execute command: systemd

(lightdm-gtk-greeter:6285): Gtk-WARNING **: 13:15:40.997: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner G>

(lightdm-gtk-greeter:6285): Gtk-WARNING **: 13:15:45.000: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner G>

(lightdm-gtk-greeter:6285): Gtk-WARNING **: 13:15:45.017: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner G>

(lightdm-gtk-greeter:6285): Gtk-WARNING **: 13:15:45.036: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner G>

** (lightdm-gtk-greeter:6285): WARNING **: 13:15:45.094: [PIDs] Failed to terminate process #6307: No such Process

So I removed

export SEATD_VTBOUND=0

and now I always get to logout screen.

Offline

Board footer