wluma icon indicating copy to clipboard operation
wluma copied to clipboard

[Feature request]: Wildcard support in backlight path.

Open Mic1e opened this issue 2 years ago • 3 comments

Please describe your feature request

I have an amd cpu in my laptop and the path to the backlight device changes from boot to boot. The device changes names from "amdgpu_bl0" to "amdgpu_bl1" and so on. This makes it impossible to configure wluma as it cannot find the device after a reboot.

Therefore I think it would be nice to be able to use a wildcard in the path such as "amdgpu_bl*" and have wluma use the first directory that matches this but it does not seem to work/be implemented.

Mic1e avatar Jul 03 '22 01:07 Mic1e

This sounds like a good idea, in fact we have this implemented for iio light sensor (exactly because of this reason), but you are right not for anything else.

In the iio the way it is implemented is not using wildcard, but configuring parent folder (which is always static), and it is then a hardcoded logic of the app to enumerate child folders.

We can try the same, or we can switch to wildcards in both places, whatever works best, as long as it's consistent 👍

maximbaz avatar Jul 04 '22 21:07 maximbaz

Same issue here. How's the status?

MarkGhanz avatar Nov 10 '23 16:11 MarkGhanz

Nobody is working on it at the moment, if you'd like to try your hand at it, you are most welcome - reach out if you have any questions, here or in a PR 😉

maximbaz avatar Nov 10 '23 17:11 maximbaz