Reading controller data
dualsensectl allows setting the data, but is there a way of reading it? (besides info & battery)
I.e., obtaining the state of microphone's mute/led, lightbar state/colors, and so on.
All of that is contained in the usual HID report of the controller. Linux's hid-playstation already natively parses most of that.
Neat, would be great to integrate it into dualsensectl output
Battery is already there, what exactly do you want to see?
Everything [that can be set via dualsensectl, at least], basically.
I'm making a tray icon module with quickshell for the connected dualsense devices and would like to display the current state.
If I could simply e.g. dualsensectl -d DEVICE --get lightbar/microphone/etc. to obtain the state, it'd be quite useful.
Someone'll need to implement that. It's fairly simple though, as the report parsing code is already there (for battery reading), one'll simply need to extend it to other cases. Maybe even report all features at once, as they're coming in as a single report anyway.
@SoSeDiK I've put a groundwork for you: #48.
I must warn you there's actually no lightbar data there.