Monday, November 09, 2009

Extended Monitor For Puppy Linux Using xrandr and xorg.conf

Sorry ye dwi-bahasa. Takut ada oversea geek nak belajar juga.

Google keyword: extended monitor, 2nd display, dual head, xorg.conf, xrandr etc

My reference:
http://www.2030.tk/wiki/Dual_monitor_on_Ubuntu_7.10
http://ubuntuforums.org/showthread.php?p=317046
http://www.thinkwiki.org/wiki/Xorg_RandR_1.2 --> good reference to tweak display further

Note: Tak ramai yg dapat buat dlm Puppy buat masa ni

My Specification:
Puppy Linux 4.2.1
Samsung SyncMaster 153v Monitor

1. xrandr

Make sure you have xrandr in your Puppy Distro. Open Console from the desktop
In the terminal type xrandr -q

You should get something like this

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1280 x 800
VGA connected 1024x768+0+0 (normal left inverted right) 304mm x 228mm
1024x768 60.0*+
800x600 60.3 56.2
640x480 66.7 60.0
LVDS connected 1024x800+0+0 (normal left inverted right) 304mm x 190mm
1280x800 60.0*+
1024x768 60.0
800x600 60.3
640x480 59.9
TV disconnected (normal left inverted right)

LVDS is my Laptop monitor while VGA is my external monitor. Next type

xrandr --output LVDS --auto --left-of VGA

You should get output like this:
xrandr: screen cannot be larger than 1280x1280 (desired size 2304x800)

Secara logiknya, maksimum external monitor boleh pergi ialah 1024 dan laptop 1280.
Maka kelebaran yang diperlukan ialah 2304. Tinggi tak payah campur, ambil yang lebih tinggi iaitu 800 (resolusi laptop).
Nak campur juga? Hodoh outputnya.

2. Use any editor, open /etc/X11/xorg.conf. In Section "Screen", add virtual resolution inside Subsection "Display".

Something like this:
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
Subsection "Display"
Depth 16
Modes "1024x768"
# Added 20091208
Virtual 2304 800
EndSubsection
EndSection

Save the configuration file. Backup if you are not really sure what you are doing. Nanti nyesal.

3. Ctrl+Alt+Backspace to restart your X-Server. Your new configuration file is loaded now.

4. Go back to the console and retype

xrandr --output LVDS --auto --left-of VGA

If nothing goes wrong, you don't receive any complaint from xrandr

Type xrandr -q
You should get this

Screen 0: minimum 320 x 200, current 2304 x 800, maximum 2304 x 800
VGA connected 1024x768+1280+0 (normal left inverted right) 304mm x 228mm
1024x768 60.0*+
800x600 60.3 56.2
640x480 66.7 60.0
LVDS connected 1280x800+0+0 (normal left inverted right) 304mm x 190mm
1280x800 60.0*+
1024x768 60.0
800x600 60.3
640x480 59.9
TV disconnected (normal left inverted right)

Now you have extended display. Horey! Tweak the display if you feel the display is not appropriate.

No comments: