Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I pressed something and accidentally swapped my two screens. My left one is actually considered as the right one, and vice versa. How can I swap them back?

Edit - Specifically, I'm using Gnome, though we might also want to keep this question generic.

Edit 2 - It appears that my driver isn't compatible with xrandr. I'm attaching log of /var/log/Xorg.0.log here

share|improve this question
    
Your upload only has the first 49 lines (and the relevant parts are later). Don't copy-paste from an editor, just upload the whole file. –  Gilles Apr 5 '11 at 18:06
    
@Gilles, sry. Still, it's not relevant anymore, I used the Gnome native monitor manager to set this up. Thanks for the help. –  ripper234 Apr 5 '11 at 20:13
add comment

2 Answers 2

Your desktop environment probably has a way, but you don't say which one you're using (if any).

If your display driver is compatible with the XRandR extension, which is the standard X.org method for managing display resolutions and arrangements, you can use the command-line utility xrandr. I think the proprietary NVidia driver bypasses XRandR, so if you're using it, you'll have to use a dedicated NVidia tool.

Run xrandr (with no argument) to see your monitor (screen) arrangement. You'll see lines like these:

DVI-0 connected 1600x1200+1600+0 (normal left inverted right x axis y axis) 408mm x 306mm
DVI-1 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 408mm x 306mm

This example means that I have two monitors called DVI-0 and DVI-1, and DVI-1 is at the top left (position +0+0) while DVI-0 is to its right (position +1600+0). To swap them, I would run

xrandr --output DVI-0 --left-of DVI-1
share|improve this answer
    
I'm using Gnome. Having some problems with randr - pastebin.com/rZEjdN4B –  ripper234 Apr 5 '11 at 6:34
    
@ripper234: Your display driver isn't compatible with XRandR. What display driver are you using (not just nvidia/ati/intel, but which driver: nv/nouveau/nvidia/radeon/radeonhd/fglrx/…)? If you're not sure, attach the contents of /var/log/Xorg.0.log to your question. –  Gilles Apr 5 '11 at 7:18
    
here's the log, thanks. pastebin.com/wpNutkwp –  ripper234 Apr 5 '11 at 7:54
add comment

I used the native Gnome Monitor Manager (from the System->Preferences menu) and it worked like a charm.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.