linux: up-enumerator-udev: enumerate the LED subsystem

The LED udev subsystem was added to the list to watch the
keyboard backlight LED device events.
This commit is contained in:
Kate Hsuan 2025-03-11 20:33:15 +08:00
parent 6bfc3d6100
commit 4ba78c54a9

View file

@ -424,8 +424,8 @@ up_enumerator_udev_initable_init (UpEnumerator *enumerator)
guint i;
const gchar **subsystems;
/* List "input" first just to avoid some sibling hotplugging later */
const gchar *subsystems_no_wup[] = {"input", "power_supply", "usb", "usbmisc", "sound", NULL};
const gchar *subsystems_wup[] = {"input", "power_supply", "usb", "usbmisc", "sound", "tty", NULL};
const gchar *subsystems_no_wup[] = {"input", "power_supply", "usb", "usbmisc", "sound", "leds", NULL};
const gchar *subsystems_wup[] = {"input", "power_supply", "usb", "usbmisc", "sound", "tty", "leds", NULL};
config = up_config_new ();
if (up_config_get_boolean (config, "EnableWattsUpPro"))