Freeze after wake up from sleep

I am using the latest stable version DE: KDE with wayland GPU: Nvidia After wakeup from sleep, it shows the lock screen as usual (sometimes show password field, sometimes doesn't) and freeze (unresponsive) for about 2-3 mins (between the times the screen may turn off and if pressing random buttons will wakeup and still freeze) I tried to follow https://github.com/aarron-lee/gpd-win-tricks/tree/main?tab=readme-ov-file#help-fix-flaky-suspend (disable with udev rule and run the wm2-suspend-udev.sh script) but it doesn't work.
GitHub
GitHub - aarron-lee/gpd-win-tricks: Info on running linux on GPD Wi...
Info on running linux on GPD Win devices. Contribute to aarron-lee/gpd-win-tricks development by creating an account on GitHub.
Solution:
you can try modifying this fix with those drivers, and pinpoint which driver can fix the issue https://github.com/aarron-lee/gpd-win-tricks/tree/mt7921e_fix/win4-gyro-suspend-fix
Jump to solution
22 Replies
Aru
Aru6mo ago
Did you add the udev rule as described? echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="2541", ATTR{idProduct}=="9711", ATTR{remove}="1"' | sudo tee -a /etc/udev/rules.d/99-block-fingerprint.rules Add the udev rule, reboot The fingerprint scanner is the culprit for the suspend issue, the udev rule should solve it That being said, the udev rule was tested on the 6800u model. Do you have a 7840u or 8840u? If you have a newer model, please post the output of lsusb It might be that the fingerprint scanner is different on newer models ...oh wait, just realized you said Nvidia GPU. Are you on a win max 2? If not, ignore everything I said That fix is for the GPD win max 2
FaeWulf
FaeWulfOP6mo ago
Hmm no, For detail: Laptop Lenovo Legion 5 15IMH05 Its intel cpu so I think I have done wrong thing
Aru
Aru6mo ago
Oh yep, definitely. That fix is not for other devices
FaeWulf
FaeWulfOP6mo ago
Welp maybe have to wait if next update can fix this issue Turn out it is something with the internet connection, if I turn off internet before sleep, and no freeze after wakeup, and vice versa Is there any thing related to this problem?
Aru
Aru6mo ago
oh, hrmmm. so there's been some devices where you need to disable before suspend, enable after resume, for suspend to work perhaps it's similar
FaeWulf
FaeWulfOP6mo ago
Hmm so like have to disable wifi device before the device go to sleep, then enable it after login?
Aru
Aru6mo ago
it's not the exact same problem, but yes must disable/renable X hardware on suspend-resume for to fix a bug the bug is different depending on the device for example, https://discord.com/channels/1072614816579063828/1220407174698631188 this person had wifi that stopped working after suspend-resume but disabling/re-enabling his wifi on suspend-resume fixes it you can try a similar fix, you'd just need to know what your wifi card is 🤔
FaeWulf
FaeWulfOP6mo ago
Alright! I will try
Aru
Aru6mo ago
sudo lsmod what output? we can look for your wifi there
FaeWulf
FaeWulfOP6mo ago
what line should I find? its too big to send as normal texxt
Aru
Aru6mo ago
try lsmod | grep iw
FaeWulf
FaeWulfOP6mo ago
iwlmvm 860160 0
mac80211 1744896 3 iwlmvm,rtw88_core,rtw88_usb
iwlwifi 540672 1 iwlmvm
cfg80211 1421312 6 wl,iwlmvm,rtw88_core,brcmfmac,iwlwifi,mac80211
rfkill 40960 11 iwlmvm,bluetooth,ideapad_laptop,cfg80211
iwlmvm 860160 0
mac80211 1744896 3 iwlmvm,rtw88_core,rtw88_usb
iwlwifi 540672 1 iwlmvm
cfg80211 1421312 6 wl,iwlmvm,rtw88_core,brcmfmac,iwlwifi,mac80211
rfkill 40960 11 iwlmvm,bluetooth,ideapad_laptop,cfg80211
Aru
Aru6mo ago
also lshw -c network
FaeWulf
FaeWulfOP6mo ago
*-network
description: Wireless interface
product: Comet Lake PCH CNVi WiFi
vendor: Intel Corporation
physical id: 14.3
bus info: pci@0000:00:14.3
logical name: wlp0s20f3
version: 00
serial: 1a:6e:a4:13:10:5f
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=6.9.8-202.fsync.fc40.x86_64 firmware=77.c360c4b1.0 QuZ-a0-hr-b0-77.u ip=192.168.1.121 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:16 memory:b4498000-b449bfff
*-network
description: Ethernet interface
product: RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:07:00.0
logical name: enp7s0
version: 15
serial: 00:2b:67:be:db:8e
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.9.8-202.fsync.fc40.x86_64 firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
resources: irq:18 ioport:3000(size=256) memory:b4204000-b4204fff memory:b4200000-b4203fff
*-network
description: Wireless interface
physical id: a
bus info: usb@1:10
logical name: wlp0s20f0u10
serial: 22:1c:e6:5f:5f:a6
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtw_8822bu driverversion=6.9.8-202.fsync.fc40.x86_64 firmware=N/A ip=192.168.1.106 link=yes multicast=yes wireless=IEEE 802.11
*-network
description: Wireless interface
product: Comet Lake PCH CNVi WiFi
vendor: Intel Corporation
physical id: 14.3
bus info: pci@0000:00:14.3
logical name: wlp0s20f3
version: 00
serial: 1a:6e:a4:13:10:5f
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=6.9.8-202.fsync.fc40.x86_64 firmware=77.c360c4b1.0 QuZ-a0-hr-b0-77.u ip=192.168.1.121 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:16 memory:b4498000-b449bfff
*-network
description: Ethernet interface
product: RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:07:00.0
logical name: enp7s0
version: 15
serial: 00:2b:67:be:db:8e
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.9.8-202.fsync.fc40.x86_64 firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
resources: irq:18 ioport:3000(size=256) memory:b4204000-b4204fff memory:b4200000-b4203fff
*-network
description: Wireless interface
physical id: a
bus info: usb@1:10
logical name: wlp0s20f0u10
serial: 22:1c:e6:5f:5f:a6
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtw_8822bu driverversion=6.9.8-202.fsync.fc40.x86_64 firmware=N/A ip=192.168.1.106 link=yes multicast=yes wireless=IEEE 802.11
Aru
Aru6mo ago
I see:
driver=iwlwifi
driver=r8169
driver=rtw_8822bu
driver=iwlwifi
driver=r8169
driver=rtw_8822bu
Solution
Aru
Aru6mo ago
you can try modifying this fix with those drivers, and pinpoint which driver can fix the issue https://github.com/aarron-lee/gpd-win-tricks/tree/mt7921e_fix/win4-gyro-suspend-fix
Aru
Aru6mo ago
^ the fix basically creates systemd services that will disable/enable the driver on suspend-resume
FaeWulf
FaeWulfOP6mo ago
modprobe those drivers right? alright, understand
Aru
Aru6mo ago
side note, I should update that fix for to be able to do a local install anyways yeah, keep me updated on if it works or not 👍
FaeWulf
FaeWulfOP6mo ago
it works! I also know the root causes of this bug. Turn out, I am using external wifi device, that device somehow conflict with the system (?), so if I remove that external device, this issue doesn't happen again.
Aru
Aru6mo ago
nice, glad to hear that it's fixed. was the fix physically removing the external device? or did you modify the fix I posted?
FaeWulf
FaeWulfOP6mo ago
The modify worked
Want results from more Discord servers?
Add your server