kevva / kevva/linux-battery

Assumed battery location on Linux systems

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
14
Forks
0
PR merge metrics
No merged PRs in 30d

Description

This module, and consequently the battery-life module, do not work on all Linux-based systems due to a hard-coded expectation of the location of the battery in the filesystem (ie. `/org/freedesktop/UPower/devices/`). For instance, my Arch Linux machine uses `/sys/class/power_supply/BAT0/`, although some systems may still use the now deprecated (as of kernel 2.6.24) `/proc` for such information.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the module and the battery-life module for the hard-coded /org/freedesktop/UPower/devices/ path. Compare the reported UPower path with /sys/class/power_supply/BAT0/ and the deprecated /proc location, then determine the supported discovery behavior and how it should be tested. Done means battery information works across the relevant Linux layouts.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, linux
Domain
operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.