You are not logged in.

#1 2014-10-03 07:11:44

simendsjo
Member
Registered: 2012-09-27
Posts: 113

Setting primary monitor in xorg config doesn't work

I have the following stored as `10-monitor`:

Section "Monitor"
	Identifier "DVI-0"
	Option "Primary" "true"
EndSection

Section "Monitor"
	Identifier "DVI-1"
	Option "RightOf" "DVI-0"
EndSection

When I start, both monitors are connected properly, but looking at `xrandr`, none is set as primary.
I need to manually set `DVI-0` as `--primary` and restart i3 for everything to work properly.
PS: I previously mentioned this briefly in another topic: https://bbs.archlinux.org/viewtopic.php?id=181469

Any idea what might be wrong or what log output I should be looking for?

Offline

#2 2016-01-13 16:23:09

jonessen
Member
Registered: 2013-12-21
Posts: 27

Re: Setting primary monitor in xorg config doesn't work

I had this same problem when I reinstalled my system a few days ago. Then I found this topic, wanted to answer with a few specifics, then had the idea that these specifics might actually be the problem. And I was right! So the problem actually is using these dashes in the xorg config. I have no clue why X doesn't like them in the config files, but simply removing them ("DVI-0" => "DVI0", "DVI-1" => "DVI1") should fix the problem.

So if you're even still using arch, since this topic is quite old... Maybe this will help big_smile

EDIT: I'm an idiot, this didn't fix it. I simply hardcoded the monitor to use for my tray in my i3 config, which was set to primary before.

Last edited by jonessen (2016-01-13 16:37:45)

Offline

#3 2016-01-13 21:35:09

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Setting primary monitor in xorg config doesn't work

I think this thread is ready for closure....


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB