I’ve installed manjaro on my laptop, use Xorg GNOME as desktop environment, and connect with a 4k external screen. When I login the system, close the laptop lid, everything works normally on the external screen. But when I select Swtich User, the login screen showed up, but there’s no user name list, I can’t select user and can’t get in to the login fields. And when I use Ctrl + Alt + F2
switch back to previous login session, it’s on lock screen as default, and neither the keyboard nor the mouse has no response. Only when I open the lid again, everything back to normal.
I don’t know it’s a GNOME problem or manjaro problem. I’ve tried to switch off Suspend when laptop lid is closed, and edit /etc/systemd/logind.conf
as
LidSwitchIgnoreInhibited=yes
HandleLidSwitch=ignore
or edit /etc/UPower/UPower.conf
as
IgnoreLid=true
All above not solving my problem.
Looks like it’s a rare situation, so, how do I make the system works normally when the lid close all the time?
Maybe try to add the variables here:
/etc/systemd/logind.conf.d/custom-logind.conf
logind.conf
Sure you have to create it yourself.
I’ve add the config file and reboot, nothing change.
Maybe I should report it to the gdm developers, it looks like a bug only appears when use external monitor as the only display.
Perhaps laptop display is registered as primary display?
I don’t know, because I’ve already set the external monitor as Single Display, and the xrandr
output shows it is primary display. Maybe it behave different only on the login screen.
I’ve opened the TTY3 to monitor the gdm service status when switch to login screen and then switch back, command is sudo systemctl status gdm.service
, got different output:
lid opened
● gdm.service - GNOME Display Manager
Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2022-04-09 19:23:50 CST; 16min ago
Main PID: 1211 (gdm)
Tasks: 4 (limit: 18764)
Memory: 6.5M
CPU: 106ms
CGroup: /system.slice/gdm.service
└─1211 /usr/bin/gdm
4月 09 19:40:35 think-mj gdm[1211]: Gdm: GdmSession: Handling new connection from outside
4月 09 19:40:35 think-mj gdm[1211]: Gdm: GdmManager: client with pid 13658 connected
4月 09 19:40:35 think-mj gdm[1211]: Gdm: GdmDisplay: Got timed login details for display: 0
4月 09 19:40:40 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: received VT change event
4月 09 19:40:40 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: VT changed from 1 to 3
4月 09 19:40:40 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: VT of login window is 1
4月 09 19:40:40 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: VT switched from login window
4月 09 19:40:40 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: killing login window once its unused
4月 09 19:40:40 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: display status changed: 3
4月 09 19:40:40 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: active VT is not initial VT, so ignoring
lid closed
● gdm.service - GNOME Display Manager
Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2022-04-09 19:23:50 CST; 18min ago
Main PID: 1211 (gdm)
Tasks: 3 (limit: 18764)
Memory: 6.5M
CPU: 126ms
CGroup: /system.slice/gdm.service
└─1211 /usr/bin/gdm
4月 09 19:42:28 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: x11 login display for seat seat0 requested
4月 09 19:42:28 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: display status changed: 2
4月 09 19:42:28 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: session 11 found, activating.
4月 09 19:42:32 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: received VT change event
4月 09 19:42:32 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: VT changed from 1 to 3
4月 09 19:42:32 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: VT of login window is 1
4月 09 19:42:32 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: VT switched from login window
4月 09 19:42:32 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: killing login window once its unused
4月 09 19:42:32 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: display status changed: 3
4月 09 19:42:32 think-mj gdm[1211]: Gdm: GdmLocalDisplayFactory: active VT is not initial VT, so ignoring