You are not logged in.
Pages: 1
Topic closed
I have configured my X-Setup as follows:
xorg with intel graphics, no special setups
lightdm as the display-manager
i3 as the Window Manager
light-locker for screen-locking on idle / suspend started with the following command:
/usr/bin/light-locker --lock-after-screensaver=10 --lock-on-suspend --no-late-lockingThis works fine as long as I only use my laptops internal monitor.
As soon as I connect an external Monitor as second screen, Suspend/Resume goes wrong:
- on suspend, the light-locker is triggered as expected
- on resume, lightdm-greeter is shown to input the password (on both screens, external one with low resolution)
- after successfully unlocking the session, the old X-session has vanished (all programs where killed)
- instead a new X-Session is started
The same procedure works perfectly when no external monitor is connected, meaning I get the old session back. Locking without suspend also works fine with dual monitors
Does anyone have an idea what might go wrong here?
For the record here are my lightdm.conf and lightdm-gtk-greeter.conf (commented lines are stripped):
lightdm.conf:
[LightDM]
run-directory=/run/lightdm
[Seat:*]
greeter-session=lightdm-gtk-greeter
session-wrapper=/etc/lightdm/Xsession
[XDMCPServer]
[VNCServer]lightdm-gtk-greeter.conf
[greeter]
background = /lightdm_wallpaper.png
theme-name = MediterraneanNightDarkest
font-name = Arimo 9
xft-antialias = true
xft-hintstyle = hintfull
xft-rgba = rgb
hide-user-image = false
indicators = ~host;~spacer;~clock;~spacer;~session;~power
icon-theme-name = Vertex-Icons
active-monitor=0And the lightdm log:
lightdm.log
My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP
Offline
Sorry for the necro, but I'm having this problem as well and this is all I found from searching about it.
I have a laptop with an external HDMI monitor
An xrandr script I wrote which is used by lightdm sets up the monitors
Locking seems to work fine, if I just use "light-locker-command -l"
I'm using xss-lock so that it will lock on suspend using light-locker with the above command
Suspend sometimes works, but sometimes doesn't..
Sometimes I will try to suspend and it will go to the lockscreen and then isn't suspended. If I try to directly suspend with systemd in this situation, it says a suspend or shutdown operation is in progress
Then if I use "sudo killall systemd-sleep" it immediately suspends, but when I wake it up and unlock it, my session has been reset, all my windows/programs have been closed.
This is quite irritating as some things take time to get open again (PDF files etc) even though I have a script I wrote which saves/restores my i3 workspaces.
I'll try without xss-lock seeing as light-locker apparently has its own functionality for locking on suspend, but OP didn't use xss-lock and still had the problem so I'm not sure that will help. And it sounds like it may be related to multi-head setups so I'm really not sure what's going on here.
Hopefully someone else has solved this problem and can share their solution ![]()
Offline
Sorry for the necro
Don't apologize, just don't do it. Please start your own thread and link back to this one if you think it is relevant.
Please do not necrobump.
Closing.
Offline
Pages: 1
Topic closed