In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "Ubuntu system startup dormancy and unable to wake up the solution", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn the "Ubuntu system startup dormancy and unable to wake up the solution to the problem"!
Everyone knows that Windows has hibernation mode, but so does Ubuntu. To put it simply, the hibernation mode means that everything in the memory can be written to the hard disk when the user leaves temporarily, and the next time the user boots up, he can boot directly to the last saved time state.
For example, you are using LibreOffice to deal with a document, while opening a lot of reference pages and other files, it is time to get off work, you are afraid that coming back the next day to find those reference pages and documents will affect your writing thinking, you can now leave the Ubuntu dormant. After Ubuntu hibernates, all outstanding processing tasks will be written to the hard disk and then shut down, and the last state will be automatically called from the hard disk the next time it is booted.
Check whether the Ubuntu hibernation mode is normal
Now we want to check to see if the current Ubuntu allows hibernation mode, and to allow hibernation we'd better allocate a SWAP partition with the same amount of memory as the current system (most users allocate it when the system is installed). Use the "Ctrl + Alt + T" shortcut to open a terminal and execute the following command:
The code is as follows:
Sudo pm-hibernate
After the command is executed, Ubuntu will automatically shut down and power off. After rebooting, if everything is all right, we can directly return to the state of the last shutdown, which indicates that the current hibernation mode of the Ubuntu system is working properly.
Note: if the state and session before shutdown are not restored or other errors are encountered, it may be caused by a variety of reasons, and you need to troubleshoot before the next step.
Re-enable hibernation
If you have confirmed that Ubuntu hibernation mode works on your system through the above steps, we can add the hibernation button back to our menu.
Execute the following command to create a com.ubuntu.enable-hibernate.pkla file in the / etc/polkit-1/localauthority/50-local.d/ directory:
The code is as follows:
Sudo vi / etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Write the following in the above file:
The code is as follows:
[Enable Hibernate in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
Ubuntu has fully supported low-power mode since 14.04, which should be called by the above configuration file. But if you are using an earlier version of Ubuntu, you can try the following:
The code is as follows:
[Enable hibernate in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
Note: the above words do not apply to Ubuntu 13.10
If you're not sure or just to be on the safe side, you can write both in the com.ubuntu.enable-hibernate.pkla configuration file at the same time.
[Enable Hibernate in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Enable Hibernate in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
After the configuration file has been modified, we need to restart the system or restart the indicator session:
The code is as follows:
Killall indicator-session-service
After rebooting, the hibernation option will appear.
The solution to the problem that the laptop cannot start after hibernation
1. Problem introduction
The Power of the Ubuntu system sets the hibernation time, and the system cannot start after the system goes into hibernation. You can only re-enter the system through a cold start.
two。 Analysis of problems
First of all, the problem is analyzed. After dormant, the system enters a crash state and cannot respond to keyboard and mouse events, but the keyboard itself can switch states, such as switching the network on and off. However, the content on the display screen cannot be updated.
Upgrade to the latest version, the problem still exists.
I checked from the Internet to see if it was related to the model of the notebook I used, but I couldn't. Because in version 13.x, hibernation is normal.
3. Problem determination
Someone mentioned on the Internet whether it is the defect of the graphics card driver itself, because Ubuntu is an open source Linux system, the drivers that manufacturers have not provided or provide will have certain problems or compatibility.
Therefore, the video card is switched:
Description:
(1)。 After starting the switching test, the current driver is the most suitable driver for my machine.
(2)。 There is an article on the Internet that the open source driver is very good, and the test results can not solve the crash problem.
4. Write at the end
Since Ubuntu starts at 12.x and Hibernate hibernation is disabled from the system, users are required to turn on hibernation on their own. It is said that the hibernation feature is disabled by default because the system cannot save the application state correctly.
The code is as follows:
Sudo pm-hibernate
-Test the hibernation function and put the system into hibernation
Thank you for your reading, the above is the content of "the solution to the problem of Ubuntu system startup hibernation and unable to wake up". After the study of this article, I believe you have a deeper understanding of the solution to the problem of Ubuntu system startup hibernation and unable to wake up, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.