View previous topic :: View next topic |
Author |
Message |
Cellmate n00b
Joined: 01 Dec 2009 Posts: 39 Location: Germany
|
Posted: Sun Feb 25, 2024 10:32 am Post subject: xrandr doesn't work as it used to (turning off one monitor) |
|
|
I play a small number of games with Wine, but some of them show strange behavior if the mouse pointer leaves the game screen, so I used to turn off the other monitor before starting the game. Usually like this:
Code: | xrandr --output "$OTHERMON" --off |
This worked perfectly for about 5 years until it stopped working. Nowadays I get the error message:
Code: | X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 139 (RANDR)
Minor opcode of failed request: 7 (RRSetScreenSize) |
I mean, turning off one monitor isn't impossible, but doing it manually with the system settings app somehow misses the point. While still being one of the recommended methods in an aging StackOverflow article which has rather questionable alternatives to offer, I'd like to ask what I am doing wrong? |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1897 Location: 127.0.0.1
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sun Feb 25, 2024 4:43 pm Post subject: |
|
|
Wine also offers Emulate a virtual desktop and Automatically capture the mouse in full-screen windows. Do either of these help to keep the cursor confined even when the second monitor is enabled? |
|
Back to top |
|
|
Ralphred Guru
Joined: 31 Dec 2013 Posts: 501
|
Posted: Sun Feb 25, 2024 9:30 pm Post subject: |
|
|
Hu wrote: | Emulate a virtual desktop |
Don't do this with game bottles - if explorer.exe has a problem after a wine update (or for any other reason) it can stop you using things like winecfg to fix it.
Cellmate, try and validate whatever is creating the "$OTHERMON" variable, and compare it to xrandr|grep -v "^ ", it could just be that some regex or similar no longer works. |
|
Back to top |
|
|
|