You are not logged in.

#1 Yesterday 08:41:10

Adiee5
Member
Registered: 2023-11-17
Posts: 10

Lenovo Ideapad3 wakes up when closing the lid (HandleLidSwitch=lock)

So, whenever I enter sleep mode via the GUI, when I close the lid my laptop suddenly wakes up. In the logind.conf, I have the HandleLidSwitch set to lock, because I want my laptop to be in a lock screen when I usually close the lid. But I obviously don't want my laptop to wake up when closing the lid. Is there something I can do to make it work as I want to?

Offline

#2 Yesterday 12:13:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,361

Re: Lenovo Ideapad3 wakes up when closing the lid (HandleLidSwitch=lock)

Which GUI? Most major DEs handle the logind/lidswitch integration themselves and thus logind.conf being inert. Also I'd assume LidSwitch=sleep to imply a lock on most implementations anyway. What's your output for

systemd-inhibit --list

Offline

#3 Yesterday 12:16:30

Adiee5
Member
Registered: 2023-11-17
Posts: 10

Re: Lenovo Ideapad3 wakes up when closing the lid (HandleLidSwitch=lock)

WHO            UID  USER   PID   COMM           WHAT                                                     WHY                                                              MODE
NetworkManager 0    root   842   NetworkManager sleep                                                    NetworkManager needs to turn off networks                        delay
Realtime Kit   0    root   1001  rtkit-daemon   sleep                                                    Demote realtime scheduling and stop canary.                      delay
UPower         0    root   1084  upowerd        sleep                                                    Pause device polling                                             delay
Discord        1000 adiee5 20305 Discord        sleep                                                    Application cleanup before suspend                               delay
GNOME Shell    1000 adiee5 2618  gnome-shell    sleep                                                    Środowisko GNOME musi zablokować ekran                           delay
GNOME Shell    1000 adiee5 2618  gnome-shell    sleep                                                    Środowisko GNOME musi zapisać dane o czasie korzystania z ekranu delay
adiee5         1000 adiee5 2762  gsd-media-keys handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses                                        block
adiee5         1000 adiee5 2762  gsd-media-keys sleep                                                    GNOME handling keypresses                                        delay
adiee5         1000 adiee5 2766  gsd-power      sleep                                                    GNOME needs to lock the screen                                   delay

9 inhibitors listed.

Offline

Board footer

Powered by FluxBB