Power manager locks screen when closing and opening(??) lid, despite settings telling it not to
The issue:
My preferences for handling the closing of the lid are ignored.
What happens on my machine/steps to reproduce:
This is all while connected to AC
In the display manager, I have my laptop display disabled and my external monitor enabled.
-
Closing lid while in session and external monitor connected: screen goes black, monitor says “no signal detected”, goes into standby.
-
When opening lid back up right after: lock screen, but not just on the external monitor, the laptop monitor got enabled as well and is duplicating the display.
-
When closing the lid on the lock screen: nothing happens except the laptop screen gets turned off. External monitor still shows lock screen and system is responsive to input.
-
Opening the lid after that, still in lock screen: laptop display turns on and duplicates.
-
Now I close the lid again, and I log back into my session. The laptop display remains disabled (good). All seems well, except for about half a minute all window manager shortcuts, such as
winkey, andctrlaltt, are unresponsive. After that system is totally fine and responsive. (These shortcuts seem to get stuck in some sort of queue, and when I spamctrlaltt, a bunch of terminal windows all open up at the same time after roughly half a minute. But when I just use the mouse to open the start menu and open a terminal window, there is no such delay.) -
Now the kicker: I open the lid. The session locks??? Then the laptop display is turned on and duplicates the lock screen.
My settings/configuration:
Here is inxii -Fxxx
System: Host: laptop Kernel: 5.8.6-1-MANJARO x86_64 bits: 64 compiler: N/A Desktop: Xfce 4.14.2 tk: Gtk 3.24.20
info: xfce4-panel wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux
Machine: Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-ec0xxx v: N/A serial: <superuser/root required>
Chassis: type: 10 serial: <superuser/root required>
Mobo: HP model: 86D6 v: 96.31 serial: <superuser/root required> UEFI: AMI v: F.05 date: 11/06/2019
Battery: ID-1: BAT0 charge: 44.7 Wh condition: 44.7/44.7 Wh (100%) volts: 12.8/11.6 model: Hewlett-Packard Primary
type: Li-ion serial: N/A status: Full cycles: 402
CPU: Topology: Quad Core model: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen+ rev: 1
L2 cache: 2048 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 33550
Speed: 1799 MHz min/max: 1400/2100 MHz boost: enabled Core speeds (MHz): 1: 1799 2: 3143 3: 1371 4: 1467 5: 1298
6: 1336 7: 3121 8: 2608
Graphics: Device-1: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: Hewlett-Packard driver: nvidia v: 450.66
bus ID: 01:00.0 chip ID: 10de:2191
Device-2: Advanced Micro Devices [AMD/ATI] Picasso vendor: Hewlett-Packard driver: amdgpu v: kernel bus ID: 05:00.0
chip ID: 1002:15d8
Device-3: Quanta HP TrueVision HD Camera type: USB driver: uvcvideo bus ID: 5-1:2 chip ID: 0408:5365
Display: x11 server: X.Org 1.20.8 driver: amdgpu,nvidia resolution: 1920x1080~60Hz s-dpi: 96
OpenGL: renderer: GeForce GTX 1660 Ti with Max-Q Design/PCIe/SSE2 v: 4.6.0 NVIDIA 450.66 direct render: Yes
Audio: Device-1: NVIDIA TU116 High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
bus ID: 01:00.1 chip ID: 10de:1aeb
Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Hewlett-Packard
driver: snd_rn_pci_acp3x v: kernel bus ID: 05:00.5 chip ID: 1022:15e2
Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
bus ID: 05:00.6 chip ID: 1022:15e3
Sound Server: ALSA v: k5.8.6-1-MANJARO
Network: Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: rtw_8822ce
v: N/A port: e000 bus ID: 03:00.0 chip ID: 10ec:c822
IF: wlo1 state: down mac: [CENSORED]
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169 v: kernel
port: d000 bus ID: 04:00.0 chip ID: 10ec:8168
IF: eno1 state: up speed: 1000 Mbps duplex: full mac: [CENSORED]
Drives: Local Storage: total: 476.94 GiB used: 227.51 GiB (47.7%)
ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8H size: 476.94 GiB speed: 31.6 Gb/s lanes: 4
serial: [CENSORED] rev: HPS0 scheme: GPT
Partition: ID-1: / size: 468.16 GiB used: 227.51 GiB (48.6%) fs: ext4 dev: /dev/dm-0
Swap: Alert: No Swap data was found.
Sensors: System Temperatures: cpu: 58.0 C mobo: N/A
Fan Speeds (RPM): N/A
GPU: device: nvidia screen: :0.0 temp: 49 C device: amdgpu temp: 57 C
Info: Processes: 279 Uptime: 4h 15m Memory: 13.65 GiB used: 2.66 GiB (19.5%) Init: systemd v: 246 Compilers: gcc: 10.2.0
alt: 8/9 clang: 10.0.1 Packages: pacman: 1398 Shell: Bash v: 5.0.18 running in: xfce4-terminal inxi: 3.1.05
Here is my /etc/systemd/logind.conf
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodes=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
Here is my xfce power manager config (sorry, I don't know where it keeps the text version)

How I expect my system to behave:
What I am currently hoping to achieve with this setup: never lock the session. Ever. Ignore the damn lid.
What I actually want to achieve is this:
- do not lock the screen when connected to ac and the lid is closing/opening
- disable the laptop display completely when the lid is closed, but continue outputting hdmi and do not disrupt session
- lock the screen when the lid is closing and the laptop is running off of battery