Guest User

Untitled

a guest
Oct 16th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. Edited
  2. /etc/default/grub
  3.  
  4. With UUID for Swap partition
  5.  
  6. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=63ed26d3-5587-4120-8bd1-cfbbedb61b27"
  7. GRUB_CMDLINE_LINUX="resume=UUID=63ed26d3-5587-4120-8bd1-cfbbedb61b27"
  8.  
  9.  
  10.  
  11.  
  12. Edited /etc/fstab
  13.  
  14.  
  15.  
  16. # /etc/fstab: static file system information.
  17. #
  18. # Use 'blkid' to print the universally unique identifier for a
  19. # device; this may be used with UUID= as a more robust way to name devices
  20. # that works even if disks are added and removed. See fstab(5).
  21. #
  22. # <file system> <mount point> <type> <options> <dump> <pass>
  23. # / was on /dev/sda1 during installation
  24. UUID=0fbe75f9-680b-415e-a234-35f32c7c6a5e / ext4 errors=remount-ro 0 1
  25. /swapfile none swap sw
  26. UUID=63ed26d3-5587-4120-8bd1-cfbbedb61b27 none swap sw 0 0
  27.  
  28.  
  29.  
  30. Also created file
  31. /etc/initramfs-tools/conf.d$ cat resume
  32.  
  33.  
  34.  
  35. resume=UUID=63ed26d3-5587-4120-8bd1-cfbbedb61b27
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. Created Hibernate Re-Implementation Configuration File
  45. *must do “sudo su” to access localauthority*
  46. root@rattlesnake:/etc/polkit-1/localauthority/50-local.d# gedit com.ubuntu.enable-hibernate.pkla
  47.  
  48.  
  49. [Re-enable hibernate by default in upower]
  50. Identity=unix-user:*
  51. Action=org.freedesktop.upower.hibernate
  52. ResultActive=yes
  53.  
  54. [Re-enable hibernate by default in logind]
  55. Identity=unix-user:*
  56. 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
  57. ResultActive=yes
  58.  
  59.  
  60.  
  61.  
  62. Go to:
  63. https://extensions.gnome.org/extension/755/hibernate-status-button/
  64.  
  65. Install Hibernate Status Button
  66.  
  67.  
  68.  
  69.  
  70. Edit /etc/systemd/logind.conf
  71. Change from suspend to hibernate
  72.  
  73. HandleLidSwitch=hibernate
  74. HandleLidSwitchDocked=hibernate
Add Comment
Please, Sign In to add comment