Am 21.11.20 um 23:47 schrieb David C. Rankin:
On 11/21/20 9:08 AM, Aaron Digulla wrote:
Hello,
Since about a month, my Xfce4 desktop crashes when I resume from hibernate (to disk) overnight.
On good days, the browser window is just black. Killing the chrome process with --type=gpu-process fixes this.
Anyone else with the same problems? Any suggestions how to proceed? I can confirm the same thing in the G04-390 driver as well. Without any full diagnosis (and with Firefox), I took it to be related to the hardware rendering enabled in the browser.
layers.acceleration.force-enabled true
I'm not sure if Chrome would have a similar setting, but I have had better luck resuming from suspend with a browser window open when I set it to false (the old Linux default)
I don't see this in Firefox because the option is "false" in my about:config. So I can kind of confirm your findings. Chrome has a similar setting in the settings. It's called "Use hardware acceleration" (or in German: "Hardwarebeschleunigung verwenden, falls verfügbar"). It's on. I'll try with turning it off. In the mean time, this little script line prevents the crashes: ( sleep 5 ; pkill -e -f type=gpu-process ) & dbus-send --session --dest=org.freedesktop.PowerManagement --type=method_call /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.Hibernate (the whole thing goes into one line). The first part in the parentheses starts a background job to kill all GPU processes of Chrome (pkill -f ...), log which ones were killed (-e) after five seconds. The dbus-send triggers hibernate to disk. Do while the background job waits, the system goes to sleep. When it comes back up, the time runs out and the processes are killed ... unless I switch to the wrong desktop too quickly. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/