{"id":48891538,"url":"https://github.com/penguinztech/battery-wattage-gnome","last_synced_at":"2026-04-16T08:05:43.896Z","repository":{"id":344720653,"uuid":"1182836896","full_name":"PenguinzTech/battery-wattage-gnome","owner":"PenguinzTech","description":"GNOME Shell extension showing real-time battery and charger wattage in the top panel. Designed for Snapdragon X Elite but works on any Linux laptop.","archived":false,"fork":false,"pushed_at":"2026-03-16T02:33:22.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-16T13:06:44.030Z","etag":null,"topics":["arm64","battery","gnome-extension","gnome-shell","linux","power-monitor","snapdragon-x-elite","ubuntu","usb-pd","wattage"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/PenguinzTech.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T02:16:15.000Z","updated_at":"2026-03-16T02:33:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/PenguinzTech/battery-wattage-gnome","commit_stats":null,"previous_names":["penguinztech/battery-wattage-gnome"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/PenguinzTech/battery-wattage-gnome","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PenguinzTech%2Fbattery-wattage-gnome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PenguinzTech%2Fbattery-wattage-gnome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PenguinzTech%2Fbattery-wattage-gnome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PenguinzTech%2Fbattery-wattage-gnome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PenguinzTech","download_url":"https://codeload.github.com/PenguinzTech/battery-wattage-gnome/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PenguinzTech%2Fbattery-wattage-gnome/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31876860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["arm64","battery","gnome-extension","gnome-shell","linux","power-monitor","snapdragon-x-elite","ubuntu","usb-pd","wattage"],"created_at":"2026-04-16T08:04:56.859Z","updated_at":"2026-04-16T08:05:43.888Z","avatar_url":"https://github.com/PenguinzTech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Battery Wattage — GNOME Shell Extension\n\nShows real-time battery and charger wattage in the GNOME top panel. Designed for Qualcomm Snapdragon X Elite (X1E80100) laptops but works on any Linux laptop with standard power supply sysfs.\n\n## What It Shows\n\n| State | Display | Meaning |\n|-------|---------|---------|\n| Charging (PD) | `🔋38.5W ⚡86W` | 38.5W to battery, 86W total from charger |\n| Charging (no UCSI) | `🔋38.5W` | Battery power only |\n| Discharging | `🔋-12.3W` | 12.3W power draw from battery |\n| Full/Idle | `🔋` | Plugged in, not charging |\n\n- **🔋** = power going to/from the battery\n- **⚡** = total power from the charger (estimated from UCSI current × 20V)\n\n## Screenshots\n\n```\n┌──────────────────────────────────────────────────────┐\n│  Activities    🔋38.5W ⚡86W     🔊  🌐  ⏻  3:42 PM │\n└──────────────────────────────────────────────────────┘\n```\n\n## Installation\n\n### Quick Install\n\n```bash\ngit clone https://github.com/PenguinzTech/battery-wattage-gnome.git\ncd battery-wattage-gnome\n./install.sh\n```\n\nThen **log out and back in**, and enable:\n\n```bash\ngnome-extensions enable battery-wattage@x1e-pd-fix\n```\n\n### Manual Install\n\n```bash\nmkdir -p ~/.local/share/gnome-shell/extensions/battery-wattage@x1e-pd-fix\ncp extension.js metadata.json ~/.local/share/gnome-shell/extensions/battery-wattage@x1e-pd-fix/\n# Log out and back in\ngnome-extensions enable battery-wattage@x1e-pd-fix\n```\n\n### Uninstall\n\n```bash\n./uninstall.sh\n# Log out and back in\n```\n\n## Configuration\n\nEdit `extension.js` to customize:\n\n| Constant | Default | Description |\n|----------|---------|-------------|\n| `BAT_PATH` | `/sys/class/power_supply/qcom-battmgr-bat` | Battery sysfs path. Change for non-Qualcomm laptops (e.g. `BAT0`). |\n| `UCSI_PATH` | `/sys/class/power_supply/ucsi-source-psy-pmic_glink.ucsi.01` | UCSI charger sysfs path for total wattage calculation. |\n| `UPDATE_INTERVAL` | `5` | Refresh interval in seconds. |\n\n### For Non-Snapdragon Laptops\n\nChange `BAT_PATH` to your battery's sysfs path:\n\n```bash\n# Find your battery path\nls /sys/class/power_supply/ | grep -i bat\n# Usually: BAT0, BAT1, or similar\n```\n\nThen edit `extension.js`:\n```javascript\nconst BAT_PATH = '/sys/class/power_supply/BAT0';\n```\n\n## Requirements\n\n- GNOME Shell 49+ (Ubuntu 25.10)\n- Standard Linux power supply sysfs (`/sys/class/power_supply/`)\n\n## How It Works\n\nReads `/sys/class/power_supply/*/power_now` directly from sysfs every 5 seconds. For the total charger wattage, it reads the UCSI (USB Type-C System Interface) current draw and multiplies by 20V (standard USB PD voltage).\n\nNo dependencies, no polling daemons, no UPower — just direct sysfs reads from a lightweight GJS extension.\n\n## Related\n\n- [x1e-pd-fix](https://github.com/PenguinzTech/x1e-pd-fix) — Fix slow USB-C PD charging on Snapdragon X Elite laptops (12W → 61W)\n\n## License\n\nGPL-2.0-only\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpenguinztech%2Fbattery-wattage-gnome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpenguinztech%2Fbattery-wattage-gnome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpenguinztech%2Fbattery-wattage-gnome/lists"}