View previous topic :: View next topic |
Author |
Message |
BlueManCZ n00b


Joined: 11 Mar 2017 Posts: 19
|
Posted: Sat May 25, 2019 8:24 am Post subject: I have to restart XDM after each suspend |
|
|
I have fresh Gentoo with linux-4.19.44-gentoo kernel, working 430.14 nvidia driver (GTX 1060), OpenRC as init system and GDM as display manager.
Nvidia drivers configured according to this guide.
Each time I suspend system and then wake it up, the monitor also wakes up, but remains black. I can't switch to any TTY, but system is running and I can connect to SSH server. Keyboard also looks frozen, I can't even switch numlock.
I found one working workaround by restarting xdm:
Code: | /etc/init.d/xdm stop
/etc/init.d/xdm start |
Then I can sign up to a new session and right after that Gnome locks my session. (This should be done before suspend.)
Where can be problem? This didn't occur with default nouveau driver.
I'll be glad for any help.
Edit #1
I just figured out I can suspend and wakeup without problem as root with acpid:
Code: | echo -n "mem" > /sys/power/state |
But Gnome suspend button causes problem described above. |
|
Back to top |
|
 |
dantrell l33t


Joined: 01 Jun 2007 Posts: 750 Location: Earth
|
Posted: Sat May 25, 2019 10:14 am Post subject: Re: I have to restart XDM after each suspend |
|
|
BlueManCZ wrote: | Where can be problem? |
Sounds like this issue.
Quite a few people have been affected but we haven't pinpointed the cause.
I would suggest downgrading sys-auth/elogind to 239.4 (at least). _________________ Dantrell B. |
|
Back to top |
|
 |
BlueManCZ n00b


Joined: 11 Mar 2017 Posts: 19
|
Posted: Sat May 25, 2019 11:13 am Post subject: |
|
|
Thank you, I didn't notice this thread.
But downgrade with:
Code: | emerge --ask --oneshot =sys-auth/elogind-239.4 |
didn't help. The problem still persists. It's strange. I don't even know what logs to look at.
I have dbus-1.12.12-r1. |
|
Back to top |
|
 |
BlueManCZ n00b


Joined: 11 Mar 2017 Posts: 19
|
Posted: Sat May 25, 2019 12:30 pm Post subject: |
|
|
For now I just created script suspend.sh
Code: | #!/bin/bash
xdg-screensaver lock
sleep 0.5
sudo pm-suspend
|
(allowed pm-suspend in sudoers without password)
and set it on a keyboard shortcut, because I don't really use GUI for suspending.
But It would be great figure out, where the problem is. |
|
Back to top |
|
 |
|