You are not logged in.

#1 2019-06-13 19:10:53

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

[solved] Dual monitor config issue

Hi there, I have a laptop with a second monitor on my right, I m using openbox, and I did some configurations with xrandr and add it to autostart file, everything works fine, but then I try a "permanent" configuration in  /etc/X11/xorg.conf.d/10-monitor.conf, but didn't work, because now to change monitors I have to move the mouse cursor to the left instead to the right.

config file autostart xrandr, that works:

xrandr --output LVDS-1 --auto --pos 0x312 --output HDMI-1 --auto --pos 1366x0

My config file /etc/X11/xorg.conf.d/10-monitor.conf, dont work:

Section "Monitor"
    Identifier  "LVDS-1"
    Option      "PreferredMode" "1366x768"
    Option      "Position" "1920 312"
    Option      "Primary" "true"
EndSection

Section "Monitor"
    Identifier  "HDMI-1"
    Option      "PreferredMode" "1920x1080"
    Option      "Position" "0 0"
    Option	"RightOf" "LVDS-1"
EndSection

My goal is do the right configuration on the 10-monitor.conf to work like is working with xrandr.

Thanks.

Last edited by Gabriel-Costa (2019-06-14 14:48:13)

Offline

#2 2019-06-13 21:29:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,764

Re: [solved] Dual monitor config issue

Please wrap the command and file contents in "code" tags (only here) and remove the two "Position" options (on your system as well)

Online

#3 2019-06-14 12:16:03

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

Re: [solved] Dual monitor config issue

seth wrote:

remove the two "Position" options (on your system)

yes that almost work, now I can move the cursor to the right way but the position os the screens is not right, I want something as this.

(0,0)-----------------+ 
|                     |(1920,312)---+
|     1920 x 1080     ||            |
|        HDMI1        || 1024 x 768 |
|                     ||    VGA1    |
+---------------------++------------+

What I really want is the bottom of the screens aligned.

Last edited by Gabriel-Costa (2019-06-14 12:16:55)

Offline

#4 2019-06-14 12:25:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,764

Re: [solved] Dual monitor config issue

Then remove the RightOf and add use the proper "Position" parameters (the ones you posted don't resemble your xrandr call at all, just use the same coordinates as in the xrandr call)

Online

#5 2019-06-14 14:05:57

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

Re: [solved] Dual monitor config issue

seth wrote:

Then remove the RightOf and add use the proper "Position" parameters (the ones you posted don't resemble your xrandr call at all, just use the same coordinates as in the xrandr call)

That also don't work.

Offline

#6 2019-06-14 14:06:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,764

Re: [solved] Dual monitor config issue

Neither "that" nor "don't work" is actual information. Please post the updated config and the result.

Online

#7 2019-06-14 14:37:09

Gabriel-Costa
Member
Registered: 2019-04-04
Posts: 24

Re: [solved] Dual monitor config issue

seth wrote:

Neither "that" nor "don't work" is actual information.

Yes you are right, and I apologise for that.

I solve the problem after my last awnser to you, when I was looking to the position values in xrandr configuration, and I noticed that the values were not the same as in the  /etc/X11/xorg.conf.d/10-monitor.conf  file, my mistake was that I was giving the values of Arch wiki documentation, as you can see here

(0,0)-----------------+ 
|                     |(1920,312)---+
|     1920 x 1080     ||            |
|        HDMI1        || 1024 x 768 |
|                     ||    VGA1    |
+---------------------++------------+

in my file at the first time

 Option      "Position" "1920 312"

  and

Option  "Position" "0 0"

I should have done like this ( the same in xrandr config )

Option      "Position" "0 312"

and

Option      "Position" "1366 0"

So this is the configuration that solved the problem.

Section "Monitor"
    Identifier  "LVDS-1"
    Option      "PreferredMode" "1366x768"
    Option      "Primary" "true"
    Option      "Position" "0 312"
EndSection

Section "Monitor"
    Identifier  "HDMI-1"
    Option      "PreferredMode" "1920x1080"
    Option      "Position" "1366 0"
     
EndSection

seth thank you for your time was really helpful.

Offline

Board footer

Powered by FluxBB