Open ilgiznurgaliev opened 2 years ago
Interesting, are the files in /sys/class/drm/card*
not present after your sleep? All this does is basically look at those values.
Thanks for quick response @mcgillij. The files are there. All I need to make it work is to manually start it using systemctl start amdfan
.
Hum, maybe there's some systemd flag I can add to the systemd config file for it, to make it do an actual restart vs whatever it's doing now when recovering from sleep.
Did some tests today and found out that it hapens randomly. Waked up three times since yesterday and all three time it restarted by itself. Couldn't find why sometimes it fails to restart. I will update this thread if I find something else.
Sounds good, thanks.
I had this issue even w/o suspend.
It seems to be caused by some cards/drivers not ready to report fan speed.
To fix it, catch OSError exception on line 137. It should be something like:
except (KeyError, OSError): # better to return no speed then explode
I'll push up a new version shortly.
Hi,
Below is log after waking up. Systemd tries to restart it several times, but it still crashes with the same output: