Ubuntu 16.04 turn on sleep function

Source: Internet
Author: User
Tags sleep function

Because the hibernate feature does not work on some computers, Ubuntu does not turn on hibernation by default.

To turn on the Hibernate feature, the advanced line is tested as follows:

1, first check whether there is swap partition (swap), if there is a confirmation swap partition at least as large as the actual available memory.

2. Press Ctrl+alt+t to open terminal or Dash search to open terminal

3, run the sudo pm-hibernate, enter the password after the return.

4. If the sleep test does not work correctly, it means that your computer is unable to hibernate.

5, if the sleep test can work properly, use your habit to hit a text editor to create a new file /etc/polkit-1/localauthority/50-local.d/ Com.ubuntu.enable-hibernate.pkla save after adding the following content

[re-enable hibernate by default in Upower] Identity=unix-user:*action=org.freedesktop.upower.hibernateResultActive=Yes  [re-enable hibernate by default in Logind]Identity=unix-user:* Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessionsresultactive= Yes

6. Close all programs and restart the computer.

7. After restarting, the menu will have the Hibernate option.

Ubuntu 16.04 turn on sleep function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.