Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zzz sometimes causes frozen desktop after wakeup #33813

Closed
notthewave opened this issue Oct 29, 2021 · 15 comments
Closed

zzz sometimes causes frozen desktop after wakeup #33813

notthewave opened this issue Oct 29, 2021 · 15 comments

Comments

@notthewave
Copy link
Contributor

notthewave commented Oct 29, 2021

System

  • xuname:
    Void 5.13.19_1 x86_64-musl GenuineIntel uptodate rDFFFFFFFFFFFF
  • package:
    affected package(s) including the version: pm-utils-1.4.1_8

Expected behavior

does not freeze after wakeup

Actual behavior

sometimes freezes after wakeup

Steps to reproduce the behavior

  1. run zzz and wait for a few minutes

Aditional Info

probably does not happen to everyone, so I suppose this is caused by something else I have installed.

here are my running services:

NetworkManager	agetty-tty2  agetty-tty5   bluetoothd	dbus	  mdnsd  seatd  ufw
acpid		agetty-tty3  agetty-tty6   cups-browsed  dcron	  nginx  tlp	virtlockd
agetty-tty1	agetty-tty4  avahi-daemon  cupsd	libvirtd  ntpd   udevd  virtlogd

tested with tty:
recognizes keyboard input but can't stop zzz (CTRL+C)

@Animeshz
Copy link
Contributor

Do you have Ryzen mobile APU? I guess its a kernel (upstream) bug, which still isn't resolved (or isn't figured out what causing it, otherwise). What is kernel version do you have (xbps-query -l | awk '{ print $2 }' | grep linux5.)?

@notthewave
Copy link
Contributor Author

I'm on Intel (x230t thinkpad)
kernel version 5.13.19_1

@Animeshz
Copy link
Contributor

Animeshz commented Nov 2, 2021

Well, then I think it might be really some issue with the void configuration I think?

Cuz for a lot of people that issue was fixed, whereas I'm still experiencing in latest kernel and firmware 🤔🤔

@Animeshz
Copy link
Contributor

Animeshz commented Nov 2, 2021

Hey,

  • Does it happens with resume within 3s of suspend?
  • Can you try exiting the wm/de using keybind and reenter and do the same, if I do it twice then the screen never comes back on (remains black), I have to hard power reset then. Is the behavior same?

If we face the same issue then its highly sure that there is something in the config itself which have some problem.

@foopub
Copy link
Contributor

foopub commented Nov 10, 2021

Check the logs from when it happens i.e. dmesg and svlogtail.
Does Ctrl + D work to stop zzz?
By desktop I presume you mean some X environment, maybe check the Xorg logs too (I think in /var/log/).

Post anything suspicious you find.

@notthewave
Copy link
Contributor Author

notthewave commented Nov 10, 2021

[ 4.251928] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (_SB.PCI0.LPC.PMIO) (20210331/utaddress-204)
[ 4.251954] ACPI: OSL: Resource conflict; ACPI support missing from driver?

@notthewave
Copy link
Contributor Author

notthewave commented Nov 10, 2021

I'm on wayland and use seatd but somehow I still need elogind installed in order for it to run. could be the cause... (nope tried both elogind and seatd (without elogind installed): issue persists)

ctrl + d does not cut it either

@notthewave
Copy link
Contributor Author

notthewave commented Nov 11, 2021

kernel seems to be the issue. tried previous version and it works as expected

edit: tried it again didn't work... hmmmm

@notthewave
Copy link
Contributor Author

notthewave commented Nov 11, 2021

Believe I found the devil!
had tpacpi-bat installed after removing it, everything seems to function normally.

@notthewave
Copy link
Contributor Author

lol nope

@Animeshz
Copy link
Contributor

Animeshz commented Nov 11, 2021

@foopub I've posted the dmesg logs in the mentioned issue over amd (my first comment) there's an amdgpu issue as it seems, other than that the Xorg logs are here
Xorg.0.log and nothing seem suspicious.
Ctrl+D does nothing.

PS: It only happens with sleep resume in less than 3 seconds approx.

@notthewave
Copy link
Contributor Author

notthewave commented Nov 11, 2021

I disabled tlp, and it seems to work now after closing and opening the lid approx. fifty times.
linrunner/TLP#593
I disabled it before, but it did not have any effect iirc.
If tlp is indeed the issue in my case, it's a kernel problem.

edit: 2 days without freezing. Safe to say tlp was/is the issue.

@Animeshz
Copy link
Contributor

Animeshz commented Nov 18, 2021

I have got everything fixed, it was because AMD_PMC was not set in the kernel config. I ran configure, ran menuconfig, added it and compiled and installed and now everything works! (more info)

@Animeshz
Copy link
Contributor

Not sure why that module is not enabled, it is responsible for s2idle (s0ix) states in AMD notebooks. Please enable it as module, custom kernel like linux-tkg put it as a module.

@leahneukirchen
Copy link
Member

Fixed in dc1fd41.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants