I found the solution. Setting per KDE Activity: System Settings > Power Management > Activity Settings > choosen radio-button 'Use separate settings (advanced users only)' and selected the 'suspend' in Button Event Handling > When laptop lid closed. This worked. It is weird that you have to put 1 action ( suspend ) in two different locations ...
(It's been a long time so I guess my question isn't getting answered. Anyway, I'll post what I've learnt so far...)
Yes, it is normal.
In fact you should expect around 30% to 50% loss in battery life unless you are using something like a Thinkpad. This isn't Ubuntu's fault and it has to do with manufacturers (even mainstream ones like Dell and HP) keeping ...
As I wrote in EDIT 3 of my answer:
From the GRUB menu, choosing Advanced options for Ubuntu, I find 4 elements (2 kernel in normal and recovery mode):
Ubuntu, with Linux 5.11.0-46-generic
Ubuntu, with Linux 5.11.0-46-generic (recovery mode)
Ubuntu, with Linux 5.11.0-27-generic
Ubuntu, with Linux 5.11.0-27-generic (recovery mode)
If I choose the third option, ...
Building on the answer by jvanhie: Another way to stop the /usr/lib/update-notifier/update-motd-fsck-at-reboot script from running every hour and during login, without modifying it, is to put this line in /etc/crontab:
01 * * * * root f=/var/lib/update-notifier/fsck-at-reboot ; test -e $f && touch $f
That will update the time stamp file checked by ...
If you are using iw for this, you need to first bring the network down:
sudo ip link set wlan0 down
Then you can set the fixed txpower value:
sudo iw dev wlan0 set txpower fixed 10mBm
And finally bring the network back up:
sudo ip link set wlan0 up
This seems to be a problem with the Wi-Fi driver. Why wouldn't you want to stay with RUNTIME_PM_ON_AC=auto if the performance is better? You may also consider using RUNTIME_PM_ENABLE to set only the Wi-Fi card to auto https://linrunner.de/tlp/settings/runtimepm.html#runtime-pm-enable
Acer Aspire 3 A315-21-92HJ
The BIOS was updated to the latest 1.25 version. It didn't solve the problem.
Since the problem occurs with 20.04 and 21.10, and when logged into a different user account, but does not occur when booted to a Ubuntu Live USB or Pop!_OS, the problem is confined to your Ubuntu installation on disk.
Backup your ...
Hopefully your drive will respond to the -B flag in hdparm, which will allow you to enable/disable the power management feature. From the docs:
-B Get/set Advanced Power Management feature, if the drive supports it. A low value
means aggressive power management and a high value means better performance.
Possible settings range ...
Since UEFI version 1.30, the patch given in the accepted answer is no longer needed. To enable sleep mode under Linux with the latest BIOS, reboot your laptop and in the BIOS settings under "Config", change the "Sleep State" setting to "Linux" instead of "Windows 10".
Finally, with the ...
During shut down, many things happen, including properly writing out data cached in the computer memory (RAM) to partitions on disk and closing these partitions. That is why a system should always be properly shut down before powering it off.
Powering off the system without shutting it down should be avoided at any price. This may or may not cause heavy ...