asus-laptop: Fn hotkeys no longer work on ThinkPad SL400 after 378500dc1313 ("platform/x86: asus-laptop: Register ACPI notify handler directly")
Control: forwarded -1 https://lore.kernel.org/regressions/[email protected]
Control: tags -1 + upstream
Hi
In Debian, in https://bugs.debian.org/1146124, Jun Mo, reported the following, with a bisection result:
Quoted 55 lines · Jun MO
Dear Maintainer,
Fn hotkeys on Lenovo ThinkPad SL400, which are supported by the module asus-laptop, no longer work starting from Linux 7.1. Normally when those keys/key combinations are pressed, acpi_listen/kacpimon/"evtest
/dev/input/by-path/platform-asus_laptop-event" will capture related events, for example:$ acpi_listen ^[[1;2Photkey ATK0101:00 00000032 00000000 button/mute MUTE 00000080 00000000 K ^CStarting from Linux 7.1, there are not any related event captured by those command.
Using snapshot.debian.org, I found out that the last working kernel version is 7.0.14-1 while the first not working version is 7.1~rc2-1~exp1.
Following instructions in [1] and using
/boot/config-7.0.14+deb14-amd64, a bisect resulted in:git bisect start
# status: waiting for both 'good' and 'bad' commits
# good: [458c6079fc1d41d564c37679c8ace02cd83ee817] Linux 7.0.14
git bisect good458c6079fc1d41d564c37679c8ace02cd83ee817
# status: waiting for 'bad' commit, 1 'good' commit known
# bad: [7fd2df204f342fc17d1a0bfcd474b24232fb0f32] Linux 7.1-rc2
git bisect bad7fd2df204f342fc17d1a0bfcd474b24232fb0f32
# good: [028ef9c96e96197026887c0f092424679298aae8] Linux 7.0
git bisect good028ef9c96e96197026887c0f092424679298aae8
# good: [334fbe734e687404f346eba7d5d96ed2b44d35ab] Merge tag 'mm-stable-2026-04-13-21-45' ofgit://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
git bisect good334fbe734e687404f346eba7d5d96ed2b44d35ab
# good: [cdd4dc3aebeab43a72ce0bc2b5bab6f0a80b97a5] Merge tag 'ntfs-for-7.1-rc1-v2' ofgit://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs
git bisect goodcdd4dc3aebeab43a72ce0bc2b5bab6f0a80b97a5
# bad: [beaba8bfbb91e3bb3133eacacd62fd6fea515e34] Merge tag 'probes-v7.1-2' ofgit://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
git bisect badbeaba8bfbb91e3bb3133eacacd62fd6fea515e34
# good: [bea8d77e45a8b77f2beca1affc9aa7ed28f39b17] Merge tag 'staging-7.1-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
git bisect goodbea8d77e45a8b77f2beca1affc9aa7ed28f39b17
# bad: [065c4e67cc2c40e6dd94649e8e720096fbabd4ee] Merge tag 'uml-for-7.1-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/uml/linux
git bisect bad065c4e67cc2c40e6dd94649e8e720096fbabd4ee
# good: [4b0b946019e7376752456380b67e54eea2f10a7c] Merge tag 'for-linus' ofgit://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
git bisect good4b0b946019e7376752456380b67e54eea2f10a7c
# bad: [d6116d86e58a04a9522e349c4a27145521c01ad7] platform/x86: int3472: Use local variable for LED struct access
git bisect badd6116d86e58a04a9522e349c4a27145521c01ad7
# good: [19ebacfb442b83aa5fe75f9c6851b4edbfff3760] platform/x86: dell/dell-rbtn: Convert ACPI driver to a platform one
git bisect good19ebacfb442b83aa5fe75f9c6851b4edbfff3760
# bad: [378500dc1313e2c06a2f675bb00ab5d7880433ba] platform/x86: asus-laptop: Register ACPI notify handler directly
git bisect bad378500dc1313e2c06a2f675bb00ab5d7880433ba
# good: [03ae0a0d0973b9e584a05136aab08fee2ef8e455] platform/x86: uniwill-laptop: Implement USB-C power priority setting
git bisect good03ae0a0d0973b9e584a05136aab08fee2ef8e455
# good: [b0bcf48c74cc7f72d1b6effc7cecdae871b1785e] platform/x86:toshiba_acpi: Register ACPI notify handler directly
git bisect goodb0bcf48c74cc7f72d1b6effc7cecdae871b1785e
# good: [553b2ac59fbb434330287fde0cabc64bc6f11ceb] platform/x86:toshiba_bluetooth: Convert ACPI driver to a platform one git bisect good553b2ac59fbb434330287fde0cabc64bc6f11ceb
# good: [3a96c7915d93231e128df74901fe8fcb960b0ecb] platform/x86:toshiba_haps: Convert ACPI driver to a platform one
git bisect good3a96c7915d93231e128df74901fe8fcb960b0ecb
Quoted 3 lines
# first 'bad' commit: [378500dc1313e2c06a2f675bb00ab5d7880433ba] platform/x86: asus-laptop: Register ACPI notify handler directly[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1143721#15
#regzbot introduced: 378500dc1313e2c06a2f675bb00ab5d7880433ba #regzbot link: https://bugs.debian.org/1146124
Does this rings a bell?
Regards,
Salvatore
Am 30.08.26 um 10:42 schrieb Salvatore Bonaccorso:
Quoted 66 lines
Control: forwarded -1 https://lore.kernel.org/regressions/[email protected]
Control: tags -1 + upstreamHi
In Debian, in https://bugs.debian.org/1146124, Jun Mo, reported the following, with a bisection result:
Quoted 57 lines · Jun MO
Dear Maintainer,
Fn hotkeys on Lenovo ThinkPad SL400, which are supported by the module asus-laptop, no longer work starting from Linux 7.1. Normally when those keys/key combinations are pressed, acpi_listen/kacpimon/"evtest
/dev/input/by-path/platform-asus_laptop-event" will capture related events, for example:$ acpi_listen ^[[1;2Photkey ATK0101:00 00000032 00000000 button/mute MUTE 00000080 00000000 K ^CStarting from Linux 7.1, there are not any related event captured by those command.
Using snapshot.debian.org, I found out that the last working kernel version is 7.0.14-1 while the first not working version is 7.1~rc2-1~exp1.
Following instructions in [1] and using
/boot/config-7.0.14+deb14-amd64, a bisect resulted in:git bisect start
# status: waiting for both 'good' and 'bad' commits
# good: [458c6079fc1d41d564c37679c8ace02cd83ee817] Linux 7.0.14
git bisect good458c6079fc1d41d564c37679c8ace02cd83ee817
# status: waiting for 'bad' commit, 1 'good' commit known
# bad: [7fd2df204f342fc17d1a0bfcd474b24232fb0f32] Linux 7.1-rc2
git bisect bad7fd2df204f342fc17d1a0bfcd474b24232fb0f32
# good: [028ef9c96e96197026887c0f092424679298aae8] Linux 7.0
git bisect good028ef9c96e96197026887c0f092424679298aae8
# good: [334fbe734e687404f346eba7d5d96ed2b44d35ab] Merge tag 'mm-stable-2026-04-13-21-45' ofgit://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
git bisect good334fbe734e687404f346eba7d5d96ed2b44d35ab
# good: [cdd4dc3aebeab43a72ce0bc2b5bab6f0a80b97a5] Merge tag 'ntfs-for-7.1-rc1-v2' ofgit://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs
git bisect goodcdd4dc3aebeab43a72ce0bc2b5bab6f0a80b97a5
# bad: [beaba8bfbb91e3bb3133eacacd62fd6fea515e34] Merge tag 'probes-v7.1-2' ofgit://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
git bisect badbeaba8bfbb91e3bb3133eacacd62fd6fea515e34
# good: [bea8d77e45a8b77f2beca1affc9aa7ed28f39b17] Merge tag 'staging-7.1-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
git bisect goodbea8d77e45a8b77f2beca1affc9aa7ed28f39b17
# bad: [065c4e67cc2c40e6dd94649e8e720096fbabd4ee] Merge tag 'uml-for-7.1-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/uml/linux
git bisect bad065c4e67cc2c40e6dd94649e8e720096fbabd4ee
# good: [4b0b946019e7376752456380b67e54eea2f10a7c] Merge tag 'for-linus' ofgit://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
git bisect good4b0b946019e7376752456380b67e54eea2f10a7c
# bad: [d6116d86e58a04a9522e349c4a27145521c01ad7] platform/x86: int3472: Use local variable for LED struct access
git bisect badd6116d86e58a04a9522e349c4a27145521c01ad7
# good: [19ebacfb442b83aa5fe75f9c6851b4edbfff3760] platform/x86: dell/dell-rbtn: Convert ACPI driver to a platform one
git bisect good19ebacfb442b83aa5fe75f9c6851b4edbfff3760
# bad: [378500dc1313e2c06a2f675bb00ab5d7880433ba] platform/x86: asus-laptop: Register ACPI notify handler directly
git bisect bad378500dc1313e2c06a2f675bb00ab5d7880433ba
# good: [03ae0a0d0973b9e584a05136aab08fee2ef8e455] platform/x86: uniwill-laptop: Implement USB-C power priority setting
git bisect good03ae0a0d0973b9e584a05136aab08fee2ef8e455
# good: [b0bcf48c74cc7f72d1b6effc7cecdae871b1785e] platform/x86:toshiba_acpi: Register ACPI notify handler directly
git bisect goodb0bcf48c74cc7f72d1b6effc7cecdae871b1785e
# good: [553b2ac59fbb434330287fde0cabc64bc6f11ceb] platform/x86:toshiba_bluetooth: Convert ACPI driver to a platform one git bisect good553b2ac59fbb434330287fde0cabc64bc6f11ceb
# good: [3a96c7915d93231e128df74901fe8fcb960b0ecb] platform/x86:toshiba_haps: Convert ACPI driver to a platform one
git bisect good3a96c7915d93231e128df74901fe8fcb960b0ecb# first 'bad' commit: [378500dc1313e2c06a2f675bb00ab5d7880433ba] platform/x86: asus-laptop: Register ACPI notify handler directly
Quoted 5 lines
Quoted 1 line
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1143721#15
#regzbot introduced:
378500dc1313e2c06a2f675bb00ab5d7880433ba#regzbot link: https://bugs.debian.org/1146124Does this rings a bell?
I think i found the culprit, could you please test the attached patch?
Thanks,
Armin Wolf
Quoted 4 lines
Regards,
Salvatore
From c35694d27184dabe31672608b8ae0688e6671824 Mon Sep 17 00:00:00 2001
From: Armin Wolf <[email protected]>
Date: Sun, 30 Aug 2026 13:53:40 +0200
Subject: [PATCH] platform/x86: asus-laptop: Fix ACPI event handling
The event codes inside asus_keymap[] span a wide range from 0x02 till 0xC5, but using ACPI_DEVICE_NOTIFY prevents us from receiving event codes below 0x80.
Fix this by using ACPI_ALL_NOTIFY instead.
--- drivers/platform/x86/asus-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/asus-laptop.c +1 -1
@@ -1882,7 +1882,7 @@ static int asus_acpi_probe(struct platform_device *pdev)if (result && result != -ENODEV ) goto fail_pega_rfkill; - result =acpi_dev_install_notify_handler (device,ACPI_DEVICE_NOTIFY , + result =acpi_dev_install_notify_handler (device,ACPI_ALL_NOTIFY , asus_acpi_notify, asus);if (result) goto fail_pega_rfkill;
Signature · 1 line
2.39.5
Hi Armin Wolf,
Quoted 69 lines · Armin Wolf
Am 30.08.26 um 10:42 schrieb Salvatore Bonaccorso:
Quoted 66 lines
Control: forwarded -1 https://lore.kernel.org/regressions/[email protected]
Control: tags -1 + upstreamHi
In Debian, in https://bugs.debian.org/1146124, Jun Mo, reported the following, with a bisection result:
Quoted 57 lines · Jun MO
Dear Maintainer,
Fn hotkeys on Lenovo ThinkPad SL400, which are supported by the module asus-laptop, no longer work starting from Linux 7.1. Normally when those keys/key combinations are pressed, acpi_listen/kacpimon/"evtest
/dev/input/by-path/platform-asus_laptop-event" will capture related events, for example:$ acpi_listen ^[[1;2Photkey ATK0101:00 00000032 00000000 button/mute MUTE 00000080 00000000 K ^CStarting from Linux 7.1, there are not any related event captured by those command.
Using snapshot.debian.org, I found out that the last working kernel version is 7.0.14-1 while the first not working version is 7.1~rc2-1~exp1.
Following instructions in [1] and using
/boot/config-7.0.14+deb14-amd64, a bisect resulted in:git bisect start
# status: waiting for both 'good' and 'bad' commits
# good: [458c6079fc1d41d564c37679c8ace02cd83ee817] Linux 7.0.14
git bisect good458c6079fc1d41d564c37679c8ace02cd83ee817
# status: waiting for 'bad' commit, 1 'good' commit known
# bad: [7fd2df204f342fc17d1a0bfcd474b24232fb0f32] Linux 7.1-rc2
git bisect bad7fd2df204f342fc17d1a0bfcd474b24232fb0f32
# good: [028ef9c96e96197026887c0f092424679298aae8] Linux 7.0
git bisect good028ef9c96e96197026887c0f092424679298aae8
# good: [334fbe734e687404f346eba7d5d96ed2b44d35ab] Merge tag 'mm-stable-2026-04-13-21-45' ofgit://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
git bisect good334fbe734e687404f346eba7d5d96ed2b44d35ab
# good: [cdd4dc3aebeab43a72ce0bc2b5bab6f0a80b97a5] Merge tag 'ntfs-for-7.1-rc1-v2' ofgit://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs
git bisect goodcdd4dc3aebeab43a72ce0bc2b5bab6f0a80b97a5
# bad: [beaba8bfbb91e3bb3133eacacd62fd6fea515e34] Merge tag 'probes-v7.1-2' ofgit://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
git bisect badbeaba8bfbb91e3bb3133eacacd62fd6fea515e34
# good: [bea8d77e45a8b77f2beca1affc9aa7ed28f39b17] Merge tag 'staging-7.1-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
git bisect goodbea8d77e45a8b77f2beca1affc9aa7ed28f39b17
# bad: [065c4e67cc2c40e6dd94649e8e720096fbabd4ee] Merge tag 'uml-for-7.1-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/uml/linux
git bisect bad065c4e67cc2c40e6dd94649e8e720096fbabd4ee
# good: [4b0b946019e7376752456380b67e54eea2f10a7c] Merge tag 'for-linus' ofgit://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
git bisect good4b0b946019e7376752456380b67e54eea2f10a7c
# bad: [d6116d86e58a04a9522e349c4a27145521c01ad7] platform/x86: int3472: Use local variable for LED struct access
git bisect badd6116d86e58a04a9522e349c4a27145521c01ad7
# good: [19ebacfb442b83aa5fe75f9c6851b4edbfff3760] platform/x86: dell/dell-rbtn: Convert ACPI driver to a platform one
git bisect good19ebacfb442b83aa5fe75f9c6851b4edbfff3760
# bad: [378500dc1313e2c06a2f675bb00ab5d7880433ba] platform/x86: asus-laptop: Register ACPI notify handler directly
git bisect bad378500dc1313e2c06a2f675bb00ab5d7880433ba
# good: [03ae0a0d0973b9e584a05136aab08fee2ef8e455] platform/x86: uniwill-laptop: Implement USB-C power priority setting
git bisect good03ae0a0d0973b9e584a05136aab08fee2ef8e455
# good: [b0bcf48c74cc7f72d1b6effc7cecdae871b1785e] platform/x86:toshiba_acpi: Register ACPI notify handler directly
git bisect goodb0bcf48c74cc7f72d1b6effc7cecdae871b1785e
# good: [553b2ac59fbb434330287fde0cabc64bc6f11ceb] platform/x86:toshiba_bluetooth: Convert ACPI driver to a platform one git bisect good553b2ac59fbb434330287fde0cabc64bc6f11ceb
# good: [3a96c7915d93231e128df74901fe8fcb960b0ecb] platform/x86:toshiba_haps: Convert ACPI driver to a platform one
git bisect good3a96c7915d93231e128df74901fe8fcb960b0ecb# first 'bad' commit: [378500dc1313e2c06a2f675bb00ab5d7880433ba] platform/x86: asus-laptop: Register ACPI notify handler directly
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1143721#15
#regzbot introduced:
378500dc1313e2c06a2f675bb00ab5d7880433ba#regzbot link: https://bugs.debian.org/1146124Does this rings a bell?
I think i found the culprit, could you please test the attached patch?
Build the module with the patch(only "make -C . M=drivers/platform/x86") and load the built drivers/platform/x86/asus-laptop.ko, now the Fn hotkeys works again.
Thanks!
Regards,
Jun MO
Quoted 8 lines
Thanks,
Armin WolfQuoted 4 lines
Regards,
Salvatore
Hi Armin Wolf,
Quoted 5 lines · Mo Jun
Hi Armin Wolf,
Quoted 1 line · Armin Wolf
Quoted 7 lines
Quoted 3 lines
[...]
I think i found the culprit, could you please test the attached patch?
Build the module with the patch(only "make -C . M=drivers/platform/x86") and load the built
drivers/platform/x86/asus-laptop.ko, now the Fn hotkeys works again.
I found that after rmmod the built module, it can not be insmod again. Also the system experienced NULL pointer dereferences in acpi_bus_generate_netlink_event() which may related to the built module.
I guess these was caused that the patch only change calling to acpi_dev_install_notify_handler(), not acpi_dev_remove_notify_handler().
After change ACPI_DEVICE_NOTIFY to ACPI_ALL_NOTIFY in calling to acpi_dev_remove_notify_handler()(see attached patch), now the module can be insmod again after once rmmod.
Regards,
Jun MO
platform/x86/asus-laptop.c renamed from platform/x86/asus-laptop.c.orig +2 -2
@@ -1887,7 +1887,7 @@if (result && result != -ENODEV ) goto fail_pega_rfkill; - result =acpi_dev_install_notify_handler (device,ACPI_DEVICE_NOTIFY , + result =acpi_dev_install_notify_handler (device,ACPI_ALL_NOTIFY , asus_acpi_notify, asus);if (result) goto fail_pega_rfkill;
@@ -1917,7 +1917,7 @@ {struct asus_laptop *asus =platform_get_drvdata (pdev); -acpi_dev_remove_notify_handler (asus->device,ACPI_DEVICE_NOTIFY , +acpi_dev_remove_notify_handler (asus->device,ACPI_ALL_NOTIFY , asus_acpi_notify);asus_backlight_exit (asus);asus_rfkill_exit (asus);
Am 30.08.26 um 16:41 schrieb Mo Jun:
Quoted 24 lines
Hi Armin Wolf,
Quoted 9 lines · Mo Jun
Hi Armin Wolf,
Quoted 3 lines · Armin Wolf
[...]
I think i found the culprit, could you please test the attached patch?
Build the module with the patch(only "make -C . M=drivers/platform/x86") and load the built
drivers/platform/x86/asus-laptop.ko, now the Fn hotkeys works again.I found that after rmmod the built module, it can not be insmod again. Also the system experienced NULL pointer dereferences in
acpi_bus_generate_netlink_event()which may related to the built module.I guess these was caused that the patch only change calling to
acpi_dev_install_notify_handler(), notacpi_dev_remove_notify_handler().
After changeACPI_DEVICE_NOTIFYtoACPI_ALL_NOTIFYin calling to acpi_dev_remove_notify_handler()(see attached patch), now the module can be insmod again after once rmmod.
Quoted 2 lines
Regards,
Jun MO
Good catch, i will send the fixed patch soon.
Thanks,
Armin Wolf
Am 30.08.26 um 23:42 schrieb Armin Wolf:
Quoted 26 lines
Am 30.08.26 um 16:41 schrieb Mo Jun:
Quoted 24 lines
Hi Armin Wolf,
Quoted 9 lines · Mo Jun
Hi Armin Wolf,
Quoted 3 lines · Armin Wolf
[...]
I think i found the culprit, could you please test the attached patch?
Build the module with the patch(only "make -C . M=drivers/platform/x86") and load the built
drivers/platform/x86/asus-laptop.ko, now the Fn hotkeys works again.I found that after rmmod the built module, it can not be insmod again. Also the system experienced NULL pointer dereferences in
acpi_bus_generate_netlink_event()which may related to the built module.I guess these was caused that the patch only change calling to
acpi_dev_install_notify_handler(), notacpi_dev_remove_notify_handler().
After changeACPI_DEVICE_NOTIFYtoACPI_ALL_NOTIFYin calling to acpi_dev_remove_notify_handler()(see attached patch), now the module can be insmod again after once rmmod.
Quoted 7 lines
Quoted 2 lines
Regards,
Jun MOGood catch, i will send the fixed patch soon.
Thanks,
Armin Wolf
Alright, the patch got accepted upstream and will likely land with the stable kernels in a couple of weeks.
Thanks,
Armin Wolf