https://bugs.winehq.org/show_bug.cgi?id=53852
Bug ID: 53852 Summary: Launching wine resets DualShock 4 LED to default blue Product: Wine Version: 7.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: hid Assignee: wine-bugs@winehq.org Reporter: andysem@mail.ru Distribution: ---
Launching any application under wine (e.g. winecfg) resets DualShock 4 LED to the default light blue light. Happens every time. The gamepad is connected over Bluetooth and its LED is disabled upon connecting by my udev rules, so wine is constantly breaking my configuration.
Steps to reproduce:
1. Connect DualShock 4 over Bluetooth. 2. Turn off the LED by "for f in /sys/bus/hid/devices/0005:054C:05C4.000D/leds/*; do echo 0 > $f/brightness; done". Here, 0005:054C:05C4.000D is the gamepad device id. 3. Run "wine winecfg".
This is on Kubuntu 22.04, Linux kernel 5.15.0-52-lowlatency.
Interestingly, even after running wine, all the "brightness" files still report 0. It looks like wine is somehow resetting the controller LED to the default state without writing to these control files. In order to turn the LED off again after that one has to write a non-zero value to the brightness files first, and then zero again.