{"id":17168575,"url":"https://github.com/jfrimmel/acer-switch-battery-module","last_synced_at":"2026-03-15T16:39:16.917Z","repository":{"id":98820068,"uuid":"131976183","full_name":"jfrimmel/Acer-Switch-Battery-Module","owner":"jfrimmel","description":"A Linux kernel module for reading the battery state on the Acer Switch 11 laptop","archived":false,"fork":false,"pushed_at":"2018-05-17T17:24:41.000Z","size":30,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-13T15:45:41.811Z","etag":null,"topics":["acer","acer-switch-11","battery","battery-information","i2c","kernel-module","laptop","linux","linux-kernel-module","smbus"],"latest_commit_sha":null,"homepage":null,"language":"C","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/jfrimmel.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,"zenodo":null}},"created_at":"2018-05-03T09:59:32.000Z","updated_at":"2022-11-08T20:41:25.000Z","dependencies_parsed_at":"2023-04-13T15:22:36.766Z","dependency_job_id":null,"html_url":"https://github.com/jfrimmel/Acer-Switch-Battery-Module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jfrimmel/Acer-Switch-Battery-Module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrimmel%2FAcer-Switch-Battery-Module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrimmel%2FAcer-Switch-Battery-Module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrimmel%2FAcer-Switch-Battery-Module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrimmel%2FAcer-Switch-Battery-Module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfrimmel","download_url":"https://codeload.github.com/jfrimmel/Acer-Switch-Battery-Module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrimmel%2FAcer-Switch-Battery-Module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717431,"owners_count":26033539,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["acer","acer-switch-11","battery","battery-information","i2c","kernel-module","laptop","linux","linux-kernel-module","smbus"],"created_at":"2024-10-14T23:12:14.133Z","updated_at":"2025-10-07T03:41:23.884Z","avatar_url":"https://github.com/jfrimmel.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Battery driver for the Acer Switch 11 laptop.\n\nA kernel module that reads the battery and AC plug status and reports them to\nthe Linux kernel as a power supply.\n\n## Table of Contents\n- [Reasons for this module](#reasons-for-this-module)\n- [Usage](#usage)\n    - [Prerequisites](#prerequisites)\n    - [Compile](#compile)\n    - [Loading the module](#loading-the-module)\n    - [Unloading the module](#unloading-the-module)\n- [Notes](#notes)\n\n## Reasons for this module\nNeither the battery nor the mains plug of that laptop were correctly detected by\nLinux, since the BIOS provides a (very) broken DSDT. Since I was not able to fix\nthe table, I wrote this kernel module in order to provide the battery\ninformation.\n\nSee [this topic](https://bbs.archlinux.org/viewtopic.php?id=232640) in the Arch\nLinux forums.\n\n## Usage\nSince this is not an official kernel module you need to compile and load it\nyourself. Don't worry, it is not complicated.\n\nNote that you need to compile the module on every kernel update!\n\n### Prerequisites\nYou need a compiler and the Linux headers for your Kernel version installed.\n\nFor _pacman_ based systems:\n```\n# pacman -S linux-headers\n```\nFor _APT_ based systems:\n```\n# apt-get install linux-headers-$(uname -r)\n```\n\n### Compile\nIt is as simple as cloning the repository and typing \"make\":\n```\n$ git clone https://github.com/jfrimmel/Acer-Switch-Battery-Module.git\n$ cd Acer-Switch-Battery-Module\n$ make\n```\nThere shouldn't be any errors and a file \"battery-module.ko\" (along some others)\nis created. This is your kernel module.\n\n### Loading the module\nIt can be loaded using the following command:\n```\n# insmod battery-module.ko\n```\nNote that _modprobe_ is generally a better choice than _insmod_ since _modprobe_\nresolves dependencies, but this module has no dependencies and so _insmod_ can\nbe used as well.\n\n### Unloading the module\nIf you wish to remove the module at some point you simple execute the following\ncommand:\n```\n# rmmod battery-module.ko\n```\nYou don't need to do this under normal circumstances.\n\n## Notes\nIf there is a battery detected without this module you should unload the driver\nfor it before loading this kernel module.\n\nSuch a driver is most likely the module _battery_ (for ACPI batteries) and _ac_\n(for ACPI AC adapters). They could either unloaded using _rmmod_ or blacklisted.\n\nTo blacklist those modules execute the following command and reboot:\n```\n# echo 'blacklist battery' \u003e\u003e /etc/modprobe.d/blacklist.conf\n# echo 'blacklist ac' \u003e\u003e /etc/modprobe.d/blacklist.conf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfrimmel%2Facer-switch-battery-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfrimmel%2Facer-switch-battery-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfrimmel%2Facer-switch-battery-module/lists"}