Skip to content

Monitor the battery level of a Dual Shock 4 controller

License

Notifications You must be signed in to change notification settings

sug0/ds4batlevel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ds4batlevel
===========

A very simple program to monitor the battery level of a Dual Shock 4
controller in Linux systems.

compiling
---------

$ cc -O1 -o ds4batlevel ds4batlevel.c `pkgconf --libs --cflags libnotify`

configuring
-----------

Look for the Dual Shock 4 controller in `/sys/class/power_supply`, then
append `capacity` to the path.

For instance:

/sys/class/power_supply/sony_controller_battery_1c:66:6d:d0:1e:b9/capacity

Then copy `config.def.h` into `config.h` and edit the path appropriately.

About

Monitor the battery level of a Dual Shock 4 controller

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages