You are not logged in.

#1 2013-04-06 18:51:40

yulan6248
Member
Registered: 2013-04-06
Posts: 28

[SOLVED] Xmonad problem with dual monitor setup

Hi everyone, first time posting here. I've learnt a lot from the forum for the past week when I was setting my new box, but I just stumbled across this problem that I couldn't find any answer to.

I have two monitors, which are detected by 'xrandr -q' properly. I put my dual monitor configuration into xorg.conf and it did get loaded up, but my xmonad is not doing the proper thing: it just mirrors the content of the first screen on the second (without even rescaling)

I've gone throught the troubleshooting guide on the xmonad official webpage but it doesn't fix the problem (it doesn't detect any problem in running those commands btw)

I'm suspecting that maybe I need some additional config to put into my xmonad.hs?

Last edited by yulan6248 (2013-04-11 00:45:46)

Offline

#2 2013-04-06 22:09:07

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Xmonad problem with dual monitor setup

What makes you think the problem lies with xmonad? Did you try anything else that did do the right thing after it 'got loaded up'? What configuration does `xrandr -q` show? And it may be easier (during testing) to dynamically change the layout with xrandr.

Offline

#3 2013-04-06 22:38:23

yulan6248
Member
Registered: 2013-04-06
Posts: 28

Re: [SOLVED] Xmonad problem with dual monitor setup

Here's the output from my 'xrandr -q'

Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 16384 x 16384
eDP connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440      60.0*+
   1920x1200      59.9 
   1920x1080      60.0 
   1600x1200      59.9 
   1680x1050      60.0 
   1400x1050      60.0 
   1280x1024      59.9 
   1440x900       59.9 
   1280x960       59.9 
   1280x854       59.9 
   1280x800       59.8 
   1280x720       59.9 
   1152x768       59.8 
   1024x768       59.9 
   800x600        59.9 
   848x480        59.7 
   720x480        59.7 
   640x480        59.4 
DisplayPort-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080      60.0*+   50.0 
   1920x1080i     50.0     60.1 
   1680x1050      59.9 
   1280x1024      75.0     60.0 
   1440x900       59.9 
   1280x960       60.0 
   1280x800       59.9 
   1152x864       75.0 
   1280x720       50.0     60.0 
   1440x576i      50.1 
   1024x768       75.1     70.1     60.0 
   1440x480i      60.1 
   832x624        74.6 
   800x600        72.2     75.0     60.3     56.2 
   720x576        50.0 
   720x480        59.9 
   640x480        72.8     75.0     66.7     60.0     59.9 
   720x400        70.1 
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
DisplayPort-3 disconnected (normal left inverted right x axis y axis)
VGA-0 disconnected (normal left inverted right x axis y axis)

I just tried with dwm and that doesn't work either. So it might be a problem with my xrandr setup

I tried commands like

 xrandr --output eDP --mode 2560x1440 --auto --ouput DisplayPort-0 --mode 1920x1080 --auto 

They did set set my monitors to the corresponding resolutions but they didn't solve the 'mirroring' problem

Here's my /etc/X11/xorg.conf

Section "Monitor"
    Identifier "eDP"
    Option "Primary" "true"
    Option "PreferredMode" "2560x1440"
EndSection


Section "Monitor"
    Identifier "DisplayPort-0"
    Option "RightOf" "Primary"
    Option "PreferredMode" "1920x1080"
EndSection

Offline

#4 2013-04-07 01:04:39

doom_phd
Member
From: US
Registered: 2009-08-11
Posts: 25

Re: [SOLVED] Xmonad problem with dual monitor setup

Have you tried a xrandr command with the --right-of flag ?
Such as:

xrandr --output eDP --mode 2560x1440 --primary --auto --ouput DisplayPort-0 --mode 1920x1080 --right-of eDP --auto

Don't you worry about blank. Let me worry about blank
I did do the nasty in the past-y.
Pizza delivery for... I. C. Weiner. Aww... I always thought by this stage in my life I'd be the one making the crank calls.

Offline

#5 2013-04-07 01:22:22

yulan6248
Member
Registered: 2013-04-06
Posts: 28

Re: [SOLVED] Xmonad problem with dual monitor setup

That works! Thanks doom_phd

It turns out my xorg.conf is wrong. The line

 Option "RightOf" "Primary" 

should instead be

 Option "RightOf" "eDP" 

Human error. Shame on me

Offline

#6 2013-04-07 15:17:46

doom_phd
Member
From: US
Registered: 2009-08-11
Posts: 25

Re: [SOLVED] Xmonad problem with dual monitor setup

@yulan6248

I am glad that helped.
If this has resolved your problem could you please mark this post as solved.
Please see https://wiki.archlinux.org/index.php/Fo … ow_to_Post on how to mark as solved.

Thank you.


Don't you worry about blank. Let me worry about blank
I did do the nasty in the past-y.
Pizza delivery for... I. C. Weiner. Aww... I always thought by this stage in my life I'd be the one making the crank calls.

Offline

Board footer

Powered by FluxBB