Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Closing the lid interrupts the shutdown and it suspends.....

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
ImperfectSoldier
Posts: 3
Joined: 2019-10-05 09:17

Closing the lid interrupts the shutdown and it suspends.....

#1 Post by ImperfectSoldier »

When I manually shutdown the laptop and close the lid, the shutdown process just freezes. Later when I open the lid, I find that that it resumes the shutdown process, and that it was suspended due to closing the lid, not shutdown. I have looked it up and I couldn't find an exact match for this problem and the solutions to related topics suggested removing the suspend function.
I don't want that, I want to be able to close the lid to suspend and also the shutdown process to NOT be interrupted when I close the lid (similar to how it is on Windows).
I have TLP installed but the problem persisted even when I disable TLP with command
"sudo systemctl disable tlp"
What can I do so that the shutdown is not interrupted by closing the lid?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Closing the lid interrupts the shutdown and it suspends.

#2 Post by Head_on_a_Stick »

Try setting LidSwitchIgnoreInhibited to no in /etc/systemd/logind.conf
deadbang

ImperfectSoldier
Posts: 3
Joined: 2019-10-05 09:17

Re: Closing the lid interrupts the shutdown and it suspends.

#3 Post by ImperfectSoldier »

Head_on_a_Stick wrote:Try setting LidSwitchIgnoreInhibited to no in /etc/systemd/logind.conf
Thank you for the response, but the issue still persists even after changing that...
Anything else that I can do to fix it?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Closing the lid interrupts the shutdown and it suspends.

#4 Post by Head_on_a_Stick »

How exactly are you shutting the system down?
deadbang

ImperfectSoldier
Posts: 3
Joined: 2019-10-05 09:17

Re: Closing the lid interrupts the shutdown and it suspends.

#5 Post by ImperfectSoldier »

Head_on_a_Stick wrote:How exactly are you shutting the system down?
From the KDE UI
KDE Icon at bottom left -> Leave -> Shutdown

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Closing the lid interrupts the shutdown and it suspends.

#6 Post by Head_on_a_Stick »

GNOME works for me, check systemd-inhibit to see if Plasma is handling the lid action ("suspend-key"):

Code: Select all

empty@E485 ~ % systemd-inhibit --no-p
WHO    UID  USER  PID  COMM           WHAT                                                     WHY                            MODE
UPower 0    root  724  upowerd        sleep                                                    Pause device polling           delay
empty  1000 empty 1164 gsd-media-keys handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses      block
empty  1000 empty 1164 gsd-media-keys sleep                                                    GNOME handling keypresses      delay
empty  1000 empty 1125 gsd-power      sleep                                                    GNOME needs to lock the screen delay

4 inhibitors listed.
empty@E485 ~ %
deadbang

Post Reply