Madic- / Sway-DE

🏠 Sway desktop environment dotfile installation for Arch Linux
MIT License
341 stars 28 forks source link

Keyboard backlight not working #1

Closed Madic- closed 3 years ago

Madic- commented 4 years ago

I am not able to enable the keyboard backlight. What I've tested with e.g. light:

~ ❯ light -L
Listing device targets:
    sysfs/backlight/intel_backlight
    sysfs/backlight/acpi_video0
    sysfs/backlight/auto
    sysfs/leds/input6::numlock
    sysfs/leds/platform::mute
    sysfs/leds/phy0-led
    sysfs/leds/tpacpi::thinklight
    sysfs/leds/input6::misc
    sysfs/leds/input6::scrolllock
    sysfs/leds/tpacpi::power
    sysfs/leds/input3::numlock
    sysfs/leds/tpacpi::standby
    sysfs/leds/input3::capslock
    sysfs/leds/tpacpi::thinkvantage
    sysfs/leds/input3::scrolllock
    sysfs/leds/input6::capslock
    sysfs/leds/tpacpi::kbd_backlight
    sysfs/leds/platform::micmute
    util/test/dryrun
~ ❯ light -s sysfs/leds/tpacpi::kbd_backlight -A 5 -v1
helpers.c:21: Error: could not open '/home/mne-adm/.config/light/targets/sysfs/leds/tpacpi::kbd_backlight/minimum' for reading
helpers.c:21: Error: Verify it exists with the right permissions

Shouldn't it change /sys/class/leds/tpacpi::kbd_backlight/brightness?

Also setting via dbus no luck

~ ❯      dbus-send --type=method_call --print-reply=literal --system       \
>         --dest='org.freedesktop.UPower'                               \
>         '/org/freedesktop/UPower/KbdBacklight'                        \
>         'org.freedesktop.UPower.KbdBacklight.SetBrightness'           \
>         "int32:10"
~ ❯ 

Getting value via dbus

~ ❯      dbus-send --type=method_call --print-reply=literal --system         \
>         --dest='org.freedesktop.UPower'                                 \
>         '/org/freedesktop/UPower/KbdBacklight'                          \
>         'org.freedesktop.UPower.KbdBacklight.GetBrightness'             \
>         | awk '{print $2}'
2
~ ❯

Getting the maximal value via dbus

~ ❯     dbus-send --type=method_call --print-reply=literal --system       \
>         --dest='org.freedesktop.UPower'                               \
>         '/org/freedesktop/UPower/KbdBacklight'                        \
>         'org.freedesktop.UPower.KbdBacklight.GetMaxBrightness'        \
>         | awk '{print $2}'
2
~ ❯
Madic- commented 3 years ago

Does work without a problem.