LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > jere21
User Name
Password

Notices


Rate this Entry

xrandr multi

Posted 08-17-2010 at 01:16 PM by jere21
Updated 08-17-2010 at 02:47 PM by jere21

/usr/local/bin/xrandr_TV_dual.sh:
Code:
xrandr \
  --output LVDS1 --mode 1280x800 --primary \
  --output TV1 --mode 640x480 --rate 25 --right-of LVDS1 --set mode PAL
/usr/local/bin/xrandr_VGA_dual.sh:
Code:
#If command fails, readd mode and try again
xrandr \
  --output LVDS1 --mode 1280x800 \
  --output VGA1 --mode 1280x1024 --rate 75 --above LVDS1 --primary ||
(
xrandr --newmode 1280x1024 138.75  1280 1368 1504 1728  1024 1027 1034 1072 -hsync +vsync
xrandr --addmode VGA1 1280x1024
xrandr \
  --output LVDS1 --mode 1280x800 \
  --output VGA1 --mode 1280x1024 --rate 75 --above LVDS1 --primary
)
/usr/local/bin/xrandr_VGA_only.sh:
Code:
#If command fails, readd mode and try again
xrandr \
  --output LVDS1 --off --output VGA1 --mode 1280x1024 --rate 75 ||
(
xrandr --newmode 1280x1024 138.75  1280 1368 1504 1728  1024 1027 1034 1072 -hsync +vsync
xrandr --addmode VGA1 1280x1024
xrandr \
  --output LVDS1 --off --output VGA1 --mode 1280x1024 --rate 75
)
Icons are in /usr/local/share/icons/hicolor/

Get modeline with "cvt h-resolution v-resolution refresh"
Code:
cvt 1280 1024 75
Posted in Uncategorized
Views 1934 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:38 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration