You are not logged in.
I have encountered issue with newest kernels on 6.12.1 (any kernels zen, normal, cachyos, hardened). With linux update 6.12.1 my asus UX3402VA have lost ability to set max battery charging, keyboard brightness, does not register special keys (micmute, enable touchpad, etc.). Issue seems to be asus_wmi.
With newer kernels lsmod | grep asus does not show asus_nb_wmi, which explain why it wouldn't work if module responsible for this is not present (it is not possible to even load it)
Downgrade to any 6.11.9 kernel seems to fix this issue so I think it is problem with kernel config or kernel itself. I will try to debug this and send any updates if any specific kernel parameters/modules help to fix it just so anyone with similar issues would know how to fix it. I also use UKI and systemd based initramfs so it might be the culprit. Did anyone else had similar issues or it's just me? I think I will manage to fix it myself, but any suggestion would be more than appreciated.
Offline
https://gitlab.archlinux.org/archlinux/ … eads#L9334
https://archlinux.org/packages/core/x86_64/linux/ also lists it.
modinfo asus_nb_wmi
Offline
I can reproduce the same issue on my UX3402VA — no backlight control (on by default on boot), no max charging level with TLP, no special keys.
And unfortunately, downgrading to the LTS kernel is not an option either without sacrificing the audio driver for this model (not included in the 6.6.6 linux LTS and updates of it).
Last edited by edo0 (2024-11-27 20:55:22)
Offline
This is the output for
modinfo asus_nb_wmi
modinfo asus_nb_wmi
filename: /lib/modules/6.12.1-zen1-1-zen/kernel/drivers/platform/x86/asus-nb-wmi.ko.zst
alias: wmi:0B3CBB35-E3C2-45ED-91C2-4C5A6D195D1C
license: GPL
description: Asus Notebooks WMI Hotkey Driver
author: Corentin Chary <corentin.chary@gmail.com>
srcversion: 2D309D9920419AD50D0F9F3
depends: asus-wmi,video
intree: Y
name: asus_nb_wmi
retpoline: Y
vermagic: 6.12.1-zen1-1-zen SMP preempt mod_unload
sig_id: PKCS#7
signer: Build time autogenerated kernel key
sig_key: 7F:D0:A4:4D:9A:60:A2:CC:52:C4:66:5A:CD:20:21:13:A0:50:55:A4
sig_hashalgo: sha512
signature: 30:66:02:31:00:D6:C0:C7:20:F0:F2:DC:05:04:CF:7D:5A:BC:51:C7:
A9:4B:BC:DE:51:D1:3D:86:B8:4F:86:3E:52:6E:CE:F1:B5:22:30:35:
E2:40:B6:16:A1:B8:63:35:C0:02:6C:48:00:02:31:00:92:A9:B2:B0:
EF:26:CB:4B:0B:34:91:40:0A:2C:B8:AD:E4:9A:8A:1F:3C:C4:75:B9:
96:C2:07:02:94:B4:55:D8:92:93:BE:2E:0C:06:CA:FF:29:1B:96:3E:
58:25:2C:F3
parm: wapf:WAPF value (uint)
parm: tablet_mode_sw:Tablet mode detect: -1:auto 0:disable 1:kbd-dock 2:lid-flip 3:lid-flip-rog (uint)
Offline
And this is an excerpt of what I get with
sudo tlp-stat
+++ Battery Care
Plugin: asus
Supported features: none available
Driver usage:
* natacpi (asus_wmi) = inactive (laptop not supported)
Last edited by edo0 (2024-11-27 21:01:43)
Offline
newer kernels lsmod | grep asus does not show asus_nb_wmi
The module is there but the aliases likely don't match, so it's not loaded automatically - or it fails.
sudo modprobe -v asus_nb_wmi
Offline
Thank you for the explanation. This is what I get when running the command:
sudo modprobe -v asus_nb_wmi
[sudo] password for user:
insmod /lib/modules/6.12.1-zen1-1-zen/kernel/drivers/platform/x86/asus-nb-wmi.ko.zst
modprobe: ERROR: could not insert 'asus_nb_wmi': No such device
Running
lsmod | grep asus
gives the following output
asus_wmi 139264 0
platform_profile 12288 1 asus_wmi
rfkill 40960 10 iwlmvm,asus_wmi,bluetooth,cfg80211
sparse_keymap 12288 2 intel_hid,asus_wmi
video 81920 3 asus_wmi,xe,i915
i8042 57344 1 asus_wmi
wmi 32768 3 video,asus_wmi,wmi_bmof
Offline
Please check whether the LTS kernel actually ends up (automatically) loading "asus_nb_wmi" for you and whether asus_wmi loads automatically w/ either kernel (it will be loaded w/ asus_nb_wmi)
Then try to force it
sudo modprobe -f asus_nb_wmi
Offline
The linux LTS kernel appears able to automatically load "asus_nb_wmi"
With the following output
lsmod | grep asus
asus_nb_wmi 28672 0
asus_wmi 98304 1 asus_nb_wmi
ledtrig_audio 12288 3 snd_ctl_led,snd_hda_codec_generic,asus_wmi
platform_profile 12288 1 asus_wmi
rfkill 40960 10 iwlmvm,asus_wmi,bluetooth,cfg80211
sparse_keymap 12288 2 intel_hid,asus_wmi
video 77824 2 asus_wmi,i915
i8042 57344 1 asus_wmi
wmi 45056 3 video,asus_wmi,wmi_bmof
[***@*** ~]$ sudo modprobe -v asus_nb_wmi
[sudo] password for ***:
[***@*** ~]$ sudo modprobe -v asus_nb_wmi
[[***@*** ~]$
This is what I get on the Zen kernel instead (the same output for the standard arch kernel)
[***@*** ~]$ sudo modprobe -f asus_nb_wmi
[sudo] password for ***:
modprobe: ERROR: could not insert 'asus_nb_wmi': No such device
[***@*** ~]$ lsmod | grep asus
asus_wmi 139264 0
platform_profile 12288 1 asus_wmi
rfkill 40960 10 iwlmvm,asus_wmi,bluetooth,cfg80211
sparse_keymap 12288 2 intel_hid,asus_wmi
i8042 57344 1 asus_wmi
video 81920 3 asus_wmi,xe,i915
wmi 32768 3 video,asus_wmi,wmi_bmof
[***@*** ~]$
Offline
https://github.com/torvalds/linux/commi … 0c299f5ab3 ?
Do you get "Failed to set default thermal profile" in dmesg/the system journal?
https://github.com/torvalds/linux/commi … e79f5281b6 seems less likely ("a platform_profile handler is already registered", but the patch should rather make it plow through)
Offline
Yes, I can confirm it failed to set the default thermal profile
[ 3.995701] asus_wmi: Failed to set throttle thermal policy (retval): 0x0
[ 3.995704] asus_wmi: Failed to set default thermal profile
[ 3.995708] asus-nb-wmi asus-nb-wmi: probe with driver asus-nb-wmi failed with error -5
Full dmesg here https://pastebin.com/Uvy34GQS
Offline
[ 35.708015] asus_nb_wmi: bad vermagic: kernel tainted.
[ 35.708176] asus_nb_wmi: module verification failed: signature and/or required key missing - tainting kernel
Ftr, this is probably you trying "modprobe -n"?
https://lore.kernel.org/lkml/2024102519 … in@gmx.de/
https://www.phoronix.com/news/Linux-6.1 … S-Platform
You'd need to test the kernel w/ that patch reverted to confirm it's the trigger (while it smells like)
The discriminating factor *might* be
[ 3.953728] asus-nb-wmi asus-nb-wmi: Detected ATK, not ASUSWMI, use DSTS
Offline
Thank you for the information.
I am sorry I must say that I have no prior experience compiling the Linux kernel.
Would you be able to advise me on how to compile it excluding the listed patch?
I will be happy to test it out on my machine.
Offline
https://wiki.archlinux.org/title/Compile_kernel_module
If gromit or loqs see this thread, they'll probably upload one faster than you can read the wiki
Offline
linux 6.12.1.arch1 with Fix-thermal-profile-handling.patch applied:
linux-6.12.1.arch1-1.2-x86_64.pkg.tar.zst/linux-headers-6.12.1.arch1-1.2-x86_64.pkg.tar.zst.
diff of changes I made to the PKGBUILD:
diff --git a/PKGBUILD b/PKGBUILD
index 5193841..481ec41 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgbase=linux
pkgver=6.12.1.arch1
-pkgrel=1
+pkgrel=1.2
pkgdesc='Linux'
url='https://github.com/archlinux/linux'
arch=(x86_64)
@@ -17,13 +17,6 @@ makedepends=(
python
tar
xz
-
- # htmldocs
- graphviz
- imagemagick
- python-sphinx
- python-yaml
- texlive-latexextra
)
options=(
!debug
@@ -34,6 +27,7 @@ _srctag=v${pkgver%.*}-${pkgver##*.}
source=(
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign}
$url/releases/download/$_srctag/linux-$_srctag.patch.zst{,.sig}
+ 'Fix-thermal-profile-handling.patch::https://patchwork.kernel.org/series/907152/mbox/'
config # the main kernel config file
)
validpgpkeys=(
@@ -46,11 +40,13 @@ sha256sums=('0193b1d86dd372ec891bae799f6da20deef16fc199f30080a4ea9de8cef0c619'
'SKIP'
'518f473f291a71006299a17ce376fa0d587c2e8995ecc7be143b06a2ce5423b3'
'SKIP'
+ 'b13004be5fdba6962b5040c07050e34ddff131b8e0ba968c05acfa9544050887'
'01b93dbc25330f56e18dd883762d24bd6e50a8c2575c7211c5e4f1824b1dcbd4')
b2sums=('de3f4dec2fc7e36711c68683d6564d0c3ce6fe728ffa6a629604e2fa9e489dbab45fd6676343f6e68bafbd202a3e814e82a1448b46844e34046b9f82f819b8f4'
'SKIP'
'6e1d77f20b961ef0fc7fa999ba5d9cbbf8a0dd415c84d43274924938077915e879d19591ccb1a32e839b625a125dde64cd891142c1cecf24621fa4a559b3dbf0'
'SKIP'
+ 'b709601a58081cae6d2cf7266080959525bf994dc95ac794da99b5fdaf09151e5a63d2115ba618a04b0979306e1325f6de94d281a09a1812e8494e6cb98bc390'
'557cab1d12e8b75e1c29af6c9400854fa4abb41b57748389a94451db77ab38479225188cb08de9564817d556d3c31d277e5fb8d82605ce344c05ffdd4675d1ed')
export KBUILD_BUILD_HOST=archlinux
@@ -87,7 +83,6 @@ build() {
cd $_srcname
make all
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1
- make htmldocs
}
_package() {
@@ -214,29 +209,9 @@ _package-headers() {
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
}
-_package-docs() {
- pkgdesc="Documentation for the $pkgdesc kernel"
-
- cd $_srcname
- local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
-
- echo "Installing documentation..."
- local src dst
- while read -rd '' src; do
- dst="${src#Documentation/}"
- dst="$builddir/Documentation/${dst#output/}"
- install -Dm644 "$src" "$dst"
- done < <(find Documentation -name '.*' -prune -o ! -type d -print0)
-
- echo "Adding symlink..."
- mkdir -p "$pkgdir/usr/share/doc"
- ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"
-}
-
pkgname=(
"$pkgbase"
"$pkgbase-headers"
- "$pkgbase-docs"
)
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
Offline
Thank you very much for providing compiled packages.
Unfortunately, the patched kernel still presented the issue
uname -r
6.12.1-arch1-1.2
(full dmesg below)
https://pastebin.com/VLQgNmb0
sudo dmesg
[sudo] password for ***:
...
[ 4.309852] asus_wmi: Failed to set throttle thermal policy (retval): 0x0
[ 4.309857] asus_wmi: Failed to set default thermal profile
[ 4.309863] asus-nb-wmi asus-nb-wmi: probe with driver asus-nb-wmi failed with error -5
and
sudo modprobe -v asus_nb_wmi
[sudo] password for ***:
insmod /lib/modules/6.12.1-arch1-1.2/kernel/drivers/platform/x86/asus-nb-wmi.ko.zst
modprobe: ERROR: could not insert 'asus_nb_wmi': No such device
sudo modprobe -f asus_nb_wmi
modprobe: ERROR: could not insert 'asus_nb_wmi': No such device
Last edited by edo0 (2024-11-30 00:02:15)
Offline
@loqs, that patch seems to have been abandonened, https://lore.kernel.org/lkml/a0392146-b … 83@gmx.de/
The idea was to revert https://github.com/archlinux/linux/comm … 0c299f5ab3 as this "fix" might¹ actually end up breaking the module for some users and needs to be reverted (or refined)
¹ I''m fairly confident, but it need to be confirmed before we storm into lkml and yell at them
Offline
@loqs, that patch seems to have been abandonened, https://lore.kernel.org/lkml/a0392146-b … 83@gmx.de/
v2 of the series was accepted and archived?:
https://patchwork.kernel.org/project/pl … in@gmx.de/
https://patchwork.kernel.org/project/pl … in@gmx.de/
The idea was to revert https://github.com/archlinux/linux/comm … 0c299f5ab3 as this "fix" might¹ actually end up breaking the module for some users and needs to be reverted (or refined)
linux 6.12.1.arch1 with b012170fed282151f7ba8988a347670c299f5ab3 reverted:
linux-6.12.1.arch1-1.3-x86_64.pkg.tar.zst/linux-headers-6.12.1.arch1-1.3-x86_64.pkg.tar.zst
Offline
Thank you so much seth and loqs!
I can confirm this new version of linux 6.12.1.arch1 with b012170fed282151f7ba8988a347670c299f5ab3 reverted does solve the issues I have been experiencing, including keyboard backlight and thermal profiles.
Full dsmeg at the link below
https://pastebin.com/iCv4yz0u
[ 4.251922] asus_wmi: ASUS WMI generic driver loaded
...
[ 4.349507] asus_wmi: Initialization: 0x1
[ 4.350593] asus_wmi: SFUN value: 0x21
[ 4.350602] asus-nb-wmi asus-nb-wmi: Detected ATK, not ASUSWMI, use DSTS
...
[ 4.370554] asus-nb-wmi asus-nb-wmi: Using throttle_thermal_policy for platform_profile support
...
[ 4.403291] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input31
and
[***@*** ~]$ lsmod | grep asus
asus_nb_wmi 32768 0
asus_wmi 110592 1 asus_nb_wmi
platform_profile 12288 1 asus_wmi
rfkill 40960 10 iwlmvm,asus_wmi,bluetooth,cfg80211
sparse_keymap 12288 2 intel_hid,asus_wmi
i8042 57344 1 asus_wmi
video 81920 4 asus_wmi,asus_nb_wmi,xe,i915
wmi 28672 3 video,asus_wmi,wmi_bmof
Last edited by edo0 (2024-11-30 15:05:58)
Offline
Sorry loqs, missed that there was an iteration.
@edo0
Great.
Send a mail to Armin Wolf <W_Armin æt gmx.de>, Hans de Goede <hdegoede æt redhat.com>, linux-hwmon æt vger.kernel.org (obviously not "æt" …) and inform them that this patch prevents loading asus_nb_wmi which also seems to handle the thermal policy for you
[ 4.350602] asus-nb-wmi asus-nb-wmi: Detected ATK, not ASUSWMI, use DSTS
[ 4.370554] asus-nb-wmi asus-nb-wmi: Using throttle_thermal_policy for platform_profile support
Offline
Thank you very much for all your help troubleshooting this!
I have sent an e-mail out, and will wait to hear back from them.
Offline
For reference https://lore.kernel.org/all/0bc76531-d8 … gmail.com/
Offline
As a point of reference, this laptop, ASUSTeK COMPUTER INC. VivoBook_ASUSLaptop X712EA_K712EA does not have this issue
ewaller@odin/~% uname -a
Linux odin 6.12.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 22 Nov 2024 16:04:27 +0000 x86_64 GNU/Linux
ewaller@odin/~% lsmod | grep wmi
asus_nb_wmi 32768 0
asus_wmi 110592 1 asus_nb_wmi
platform_profile 12288 1 asus_wmi
sparse_keymap 12288 1 asus_wmi
wmi_bmof 12288 0
rfkill 40960 11 iwlmvm,asus_wmi,bluetooth,cfg80211
i8042 57344 1 asus_wmi
video 81920 4 asus_wmi,asus_nb_wmi,xe,i915
wmi 28672 3 video,asus_wmi,wmi_bmof
ewaller@odin/~%
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
@ewaller, do you get "Detected ATK, not ASUSWMI, use DSTS" in your dmesg?
Edit: prototype patch from the Wer-Wolf
https://bugzilla.kernel.org/attachment. … format=raw
Last edited by seth (2024-12-01 19:10:32)
Offline
ewaller@odin/~[1]% sudo dmesg | grep ATK
[sudo] password for ewaller:
[ 3.614989] asus-nb-wmi asus-nb-wmi: Detected ATK, not ASUSWMI, use DSTS
ewaller@odin/~%
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline