You are not logged in.

#1 2012-05-12 11:47:34

xinit
Member
Registered: 2011-11-12
Posts: 23

[solved] xrandr - external monitor

I have plugged in a second monitor via VGA adapter.

But xrandr doesnt seem to recognize it:

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 175, current 1280 x 800, maximum 1280 x 800
default connected 1280x800+0+0 0mm x 0mm
   1280x800       50.0* 
   1024x768       51.0     52.0  
   832x624        53.0  
   800x600        54.0     55.0     56.0     57.0     58.0  
   720x400        59.0  
   700x525        60.0  
   640x512        61.0     62.0  
   640x480        63.0     64.0     65.0     66.0     67.0  
   640x400        68.0  
   640x350        69.0  
   576x432        70.0  
   512x384        71.0     72.0     73.0     74.0     75.0  
   416x312        76.0  
   400x300        77.0     78.0     79.0     80.0     81.0  
   360x200        82.0  
   320x240        83.0     84.0     85.0     86.0  
   320x200        87.0  
   320x175        88.0

As you see i also dont have any 'LVDS, VGA' connections... My notebook monitor is named 'default' and i can modify the resolution fine:

xrandr --output default --mode 1280x800

Any ideas?

(In Windows 7 i am able to toggle the monitors... so its connected correctly smile)

EDIT:
I realized that a login shell uses external monitor... (also booting screen)
It falls back to notebook monitor when i start a Xserver running openbox.

http://sprunge.us/CAQF - xorg.conf

Last edited by xinit (2012-07-06 22:10:49)

Offline

#2 2012-05-12 12:16:28

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [solved] xrandr - external monitor

You can remove that xorg.conf, it does effectively nothing.

Aynway, nvidia only supports xrandr1.2 starting with the 302.07 beta driver. With earlier drivers, you need to use twinview.

Ok, your config does one thing - disables the logo. But everything else does nothing. So you can reduce it to this:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option         "NoLogo" "True"
EndSection

As for twinview... On-the-fly adjustments can be done in nvidia-settings. A permanent config looks something like this:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option         "NoLogo" "True"
    Option         "TwinView" "on"
    Option         "TwinViewXineramaInfoOrder" "DFP-1, CRT-1"
    OPtion         "TwinViewOrientation" "CRT-1 RightOf DFP-1"
EndSection

Adjust output names as needed.

Last edited by Gusar (2012-05-12 12:22:36)

Offline

#3 2012-05-12 18:23:55

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [solved] xrandr - external monitor

If possible I'd use xrandr, the trick is to set a virtual desktop size that can accommodate res1+res2 of the screens you want to use.

I'm using an ATI card with the binary blob now and I've found that the virtual desktop size needs to be square for things to work properly, however I don't know if this is by design or driver specific.

In my xorg.conf I have:

Section "Screen"
    Identifier "Default Screen"
    Device     "RadeonHD 2400"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Virtual   2720 2720
        Depth     24
    EndSubSection
EndSection

The part that can be tricky to find when things don't work is the "Virtual" part of the configuration.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2012-05-12 18:29:36

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [solved] xrandr - external monitor

Have you tried using nvidia-settings?

Offline

#5 2012-07-06 22:10:19

xinit
Member
Registered: 2011-11-12
Posts: 23

Re: [solved] xrandr - external monitor

Yes i have used nvidia-settings and created a new xorg.conf.
It works fine now.

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics IPS235"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option         "NoLogo" "True"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8400M GS"
EndSection

Section "ServerFlags"
        Option "BlankTime"   "7"
        Option "OffTime"     "10"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Thanks for your help.

Offline

Board footer

Powered by FluxBB