Ubuntu 18.04: *Completely* disable laptop sleep when closed.
Tom H
tomh0665 at gmail.com
Tue Jun 1 05:49:31 UTC 2021
On Sun, May 30, 2021 at 9:08 PM Colin Law <clanlaw at gmail.com> wrote:
> On Sun, 30 May 2021 at 15:09, Robert Heller <heller at deepsoft.com>
> wrote:
>>
>> I need to be able to access my laptop, when I am logged out
>> (console login) with the lid closed. What is the "magic" to do
>> that? I managed to disable that function when logged in and
>> running the GUI, but I need to also be able to do it when logged
>> out. I *don't* use the GUI login. The machine come up to
>> multi-user boot with a (black) console login -- I start the GUI
>> from my login with startx.
>
> In /etc/UPower/UPower.conf set
> IgnoreLid=true
>
> That worked for me. You might need to reboot, I don't know.
There's also
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
in "/etc/systemd/logind.conf"
I assume that there's some kind of coordination and prioritization
between "logind.conf" and "UPower.conf" if options are explicitly set
in both.
More information about the ubuntu-users
mailing list