Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 5055  / 2 Years ago, mon, may 23, 2022, 3:52:11

Running 19.04, with a triple monitor setup. I open games full screen on my centre monitor with Wine, simply by running wine game.exe. However, Wine recently updated, and now it's opening on my left-most monitor. How can I get it back to opening on my centre monitor?



I've tried using the --geometry option at the end of my Wine command, but it doesn't seem to make a difference. The software still opens in the same spot.



The centre monitor is also confirmed as the primary monitor.



Using Nvidia driver 430.26.






If I recall, X does not create separate screens for each monitor. Rather, it combines the monitors into one logical screen. Looking at nvidia-settings, I see X Screen 0 shown as 5040x1086. My three monitors are set to 1680x1050, 1920x1080, and 1440x900, from left to right.



I don't know if this is how X Server has always done it, but perhaps my issue could be solved if each monitor was its own separate screen. Is there a way to do that? Or is there a better/simpler solution to this problem?



I had asked a similar question almost a year ago, regarding how to open a terminal on a specific monitor. Unfortunately, the same method does not seem to apply to the situation here.






EDIT:



Information as shown by nvidia-settings indicates that X Screen 0, which contains my three monitors, has a display name of hiigaran:0.0.



As per earthmeLon's suggestion, I attempted to prepend SDL_VIDEO_FULLSCREEN_HEAD to the command I wished to use to start the application in question. The following three commands were used to test which monitor the application would open on:



SDL_VIDEO_FULLSCREEN_HEAD=0 wine game.exe
SDL_VIDEO_FULLSCREEN_HEAD=1 wine game.exe
SDL_VIDEO_FULLSCREEN_HEAD=2 wine game.exe


No difference was observed between using any of these commands, and using wine game.exe on its own. The application still opened full screen on the left-most monitor.


More From » xorg

 Answers
1

So, it seems running Wine in a virtual desktop is the way to go. I had been avoiding doing this, because if I were to set the desktop to the resolution of the monitor I'd want to use it on, the virtual desktop's title bar, combined with Ubuntu's top/activity bar would cause a decent portion of the virtual desktop to be cut off at the bottom. Plus the dock would make things worse.



After fiddling around for a bit, the best solution I have come up with is as follows:




  1. Ensure hotkeys are set in gnome-control-center at Settings > Devices > Keyboard, for moving windows to a different monitor, and for entering full screen

  2. Start your desired program with Wine as per normal

  3. When the virtual desktop appears and takes focus, use your hotkeys to move the window to the desired monitor.

  4. Use your full screen hotkey to get the virtual desktop to use the entire monitor area



While it would have been ideal for software to open already full screen on the correct monitor, this has been a suitable solution for me, though technically, it's more of a workaround, than an actual solution.


[#5326] Monday, May 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
humbire

Total Points: 55
Total Questions: 93
Total Answers: 113

Location: Oman
Member since Fri, Dec 23, 2022
1 Year ago
;