Skip to content

Instantly share code, notes, and snippets.

@j1cs
Created June 26, 2024 14:43
Show Gist options
  • Save j1cs/a30dbc1838b269790a358c73003c5161 to your computer and use it in GitHub Desktop.
Save j1cs/a30dbc1838b269790a358c73003c5161 to your computer and use it in GitHub Desktop.
force display using xrandr
xrandr --query
xrandr --output VNC-0 --mode 2048x1280
cvt 2048 1280
xrandr --newmode "2048x1280_60.00" $(cvt 2048 1280 | grep Modeline | cut -d' ' -f 3-)
xrandr --addmode VNC-0 "2048x1280_60.00"
xrandr --output VNC-0 --mode "2048x1280_60.00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment