You are not logged in.

#1 2018-07-31 02:39:10

sinqbad
Member
Registered: 2016-01-27
Posts: 28

Arch doesn't remember screen configuration on boot

https://imgur.com/oqSTqaJ

The top is my what I manually set my workstation to be and the bottom is the default when I log in via startx or lightdm. It has my laptop screen (eDP1) on the left when it is physically in the right. How do I get lightdm/logging into i3 to remember screen orientation?

Offline

#2 2018-07-31 02:46:24

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Arch doesn't remember screen configuration on boot

How do you 'manually set it'?

lightdm/i3 don't have daemons handling your screen configurations for you. You'd need to manually set it each time. Most likely with some xrandr line in the startup configuration. There are daemons which will help you handle that, but I don't use any of those.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2018-07-31 02:51:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: Arch doesn't remember screen configuration on boot

Just to elaborate on the above, you are correct, "Arch" doesn't remember screen configurations.  "Arch" also doesn't remember what WM you use, or what your web browser is.  "Arch" is not an entity which could remember anything.  But you certainly can write an xinitrc (or xsession or whatever your DM uses) to specify what WM you want to use, and you can set $BROWSER to the browser you want to use.  And just the same, you can specify what screen configuration you want to use ... but you need to do this, there is no "Arch" to remember and do it for you.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#4 2018-07-31 04:46:44

sinqbad
Member
Registered: 2016-01-27
Posts: 28

Re: Arch doesn't remember screen configuration on boot

ngoonee wrote:

How do you 'manually set it'?

lightdm/i3 don't have daemons handling your screen configurations for you. You'd need to manually set it each time. Most likely with some xrandr line in the startup configuration. There are daemons which will help you handle that, but I don't use any of those.

I do have a autorandr (previously xrandr) one liner in my i3 config. Is there a difference between putting it there or in xinitrc?

Is lightdm a x-session? Because even though I do have the one liner in my script (and when I force reload i3 config file it'll set itself to the correct configuration) going through lightdm then i3 causes the incorrect monitor configuration.

I think my one liner is fine because when I reload the script it does exactly as I expect but only when I'm at lightdm and log in initially then it is the incorrect position.

I guess what I'm asking is how do I set the monitor configuration for lightdm and startx?

Offline

#5 2018-07-31 12:49:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: Arch doesn't remember screen configuration on boot

Obviously your i3 config will not affect your display manager: the display manager launches i3, not the other way around.

If you want to specify a display configuration in lightDM, that is covered in the wiki:
https://wiki.archlinux.org/index.php/Li … ng_monitor

If you want to use startx, the line in the i3 config should be fine, or you could put it in ~/.xinitrc.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

Board footer

Powered by FluxBB