Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Edited
- /etc/default/grub
- With UUID for Swap partition
- GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=63ed26d3-5587-4120-8bd1-cfbbedb61b27"
- GRUB_CMDLINE_LINUX="resume=UUID=63ed26d3-5587-4120-8bd1-cfbbedb61b27"
- Edited /etc/fstab
- # /etc/fstab: static file system information.
- #
- # Use 'blkid' to print the universally unique identifier for a
- # device; this may be used with UUID= as a more robust way to name devices
- # that works even if disks are added and removed. See fstab(5).
- #
- # <file system> <mount point> <type> <options> <dump> <pass>
- # / was on /dev/sda1 during installation
- UUID=0fbe75f9-680b-415e-a234-35f32c7c6a5e / ext4 errors=remount-ro 0 1
- /swapfile none swap sw
- UUID=63ed26d3-5587-4120-8bd1-cfbbedb61b27 none swap sw 0 0
- Also created file
- /etc/initramfs-tools/conf.d$ cat resume
- resume=UUID=63ed26d3-5587-4120-8bd1-cfbbedb61b27
- Created Hibernate Re-Implementation Configuration File
- *must do “sudo su” to access localauthority*
- root@rattlesnake:/etc/polkit-1/localauthority/50-local.d# gedit com.ubuntu.enable-hibernate.pkla
- [Re-enable hibernate by default in upower]
- Identity=unix-user:*
- Action=org.freedesktop.upower.hibernate
- ResultActive=yes
- [Re-enable hibernate by default in logind]
- Identity=unix-user:*
- Action=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
- ResultActive=yes
- Go to:
- https://extensions.gnome.org/extension/755/hibernate-status-button/
- Install Hibernate Status Button
- Edit /etc/systemd/logind.conf
- Change from suspend to hibernate
- HandleLidSwitch=hibernate
- HandleLidSwitchDocked=hibernate
Add Comment
Please, Sign In to add comment