This part requires a complete overhaul.
Some links of interest:
1.7.1. Power management
TLP brings you the benefits of advanced power management for Linux without the need to understand every technical detail. TLP comes with a default configuration already optimized for battery life, so you may just install and forget it.
1sudo apt install -y tlp tlp-rdw 2sudo tlp start
1.7.2. Enable hibernation
The size of the Swap partition must be larger than the total amount of RAM if you want the system to be able to hibernate.
To test hibernation, run:
1sudo systemctl hibernate
To enable hibernation in the UI:
install the Gnome extension Hibernate Status Button
create the file with the following content:
1[Enable hibernate in upower] 2Identity=unix-user:* 3Action=org.freedesktop.upower.hibernate 4ResultActive=yes 5 6[Enable hibernate in logind] 7Identity=unix-user:* 8Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit 9ResultActive=yes