Beyond the Breaking News

New Linux kernel patch lets you cancel hibernation mid-process

United Kingdom News News

New Linux kernel patch lets you cancel hibernation mid-process
United Kingdom Latest News,United Kingdom Headlines

: RFC proposes power-button interrupt – and highlights wider problems with sleep states

A new Linux kernel patch lets you cancel the process of your machine going into hibernation, but the bigger context of the work may be more important.Hibernation can take a while. As the RFC says, on Anjum's machine it takes about 20 seconds.

The proposed change is simple: it adds a mechanism to cancel the process by pressing the power button. The thing is that for reasons Anjum goes on to explain, this is trickier than it sounds.. Hibernation problems can potentially be severe, causing data loss. For instance, some machines hibernate successfully, and then resume again successfully – but on waking, the keyboard and mouse may not work, leaving you locked out and unable to cleanly save your work. That's why some distros leave it off by default – anything else risks data loss. As such, if you enable it, you will probably want to try it out repeatedly, so being able to cancel the process sounds good to us. We strongly suspect that people would find hibernation more reliable if they remembered to update their system firmware, but sadly, few bother to do this. These days, there's the very helpfultoolkit, but this too has a snag – for the system or motherboard firmware, this requires UEFI boot mode. It also needs a large ESP, and we've seen it fail when there's not enough space. This means thatAs a result of these issues, hibernation support is a somewhat neglected area of Linux support. How it works is simple enough: when you tell your machine to hibernate, it saves all the data in memory onto the SSD or hard disk, plus a snapshot of the OS's state, and then turns off. It's the deepest of the four sleep levelsThe good thing about hibernation is that while a computer is in this state, it uses no power at all. You can even remove its battery – if you're using an old enough model of laptop where that's an option – and put it in your checked baggage, keeping only the battery in your carry-on luggage – as international regulations require, for good reason. Photoshop FOSS alternative GIMP wakes up from 7-year coma with version 3.0Techie took five minutes to fix problem Adobe and Microsoft couldn't solve in two weeks However, there are downsides to hibernation too. Unlike Windows, Linux hibernates into whatever swap space you're using for virtual memory: a swap file or dedicated swap partition. That means hibernation needs a swap volumeso the code can't know in advance exactly how much space it will need.) So if your machine is actively using some swap space, you can't hibernate unless you've got enough empty swap available. For a heavily loaded system, that could mean you need more swap than RAM. Since modern PCs have tens to hundreds of gigabytes of RAM, there's normally little need for swap space at all – which means that having empty swap space lying around unused, just in case you want to hibernate your PC, seems like a waste of drive space., which is a clever hack that tries to deliver the best of both worlds. The gist of the hybrid sleep idea is that your machine creates a hibernation image on disk, then it suspends to RAM. If it has enough battery, when you wake it, it wakes from sleep, which is relatively fast; if the battery dies, then it wakes from hibernation instead. We're happy to see it getting some attention from a kernel developer, and we hope that it may in future become more common, rather than less. ®feature, you can reclaim a few gigs by disabling hibernation. It takes just one command in an admin-mode command prompt window:Google porting all internal workloads to Arm, with help from GenAI

We have summarized this news so that you can read it quickly. If you are interested in the news, you can read the full text here. Read more:

TheRegister /  🏆 67. in UK

 

United Kingdom Latest News, United Kingdom Headlines

Similar News:You can also read news stories similar to this one that we have collected from other news sources.

San Carlo Unveils New Autumn/Winter Menu in LeedsSan Carlo Unveils New Autumn/Winter Menu in LeedsPopular Leeds city centre Italian restaurant, San Carlo, introduces a new autumn/winter menu with delightful dishes, including new starters like smoked salmon and heritage tomato salad, plus new sides, carne selections such as beef cheek, and seafood options like sea bass. They also have new pasta dishes.
Read more »

Nottingham Forest official announcement - New new manager unveiledNottingham Forest official announcement - New new manager unveiledThe Mag
Read more »

Belfast City Marathon announces exciting changes with new title sponsorBelfast City Marathon announces exciting changes with new title sponsorExciting new changes for 2026 including new title sponsor, memorial award, charity platform and new merchandise partner
Read more »

Where was The Ridge filmed as stunning scenery featured in BBC thriller?Where was The Ridge filmed as stunning scenery featured in BBC thriller?Filming locations across Scotland and New Zealand for new drama The Ridge
Read more »

New NTFS Driver Emerges in Linux, Modernizing Windows Drive AccessNew NTFS Driver Emerges in Linux, Modernizing Windows Drive AccessA new NTFS driver, developed by kernel developer Namjae Jeon, offers improved access to Windows drives on Linux. This new driver modernizes existing read-only driver functionality. It replaces the old driver’s use of journal-replay mechanisms, and addresses criticisms of the existing code. This development emphasizes the ongoing evolution of file system interoperability within the Linux kernel. It also comes nearly four years after the initial integration of read-write NTFS support.
Read more »

Update on new flats overlooking Mersey and new Everton stadiumUpdate on new flats overlooking Mersey and new Everton stadiumThe Merseyside area was described as having so much potential
Read more »



Render Time: 2026-05-22 18:28:09