Tuesday, September 30, 2008

Dual Screen on Fedora 9 x IBM (Lenovo) X60s

Since dual screen settings in system-config-display has no 'video card' dropdown box value, I have never used dual screen on my X60s with Fedora.

Many tries on xorg.conf but no luck (I was also struggling with my scroll edge setup of my Cherry G80-11900). The most I've done so far was only full resolution 1680x1050 on ext LCD, and built-in display shows top left 1024x768 area of the ext LCD.

My team mate Sean spent some time patiently trying xrandr on my laptop and he made it! I have summarized his smart commands and created some silly bash scripts:

===== xdual =====
#!/bin/bash

if [ $# -ne 1 ]
then
    echo
    echo 'Usage: xdual [1|2]'
    echo
    exit 0
elif [ $1 = '2' ]
then
    xrandr --output LVDS --mode 1024x768
    xrandr --output VGA --mode 1680x1050
    xrandr --output VGA --left-of LVDS --auto
elif [ $1 = '1' ]
then
    xrandr --output LVDS --mode 1024x768
    xrandr --output VGA --off
else
    echo
    echo 'Usage: xdual [1|2]'
    echo
    exit 0
fi
===== end =====

Kindergarten bash scripts yo? But it's much convenience for me now! I could kick my IRC client to the smaller screen and it does improve my productivity. :)

2 comments:

Anonymous said...

http://www.thinkwiki.org/wiki/Sample_Fn-F7_script

かいお (Kaio) said...

Thanks a lot!

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Australia License.
Copyright © 2008 みかんいろのそら (蜜柑色の空) . Some rights reserved.

Tags