Hello,
So I think that my laptop is having difficulty resuming from sleep in a reliable way. Occasionally, after locking the desktop and turning off the screen, when I press a key, the display doesn’t come back on.
Now I have heard rumblings about amdgpu not playing well with sleep states, but the thing is, I have no logs (and I must scream). If I have no evidence of something going wrong, how can it be fixed?
The most recent occurrence of this was yesterday. The laptop had been up for two weeks with no issue, but as I picked it up in the morning and tried to wake it, the keyboard was responsive but the screen was blank. I know that I had left Firefox with a few tabs (less than 10) open.
Over time, when experiencing issues I had begun to start the sshd service in the background as a means of troubleshooting my workstation with no display, but could not get to it this time (“connection refused)”. The laptop was still responding to pings.
To try to force the laptop to “do something”, I connected the HDMI port to a monitor. The system can ignore the user all day long, but it can’t ignore hardware changes.
It was at this point that a black screen with a blinking/flashing cursor in the corner became visible (on the laptop display and the monitor). Pleased, because I could now see “something”, but also not pleased because the WM had apparently died and the system was locked up.
Magic SysRq is apparently a no-go. By default, all commands except sync (Alt+Print Screen then ‘S’) are disabled. I have since changed this (sysctl -w kernel.sysrq=1).
At this point, I had to accept that the system was beyond saving and held the power button. Unfortunately, as I use Fedora in a completely immutable fashion (Fedora 43 Sway Spin, booting from Live USB) the system journal is not retained, so I have no further insight as to what’s going on.
So, a couple of questions:-
- Can I ringfence sshd in such a way that it can’t be killed?
- Can I redirect the system journal/dmesg to a network destination reliably (so it still sends even when in distress?)