chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

Make other application aware of controller battery state #136

Open b2ag opened 7 years ago

b2ag commented 7 years ago

Hi,

this is a feature request to somehow give other programs an interface to query a DS4 controller's battery state. One could for example create an extra analog axis in the virtual device which represents current battery charge level.

Br, Thomas

Blackclaws commented 6 years ago

Battery charge level is already available from the kernel itself. Its created under /sys/devices etc. look into journalctl after connecting.