SShortSingh.
Back to feed

How to properly enable hibernation on Ubuntu 24.04 using a swap file

0
·3 views

Ubuntu 24.04 LTS introduced silent changes to its polkit permissions system, breaking most existing hibernation tutorials that rely on the outdated .pkla file format. The correct setup requires passing resume and resume_offset parameters directly through GRUB, pointing to the swap file's UUID and physical offset on disk. A common initramfs warning is triggered when a separate resume config file is created unnecessarily, as the kernel already reads the required parameters from GRUB. Additionally, legacy init scripts that attempt to manually write to kernel power management interfaces will cause a 'write error: invalid argument' failure and should be removed. The guide also notes that polkit rules must now be written in JavaScript .rules format, as the old .pkla format is silently ignored on Ubuntu 24.04.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

OpenAI Drops Recommendation for SWE-Bench Pro Coding Evaluation

OpenAI has publicly withdrawn its recommendation of SWE-Bench Pro as a reliable coding benchmark. The company addressed concerns about distinguishing genuine model performance from noise in coding evaluations. OpenAI published a blog post outlining its updated stance on how coding benchmarks should be assessed. The move signals a broader effort by OpenAI to improve transparency and rigor around AI performance measurement in software engineering tasks.

0
ProgrammingDEV Community ·

AI Speeds Up Blockchain Development but Raises Risk of Costly Smart Contract Errors

Artificial intelligence tools like ChatGPT and Claude are transforming blockchain development by enabling engineers to generate smart contracts, tests, and documentation in minutes rather than hours. For Web3 startups, this accelerates prototyping and product launches, offering a meaningful competitive edge. However, the speed advantage comes with a significant downside: AI-generated code can appear correct while hiding subtle vulnerabilities that evade basic checks. In blockchain, such errors carry extreme financial consequences, as past exploits like the DAO Hack and attacks on Wormhole and Ronin Bridge have demonstrated. Experts caution that AI should be treated like a junior developer — useful, but requiring careful oversight rather than blind trust.

0
ProgrammingHacker News ·

DocuBrowser Turns Unstructured Document Collections Into Searchable Knowledge Bases

A developer has released DocuBrowser, an open-source tool hosted on GitHub designed to convert large collections of documents into organized, searchable knowledge bases. The project addresses a common challenge faced by individuals and teams who struggle to retrieve useful information from unstructured document piles. DocuBrowser aims to make stored documents more accessible and practically usable through improved search and browsing capabilities. The release was shared on Hacker News, where it attracted early community attention.