Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

When a laptop running Ubuntu 20 does not have battery, can you simply turn off the power supply to shut it down?

If there is a difference, can you rather put the laptop in sleep and then turn off the power? What if you close all the running applications and then shut-down?

Would these measures ensure the software/hardware of the laptop are not disrupted by the sudden power-off?

What difference could it possibly make compared to shut-down?
I am asking this as I’m curious to know what actually happens in the shutdown.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

During shut down, many things happen, including properly writing out data cached in the computer memory (RAM) to partitions on disk and closing these partitions. That is why a system should always be properly shut down before powering it off.

Powering off the system without shutting it down should be avoided at any price. This may or may not cause heavy damage to the file systems on the partitions, breaking the entire system beyond repair.

Unpowering a system that is in a sleep state is also not appropriate. A system that is in a sleep state has all data of the current session stored in RAM, and thus continues to use very little power to preserve the data stored there. Also with sleep state, data volumes are not closed. The idea is that the system resumes exactly where it left off when put out of sleep mode. If you now unpower the system, that RAM is lost, and the system has to reboot fully, and thus might encounter a file system that is damaged.

In summary: If you can leave the laptop on AC power, you can put it to sleep and quickly resume later. If you need to take it of AC power, your only option is a proper full shutdown.

All other attempts entail a risk to break your computer.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading