Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 9702  / 1 Year ago, tue, march 21, 2023, 2:16:54

I am currently changing between my laptop and my external monitor with the NVidia X Server Settings program and I'm sure I'm doing it in a really dumb way:



I currently select the external monitor, set it from "Disabled" to "TwinView", then then select the laptop screen and change it to "Disabled". Then I press "Apply" and it's done. I do this in reverse when I need to disconnect.



It's the only way I've managed to switch monitors (both VGA and DisplayPort connections on my ThinkPad), and it's a really fiddly process which I have to perform multiple times per day.



enter image description here



However I really want to be able to switch with Fn-F8 or some other keyboard shortcut but this doesn't appear to work with any connection method. Is there anything better than I can do?


More From » 11.04

 Answers
0

The nvidia tool nvidia-settings can be used from command line, but is not capable to activate or deactivate screens. xrandr is not supported by the propietary NVIDIA-drvers.



To switch displays you can use the tool disper: disper on launchpad It's a command line tools, wich exactly fits your problem an is easy to use.



Some example scripts for automatic switching at startup can be found here: Ubuntuusers.de wiki



I use these scripts to switch my monitors. It works perfectly.


[#43129] Tuesday, March 21, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gerrin

Total Points: 347
Total Questions: 109
Total Answers: 121

Location: Tanzania
Member since Fri, Oct 29, 2021
3 Years ago
;