Artix Linux Forum

Init systems => OpenRC => Topic started by: Hawk on 15 November 2020, 08:08:27

Title: [SOLVED] Shutdown pauses when lid closes
Post by: Hawk on 15 November 2020, 08:08:27
When I power down the laptop and close the lid the poweroff process is paused and finishes shutdown the next time I open the lid . I dont want default lid close to poweroff .
Is there a to set poweroff action only when shutting down the system
Title: Re: Shutdown pauses when lid closes
Post by: tintin on 15 November 2020, 08:28:20
When I power down the laptop and close the lid the poweroff process is paused and finishes shutdown the next time I open the lid . I dont want default lid close to poweroff .
Is there a to set poweroff action only when shutting down the system

Did you configure the power manager correctly?
Title: Re: Shutdown pauses when lid closes
Post by: katinka on 15 November 2020, 09:14:00
Closing lid not until shutdown process is finished?
Title: Re: Shutdown pauses when lid closes
Post by: Hawk on 15 November 2020, 09:24:56
Did you configure the power manager correctly?

I have not made any changes . Its the default configuration
Title: Re: Shutdown pauses when lid closes
Post by: Hawk on 15 November 2020, 09:28:29
Closing lid not until shutdown process is finished?
When using systemd I never faced this issue. And its force of habbit close the lid
Title: Re: Shutdown pauses when lid closes
Post by: nous on 15 November 2020, 13:46:59
/etc/elogind/logind.conf --> HandleLidSwitch=ignore
Title: Re: Shutdown pauses when lid closes
Post by: Hawk on 15 November 2020, 15:11:33
/etc/elogind/logind.conf --> HandleLidSwitch=ignore
This would default lid close to ignore . And thats not what I want. I would like it to ignore only when it is the powering off process
Title: Re: Shutdown pauses when lid closes
Post by: nous on 15 November 2020, 15:44:49
How do you power off? Supposedly, loginctl poweroff inhibits other ACPI events from interfering.

[EDIT]: The man page is a little confusing (for me), but you can also try changing the value of LidSwitchIgnoreInhibited to no.
Title: Re: Shutdown pauses when lid closes
Post by: Hawk on 15 November 2020, 20:21:22
How do you power off? Supposedly, loginctl poweroff inhibits other ACPI events from interfering.

[EDIT]: The man page is a little confusing (for me), but you can also try changing the value of LidSwitchIgnoreInhibited to no.

idk if this should happen but i think it works for `loginctl poweroff`  and not for `poweroff`
anyways ill mark it solved. Thank You !! :)