{"id":15012698,"url":"https://github.com/microsoft/hibernation-setup-tool","last_synced_at":"2026-03-08T18:37:29.119Z","repository":{"id":40748007,"uuid":"351193158","full_name":"microsoft/hibernation-setup-tool","owner":"microsoft","description":"Tool to set up a Linux computer to hibernate","archived":false,"fork":false,"pushed_at":"2026-01-28T21:37:18.000Z","size":98,"stargazers_count":12,"open_issues_count":7,"forks_count":10,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-02-22T16:25:38.273Z","etag":null,"topics":["hibernation","linux","tool"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-24T19:02:54.000Z","updated_at":"2026-02-17T19:46:07.000Z","dependencies_parsed_at":"2024-09-15T23:02:38.362Z","dependency_job_id":"a4b0e1fc-9680-4653-8768-3cc29f3d3206","html_url":"https://github.com/microsoft/hibernation-setup-tool","commit_stats":{"total_commits":106,"total_committers":6,"mean_commits":"17.666666666666668","dds":"0.26415094339622647","last_synced_commit":"a972b7364d52f18746d124f88c9fa95bd373b32d"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/hibernation-setup-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fhibernation-setup-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fhibernation-setup-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fhibernation-setup-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fhibernation-setup-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/hibernation-setup-tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fhibernation-setup-tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30119235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T09:35:22.236Z","status":"ssl_error","status_checked_at":"2026-03-05T09:35:20.028Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hibernation","linux","tool"],"created_at":"2024-09-24T19:43:05.620Z","updated_at":"2026-03-08T18:37:29.098Z","avatar_url":"https://github.com/microsoft.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: hibernation-setup-tool\nsection: 1\nheader: System Utilities\nfooter: hibernation-setup-tool 1.0\ndate: June 29, 2021\n---\n\n\n# NAME\nhibernation-setup-tool - sets up a VM for hibernation\n\n# SYNOPSIS\n**hibernation-setup-tool**\n\n# DESCRIPTION\n**hibernation-setup-tool** is a tool that sets up a swap file suitable for\nhibernation, and sets up the system to enable proper resuming.\n\nIt accomplishes that by creating a swap file in the root directory that's slightly\nlarger than the total amount of RAM available for the VM, ensuring it has no holes\nand isn't fragmented, and setting up parameters for the currently-running kernel\n(so the VM can be hibernated as soon as the set up is complete), and for next boots\n(so that the VM can be resumed).\n\nOn Hyper-V virtual machines, it'll also ensure that proper udev rules\nare set in place so that the machine can hibernate when receiving a\ncommand from the host.  In addition, it'll install systemd hooks to\ntrack hibernation success, failures, and cold-boot scenarios, and store\nthem in the system log.\n\nIt currently only fully supports distributions with GRUB2 as the bootloader (e.g.\nthose with `/etc/default/grub` as part of its configuration file), and those using\ninitramfs-tools (e.g. Debian and Ubuntu).  Use in systems where either of these\naren't used is possible, however the tool won't be able to adjust the system in\nsuch a way that it'll resume from hibernation.\n\nInstallation can be performed either manually, by using the provided Makefile\n(e.g. by issuing `make` to build and `make install` with superuser privileges\nto install files in the correct locations), or by installing a .deb package.  To\nbuild the .deb package, one can use the provided `build.sh` script in the\n`debian-packaging` branch of this repository, which, in a system where tools to\nbuild Debian packages have been installed, will perform all necessary steps\nto output a file that can be installed via `dpkg`.\n\n# OPTIONS\nNo command-line parameters exist.  The tool is fully automatic, and\nwill exit when set up has been completed.\nIt can be safely executed on every boot, without impacting boot time.\n\n# RETURN VALUE\nThe tool will return 0 on success, and 1 on failure.\n\n# AUTHORS\nWritten by [Leandro Pereira](mailto:leandro.pereira@microsoft.com).\n\n# BUGS\n[Submit bug reports online](https://github.com/microsoft/hibernation-setup-tool/issues).\n\n# SEE ALSO\n[Full source code is available](https://github.com/microsoft/hibernation-setup-tool/).\n\n# NOTES\nThis program requires superuser privileges to execute.\n\nPull requests improving the tool are greatly appreciated.  Please refer\nto the `CONTRIBUTING.md` file located in the source repository for more\ninformation, including a link to the Microsoft Open Source Code of\nConduct document.\n\nTrademarks This project may contain trademarks or logos for projects,\nproducts, or services.  Authorized use of Microsoft trademarks or logos is\nsubject to and must follow [Microsoft’s Trademark \u0026 Brand\nGuidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). \nUse of Microsoft trademarks or logos in modified versions of this project\nmust not cause confusion or imply Microsoft sponsorship.  Any use of\nthird-party trademarks or logos are subject to those third-party’s policies.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fhibernation-setup-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fhibernation-setup-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fhibernation-setup-tool/lists"}