Closed diamondburned closed 9 months ago
Closing this since it's caused by NixOS and Arch's displaylink
sleep code:
I'll figure out a way to disable suspending as long as DisplayLink is connected so that I don't need this. That's unrelated to this issue, though.
Description
On my Asahi Linux (NixOS), ever since yesterday (running
asahi-6.5-27
), my laptop can no longer reliably suspend on lid close. Moreover, once this happens, WiFi would not work until I restart NetworkManager.When I close the laptop lid after the first boot, my system would enter the suspend state as usual. However, once I open up the lid and log back in, WiFi would suddenly stop working. NetworkManager would see the device as unmanaged, however, and if I run
systemctl restart NetworkManager
, then WiFi would work again.It doesn't end there, though. After waking up from the first suspend, clicking Restart in GNOME or running
reboot
would not restart the system. Closing the lid would not turn off the display. In fact, the power state seems to be stuck here unless I hold the power button to force shut off.Upgrading the kernel to
6.5-29
did not fix this issue.Note that when
systemctl suspend
is run a second time:Minor tidbits
This happened roughly yesterday when I was messing around with my Raspberry Pi Zero. Specifically, I was trying to get Ethernet-over-USB working. I made no system modifications while doing this, but I poked around NetworkManager a lot. I fail to see how this would cause the lid issue, but I figured I'm bringing this up here.
The lid closing seems to reliably work for the first time after every fresh boot. After that, it would just stop working. Prior to yesterday, this was working perfectly fine.
Information
asahi-diagnose
output: https://gist.github.com/diamondburned/ba50ada1d5826b1a9ea06ca49d0827a1Journal logs including first suspend, first wake up, and second suspend attempt.
Log shows `kernel|systemd|ModemManager|wpa_supplicant`. Lid was not shut. Power button was pressed at 17:08:40 to wake the system up. ``` Dec 06 17:08:17 lilyhoshii systemd[1675]: Reached target Shutdown. Dec 06 17:08:17 lilyhoshii systemd[1675]: Finished Exit the Session. Dec 06 17:08:17 lilyhoshii systemd[1675]: Reached target Exit the Session. Dec 06 17:08:17 lilyhoshii systemd[1]: user@132.service: Deactivated successfully. Dec 06 17:08:17 lilyhoshii systemd[1]: Stopped User Manager for UID 132. Dec 06 17:08:17 lilyhoshii systemd[1]: Stopping User Runtime Directory /run/user/132... Dec 06 17:08:17 lilyhoshii systemd[1]: run-user-132.mount: Deactivated successfully. Dec 06 17:08:17 lilyhoshii systemd[1]: user-runtime-dir@132.service: Deactivated successfully. Dec 06 17:08:17 lilyhoshii systemd[1]: Stopped User Runtime Directory /run/user/132. Dec 06 17:08:30 lilyhoshii systemd[2337]: Started Application launched by gnome-shell. Dec 06 17:08:31 lilyhoshii systemd[1]: geoclue.service: Deactivated successfully. Dec 06 17:08:34 lilyhoshii systemd-logind[1386]: The system will suspend now! Dec 06 17:08:34 lilyhoshii ModemManager[2175]: