It took quite a while to do a full compile, just to be safe. On Fri, 17 Jun 2022 at 19:07, Hans de Goede <hdegoede@xxxxxxxxxx> wrote: > > > Looking at this has also brought up an unrelated backlight question: > > Kenneth, since you have acpi-video reporting keypresses you will > likely also have an acpi_video (or perhaps a native intel) backlight > under /sys/class/backlight and I noticed that panasonic-laptop > uncondirionally registers its backlight so you may very well end > up with 2 backlight controls under /sys/class/backlight, which > we generally try to avoid (so that userspace does not have to > guess which one to use). > > Can you do: > ls /sys/class/backlight root@jaguar:~# ls -l /sys/class/backlight/ total 0 lrwxrwxrwx 1 root root 0 Jun 19 17:26 acpi_video0 -> ../../devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/ lrwxrwxrwx 1 root root 0 Jun 19 17:26 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/ lrwxrwxrwx 1 root root 0 Jun 19 18:48 panasonic -> ../../devices/virtual/backlight/panasonic/ > > and let me know the output? > > Also if there are 2 backlights there then please do: > cat /sys/class/backlight/<name>/max_brightness > to find out the range (0-value) root@jaguar:~# cat /sys/class/backlight/acpi_video0/max_brightness 20 root@jaguar:~# cat /sys/class/backlight/intel_backlight/max_brightness 6375000 root@jaguar:~# cat /sys/class/backlight/panasonic/max_brightness 21 > > and then try if they both work by doing: > > echo $number > /sys/class/backlight/<name>/brightness > > with different $number values in the range and see > if this actually changes the brightness. /sys/class/backlight/acpi_video0/brightness: works /sys/class/backlight/intel_backlight/brightness: works /sys/class/backlight/panasonic/brightness: does not work The mute, volume up/down keys are still duplicated by atkbd after applying 0005-platform-x86-panasonic-laptop-filter-out-duplicate-v.patch. -- Kenneth