LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-20-2009, 06:33 PM   #1
ruppertus
Member
 
Registered: Jun 2007
Location: Poland
Distribution: Arch (used to Debian, Ubuntu)
Posts: 55

Rep: Reputation: 16
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.

Last edited by ruppertus; 10-21-2009 at 01:28 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xrandr dual head desktop changes on second login jhettmer Linux - Desktop 1 08-04-2009 12:11 PM
radeon and dual head, to xrandr or not to xrandr, that's the question i92guboj Linux - Desktop 1 06-17-2009 05:48 AM
Dual Head Problem Kangaroo Rat Linux - Newbie 1 09-11-2005 12:50 PM
Multi-monitor Issues on RH9, Geforce 4 Ti Dual Head + TNT2 Single Head the letter b Linux - Newbie 3 12-04-2004 11:23 PM
x86 Solaris 9 XSun and Matrox G550 dual-head... one head down, one to go. finegan Solaris / OpenSolaris 4 03-11-2003 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:54 PM.

Main Menu
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