kevva/linux-battery

Assumed battery location on Linux systems

Open

#2 opened on Aug 5, 2015

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (0 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (14 stars)
PR merge metrics
 (PR metrics pending)

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