ruppertus |
10-20-2009 06:33 PM |
xrandr + dual monitors + problem with scalling
Hi,
I'm tring to set up my notebook and external monitor to work in a dual-head mode.
This is the configuration I use:
Graphic card - intel
Monitor - Samsung T260HD
- 1920x1200 @ 60Hz
- HorizSync 30.0 - 81.0
- VertRefresh 56.0 - 75.0
- Point Size 0,2865 mm
And some configuration files:
Code:
gontek@hapi:~/pxx$ cat xorg.conf
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
## FontPath "/usr/share/X11/fonts/misc"
## FontPath "/usr/share/X11/fonts/cyrillic"
## FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
## FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
## FontPath "/usr/share/X11/fonts/Type1"
## FontPath "/usr/share/X11/fonts/100dpi"
## FontPath "/usr/share/X11/fonts/75dpi"
## FontPath "/usr/share/fonts/X11/misc"
## FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri" # x - nvidia
# Load "drm"
Load "dbe"
Load "extmod"
# Load "freetype"
Load "glx"
Load "int10"
# Load "vbe"
# Load "GLcore" # x - nvidia
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105" # logicdit
Option "XkbLayout" "pl"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2" # ExplorerPS/2
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection
Section "ServerFlags"
Option "DefaultServerLayout" "Single"
Option "BlankTime" "4" # bylo 0
Option "CycleTime" "0"
Option "OffTime" "5" # bylo 300
Option "StandbyTime" "0" # Turn off screen after x minutes (DPMS)
Option "SuspendTime" "0" # Full suspend after x minutes
# Option "AIGLX" "true"
# Option "AllowNonLocalXvidtune" "yes"
Option "AllowEmptyInput" "off"
Option "AutoAddDevices" "off"
EndSection
Section "Device"
Identifier "Intel-945GM"
Screen 0
# Driver "i810"
Driver "intel"
BusID "PCI:0:2:0"
Option "DDC" "off"
Option "DRI" "true"
Option "monitor-VGA" "VGA"
Option "monitor-TV" "TV"
Option "monitor-LVCD" "LVCD"
Option "XAANoOffscreenPixmaps" "true"
Option "DynamicTwinView" "False"
VideoRam 131072
EndSection
Section "Monitor"
Identifier "TV"
Option "Ignore" "True"
EndSection
Section "Monitor"
Identifier "LVCD"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection
Section "Monitor"
Identifier "VGA"
DisplaySize 550.08 343.8 # 0,2865 * 1920x1200
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 75.0
Option "DPMS"
# 1920x1200 @ 60.00 Hz (GTF) hsync: 74.52 kHz; pclk: 193.16 MHz
Modeline "1920x1200_60.00" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -HSync +Vsync
# 1920x1200 59.88 Hz (CVT 2.30MA) hsync: 74.56 kHz; pclk: 193.25 MHz - cvt
Modeline "1920x1200_60.00a" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
EndSection
Section "Screen"
Identifier "Screen0"
Device "Intel-945GM"
Monitor "LVCD"
Option "DisableGLXRootClipping" "true"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x800" "1920x1200" "1024x768" "800x600" "640x480"
# Virtual 2048 2048
Virtual 1920 2000
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Single"
Screen 0 "Screen0" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
Option "AIGLX" "true"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
xrandr output:
Code:
Screen 0: minimum 320 x 200, current 1920 x 2000, maximum 2048 x 2048
VGA connected 2195x1200+0+800 (normal left inverted right x axis y axis) 0mm x 0mm
1920x1200_60.00a 59.9*
1920x1200_60.00 60.0
1600x1200 65.0 60.0
1680x1050 69.9 60.0
1600x1024 60.2
1400x1050 74.8 70.0 60.0
1280x1024 75.0 60.0
1440x900 59.9
1280x960 60.0
1360x768 59.8
1152x864 75.0 75.0 70.0 60.0
1024x768 75.0 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 59.9
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x800 60.0*+
1024x768 85.0 75.0 70.1 60.0
832x624 74.6
800x600 85.1 72.2 75.0 60.3 56.2
640x480 85.0 72.8 75.0 59.9
720x400 85.0
640x400 85.1
640x350 85.1
I'm wondering why this command doesn't give the expected result:
Code:
xrandr --output LVDS --mode 1280x800 --pos 0x0 --output VGA --mode 1920x1200_60.00a --pos 0x800
After that the Samsung monitore (VGA) works in 1920x1200 mode but the desktop screen seems to be scaled (from 1920x1200 -> 1680x1200).
I solved it using the scale options:
Code:
xrandr --fb 1920x2000 --output LVDS --mode 1280x800 --pos 0x0 --output VGA --scale 1.143x1.0 --mode 1920x1200_60.00a --pos 0x800
I got the fallowing error as well: xrandr: specified screen 1920x2000 not large enough for output VGA (2195x1200+0+800)
but is there any other way? I don't want to scale screen size twice or even three times when I watch movies in e.g. HD ready resolution (1280x768).
Anyone can help? I'm using debian testing distribution.
|