ruebenramirez / blog

My blog
http://blog.ruebenramirez.com/
7 stars 0 forks source link

configure gnome3 display resolution on startup #37

Open ruebenramirez opened 10 years ago

ruebenramirez commented 10 years ago

This article inspired my fix for display resolution config on start: http://bernaerts.dyndns.org/linux/74-ubuntu/309-ubuntu-dual-display-monitor-position-lost

I ended up running xrandr as a startup application in order to reconfigure the laptop display to something readable via: xrandr --output eDP1 --mode 1680x1050

ruebenramirez commented 7 years ago

can use arandr gui to generate the correct xrandr command.

example configuration output:

$ cat ~/.screenlayout/home-big-screen.sh 
#!/bin/sh
xrandr --output HDMI-2 --off \
  --output HDMI-1 --off \
  --output DP-1 --mode 3440x1440 --pos 3840x0 --rotate normal \
  --output eDP-1 --mode 3840x2160 --pos 3624x1440 --rotate normal \
  --output DP-2 --off

arandr generated some --pos flags for my output devices because I configured my external monitor to position above my laptop monitor