Configuring a dual-head system using xrandr in Sabayon Linux 5.2
1. I Use: two LCD monitors 19" (outputs: DVI-D, 15-pin VGA, resolution
1280 x 1024), ati radeon X300 video card (outputs: DVI-D, 15-pin VGA,
S-video).
One monitor is connected to DVI-D, the second to 15-pin VGA. DVI is
located at right of VGA.
Check the signal and resolution from video card outputs:
# xrandr
Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 2560 x
1024
VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis
y axis) 376mm x 301mm
1280x1024 60.0*+
1024x768 60.0
800x600 60.3
640x480 59.9
DVI-0 connected 1280x1024+1280+0 (normal left inverted right x
axis y axis) 376mm x 301mm
1280x1024 60.0 + 75.0* 72.0 70.0 60.0
1152x864 75.0
1024x768 75.0 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3
640x480 75.0 72.8 66.7 59.9
720x400 70.1
S-video disconnected (normal left inverted right x axis y axis)
2. Change resolution settings in xorg.conf to get extended desktop mode
on two monitors.
Two outputs are connected, the resolution of both is 1280 x 1024. DVI
is located at right of VGA.
The size of occupied area by both outputs is 2560 x 1024.
Adding "Virtual 2560 1024" in xorg.conf:
Section "Screen"
...
SubSection "Display"
Depth 24
Virtual 2560 1024
EndSubSection
EndSection
3. Configure xrandr.
3.1 I want to use extended desktop mode on two monitors. To get that
configuration:
# xrandr --output VGA-0 --mode 1280x1024 --output DVI-0 --mode
1280x1024 --right-of VGA-0
3.2 Used that options to output:
--output VGA-0 - output from VGA-0
--output DVI-0 - output from DVI-0
--mode 1280x1024 - resolution 12801024
--right-of VGA-0 - right of VGA-0
4. Automatically xrandr with startup KDE.
4.1 Writing script xrandr.sh:
#!/bin/bash
xrandr --output VGA-0 --mode 1280x1024 --output DVI-0 --mode
1280x1024 --rate 1280 --right-of VGA-0
4.2 Adding to autostart.
Application Launcher > System Settings > Advanced > Autostart
> Add script
4.3 Restart KDE.
mohado
Используются технологии
uCoz