Hitting the desktop shortcut I set for it will bring that monitor back, and still allow me to play the game. These two little scripts have literally changed my gaming life on Linux for the better.Ī nice side-effect of the script: Games like RunningWithRifles which has poor multi-monitor support, it actually turns off my main monitor. They are pretty safe scripts to use, I have been testing switching between them constantly, but don't blame me if you blow your computer up. I hope this helps someone else, as it has been driving me nutty. It will give you a list of things, like this: Quote DP-4 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 621mm x 341mm You can find them out by running the "xrandr" command in terminal. You will of course need to change things like "DP-4" and "DVI-I-1" to the connections your monitor is using (or monitors in my case as I have two). Your monitor(s) will blink, and then come back all sorted. If you only have one monitor, you won't need the addition part after the comma. They are both put in plain text files and allowed to run as an executable (right click -> properties -> permissions -> tick "Allow executing file as program").įirst up is for the 4K resolution (I have this set to run at start-up so I don't have to mess with xorg stuff directly): So, here are the two very simple scripts I run. This is also why simply putting it in an xorg config file will not 100% solve it, where as with this method you can just re-run it any time you need to. Like me, if you didn't know that, it was probably bugging you a lot. If you have noticed screen tearing returning at times even with using ForceFullCompositionPipeline, that could well be your issue too. The problem with ForceFullCompositionPipeline is when you play a game that has a fullscreen mode that changes your desktop resolution, instead of stretching a fullscreen window, is that ForceFullCompositionPipeline is reset back to disabled. It's simple, performance in a lot of games at 4K resolution is terrible, and some games have tiny unreadable text, so I run certain games at 1080p. I have two scripts setup on keyboard shortcuts depending on the resolution that I am using (4K or 1080p). You have probably heard of ForceFullCompositionPipeline before and that is what I am using.
![dying light only work in fullscreen if in 4k dying light only work in fullscreen if in 4k](https://m.media-amazon.com/images/I/81tHprn2iUL._SL1500_.jpg)
It's not perfect, slightly annoying, but also quite useful too. I have been struggling with this issue for months across all the different desktop environments I tried (KDE, GNOME, Cinnamon, Unity), and it has caused me a fair amount of headaches and stress, so I am pleased to finally find a solution. Thanks to a few different people for their advice (xpander for the initial advice on a script and HeavyHDx on twitter) I have finally found a way to stop screen tearing with Nvidia proprietary drivers.
![dying light only work in fullscreen if in 4k dying light only work in fullscreen if in 4k](https://c4.wallpaperflare.com/wallpaper/4/703/696/video-game-dying-light-wallpaper-preview.jpg)
Update: You can do it easier now with the NVIDIA control panel.