On Fri, 21 Jun 2024, at 7:50 PM, Devin Bayer wrote: > > Thanks for the review, Luke. > > On 20/06/2024 23.40, Luke Jones wrote: > >> > >> + if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_CAMERA_LED)) { > >> + asus->camera_led.name = "platform::camera"; > > > > What do other devices label their camera LED as? The one I could find appears to use `<vendor>::camera`. So maybe `asus::camera` would be better? This also keeps in line with `asus::kbd_backlight`. > > I reasoned it would be better to keep the name generic is so out of the > box desktops could toggle the camera and the LED when KEY_CAMERA is > pressed, just like with micmute and mute. This might be true if one relies solely on the filesystem path, which in any case is a bad move and likely to cause the moon to drift away from earth eventually. Most Linux software will use the udev libraries available to filter devices according to any amount of criteria (and if they are not they *really should* - udev is pretty powerful and freeing. I've tried finding prior art again and there's just not a lot to go on. ".name = "platform" shows very little except a few micmute labels. "::cam" gets one entry. So my guess is this is still a very new thing or it's not important enough to be used.. In any case looking at the rest of the possible LED entries, mostly those following keyboard, the last part of the name being sensible is what counts the most (e.g "scrolllock", "camera"). This might be setting a precedent, and if so I'd be happy with "::camera" in the LED class conveying expectations well enough.