Public bug reported:

Summary
-----------

The brightness keys (F2 and F3) on my HP Pavilion Gaming Laptop
15-dk0xxx do not work as brightness controls in Linux Mint.

When pressed without Fn, both keys generate the same unknown scan code
(`e02b`), which the Linux `atkbd` driver rejects.

The keys work correctly in Windows, and the brightness slider in Linux
Mint works normally. This suggests a keyboard scan-code or firmware/ACPI
handling issue rather than a problem with the backlight itself.

System information
---------------------

- Laptop: HP Pavilion Gaming Laptop 15-dk0xxx
- Manufacturer: HP
- Motherboard: HP 85FC
- Operating system: Linux Mint 22.3 (Zena)
- Ubuntu base: Ubuntu 24.04 LTS (Noble)
- Architecture: amd64
- Kernel: 7.0.0-43-generic
- Kernel package: `linux-image-7.0.0-43-generic`
- Installed kernel package version: `7.0.0-43.43~24.04.1`
- Kernel version signature: `Ubuntu 7.0.0-43.43~24.04.1-generic 7.0.14`
- BIOS: Insyde F.68
- Graphics: Intel UHD Graphics 630 and NVIDIA GeForce GTX 1650 Mobile
- Keyboard driver: `atkbd` (built into the kernel)
- Source package: `linux`

Expected behaviour
-----------------------

With BIOS Action Keys Mode enabled, pressing F2 should decrease screen
brightness and pressing F3 should increase screen brightness without
needing to hold Fn.

This is the behaviour I get in Windows.

Actual behaviour
------------------

In Linux Mint:

- F2 without Fn does not decrease brightness.
- F3 without Fn does not increase brightness.
- Fn+F2 and Fn+F3 are detected as ordinary F2 and F3 key presses.
- The brightness slider in Cinnamon's Power Management settings works and 
changes the actual display brightness.

I have manually assigned Fn+F2 and Fn+F3 to the brightness decrease and
increase actions using Cinnamon's native Keyboard Shortcuts settings.
Both shortcuts work correctly.

This confirms that Cinnamon can execute the brightness actions when it
receives the expected key events, but the original brightness-key
presses are not being recognised correctly.


Previous behaviour
------------------------

The brightness keys previously worked as expected on this laptop.
Pressing F2 decreased screen brightness and pressing F3 increased screen
brightness without needing to hold Fn.

The issue is now present in Linux Mint 22.3. The exact kernel version or
update that introduced the problem has not yet been identified.


Keyboard input and scan-code findings
----------------------------------------

Using `evtest` on the built-in AT Translated Set 2 keyboard (`event3`),
I observed:

| Key combination | Observed result |
|---|---|
| F2 without Fn | `MSC_SCAN` value `ab`; no `EV_KEY` event |
| F3 without Fn | `MSC_SCAN` value `ab`; no `EV_KEY` event |
| Fn+F2 | Scan code `3c`, `KEY_F2` |
| Fn+F3 | Scan code `3d`, `KEY_F3` |

Both brightness keys therefore produce the same scan code when pressed
without Fn.

The kernel log reports:

`atkbd serio0: Unknown key released (translated set 2, code 0xab on
isa0060/serio0).`

`atkbd serio0: Unknown key pressed (translated set 2, code 0xab on
isa0060/serio0).`

It also suggests using:

`setkeycodes e02b <keycode>`

to make the key known.

However, because both brightness keys produce the same scan code,
assigning that scan code to either brightness-up or brightness-down
would not distinguish between the two keys.

Additional troubleshooting
-------------------------------

- Confirmed that BIOS Action Keys Mode is enabled.
- Confirmed that F2 and F3 work as brightness controls in Windows.
- Confirmed that the Cinnamon brightness slider changes the actual backlight.
- Confirmed that `/sys/class/backlight/intel_backlight` exists.
- Confirmed that the `hp_wmi` module is loaded.
- Checked the HP WMI hotkey input device; no brightness-key events were 
observed there.
- Checked `acpi_listen`; no brightness ACPI events were reported for the 
original brightness-key presses.
- Checked the embedded controller GPE counter (`gpe17`) before and after 
pressing the brightness keys; it did not change.
- Restarted the system and tested on both kernel versions `7.0.0-42-generic` 
and `7.0.0-43-generic`. The issue persists on both.
- Checked the udev hardware database mappings for the keyboard; no mapping for 
scan code `ab` was found.
- Confirmed that the issue is not limited to the current kernel version.

Relevant kernel investigation
------------------------------------

I found an existing kernel quirk:

`cd4aece493f99f95d41edcce32927d70a5dde923`

ACPI: EC: Add quirk for the HP Pavilion Gaming 15-dk1xxx

This quirk applies to the HP Pavilion Gaming Laptop 15-dk1xxx and
addresses issues involving the lid switch, rfkill and brightness
hotkeys.

My laptop identifies itself as an HP Pavilion Gaming Laptop 15-dk0xxx,
so it does not appear to match that DMI entry.

I also found an older Ubuntu report concerning brightness control on the
HP Pavilion Gaming Laptop 15-dk0xxx:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1934464

Diagnostic attachments
----------------------------

The following diagnostic files have been generated in accordance with
the Ubuntu kernel bug reporting guidelines:

1. `version.log` – output of `cat /proc/version_signature`.

   Contents:

   `Ubuntu 7.0.0-43.43~24.04.1-generic 7.0.14`

2. `lspci-vnvn.log` – output of `sudo lspci -vnvn`.

These files are attached separately to this bug report.

Request
--------------

Could someone investigate whether this laptop model requires an
additional ACPI embedded-controller or DMI-specific kernel quirk?

In particular:

1. Why do both brightness keys generate the same unknown scan code (`e02b`)?
2. Is the embedded controller or ACPI firmware failing to report the correct 
brightness-key events?
3. Could a DMI-specific quirk similar to the existing HP Pavilion Gaming 
15-dk1xxx fix be applicable to the 15-dk0xxx?

I can provide additional diagnostic output if needed.

Thank you.

** Affects: ubuntu
     Importance: Undecided
         Status: New

** Attachment added: "Zip file contains both the version.log and the 
lspci-vnvn.log"
   
https://bugs.launchpad.net/bugs/2175402/+attachment/6019712/+files/diagnostics.zip

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175402

Title:
  HP Pavilion Gaming Laptop 15-dk0xxx – Brightness hotkeys generate
  identical unknown scan codes (`e02b`) in Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/2175402/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to