xorg server 1.19/1.120: xrandr crashes display
Submitted by Peter Sütterlin
Assigned to Xorg Project Team
Link to original bug (#107099)
Description
I am running openSUSE Tumbleweed on a Lenovo T460p (Skylake/HD530) using the modesetting xorg module. Since (at least) version 1.19.6 the module has major issues with changing the resolution. (In case it matters: The laptop actually has an optimus chip, HD530/940MX, but I'm not using the nvidia part by default)
Several games I have that want to start in fullscreen with a resolution different from the current one die with error message
X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 153 (XFree86-VidModeExtension) Minor opcode of failed request: 10 (XF86VidModeSwitchToMode) Value in failed request: 0x193 Serial number of failed request: 46 Current serial number in output stream: 50
Others (like the atari800 emulator) leave me with a black screen and a mouse cursor, but no interaction is possible. I have to switch to a VT and kill the program, then normal display is back.
If I use xrandr to change the resolution (like 'xrandr -s 1920x1080') I also only get a black screen. I also tried switching to VT, setting DISPLAY and XAUTHORITY and use xrandr to switch back using 'xrandr -s 0' (should go back to default 2560x1440). I get an error stating 'index 0 out of range, there is only 0 resolutions' (from memory, can't copy'n'paste....) So far the only way out I found was to kill the X server.
I tried an updated package (xorg-x11-server-1.20.0-545.1 from the X11:Xorg repo of Tumbleweed) that also includes the patch for issue #106715, but it does not change the issues.