{"id":22136692,"url":"https://github.com/wh1t3h47/cpu_powersave","last_synced_at":"2026-04-10T15:52:05.733Z","repository":{"id":114041100,"uuid":"372073418","full_name":"wh1t3h47/cpu_powersave","owner":"wh1t3h47","description":"Bash script to control CPU power consumption, featuring ACPI AC auto detection and Intel Turbo Technology","archived":false,"fork":false,"pushed_at":"2021-07-19T19:27:55.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T15:34:21.262Z","etag":null,"topics":["acpi","bash","cpu","governor","intel","laptop","linux","linux-shell","modprobe","posix","powersave","pstate","python","shell","shell-script","systemd"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wh1t3h47.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-29T21:36:58.000Z","updated_at":"2021-12-07T17:36:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"6730d842-25bc-4734-9c62-d023446025ab","html_url":"https://github.com/wh1t3h47/cpu_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/wh1t3h47%2Fcpu_powersave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wh1t3h47%2Fcpu_powersave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wh1t3h47%2Fcpu_powersave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wh1t3h47%2Fcpu_powersave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wh1t3h47","download_url":"https://codeload.github.com/wh1t3h47/cpu_powersave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245249229,"owners_count":20584497,"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":["acpi","bash","cpu","governor","intel","laptop","linux","linux-shell","modprobe","posix","powersave","pstate","python","shell","shell-script","systemd"],"created_at":"2024-12-01T19:24:32.205Z","updated_at":"2025-12-30T23:27:21.124Z","avatar_url":"https://github.com/wh1t3h47.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPU Powersave\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"Shell Script\" src=\"https://img.shields.io/badge/shell_script-%23121011.svg?style=for-the-badge\u0026logo=gnu-bash\u0026logoColor=white\"/\u003e\n  \u003cimg alt=\"Linux\" src=\"https://img.shields.io/badge/Linux-FCC624?style=for-the-badge\u0026logo=linux\u0026logoColor=black\"\u003e\n  \u003cimg alt=\"Kali Linux\" src=\"https://img.shields.io/badge/Kali_Linux-557C94?style=for-the-badge\u0026logo=kali-linux\u0026logoColor=white\" /\u003e\n\u003c/div\u003e\n\n\u003e A small bash utility to scale down or up CPU power consumption\n\u003e\n\u003e Pequena utilidade escrita em bash para aumentar ou diminuir o consumo de energia da CPU\n\u003e\n\u003e \u003cp textalign=\"right\" align=\"right\"\u003e By wh1t3h47 \u003c/p\u003e\n\u003e\n\u003e \u003cp textalign=\"right\" align=\"right\"\u003e (Antônio Martos Harres) \u003c/p\u003e\n\u003e \n\u003e \u003cp textalign=\"right\" align=\"right\"\u003e - https://github.com/wh1t3h47 \u003c/p\u003e\n\n## Features\n1. Automatically detects if charger is plugged and acts accordingly to the context;\n2. Set your own limits for maximium clock, core count and governor;\n3. Control your CPU whenever a power source change and automatically apply the `battery` or `AC` profile.\n\n## WARNINGS:\n1. This script runs as **root**, so make sure it's owned by user and group root and it's not writable by any other user, otherwise you're installing a tick bomb inside your system;\n2. Do **NEVER** set a script with suid bit: If your shell script has suid priviledge, it's a backdoor waiting to be exploited, any user could gain root without password.\n\n## Dependencies:\n- cpufreq\n- cpufreqd\n- lscpu\n- Linux\n\n## TODO\n- [x] 1. Make disable_pstate a parameter\n- [x] 2. Respect max pstate clock as well\n- [x] 3. Find a better solution to detect max clock speed\n- [ ] 4. Implement systemd service\n- [x] 5. Make governor a parameter\n- [ ] 6. modprobe all governors\n- [ ] 7. Create a way to configure CPU settings for each amount of battery\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwh1t3h47%2Fcpu_powersave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwh1t3h47%2Fcpu_powersave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwh1t3h47%2Fcpu_powersave/lists"}