Created attachment 114135 [details] Script in /usr/lib/pm-utils/sleep.d (needs to be executable) to kill ivo before suspend Sorry for potential double-posting. I'm experiencing occasional freezes on my T430 after waking from suspend/standby when intel-virtual-output was active when I initiated suspend. Only REISUB seems to help. To work around this issue, I have created a script in /usr/lib/pm-utils/sleep.d that kills ivo and waits for two seconds before actually performing suspension (attached). I was wondering if a nicer solution exists, or if I can help troubleshooting the underlying cause of the problem. (Having to restart ivo after resume is much less troublesome than having to reboot the system, but of course it would be best if it "just worked" -- like the rest of the very helpful tool.)
Hmm, I need whatever info you can get from the hang. Obviously, it is more likely to be the probing and modesetting after resume that causes the hang.
I don't have experience in troubleshooting hangs and freezes, but if you could tell me what to look out for (or point me at good instructions) I'll be glad to help. Maybe it hasn't anything to do with ivo, but with the discrete graphics that has problems with resuming. I'll try a few suspend/resume runs with "optirun sleep 10000" active to double-check this.
First check things like /var/log/syslog (/var/log/messages etc) to see if anything made it to disk before the hang. I would recommend you try setting up netconsole as that sends all the kernel messages to a second machine, which is very useful in these hard hangs. I would also enable as much kernel debugging as you can in the hope that the hang is made more graceful (i.e. not take the whole machine without trace).
When I tried suspend while running "optirun sleep 10000" (without ivo), on the fourth occasion or so the following happened on resume: - A black screen with a mouse cursor appeared on the primary (laptop) display, but the cursor didn't respond to mouse movements - After less than a minute, I was welcomed with a login screen; the login screen was shown on the external displays, the laptop display was still frozen - After login, "cat /proc/acpi/bbswitch" shows "ON", but my "optirun" process is gone I guess this has at least partly to do with the nvidia driver. I'll be collecting syslogs. I really hope the relevant information makes it to the disks...
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/issues/45.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.