Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Using xrandr to control monitors
  2. xrandr allows us to control which monitors are on and off on Linux. This allows us to automatically turn off the monitor(s) that the GPU uses to play games so we don't have to manually switch inputs.
  3.  
  4. 1. Terminal: "xrandr". This will tell you the names of your displays.
  5.  
  6. 2. Identify the name of the monitor(s) you wish to turn off, then in the script you use to start the VM add the line "xrandr --output [NAME OF DISPLAY] -off" with [NAME OF DISPLAY] being the monitor you want to turn off (and switch to the Windows GPU).
  7.  
  8. 3 (Optional). Depending on how many monitors you have, you may also need to specify which monitor you want to become your primary (assuming the monitor your using for gaming was your primary). To do this, add the line "xrandr --output [NAME OF DISPLAY] --primary".
  9.  
  10. 4. Save the script and you should be ready to go.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement