Hello, I've been noticing issues recently when I close my lid on my laptop with 50% power or so and then when I go to open the lid the next day after I was using Ubuntu it has drained the entire battery! I'm not sure when this first started happening? I checked and confirmed I do not have hibernation enabled.
I'm not sure if this is related but I'm seeing this entries in my journal logs:
Code:
Oct 31 09:44:54 yoga9i kernel: PM: hibernation: Registered nosave memory: [mem 0xfed20000-0xfed7ffff]
Oct 31 09:44:54 yoga9i kernel: PM: hibernation: Registered nosave memory: [mem 0xfed80000-0xffffffff]
Oct 31 09:03:39 yoga9i kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Oct 31 09:03:51 yoga9i kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
What I did so far is follow this information.
That is I removed the # sign from these two entries.
sudo vi /etc/systemd/logind.conf
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
I have my doubts that this will help. I don't know why it's sucking so much power when I close the lid? I see the power light on my laptop blinking indicating it should be resting but I have yet to test further after adding these entries.
I'm not sure if I have to rebuild my swap file or something to enable hibernation? I don't know if the suspend operation above requires hibernation to work?
I was debating on trying to following this thread to enable hibernation. I just want my laptop to not drain all the power when I shut the lid.
sudo systemctl hibernate
Call to Hibernate failed: Sleep verb 'hibernate' is not configured or configuration is not supported by kernel
Thanks for any ideas or help!