{"id":17237270,"url":"https://github.com/hjdskes/powersave","last_synced_at":"2025-04-14T02:31:16.077Z","repository":{"id":3546168,"uuid":"4606514","full_name":"Hjdskes/powersave","owner":"Hjdskes","description":"Linux power save settings, compatible with systemd","archived":false,"fork":false,"pushed_at":"2017-06-07T09:04:59.000Z","size":54,"stargazers_count":138,"open_issues_count":1,"forks_count":21,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-27T16:40:38.922Z","etag":null,"topics":["battery","laptop","linux","powersave","ssd","systemd"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hjdskes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-09T10:36:27.000Z","updated_at":"2025-03-06T17:17:40.000Z","dependencies_parsed_at":"2022-09-06T05:42:04.952Z","dependency_job_id":null,"html_url":"https://github.com/Hjdskes/powersave","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hjdskes%2Fpowersave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hjdskes%2Fpowersave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hjdskes%2Fpowersave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hjdskes%2Fpowersave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hjdskes","download_url":"https://codeload.github.com/Hjdskes/powersave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248810883,"owners_count":21165195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["battery","laptop","linux","powersave","ssd","systemd"],"created_at":"2024-10-15T05:42:25.386Z","updated_at":"2025-04-14T02:31:15.841Z","avatar_url":"https://github.com/Hjdskes.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Powersave\n=========\n\nThese files enable power saving on Linux. Note that these settings are applied regardless of whether\nthe system is on battery or AC. Power saving is applied to:\n\n* Audio card (`modprobe.d/99-powersave.conf`)\n* Backlight brightness (`rules.d/50-powersave-brightness.rules`)\n* Bluetooth (disabled completely: `modprobe.d/blacklist.conf`)\n* NMI watchdog (`sysctl.d/99-powersave.conf`)\n* Writeback times (`sysctl.d/99-powersave.conf`)\n* Laptop mode (`sysctl.d/99-powersave.conf`)\n* Network interfaces, both wired and wireless (`modprobe.d/50-powersave-net.rules`)\n* Buses (ASPM, PCI, USB, SATA ALPM, `tmpfiles.d/powersave.conf` and `modprobe.d/50-powersave-[pci|usb|sata].rules`)\n\nPower saving is *not* applied to:\n* HDD, since it is replaced with an SSD. SSD power usage is simply ignored, since I have yet to look\ninto this (and I believe it isn't that high). Tips are welcome!\n* CPU frequencies, since the default is fine (using the `intel_pstate` driver).\n* Swappiness, since I don't use a swap partition.\n\nYou might also want to edit `/etc/fstab` to add `commits=\u003cseconds\u003e` to the `options` column of your\npartitions. See the [mount man page][man-mount].\n\nIt is fit for my own laptop (Lenovo Thinkpad Edge E130), which means that this script will **not**\nwork on every setup. Please **check** this before running it on your computer! Things might break\notherwise and I am **not** responsible for any damage that has been done.\n\nTODO\n----\n\n* `git grep TODO`\n* Test the suspend-on-low-battery udev rule (`rules.d/50-powersave-suspend.rules`)\n* SSD powersaving?\n  * Apply noop schedular in powersave instead of boot config?\n\nInstallation\n------------\n\nThe script will need the following dependencies to run:\n* iw\n* ip\n* ethtool\n* udev\n* systemd\n\nJust run `make install` as root to install the whole set.\n\nTo enable the ASPM setting to work, append `pcie_aspm=force` to your kernel parameter list. However,\nbefore doing so, verify that all PCIe hardware on your system support ASPM!\n\n  [man-mount]: http://man7.org/linux/man-pages/man8/mount.8.html#FILESYSTEM-INDEPENDENT_MOUNT%20OPTIONS\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjdskes%2Fpowersave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhjdskes%2Fpowersave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjdskes%2Fpowersave/lists"}