Ubuntu16.04 when entering suspend or hibernate, pressing any key will not wake up the problem resolution

Source: Internet
Author: User

Suspend (Standby)
The computer stores the current state of operation and other data in memory, shuts down the hard disk, peripherals and other devices and enters the waiting state. At this point, the memory still needs power to maintain its data, but the machine consumes little. When recovering, the computer reads the data from memory and returns to its pre-suspended state for faster recovery. A typical notebook can support this suspend for hours or even days (depending on the model) in case the battery is trouble-free and full.
Other Name: Suspend, STR (Suspend to RAM), hangs, hangs to memory

Dormancy
The computer stores data such as the current state of operation in a file on the hard disk or a specific area (typically swap, which is probably why the swap size is 1 time times or 2 of the memory), shutting down the hard disk, peripherals and other devices, into the shutdown state. At this point the computer shuts down completely and does not consume power. When recovering, the computer reads data from the hibernation file/partition, returning to the state before hibernation and recovering slowly. However, because this method completely loses power and can save the working state, it is often used by notebook users as an alternative way to shut down the machine.
Other Name: Hibernation, STD (Suspend to disk), suspend to hard disk, hibernate to hard disk

My Ubuntu16.04 desktop environment through Ubuntu Server and after installation of the GNOME3 desktop environment implementation, after the installation of the computer into the suspend or hibernate state when press any key can not wake up, only forcibly shutdown restart,
Find the solution on the Internet as follows:

Suspend does not wake mainly Laptop_mode (convenient computer mode) is not turned on, I was installed through Ubuntu server, default is not turned on.

1, install pm-utils this package. The Pm-utils package provides a simple shell command-line tool for suspending and hibernating your computer.
Pm-utils the following commands through the terminal can be suspended, hibernate and other operations:
Pm-hibernate, pm-is-supported, Pm-powersave, Pm-suspend, Pm-suspend-hybrid

To install the Package command:
[Email protected]:~$ sudo apt-get install pm-utils


2, install Laptop-mode-tools This package, convenient computer mode configuration tool.

To install the Package command:
[Email protected]:~$ sudo apt-get install Laptop-mode-tools

3, although installed Laptop-mode-tools, but is it automatically started the Laptop_mode mode? We use the following command to determine whether laptop has Laptop_mode enabled, and if the result is 0, it does not start. If a number other than 0 indicates that it is started.
Command:
[Email protected]:~$ Cat/proc/sys/vm/laptop_mode

4. Modify the configuration file/etc/default/acpi-support, change the Enable_laptop_mode=true


Restart the computer, after the Ubuntu hangs, basically will not encounter the situation that cannot wake up.

5, if not found in the above configuration file/etc/default/acpi-support enable_laptop_mode= This option, then at the end of the configuration file will see the following prompt:
...........
..........
# note:to Enable "laptop mode" (to spin down your hard drive for longer
# Periods of time), install the Laptop-mode-tools package and configure
# it in/etc/laptop-mode/laptop-mode.conf.
#注: To enable "convenient mode" (Rotate your hard drive longer
#时间段), install the Laptop-mode-tools package and configure it.
#它在/etc/laptop-mode/laptop-mode.conf
With this note you can know that the Laptop-mode-tools configuration is in the etc/laptop-mode/laptop-mode.conf file.

6. Configuring the Etc/laptop-mode/laptop-mode.conf File

The following two places have 0, change to 1 on it, save.
###############################################################################


#
# Enable Laptop mode when on battery power.
#
Enable_laptop_mode_on_battery=1 <====== Here


#
# Enable Laptop mode when on AC power.
#
Enable_laptop_mode_on_ac=1


#
# Enable Laptop Mode when the laptop's lid is closed, even when we ' re on AC
# power? (acpi-only)
#
Enable_laptop_mode_when_lid_closed=1 <======== Here

Configure the above file to restart it.

Ubuntu16.04 when entering suspend or hibernate, pressing any key will not wake up the problem resolution

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.