Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 783  / 2 Years ago, sun, december 19, 2021, 4:52:12

When I set my Lenovo X220 Tablet onto the docking station where a 1920x1200 screen is attached via Display Port -> DVI, both the internal and the external screen show the greatest common resolution which is 1024x768.



I can then set the display settings within KDE, but that is rather time consuming. Is there a way to set up the displays correctly when the notebook is in the docking station? Os can I write a shell script that sets the displays correctly?


More From » resolution

 Answers
0

Using xrandr, I managed to write a script for it.



The main part is this:



case "$1" in
on)
xrandr --output "$internal" --auto
xrandr --output "$external" --auto --right-of "$internal" --primary
;;
off)
xrandr --output "$internal" --auto --primary
xrandr --output "$external" --off
;;
esac

[#37603] Sunday, December 19, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
coffekne

Total Points: 114
Total Questions: 122
Total Answers: 126

Location: Mauritania
Member since Sun, Oct 17, 2021
3 Years ago
;