Solved libGL errors after lid-close/open

I'm using a DELL laptop with an integrated intel gpu. i915kms is loaded and everything works fine. Though when I close the lid (hw.acpi.lid_switch_state=S3) and then reopen it some graphical applications fail to start again: games and video players do not start (specifically MPV and SDL-stuff fail to start). The error from glxinfo is listed below.

libGL error: failed to authenticate magic 1
libGL error: failed to load driver: iris
libGL error: did not find extension DRI_Mesa version 1
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 46
Current serial number in output stream: 47

I do not expect anyone to come up with the exact same problem or fix for that but instead I would appreciate some general directions, like what may have led that behavior or some manuals regarding this matter
 
I'm using a DELL laptop with an integrated intel gpu. i915kms is loaded and everything works fine. Though when I close the lid (hw.acpi.lid_switch_state=S3) and then reopen it some graphical applications fail to start again: games and video players do not start (specifically MPV and SDL-stuff fail to start). The error from glxinfo is listed below.


I do not expect anyone to come up with the exact same problem or fix for that but instead I would appreciate some general directions, like what may have led that behavior or some manuals regarding this matter
Hi mutkach , it is a known problem that started some months ago. The workaround for acceleration loss is to disable automatic VT switching during suspend.
In order to do that, you need to add the following line in /etc/sysctl.conf:
kern.vt.suspendswitch=0
Hope it helps.
 
Hi mutkach , it is a known problem that started some months ago. The workaround for acceleration loss is to disable automatic VT switching during suspend.
In order to do that, you need to add the following line in /etc/sysctl.conf:
kern.vt.suspendswitch=0
Hope it helps.
Thanks, it worked!
 
Back
Top