Commits

Alex V. Koval  committed 5486a9f

home & office more reliable switching: now connect all to laptop and then back. this is to prevent Mate/Gnome to set incorrect modes

  • Participants
  • Parent commits 1140957

Comments (0)

Files changed (2)

File dsp_home_full

 #!/bin/bash
-MODE_PRESENT=`xrandr -q|grep 2560x1440_40|grep -v grep`
-if test -z "$MODE_PRESENT"
-then
-    echo Adding new mode
-    xrandr  --newmode "2560x1440_40" 200.80  2560 2712 2984 3408  1440 1441 1444 1473  -HSync +Vsync
-    xrandr  --addmode HDMI1 "2560x1440_40"
-else
-    echo Mode already present, not adding
-fi
 
-echo Switching to HDMI1
-xrandr --output HDMI1 --mode "2560x1440_40" --dpi 108 --output LVDS1 --off --output VGA1 --off
+echo Reconfig
+dsp_laptop
+dsp_dellu2711
 
 echo Adding VGA-right
 xrandr --output HDMI1 --mode "2560x1440_40" --dpi 108 --output LVDS1 --off --output VGA1 --auto --right-of HDMI1
 
 echo Additional setup tweaks
 set-keyboard-rate
-#set-desktop-wallpaper
 #!/bin/bash
-MODE_PRESENT=`xrandr -q|grep 2560x1440_40|grep -v grep`
-if test -z "$MODE_PRESENT"
-then
-    echo Adding new mode
-    xrandr  --newmode "2560x1440_40" 200.80  2560 2712 2984 3408  1440 1441 1444 1473  -HSync +Vsync
-    xrandr  --addmode HDMI1 "2560x1440_40"
-else
-    echo Mode already present, not adding
-fi
 
-echo Switching to HDMI1
-xrandr --output HDMI1 --mode "2560x1440_40" --dpi 108 --output LVDS1 --off --output VGA1 --off
+echo Reconfig
+dsp_laptop
+dsp_dellu2711
 
 echo Adding 2nd monitor
 xrandr --output VGA1 --mode 1920x1200 --dpi 108 --rotate left --right-of HDMI1
 
 echo Additional setup tweaks
 set-keyboard-rate
-#set-desktop-wallpaper