New: LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
https://bugzilla.kernel.org/show_bug.cgi?id=218901
Bug ID: 218901
Summary: LG Gram Laptop Extra Features not working on 2024
models (16Z90S)
Product: Drivers
Version: 2.5
Kernel Version: 6.9,6.9.2,6.10-rc1
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Platform_x86
Assignee: [email protected]
Reporter: [email protected]
Regression: NoOn a 2024 LG Gram laptop, while the year is correctly identified by lg-laptop:
`[ 12.865584] [ T528] lg_laptop: product: 16Z90S-G.AD7BF year: 2022
`
some functionnalities such as battery charge limit and reader mode do not work.
The only error I have found so far is in dmesg: ```[ 26.841164] [ T837]lg_laptop: Cannot get handle
[ 26.865830] [ T1167] lg_laptop: Cannot get handle
```
it seems to be related to ACPI as this is what is returned here:
https://github.com/torvalds/linux/blob/master/drivers/platform/x86/lg-laptop.c#L106
(among other emplacements in the code)
Trying to read the value in /sys/devices/platform/lg-laptop/battery_care_limit or /sys/class/power_supply/BAT0/charge_control_end_threshold results in a `cat:/sys/class/power_supply/BAT0/charge_control_end_threshold: Input/output error in both cases and trying to write 80 or 100 returns the same error. this also happens for reader_mode, fan_mode, usb_charge and fn_lock`. I have not tried the other variables but the keyboard lightning does not seem to be impacted by this.
I have tried on both new installations of Manjaro and Fedora as well as Fedora Rawhide and Manjaro with a 6.9.2 kernel and 6.10-rc1 kernel freshly compiled.
A colleague has the 2023 version of the laptop and the issue is not present on kernel 6.9.1.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
https://bugzilla.kernel.org/show_bug.cgi?id=218901
Armin Wolf ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Armin Wolf ([email protected]) --- Can you share the output of "acpidump"?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #2 from Agathe Boutmy ([email protected]) --- Created attachment 306358
--> https://bugzilla.kernel.org/attachment.cgi?id=306358&action=edit
acpidump
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #3 from Agathe Boutmy ([email protected]) --- Comment on attachment 306358
--> https://bugzilla.kernel.org/attachment.cgi?id=306358
acpidump
here is the acpidump, i wanted to join it to the initial report but couldn't figure out how to install it at first on Manjaro, I just realized it was part of acpica
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #4 from Armin Wolf ([email protected]) ---
It seems that the LGEX0820 device used by this driver is not mapped at \XINI, but rather at \_SB.XINI. This should normally cause no problems, but it seems that the driver is not using the ACPI driver model.
Can you compile and load kernel modules on this device?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #5 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #4)
Quoted 5 lines
It seems that the LGEX0820 device used by this driver is not mapped at \XINI, but rather at \_SB.XINI. This should normally cause no problems, but it seems that the driver is not using the ACPI driver model.
Can you compile and load kernel modules on this device?
Yes, it's basically a new installation, if something breaks I can reinstall it completely with no issue so I can test whatever is needed on it.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #6 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #4)
Did you have a specific kernel module in mind?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #7 from Armin Wolf ([email protected]) ---
I think i will send you an modified lg-laptop module for testing. Before i do that, i have some questions for you:
1. Does /sys/bus/platform/devices/LGEX0820:00/ exist?
2. What is the content of /sys/bus/acpi/devices/LGEX0820:00/status ?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #8 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #7)
Quoted 4 lines
I think i will send you an modified lg-laptop module for testing. Before i do that, i have some questions for you:
1. Does /sys/bus/platform/devices/LGEX0820:00/ exist?
Yes!
Quoted 1 line
2. What is the content of /sys/bus/acpi/devices/LGEX0820:00/status ?
31
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #9 from Armin Wolf ([email protected]) ---
Created attachment 306399
--> https://bugzilla.kernel.org/attachment.cgi?id=306399&action=edit
Prototype kernel module
This modified lg-laptop kernel module should work on you device.
You can compile it by executing the following commands inside the unpacked directory:
1. make
2. sudo modprobe -r lg-laptop
3. sudo insmode lg-laptop.ko
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #10 from Armin Wolf ([email protected]) --- Can you check that everything works now?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #11 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #10)
Quoted 1 line
Can you check that everything works now?
I wasn't able to load the module with insmod, I'm getting an unknown module error.
dmesg lists the Unknown symbols as
``` [ 5954.414920] lg_laptop: Unknown symbol sparse_keymap_entry_from_scancode (err -2) [ 5954.414956] lg_laptop: Unknown symbol sparse_keymap_report_entry (err -2) [ 5954.415000] lg_laptop: Unknown symbol sparse_keymap_setup (err -2) ```
I couldn't figure how to fix it so I modprobed it instead:
1. zstd lg-laptop.ko
2. sudo cp -f lg-laptop.ko.zst /usr/lib/modules/$(uname -r)/kernel/drivers/platform/x86/
3. sudo depmod
4. sudo modprobe lg-laptop
I think it's properly loaded now, however it does not work, I still have the input output error when trying to read /sys/class/power_supply/BAT0/charge_control_end_threshold and I don't know whether that is normal but /sys/devices/platform/lg-laptop/ no longer exists. I do have /sys/bus/platform/devices/lg-laptop/battery_care_limit however which also returns an Input/Output Error.
On the dmesg side I have now: [ 24.393457] lg-laptop lg-laptop: WMAB: call
failed when trying to cat one or the other.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #12 from Armin Wolf ([email protected]) --- Did you unload the old module first?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #13 from Armin Wolf ([email protected]) --- Or does dmesg show any ACPI errors?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #14 from Armin Wolf ([email protected]) --- Created attachment 306402
--> https://bugzilla.kernel.org/attachment.cgi?id=306402&action=edit
Prototype kernel module v2
I made a mistake when calling the ACPI methods, can you try again?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #15 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #12)
Quoted 1 line
Did you unload the old module first?
yes
Quoted 1 line
Or does dmesg show any ACPI errors?
There is one that was already present before that I didn't mention because after a little research it seemed to be unrelated, I'll post it here just in case:
[ 10.843998] ACPI Error: No handler for Region [XIN1] (00000000f9e347f6) [UserDefinedRegion] (20240322/evregion-130) [ 10.844003] ACPI Error: Region UserDefinedRegion (ID=143) has no handler (20240322/exfldio-261) [ 10.844007] ACPI Error: Aborting method \_SB.PC00.LPCB.H_EC.DPTF.SNRD due to previous error (AE_NOT_EXIST) (20240322/psparse-529) [ 10.844010] ACPI Error: Aborting method \_SB.IETM.SEN2._TMP due to previous
error (AE_NOT_EXIST) (20240322/psparse-529)
Quoted 1 line
I made a mistake when calling the ACPI methods, can you try again?
It works!
(I think, I now longer have an input output error on battery care limit and I have been able to set it to 80% and it seems to stop properly charging if I believe what the power management service included with Manjaro is saying) The other files are also correctly readable.
The 3 FN keys FN-F1, FN-F6, FN-F9 don't seem to do anything but strangely FN-F5 works (which it did before) maybe it's handled differently by the driver.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #16 from Agathe Boutmy ([email protected]) ---
I just rebooted to check if the bios was now correctly saving the 80% charge max value and it does, so it seems to be good on that end.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #17 from Agathe Boutmy ([email protected]) ---
The /sys/devices/platform/lg-laptop/ folder is still missing so maybe that's related to the issue with the 3 not working FN-keys.
Writing directly in /sys/bus/platform/devices/lg-laptop/reader_mode does not seem to do anything, /sys/bus/platform/devices/lg-laptop/fn_lock however works. I'm unsure whether fan_mode works or not.
I'm going to turn off the laptop and check if usb_charge works.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #18 from Agathe Boutmy ([email protected]) --- usb_charge works properly!
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #19 from Armin Wolf ([email protected]) --- Created attachment 306403
--> https://bugzilla.kernel.org/attachment.cgi?id=306403&action=edit
Prototype kernel module v3
This should fix the missing /sys/devices/platform/lg-laptop/ directory. Can you test again please?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #20 from Armin Wolf ([email protected]) ---
Regarding the FN-keys: i think this is a different problem. As soon as the lg-laptop module works on your device, we can focus on getting you FN-keys to work.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #21 from Agathe Boutmy ([email protected]) ---
New module works, the directory is now present.
I was having an issue with the v2 that didn't happen immediately, the wifi kept deactivating and the bluetooth activating. It only stopped after unloading the lg-laptop module.
It does not seem to be happening with the v3 at least for now.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #22 from Armin Wolf ([email protected]) ---
Could it be that one of the FN-keys acts as some sort of airplane mode hotkey?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #23 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #22)
Quoted 2 lines
Could it be that one of the FN-keys acts as some sort of airplane mode hotkey?
I'm not sure, it kept happening after rebooting and without pressing anything
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #24 from Armin Wolf ([email protected]) --- Oh no, seems like we need to do a bit more reverse-engineering
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #25 from Armin Wolf ([email protected]) ---
Does dmesg report any debug messages like "Type: XX Eventcode: 0xXX"?
If yes, then please send me the output of dmesg after pressing the FN-keys. Should the wifi issue happen again, please send me the dmesg output too.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #26 from Armin Wolf ([email protected]) ---
I just added the maintainer of the lg-laptop driver to the CC list. Maybe he can help with reverse-engineering.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #27 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #25)
Quoted 4 lines
Does dmesg report any debug messages like "Type: XX Eventcode: 0xXX"?
If yes, then please send me the output of dmesg after pressing the FN-keys. Should the wifi issue happen again, please send me the dmesg output too.
Yes, here they are:
FN key pressed: [ 8437.457099] lg_laptop: Type: 1 Eventcode: 0x30010000
FN key released: [ 8469.382650] lg_laptop: Type: 1 Eventcode: 0x30010001 //
also happens when pressing and after releasing FN-F1..4 (twice when releasing since 2 keys are being released I guess)
FN-F1: [ 8491.979548] lg_laptop: Type: 1 Eventcode: 0xf070002
FN-F2: [ 8545.037702] lg_laptop: Type: 1 Eventcode: 0x9000087
FN-F3: [ 8561.170853] lg_laptop: Type: 1 Eventcode: 0x9000086
FN-F4: [ 8642.087767] lg_laptop: Type: 1 Eventcode: 0x10300100
FN-F5 has a different behaviour than the previous four: Here is the full list of code sent when pressing them:
[ 8737.235169] lg_laptop: Type: 1 Eventcode: 0x30010000 // here only fn is pressed [ 8739.068108] lg_laptop: event guid 2 [ 8739.068163] lg_laptop: Type: 1 Eventcode: 0x30010001 // fn held and F5 pressed [ 8739.091282] lg_laptop: event guid 2 [ 8739.091331] lg_laptop: Type: 1 Eventcode: 0x30020000 [ 8739.117827] lg_laptop: event guid 2 [ 8739.117872] lg_laptop: Type: 1 Eventcode: 0x30020001 [ 8739.145947] lg_laptop: event guid 0 [ 8739.146019] lg_laptop: Type: 1 Eventcode: 0x74 [ 8739.231070] lg_laptop: event guid 2 [ 8739.231127] lg_laptop: Type: 1 Eventcode: 0x30010001 //both key released [ 8740.811039] lg_laptop: event guid 2 [ 8740.811101] lg_laptop: Type: 1 Eventcode: 0x30010001
FN-F6: [ 8938.295301] lg_laptop: Type: 1 Eventcode: 0xf000002 //behaves like
F1..F4
FN-F7 doesn't seem to have a unique code, here's what I get (it does what it's supposed to though):
[ 9016.134096] lg_laptop: event guid 2 [ 9016.134153] lg_laptop: Type: 1 Eventcode: 0x30010000 [ 9017.160755] lg_laptop: event guid 2 [ 9017.160813] lg_laptop: Type: 1 Eventcode: 0x30010001 [ 9017.183855] lg_laptop: event guid 2 [ 9017.183905] lg_laptop: Type: 1 Eventcode: 0x30020000 [ 9017.210594] lg_laptop: event guid 2 [ 9017.210644] lg_laptop: Type: 1 Eventcode: 0x30020001 [ 9017.260458] lg_laptop: event guid 2 [ 9017.260507] lg_laptop: Type: 1 Eventcode: 0x30010001 [ 9017.537250] lg_laptop: event guid 2 [ 9017.537335] lg_laptop: Type: 1 Eventcode: 0x30010001
FN-F8, the keyboard brightness control key seems to be the one starting a loop of disconnecting the wifi and activating bluetooth, pressing it once leads to having to deactivate the module if I want to return to a stable state, here's the output:
[ 9104.362389] lg_laptop: Type: 1 Eventcode: 0x30010000 [ 9106.929029] lg_laptop: event guid 2 [ 9106.929083] lg_laptop: Type: 1 Eventcode: 0x30010001 [ 9106.952201] lg_laptop: event guid 2 [ 9106.955362] lg_laptop: Type: 1 Eventcode: 0x10000000 [ 9107.059296] lg_laptop: event guid 2 [ 9107.059390] lg_laptop: Type: 1 Eventcode: 0x30010001 [ 9107.799205] ACPI: \_SB_.XINI: notify: 192 [ 9107.821281] wlp0s20f3: deauthenticating from 68:3f:7d:36:0b:15 by local choice (Reason: 3=DEAUTH_LEAVING) [ 9108.098842] lg_laptop: event guid 2 [ 9108.098888] lg_laptop: Type: 1 Eventcode: 0x30010001 [ 9108.815812] ACPI: \_SB_.XINI: notify: 192 [ 9108.829467] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination [ 9108.985519] iwlwifi 0000:00:14.3: Not valid error log pointer 0x0024B5C0 for RT uCode [ 9108.985633] iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x1f [ 9108.985651] iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f [ 9108.985658] iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x80 [ 9108.985666] iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x0 [ 9108.986425] iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 4 [ 9112.617854] wlp0s20f3: authenticate with 68:3f:7d:36:0b:15 (local address=e4:c7:67:24:ee:74) [ 9112.618541] wlp0s20f3: send auth to 68:3f:7d:36:0b:15 (try 1/3) [ 9112.648263] wlp0s20f3: authenticated [ 9112.648833] wlp0s20f3: associate with 68:3f:7d:36:0b:15 (try 1/3) [ 9112.652551] wlp0s20f3: RX AssocResp from 68:3f:7d:36:0b:15 (capab=0x1511 status=0 aid=74) [ 9112.655106] wlp0s20f3: associated [ 9112.668475] wlp0s20f3: Limiting TX power to 23 (23 - 0) dBm as advertised by 68:3f:7d:36:0b:15 [ 9114.722923] lg_laptop: event guid 2 [ 9114.722982] lg_laptop: Type: 1 Eventcode: 0x30010000 [ 9114.899608] ACPI: \_SB_.XINI: notify: 192
My understanding of what happens looking at dmesg in follow mode is that it sends the even once when pressing FN-F8 and then any keyboard use after that sends the event again (fn key or not) which means any input results in the network connecting or disconnecting.
It doesn't turn airplane mode on though.
FN-F9: [ 9658.815309] lg_laptop: Type: 1 Eventcode: 0xf020000
FN-F10..12 same behaviour as FN-F7 which makes me think this is handled somewhere which would make sense since it's not a functionnality exclusive to the LG Gram.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #28 from Armin Wolf ([email protected]) ---
I think i found the culprit, the driver does not check which notification codes it receives and just blindly assumes that its an rfkill notification.
I will try to fix this tomorrow.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #29 from Armin Wolf ([email protected]) --- Created attachment 306408
--> https://bugzilla.kernel.org/attachment.cgi?id=306408&action=edit
Prototype kernel module v4
I have removed the airplane mode hotkey handling from the driver, can you test again if the wifi issues are resolved now?
Can you also send me the output of dmesg after pressing FN+F8? I am curious if the strange ACPI events are still happening.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #30 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #29)
Quoted 5 lines
Created attachment 306408 [details]
Prototype kernel module v4I have removed the airplane mode hotkey handling from the driver, can you test again if the wifi issues are resolved now?
Yes, it no longers deactivate the wifi.
Quoted 2 lines
Can you also send me the output of dmesg after pressing FN+F8? I am curious if the strange ACPI events are still happening.
it is still happening: here is the output once I press FN+F8:
[26146.735205] lg_laptop: event guid 2 [26146.735305] lg_laptop: Type: 1 Eventcode: 0x30010000 [26148.031450] lg_laptop: event guid 2 [26148.031517] lg_laptop: Type: 1 Eventcode: 0x30010001 [26148.054930] lg_laptop: event guid 2 [26148.058063] lg_laptop: Type: 1 Eventcode: 0x10000000 [26148.141362] lg_laptop: event guid 2 [26148.141429] lg_laptop: Type: 1 Eventcode: 0x30010001 [26148.301453] lg_laptop: event guid 2 [26148.301518] lg_laptop: Type: 1 Eventcode: 0x30010001 [26148.324300] ACPI: \_SB_.XINI: notify: 192 [26150.350874] ACPI: \_SB_.XINI: notify: 192 [26151.363858] ACPI: \_SB_.XINI: notify: 192 [26152.380376] ACPI: \_SB_.XINI: notify: 192
it keeps sending the acpi event with any key press.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #31 from Agathe Boutmy ([email protected]) ---
It also doesn't look like the FN+F8 is able to change the keyboard lightning anymore.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #32 from Armin Wolf ([email protected]) ---
Does this mean that before loading the new lg-laptop driver, you where able to control the keyboard backlight with FN+F8?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #33 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #32)
Quoted 2 lines
Does this mean that before loading the new lg-laptop driver, you where able to control the keyboard backlight with FN+F8?
I think I might have tested it too quickly. It works, I just don't have the HUD anymore when using it.
It also looks like the ACPI event is only sent when the keyboard lights are on. My intuition is that it is used to tell the system to keep them on as long as the keyboard is being used?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #34 from Armin Wolf ([email protected]) ---
So when you disable the keyboard backlight, the ACPI 192 events stop?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #35 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #34)
Quoted 1 line
So when you disable the keyboard backlight, the ACPI 192 events stop?
Yes. And I think the hud issue might have been because the laptop was in hibernation before I tried, after a reboot it seems to work properly (hibernation seems to break sound as well but I think I found a workaround).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #36 from Armin Wolf ([email protected]) --- Which HUD you are referring to exactly?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #37 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #36)
Quoted 1 line
Which HUD you are referring to exactly?
The KDE (i think it's part of it anyway) on screen display. I thought it might have been an event not being sent but I think it's just hibernation messing some things up in that case so it's unrelated.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #38 from Armin Wolf ([email protected]) ---
Ok, in this case i will prepare the necessary patches for upstreaming lg-laptop support for your device.
Does you device have an airplane mode/rfkill button?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #39 from Agathe Boutmy ([email protected]) --- Created attachment 306409
--> https://bugzilla.kernel.org/attachment.cgi?id=306409&action=edit
Function key row
It does, on FN-F6, I've added a picture for reference.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #40 from Armin Wolf ([email protected]) --- Created attachment 306410
--> https://bugzilla.kernel.org/attachment.cgi?id=306410&action=edit
Prototype wireless kotkey driver
If this rfkill button does not work out-of-the-box with the new lg-laptop driver, then please test this kernel module.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #41 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #40)
Quoted 5 lines
Created attachment 306410 [details]
Prototype wireless kotkey driverIf this rfkill button does not work out-of-the-box with the new lg-laptop driver, then please test this kernel module.
It seems to work great with this module inserted!
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
Armin Wolf ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #306399|0 |1
is obsolete| |
Attachment #306402|0 |1
is obsolete| |
Attachment #306403|0 |1
is obsolete| |
Attachment #306408|0 |1
is obsolete| |--- Comment #42 from Armin Wolf ([email protected]) --- Created attachment 306424
--> https://bugzilla.kernel.org/attachment.cgi?id=306424&action=edit
Prototype lg-laptop driver v5
Final prototype of the lg-laptop driver for upstreaming.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
Armin Wolf ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #306410|0 |1
is obsolete| |
--- Comment #43 from Armin Wolf ([email protected]) --- Created attachment 306425
--> https://bugzilla.kernel.org/attachment.cgi?id=306425&action=edit
Prototype wireless kotkey driver v2
Final prototype of the wireless-hotkey driver for upstreaming.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #44 from Armin Wolf ([email protected]) ---
Can you test if both modules work on your machine? I just want to verify that the changes which i am going to send upstream are correct.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #45 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #44)
Quoted 2 lines
Can you test if both modules work on your machine? I just want to verify that the changes which i am going to send upstream are correct.
I just tested both, as far as I can tell they both work without issue, dmesg isn't complaining.
I can correctly write and read the files in /sys/devices/platform/lg-laptop as well.
Regarding the reader_mode one, it might be very subtle, I can't see it at all (I'm colourblind but not in the colour range it's supposed to affect) but my partner who works as an artist and is very peculiar about colour choices and nuances tells me the display is slightly pinkish when writing 1 to it so it might just be an issue of it being a very subtle reader mode. FN-F9 doesn't seem to affect that tho.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #46 from Matan Ziv-Av ([email protected]) --- I will look at the code later, but regarding the reader mode:
In models after 2017 (I am not sure about the exact years) reader mode only controls the reader mode led. The firmware does not change the color temperature, as it does in 2017 and older models.
I guess that whatever changes pressing FN-F9 happen in windows are done by installed LG software.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #47 from Agathe Boutmy ([email protected]) --- (In reply to Matan Ziv-Av from comment #46)
Quoted 8 lines
I will look at the code later, but regarding the reader mode:
In models after 2017 (I am not sure about the exact years) reader mode only controls the reader mode led. The firmware does not change the color temperature, as it does in 2017 and older models.
I guess that whatever changes pressing FN-F9 happen in windows are done by installed LG software.
ok, that would make sense. It's not a big deal anyway since night mode exist.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #48 from Armin Wolf ([email protected]) ---
The necessary patches are now upstreamed an will likely be released with kernel 6.11.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #49 from Armin Wolf ([email protected]) ---
Alright, the necessary patches are already included in kernel 6.10 and will also be backported to kernel 6.9, 6.6 and 6.1 thanks to the stable team.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #50 from Armin Wolf ([email protected]) --- You might close this bug report as fixed then.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
Agathe Boutmy ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX--- Comment #51 from Agathe Boutmy ([email protected]) --- (In reply to Armin Wolf from comment #50)
Quoted 1 line
You might close this bug report as fixed then.
done, thanks a bunch for the patch :)
I'm having another issue with some thermal stuff not being handled properly now (it's generating a lot of spam in dmesg) but I don't think this is directly related as this wasn't happening when testing the module, I'll open a new issue when I have the time.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #52 from Armin Wolf ([email protected]) ---
I think i found a solution for you thermal dmesg spam problems, see
https://bugzilla.kernel.org/show_bug.cgi?id=219075 for more details.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #53 from Chris ([email protected]) --- Created attachment 306693
--> https://bugzilla.kernel.org/attachment.cgi?id=306693&action=edit
DMESG DUMP 2
Here you go. I also had to manually "battery", "sparse_keymap" and "wmi" before the module would load
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #54 from Chris ([email protected]) --- please ignore the above post. wrong ticket
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #55 from [email protected] ---
This is still a bug.
I have an LG 16T90SP-K.AD89U1 LG 2-in-1, which has had issues with the Fn keys as long as I've owned it. Specifically the keyboard backlight, the microphone mute, and
the camera disable buttons do not seem to do anything.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #56 from Armin Wolf ([email protected]) ---
Please execute "echo "file drivers/platform/x86/lg-laptop.c +p" > /sys/kernel/debug/dynamic_debug/control" and check if "dmesg" records any
entries similar to "Type: X Eventcode: X" when said keys are pressed. I can
then add those event codes to the driver.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #57 from [email protected] ---
I ran that command as root, and I have these lines now in that control file:drivers/platform/x86/lg-laptop.c:238 [lg_laptop]wmi_notify =p "Type: %i
Eventcode: 0x%llx\n"drivers/platform/x86/lg-laptop.c:276 [lg_laptop]acpi_notify =p "notify: %d\n" drivers/platform/x86/lg-laptop.c:679 [lg_laptop]lg_laptop_address_space_write =p "HD audio power %s\n"drivers/platform/x86/lg-laptop.c:688 [lg_laptop]lg_laptop_address_space_write =p "Fan mode set to mode %u\n" drivers/platform/x86/lg-laptop.c:692 [lg_laptop]lg_laptop_address_space_write =p "CPU temperature is %u °C\n" drivers/platform/x86/lg-laptop.c:695 [lg_laptop]lg_laptop_address_space_write =p "CPU lower trip point set to %u °C\n" drivers/platform/x86/lg-laptop.c:698 [lg_laptop]lg_laptop_address_space_write =p "CPU higher trip point set to %u °C\n" drivers/platform/x86/lg-laptop.c:701 [lg_laptop]lg_laptop_address_space_write =p "Motherboard temperature is %u °C\n" drivers/platform/x86/lg-laptop.c:704 [lg_laptop]lg_laptop_address_space_write =p "Motherboard lower trip point set to %u °C\n" drivers/platform/x86/lg-laptop.c:707 [lg_laptop]lg_laptop_address_space_write =p "Motherboard higher trip point set to %u °C\n" drivers/platform/x86/lg-laptop.c:919 [lg_laptop]acpi_init =p "Error registering driver\n"
There are no "Type: X Eventcode: X" lines in dmesg, but these lines apear after each button press
Fn F1: (no effect - settings? button)
[1097723.464413] ACPI: \XINI: lg_laptop: notify: 130 [1097723.895908] ACPI: \XINI: lg_laptop: notify: 130 [1097724.018615] ACPI: \XINI: lg_laptop: notify: 130 [1097724.130833] ACPI: \XINI: lg_laptop: notify: 130
Fn F2: (works screen brightness down)
[1097761.246182] ACPI: \XINI: lg_laptop: notify: 130 [1097761.480285] ACPI: \XINI: lg_laptop: notify: 128 [1097761.674707] ACPI: \XINI: lg_laptop: notify: 130 [1097761.733056] ACPI: \XINI: lg_laptop: notify: 130
Fn F3: (works - screen brightness up)
[1097871.463304] ACPI: \XINI: lg_laptop: notify: 130 [1097871.931609] ACPI: \XINI: lg_laptop: notify: 128 [1097872.119712] ACPI: \XINI: lg_laptop: notify: 130 [1097872.224662] ACPI: \XINI: lg_laptop: notify: 130
Fn F4: (works - touchpad on/off)
[1097895.738841] ACPI: \XINI: lg_laptop: notify: 130 [1097896.223999] ACPI: \XINI: lg_laptop: notify: 128 [1097896.290507] ACPI: \XINI: lg_laptop: notify: 130 [1097896.403914] ACPI: \XINI: lg_laptop: notify: 130
Fn F5: (works - display output change)
[1097937.733774] ACPI: \XINI: lg_laptop: notify: 130 [1097938.585044] ACPI: \XINI: lg_laptop: notify: 130 [1097938.868729] ACPI: \XINI: lg_laptop: notify: 130
Fn F6: (doesn't work - keyboard brightness)
[1097982.681501] ACPI: \XINI: lg_laptop: notify: 130 [1097982.818509] ACPI: \XINI: lg_laptop: notify: 130
Fn F7: (doesn't work - fan speed)
[1098282.555102] ACPI: \XINI: lg_laptop: notify: 130 [1098282.909315] ACPI: \XINI: lg_laptop: notify: 130 [1098283.116257] ACPI: \XINI: lg_laptop: notify: 130 [1098283.201884] ACPI: \XINI: lg_laptop: notify: 130
Fn F8: (doesn't work - microphone mute)
[1098300.478939] ACPI: \XINI: lg_laptop: notify: 130 [1098300.982330] ACPI: \XINI: lg_laptop: notify: 130 [1098301.089168] ACPI: \XINI: lg_laptop: notify: 130 [1098301.242992] ACPI: \XINI: lg_laptop: notify: 130
Fn F9: (doesn't work - disable camera)
[1098322.727108] ACPI: \XINI: lg_laptop: notify: 130 [1098323.213560] ACPI: \XINI: lg_laptop: notify: 130 [1098323.321364] ACPI: \XINI: lg_laptop: notify: 130 [1098323.509275] ACPI: \XINI: lg_laptop: notify: 130
Fn F10: (works audio mute)
[1098340.794792] ACPI: \XINI: lg_laptop: notify: 130 [1098341.421561] ACPI: \XINI: lg_laptop: notify: 130 [1098341.432123] ACPI: \XINI: lg_laptop: notify: 128 [1098341.684261] ACPI: \XINI: lg_laptop: notify: 130
Fn F11: (works volume down)
[1098355.263622] ACPI: \XINI: lg_laptop: notify: 130 [1098355.723023] ACPI: \XINI: lg_laptop: notify: 128 [1098355.960150] ACPI: \XINI: lg_laptop: notify: 130 [1098355.989765] ACPI: \XINI: lg_laptop: notify: 130
Fn F12: (works volume up)
[1098367.928555] ACPI: \XINI: lg_laptop: notify: 130 [1098368.780921] ACPI: \XINI: lg_laptop: notify: 128 [1098369.017551] ACPI: \XINI: lg_laptop: notify: 130 [1098369.029370] ACPI: \XINI: lg_laptop: notify: 130
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #58 from Armin Wolf ([email protected]) --- I think i now understand what is going on:
- older devices report the events using WMI and can be manually switched over to a ACPI-based native interface by executing the ACPI control method "OREP(4, 1)".
- newer devices (yours) always use the ACPI-based native interface
The driver currently uses the WMI-based interface and thus does not receive any events on your device. I think we can fix this by modifying lg-laptop to always use the ACPI-based interface.
I will try to come up with a patch, give me a couple days.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #59 from [email protected] ---
Created attachment 310219
--> https://bugzilla.kernel.org/attachment.cgi?id=310219&action=edit
acpidump
"acpidump" for an LG Gram
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #60 from Armin Wolf ([email protected]) --- Created attachment 310222
--> https://bugzilla.kernel.org/attachment.cgi?id=310222&action=edit
Prototype driver for improved hotkey handling.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #61 from Armin Wolf ([email protected]) --- Use the attached driver and try again.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #62 from [email protected] ---
I added the new driver, but Fn F6-F9 still don't have any effect. Below is the dmesg of each button press.
Fn F1:
[ 234.298681] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 235.717630] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 235.722288] LG Gram Laptop Support LGEX0820:00: Received event 130 (252116994) [ 235.964304] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F2:
[ 296.616380] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 297.040336] LG Gram Laptop Support LGEX0820:00: Received event 128 (0) [ 297.251384] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 297.316138] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F3:
[ 325.225102] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 325.723084] LG Gram Laptop Support LGEX0820:00: Received event 128 (0) [ 325.857201] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 326.075831] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F4:
[ 344.611414] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 345.024743] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 345.041044] LG Gram Laptop Support LGEX0820:00: Received event 128 (116) [ 345.141209] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F5:
[ 371.095864] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 371.624840] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 371.737024] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F6:
[ 396.319396] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 396.833509] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 396.834992] LG Gram Laptop Support LGEX0820:00: Received event 128 (268435456) [ 396.988001] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F7:
[ 417.595014] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 417.936728] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371985) [ 418.106754] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 418.217023] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F8:
[ 454.740476] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 455.211017] LG Gram Laptop Support LGEX0820:00: Received event 130 (1073872897) [ 455.264917] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 455.369903] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F9:
[ 470.879991] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 471.576893] LG Gram Laptop Support LGEX0820:00: Received event 130 (1073872896) [ 471.677192] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 471.681958] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F10:
[ 488.525493] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 489.053501] LG Gram Laptop Support LGEX0820:00: Received event 128 (120) [ 489.149477] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 489.184508] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F11:
[ 503.160266] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 503.631288] LG Gram Laptop Support LGEX0820:00: Received event 128 (0) [ 503.765229] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 503.920250] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F12:
[ 520.136252] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [ 520.849363] LG Gram Laptop Support LGEX0820:00: Received event 128 (0) [ 521.035001] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [ 521.160264] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #63 from Armin Wolf ([email protected]) --- Do the previously working hotkeys still work?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #64 from [email protected] ---
I have the same laptop as tacodog311 and almost the same problems with Fn keys, except for me, Fn + F10,F11,F12 don't release after pressing down. The release can be triggered by pressing some other working Fn key (like Fn+F2), and after that the Fn + F10,F11,F12 don't respond.
I added the driver and notice no change in hotkey behaviour (both working and not working), except Fn+F4 (touchpad on/off), which happens twice.
As a side note, I believe the dmesg output lines
[ ...] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904)
and
[ ...] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905)
in tacodog311's response represent the action of pressing/releasing the Fn key respectively.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #65 from Armin Wolf ([email protected]) ---
So on your device the hotkeys will spam events until another hotkey is pressed? Do both touchpad on/off events come from the driver or is one of them received over the keyboard controller?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #66 from [email protected] ---
Yes, all of the previously working hotkeys still work after installing the driver.
Regarding the "don't release after pressing down" issue, I do recall having to implement this udev rule to get the F10-F12 volume keys to work properly.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
Armin Wolf ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #310222|0 |1
is obsolete| |
--- Comment #67 from Armin Wolf ([email protected]) --- Created attachment 310254
--> https://bugzilla.kernel.org/attachment.cgi?id=310254&action=edit
Prototype driver with improved hotkey handling.
This driver should now forward the missing hotkey scancodes.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #68 from Armin Wolf ([email protected]) --- F1 -> KEY_CONFIG
F2 -> Ignored
F3 -> Ignored
F4 -> KEY_F21
F5 -> Ignored
F6 -> KEY_F16 and notifying the LED class device F7 -> KEY_PERFORMANCE
F8 -> KEY_MICMUTE
F9 -> KEY_CAMERA_ACCESS_TOGGLE
F10 -> Ignored
F11 -> Ignored
F12 -> Ignored
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #69 from Armin Wolf ([email protected]) ---
Please both check if the hotkeys now emit the aforementioned keycodes, you can use evtest for that.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #70 from [email protected] ---
I think we're making progress. Fn+F1 and Fn+F8 seem to be working, but Fn+F4 no longer toggles the touchpad.
F1 -> KEY_CONFIG -- Working now
F2 -> Ignored -- still working
F3 -> Ignored -- still working
F4 -> KEY_F21 -- used to work, now "touchpad on" appears on the screen, doesn't toggle, I suspect it triggers twice (off/on)?
F5 -> Ignored -- still works
F6 -> KEY_F16 and notifying the LED class device -- still no effect F7 -> KEY_PERFORMANCE -- still no effect
F8 -> KEY_MICMUTE -- Working now
F9 -> KEY_CAMERA_ACCESS_TOGGLE -- still no effect
F10 -> Ignored -- still works
F11 -> Ignored -- still works
F12 -> Ignored -- still works
I also notices that Fn+Esc is supposed to toggle the Fn lock, and that does not currently work.
This is my evdev:
Fn+F1:
Event: time 1780527642.116637, type 4 (EV_MSC), code 4 (MSC_SCAN), value f070002
Event: time 1780527642.116637, type 1 (EV_KEY), code 171 (KEY_CONFIG), value 1
Event: time 1780527642.116637, -------------- SYN_REPORT ------------
Event: time 1780527642.116658, type 1 (EV_KEY), code 171 (KEY_CONFIG), value 0
Event: time 1780527642.116658, -------------- SYN_REPORT ------------
Fn+F4:
Event: time 1780527664.185518, type 4 (EV_MSC), code 4 (MSC_SCAN), value 74
Event: time 1780527664.185518, type 1 (EV_KEY), code 191 (KEY_F21), value 1
Event: time 1780527664.185518, -------------- SYN_REPORT ------------
Event: time 1780527664.185529, type 1 (EV_KEY), code 191 (KEY_F21), value 0
Event: time 1780527664.185529, -------------- SYN_REPORT ------------
Fn+F6:
Event: time 1780527716.168356, type 4 (EV_MSC), code 4 (MSC_SCAN), value 10000000
Event: time 1780527716.168356, type 1 (EV_KEY), code 186 (KEY_F16), value 1
Event: time 1780527716.168356, -------------- SYN_REPORT ------------
Event: time 1780527716.168372, type 1 (EV_KEY), code 186 (KEY_F16), value 0
Event: time 1780527716.168372, -------------- SYN_REPORT ------------
Fn+F7:
Event: time 1780527729.707137, type 4 (EV_MSC), code 4 (MSC_SCAN), value 30010051
Event: time 1780527729.707137, type 1 (EV_KEY), code 701 (?), value 1
Event: time 1780527729.707137, -------------- SYN_REPORT ------------
Event: time 1780527729.707147, type 1 (EV_KEY), code 701 (?), value 0
Event: time 1780527729.707147, -------------- SYN_REPORT ------------
Fn+F8:
Event: time 1780527743.793305, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40020001
Event: time 1780527743.793305, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 1
Event: time 1780527743.793305, -------------- SYN_REPORT ------------
Event: time 1780527743.793320, type 1 (EV_KEY), code 248 (KEY_MICMUTE), value 0
Event: time 1780527743.793320, -------------- SYN_REPORT ------------
Fn+F9:
Event: time 1780527761.607632, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40020000
Event: time 1780527761.607632, type 1 (EV_KEY), code 589 (KEY_CAMERA_ACCESS_TOGGLE), value 1
Event: time 1780527761.607632, -------------- SYN_REPORT ------------
Event: time 1780527761.607655, type 1 (EV_KEY), code 589 (KEY_CAMERA_ACCESS_TOGGLE), value 0
Event: time 1780527761.607655, -------------- SYN_REPORT ------------
Fn+Esc:
Event: time 1780527879.303527, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40030001
Event: time 1780527879.303527, type 1 (EV_KEY), code 240 (KEY_UNKNOWN), value 1
Event: time 1780527879.303527, -------------- SYN_REPORT ------------
Event: time 1780527879.303550, type 1 (EV_KEY), code 240 (KEY_UNKNOWN), value 0
Event: time 1780527879.303550, -------------- SYN_REPORT ------------
Event: time 1780527879.456554, type 4 (EV_MSC), code 4 (MSC_SCAN), value 30010001
Event: time 1780527879.456554, type 1 (EV_KEY), code 240 (KEY_UNKNOWN), value 1
Event: time 1780527879.456554, -------------- SYN_REPORT ------------
Event: time 1780527879.456569, type 1 (EV_KEY), code 240 (KEY_UNKNOWN), value 0
Event: time 1780527879.456569, -------------- SYN_REPORT ------------
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #71 from Armin Wolf ([email protected]) ---
evtest shows that all keys emit their respective keycodes, it seems that your desktop simply does not handle KEY_PERFORMANCE and KEY_CAMERA_ACCESS_TOGGLE by default.
The touchpad toggle key also does emit KEY_F21, so i have no idea why is should not be working.
Can you share the output of dmesg again (with Fn+Esc?).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #72 from Quaternion ([email protected]) ---
In my evtest, KEY_PERFORMANCE and KEY_CAMERA_ACCESS_TOGGLE are present. Maybe the Fn+F4 has something to do with the settings? The combination started toggling twice after you fixed settings. As a possible workaround, I can mention that the touchpad state can be easily toggled inside settings.
Here is the new dmesg response (I omit the Fn key press/release event):
Fn+Esc:
[ 978.268869] LG Gram Laptop Support LGEX0820:00: Received event 130 (1073938433) Fn+F1: [ 411.436702] LG Gram Laptop Support LGEX0820:00: Received event 130 (252116994) Fn+F2: [ 413.325769] LG Gram Laptop Support LGEX0820:00: Received event 128 (0) Fn+F3: [ 414.323986] LG Gram Laptop Support LGEX0820:00: Received event 128 (0) Fn+F4: [ 421.565755] LG Gram Laptop Support LGEX0820:00: Received event 128 (116) Fn+F5: Ignored Fn+F6: [ 425.480991] LG Gram Laptop Support LGEX0820:00: Received event 128 (268435456) Fn+F7: [ 427.640268] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371985) Fn+F8: [ 428.620331] LG Gram Laptop Support LGEX0820:00: Received event 130 (1073872897) Fn+F9: [ 429.512356] LG Gram Laptop Support LGEX0820:00: Received event 130 (1073872896) Fn+F10: [ 429.976413] LG Gram Laptop Support LGEX0820:00: Received event 128 (120) Fn+F11: [ 430.509555] LG Gram Laptop Support LGEX0820:00: Received event 128 (0) Fn+F12: [ 431.333337] LG Gram Laptop Support LGEX0820:00: Received event 128 (0)
I use the lgfnlock.sh script from
https://github.com/leoomi/LinuxLGGramScripts
to get the Fn lock working.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #73 from Armin Wolf ([email protected]) ---
It seems that your desktop environment already mapps KEY_F21 to "Touchpad toggle", so the touchpad indeeds gets toggled twice. I will check if i can detect this somehow.
Does the Fn-Lock state change automatically when you press Fn+Esc? If no then i can map event 1073938433 onto KEY_FN_ESC so you can intercept this with a script.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #74 from Quaternion ([email protected]) ---
No, I just run lgfnlock.sh in terminal to turn the Fn lock on/off. I cannot trigger the Fn lock on/off event by pressing Fn+Esc.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #75 from Armin Wolf ([email protected]) ---
Can you check with evtest where the second touchpad event comes from?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #76 from Quaternion ([email protected]) --- This is weird. When I run
sudo evtest --grab /dev/input/event13,
only one touchpad event happens, so everything works normally. Otherwise, there is the double-toggle, but only one touchpad event is registered in
sudo evtest
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #77 from Armin Wolf ([email protected]) --- Can you check if another input device emits this touchpad event?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #78 from [email protected] ---
Fn+esc does not toggle the Fn lock.
Device 3 (keyboard) emits the touchpad event for Fn+f4 (without your updated driver) and I pasted it below:
It also emits for Fn+F5, F10, F11, and F12
/dev/input/event3: AT Translated Set 2 keyboard
Fn+F4:
Event: time 1780601208.236292, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1780601208.236292, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1780601208.236292, -------------- SYN_REPORT ------------
Event: time 1780601208.241476, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1780601208.241476, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1780601208.241476, -------------- SYN_REPORT ------------
Event: time 1780601208.243674, type 4 (EV_MSC), code 4 (MSC_SCAN), value 76
Event: time 1780601208.243674, type 1 (EV_KEY), code 194 (KEY_F24), value 1
Event: time 1780601208.243674, -------------- SYN_REPORT ------------
Event: time 1780601208.248840, type 4 (EV_MSC), code 4 (MSC_SCAN), value 76
Event: time 1780601208.248840, type 1 (EV_KEY), code 194 (KEY_F24), value 0
Event: time 1780601208.248840, -------------- SYN_REPORT ------------
Event: time 1780601208.257093, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1780601208.257093, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 0
Event: time 1780601208.257093, -------------- SYN_REPORT ------------
Event: time 1780601208.262320, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1780601208.262320, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0
Event: time 1780601208.262320, -------------- SYN_REPORT ------------
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #79 from [email protected] ---
I forgot to do the dmesg for Fn+esc. Here it is with the latest driver:
[87525.536597] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [87525.835418] LG Gram Laptop Support LGEX0820:00: Received event 130 (1073938433) [87526.003610] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [87526.009485] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
Armin Wolf ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #310254|0 |1
is obsolete| |
--- Comment #80 from Armin Wolf ([email protected]) --- Created attachment 310276
--> https://bugzilla.kernel.org/attachment.cgi?id=310276&action=edit
Prototype driver with improved hotkey handling
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #81 from Armin Wolf ([email protected]) ---
This version should emit KEY_FN_ESC when the fn lock hotkey is pressed. Please also test if controlling the keyboard backlight works when using the LED sysfs interface.
Regarding the duplicate touchpad toggle event: i have no idea if/how we can detect this inside the driver. For the time being i suggest that you simply use a udev rule to disable the touchpad toggle event from the AT keyboard.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #82 from [email protected] ---
Fn+F4 still double taps the touchpad toggle. Both input3 and input9 are still sending signals when it is pressed.
Fn+F6 does register as KET_F16 now, but the LED on the keyboard does not change.
I don't know if the keyboard LED driver even works on Linux. I've never been able to modify the brightness with any of these commands either.
https://wiki.archlinux.org/title/Keyboard_backlight
Fn+esc registers as KEY_FN_ESC but it does not trigger the lock.
evtests are below for event3 and event9.
/dev/input/event3: AT Translated Set 2 keyboard
Fn+F4
Event: time 1780716639.429911, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1780716639.429911, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1780716639.429911, -------------- SYN_REPORT ------------
Event: time 1780716639.434958, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1780716639.434958, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1780716639.434958, -------------- SYN_REPORT ------------
Event: time 1780716639.436972, type 4 (EV_MSC), code 4 (MSC_SCAN), value 76
Event: time 1780716639.436972, type 1 (EV_KEY), code 194 (KEY_F24), value 1
Event: time 1780716639.436972, -------------- SYN_REPORT ------------
Event: time 1780716639.442046, type 4 (EV_MSC), code 4 (MSC_SCAN), value 76
Event: time 1780716639.442046, type 1 (EV_KEY), code 194 (KEY_F24), value 0
Event: time 1780716639.442046, -------------- SYN_REPORT ------------
Event: time 1780716639.450140, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1780716639.450140, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 0
Event: time 1780716639.450140, -------------- SYN_REPORT ------------
Event: time 1780716639.455183, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1780716639.455183, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0
Event: time 1780716639.455183, -------------- SYN_REPORT ------------
/dev/input/event9: LG WMI hotkeys
Fn+F4
Event: time 1780716864.009289, type 4 (EV_MSC), code 4 (MSC_SCAN), value 74
Event: time 1780716864.009289, type 1 (EV_KEY), code 191 (KEY_F21), value 1
Event: time 1780716864.009289, -------------- SYN_REPORT ------------
Event: time 1780716864.009310, type 1 (EV_KEY), code 191 (KEY_F21), value 0
Event: time 1780716864.009310, -------------- SYN_REPORT ------------
Fn+F6
Event: time 1780716968.636981, type 4 (EV_MSC), code 4 (MSC_SCAN), value 10000000
Event: time 1780716968.636981, type 1 (EV_KEY), code 186 (KEY_F16), value 1
Event: time 1780716968.636981, -------------- SYN_REPORT ------------
Event: time 1780716968.637009, type 1 (EV_KEY), code 186 (KEY_F16), value 0
Event: time 1780716968.637009, -------------- SYN_REPORT ------------
Fn+esc
Event: time 1780716940.258373, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40030001
Event: time 1780716940.258373, type 1 (EV_KEY), code 465 (KEY_FN_ESC), value 1
Event: time 1780716940.258373, -------------- SYN_REPORT ------------
Event: time 1780716940.258384, type 1 (EV_KEY), code 465 (KEY_FN_ESC), value 0
Event: time 1780716940.258384, -------------- SYN_REPORT ------------
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #83 from Armin Wolf ([email protected]) ---
I think i found the reason for the keyboard backlight issue, but i need an older device to verify my findings. Do you have on older LG device or know someone who does?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #84 from Armin Wolf ([email protected]) ---
Sadly i was unable to find anyone with a LG device, so i cannot fix the keyboard backlight and fn lock toggle issue just yet.
However i can send the necessary patches to enable event support for your device. Are you OK with that? Just remember that you will need to disable the touchpad toggle scancode of your keyboard using udev.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #85 from [email protected] ---
I think I can help in some way. I have LG gram 2022 16" i7-1260p/32GB/2TB/RTX2050. Currently using Ubuntu 26.04 LTS.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #86 from Armin Wolf ([email protected]) --- Nice, can you upload the output of "acpidump" on your device?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #87 from [email protected] ---
Created attachment 310302
--> https://bugzilla.kernel.org/attachment.cgi?id=310302&action=edit
LG gram 2022 16" i7-1260p/32GB/2TB/RTX2050/Ubuntu 26.04 LTS. sudo acpidump
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #88 from Armin Wolf ([email protected]) ---
Does the keyboard backlight work on your model? Does the keyboard backlight toggle hotkey work?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #89 from [email protected] ---
On current config (Ubuntu Gnome shell, Linux kernel 7.0) keyboard backlight works. keyboard backlight toggle hotkey switches between off state, 80% brightness and 100% brightness. Ubuntu Gnome GUI provides slider for keyboard brightness, but it actually provides off state (for 0% position) and 80% (for all other slider positions).
Screen brightness and sound volume hotkeys work too.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #90 from Armin Wolf ([email protected]) ---
Does Gnome show the current LED brightness? If yes then i would like to know what brightness is shown when the backlight is at 100%
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #91 from [email protected] ---
When I switch brightness using hot key, gnome shows popup with 0%, 50% or 100% progress bar. GUI slider for manual control doesn't have any values, just UI slider. For my eye, logical 50% brightness looks like 80 out of 100%. Corresponding values via terminal are below:
evgeny@egramm16:~$ cat /sys/class/leds/kbd_backlight/brightness 0 evgeny@egramm16:~$ cat /sys/class/leds/kbd_backlight/brightness 127 evgeny@egramm16:~$ cat /sys/class/leds/kbd_backlight/brightness 255
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #92 from Armin Wolf ([email protected]) ---
I see. I will soon upload another prototype driver with some changes inside the LED handling code. I would be happy if you could then test this module.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #93 from [email protected] ---
Ok, I'll try.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #94 from Armin Wolf ([email protected]) ---
Well, it seems that i need a bit more time than i thought. I will try to upload the module tomorrow.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
Armin Wolf ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #310276|0 |1
is obsolete| |
--- Comment #95 from Armin Wolf ([email protected]) --- Created attachment 310315
--> https://bugzilla.kernel.org/attachment.cgi?id=310315&action=edit
Prototype driver with improved hotkey and keyboard backlight handling.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #96 from Armin Wolf ([email protected]) ---
Can you load this driver and check if the keyboard backlight still reports the correct brightness? I would also like to have the output of dmesg after the keyboard backlight brightness has been read.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #97 from Evgeny Ch ([email protected]) --- Kernel:
``` $ uname -a Linux egramm16 7.0.0-22-generic #22-Ubuntu SMP PREEMPT_DYNAMIC Mon May 25 15:54:34 UTC 2026 x86_64 GNU/Linux ```
Below is unloading existing module and loading newly built kernel module with corresponding dmesg lines:
``` $ sudo rmmod lg-laptop ... [ 45.626554] ACPI: battery: hook unregistered: LG Battery Extension ```
```
$ sudo insmod lg-laptop.ko
...
[ 49.458182] ACPI Error: No handler for Region [XIN1] (00000000a791ccde)
[UserDefinedRegion] (20251212/evregion-131)
[ 49.458190] ACPI Error: Region UserDefinedRegion (ID=143) has no handler
(20251212/exfldio-261)
[ 49.458194]
Initialized Local Variables for Method [_TMP]:
[ 49.458195] Local0: 00000000181944fd <Obj> Integer
000000000000002B
[ 49.458198] No Arguments are initialized for method [_TMP]
[ 49.458200] ACPI Error: Aborting method \_SB.PC00.LPCB.LGEC.SEN2._TMP due to
previous error (AE_NOT_EXIST) (20251212/psparse-529)
[ 52.957699] lg_laptop: loading out-of-tree module taints kernel.
[ 52.957705] lg_laptop: module verification failed: signature and/or required
key missing - tainting kernel
[ 52.958770] lg_laptop: product: 16Z90Q-R.APB9U1 year: 2022
[ 52.965668] LG Gram Laptop Support LGEX0820:00: LED status: 1408
[ 52.965871] input: LG WMI hotkeys as
/devices/platform/LGEX0820:00/input/input19
[ 52.966015] ACPI: battery: new hook: LG Battery Extension
```After module loading I've tried keyboard backlight control via keyboard hot key. Hot key works correctly the same 3 states way. However, no Gnome UI popup appears and UI brightness control slider doesn't work. This could be because of unloading old module first, but I'm not sure. dmesg lines below:
``` [ 286.267434] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 286.272300] LG Gram Laptop Support LGEX0820:00: LED status: 1442 [ 287.396406] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 287.401024] LG Gram Laptop Support LGEX0820:00: LED status: 1444 [ 288.373465] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 288.379055] LG Gram Laptop Support LGEX0820:00: LED status: 1408 [ 289.612409] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 289.617677] LG Gram Laptop Support LGEX0820:00: LED status: 1442 [ 290.947406] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 290.953464] LG Gram Laptop Support LGEX0820:00: LED status: 1444 [ 292.272403] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 292.276761] LG Gram Laptop Support LGEX0820:00: LED status: 1408 [ 294.229342] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 294.234591] LG Gram Laptop Support LGEX0820:00: LED status: 1442 [ 296.707288] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 296.712731] LG Gram Laptop Support LGEX0820:00: LED status: 1444 [ 297.680322] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 297.685602] LG Gram Laptop Support LGEX0820:00: LED status: 1408 [ 299.880236] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 299.885493] LG Gram Laptop Support LGEX0820:00: LED status: 1442 [ 301.537256] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 301.543016] LG Gram Laptop Support LGEX0820:00: LED status: 1444 [ 302.174996] kauditd_printk_skb: 11 callbacks suppressed [ 302.174999] audit: type=1400 audit(1781336673.678:385): apparmor="AUDIT" operation="userns_create" class="namespace" info="Userns create - transitioning profile" profile="unconfined" pid=9982 comm="(ubuntu-insigh)" requested="userns_create" target="unprivileged_userns" execpath="/usr/lib/systemd/systemd-executor" [ 302.175500] audit: type=1400 audit(1781336673.678:386): apparmor="DENIED" operation="capable" class="cap" profile="unprivileged_userns" pid=9982 comm="(ubuntu-insigh)" capability=21 capname="sys_admin" [ 302.208756] audit: type=1400 audit(1781336673.712:387): apparmor="DENIED" operation="getattr" class="file" info="Failed name lookup - disconnected path" error=-13 profile="unprivileged_userns" name="" pid=9989 comm="systemd-detect-" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 302.649150] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 302.655875] LG Gram Laptop Support LGEX0820:00: LED status: 1408 [ 320.042802] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 320.048202] LG Gram Laptop Support LGEX0820:00: LED status: 1442 [ 320.837776] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 320.842977] LG Gram Laptop Support LGEX0820:00: LED status: 1444 [ 322.041760] LG Gram Laptop Support LGEX0820:00: Received event 130 (268435456) [ 322.047132] LG Gram Laptop Support LGEX0820:00: LED status: 1408 ```
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #98 from Evgeny Ch ([email protected]) ---
Keyboard hotkeys for brightness and sound still work correctly and show their Gnome popups.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
Armin Wolf ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #310315|0 |1
is obsolete| |
--- Comment #99 from Armin Wolf ([email protected]) --- Created attachment 310323
--> https://bugzilla.kernel.org/attachment.cgi?id=310323&action=edit
Prototype driver with improved hotkey and keyboard backlight handling
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #100 from Armin Wolf ([email protected]) ---
Alright, i worked a bit more on the driver and i think i finally found the reason why some features do not work on some models.
Please both test the attached driver module and check if:
- keyboard backlight reading/writing over sysfs works
- changing the fan_mode, usb_charge, reader_mode and fn_lock sysfs attribute works
- reading and writing the battery charge limit works
You can use https://docs.kernel.org/admin-guide/laptops/lg-laptop.html to find out more about the individual sysfs attributes in question.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #101 from Matan Ziv-Av ([email protected]) --- I am afraid that this document needs some updates.
First - for newer models (from 2019, I believe) reader_mode sysfs node only controls the reader mode led. The testers should be aware of this.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #102 from [email protected] ---
I tried the new driver on the 2024 Gram.
As far as the extra features link, that does not match the features on my keyboard. I have this:
FN-F1 (LG control panel) ** works
FN-F4 (Touchpad toggle) ** double taps
FN-F5 (External Display toggle) ** works
FN-F6 (Keyboard backlight) ** does not work
FN-F7 (Fan Mode) ** does not work
FN-F8 (Microphone toggle) ** works
FN-F9 (Webcam toggle) ** does not work
With the new driver, Fn F6 sends the following signals to dmesg, but does not change the keyboard backlight:
[15333.979822] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [15334.310872] LG Gram Laptop Support LGEX0820:00: Received event 128 (268435456) [15334.409043] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [15334.542793] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F8 works to toggle the microphone, which did not work with the original driver. Fn F4 still double toggles the touchpad, and Fn Esc, F7, and F9 have no effect. They do send these dmesg signals however:
FN Esc:
[15854.894052] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [15855.210808] LG Gram Laptop Support LGEX0820:00: Received event 130 (1073938433) [15855.352868] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F7
[15884.223459] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [15884.817714] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371985) [15884.990659] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [15885.176615] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Fn F9
[15921.433649] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371904) [15922.062526] LG Gram Laptop Support LGEX0820:00: Received event 130 (805371905) [15922.067552] LG Gram Laptop Support LGEX0820:00: Received event 130 (1073872896) [15922.282500] LG Gram Laptop Support LGEX0820:00: Received event 130
(805371905)
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #103 from Quaternion ([email protected]) ---
The hotkey functioning of the new driver for me is the same as for tacodog311.
All the sysfs function normally (reading/writing) and produce the desired results (including kbd_backlight, which at last makes possible to turn on the keyboard backlight in Linux), except for reader_mode, for which I don't understand what it's supposed to control if there is no hotkey for that and night light is available in Linux anyway. Further regarding the lg-laptop extra features document update, I believe the sysfs which need to be updated are the following:
Battery care limit: the original /sys/class/power_supply/CMB0/charge_control_end_threshold doesn't exist, /sys/class/power_supply/BAT0/charge_control_end_threshold works with or without the new driver.
Keyboard backlight: the original /sys/devices/platform/lg-laptop/leds/kbd_backlight/brightness doesn't allow modifying, the new driver adds the option /sys/devices/platform/LGEX0820:00/leds/kbd_backlight/brightness which works.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #104 from Evgeny Ch ([email protected]) ---
I've checked new driver version on LG gram 16 2022. I've tried all Fn+F combinations. They mostly work. "Reader mode" combo Fn+F9 doesn't have any effect for me, Ubuntu 26.04 Gnome shell. "Fn+F7" External display toggle doesn't make any difference to me too.
Also, I've checked fan_mode default value & changing it:
$ sudo cat /sys/devices/platform/lg-laptop/fan_mode 0 $ echo 1 | sudo tee /sys/devices/platform/lg-laptop/fan_mode # should disable LG fan silent mode? Is it correct, by the way? 1 $ sudo cat /sys/devices/platform/lg-laptop/fan_mode 1
Loading driver + keys testing dmesg logs:
```
[ 7437.824922] ACPI Error: No handler for Region [XIN1] (000000006c907335)
[UserDefinedRegion] (20251212/evregion-131)
[ 7437.824931] ACPI Error: Region UserDefinedRegion (ID=143) has no handler
(20251212/exfldio-261)
[ 7437.824935]
Initialized Local Variables for Method [_TMP]:
[ 7437.824936] Local0: 0000000056306aad <Obj> Integer
0000000000000024
[ 7437.824940] No Arguments are initialized for method [_TMP]
[ 7437.824942] ACPI Error: Aborting method \_SB.PC00.LPCB.LGEC.SEN2._TMP due to
previous error (AE_NOT_EXIST) (20251212/psparse-529)
[ 7441.231104] lg_laptop: loading out-of-tree module taints kernel.
[ 7441.231110] lg_laptop: module verification failed: signature and/or required
key missing - tainting kernel
[ 7441.232304] lg_laptop: product: 16Z90Q-R.APB9U1 year: 2022
[ 7441.247021] input: LG WMI hotkeys as
/devices/platform/LGEX0820:00/input/input19
[ 7441.247202] ACPI: battery: new hook: LG Battery Extension
[ 7552.050047] audit: type=1400 audit(1781536857.026:390): apparmor="AUDIT"
operation="userns_create" class="namespace" info="Userns create - transitioning
profile" profile="unconfined" pid=11371 comm="(ubuntu-insigh)"
requested="userns_create" target="unprivileged_userns"
execpath="/usr/lib/systemd/systemd-executor"
[ 7552.050484] audit: type=1400 audit(1781536857.026:391): apparmor="DENIED"
operation="capable" class="cap" profile="unprivileged_userns" pid=11371
comm="(ubuntu-insigh)" capability=21 capname="sys_admin"
[ 7552.077511] audit: type=1400 audit(1781536857.053:392): apparmor="DENIED"
operation="getattr" class="file" info="Failed name lookup - disconnected path"
error=-13 profile="unprivileged_userns" name="" pid=11379
comm="systemd-detect-" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 7615.499008] LG Gram Laptop Support LGEX0820:00: Received event 130
(252116994)
[ 7625.038464] LG Gram Laptop Support LGEX0820:00: Received event 130
(271581201)
[ 7625.160481] usb 3-2: USB disconnect, device number 2
[ 7625.996620] LG Gram Laptop Support LGEX0820:00: Received event 130
(271581218)
[ 7626.256223] usb 3-2: new high-speed USB device number 4 using xhci_hcd
[ 7626.410086] usb 3-2: New USB device found, idVendor=04f2, idProduct=b772,
bcdDevice=52.02
[ 7626.410115] usb 3-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 7626.410116] usb 3-2: Product: LGE FHD Camera
[ 7626.410117] usb 3-2: Manufacturer: SunplusIT Inc
[ 7626.410119] usb 3-2: SerialNumber: 01.00.00
[ 7626.422862] uvcvideo 3-2:1.0: Found UVC 1.50 device LGE FHD Camera
(04f2:b772)
[ 7626.469259] uvcvideo 3-2:1.2: Found UVC 1.50 device LGE FHD Camera
(04f2:b772)
[ 7628.254894] LG Gram Laptop Support LGEX0820:00: Received event 128 (116)
[ 7629.540205] LG Gram Laptop Support LGEX0820:00: Received event 128 (116)
[ 7634.692770] wlp0s20f3: deauthenticating from 9c:56:36:1b:71:08 by local
choice (Reason: 3=DEAUTH_LEAVING)
[ 7639.416293] iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x20
[ 7639.416354] iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[ 7639.416362] iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
[ 7639.416371] iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x0
[ 7639.417925] iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 5
[ 7642.781646] wlp0s20f3: authenticate with 9c:56:36:1b:71:08 (local
address=7c:b5:66:d8:c2:af)
[ 7642.782479] wlp0s20f3: send auth to 9c:56:36:1b:71:08 (try 1/3)
[ 7642.827880] wlp0s20f3: authenticated
[ 7642.829123] wlp0s20f3: associate with 9c:56:36:1b:71:08 (try 1/3)
[ 7642.832173] wlp0s20f3: RX AssocResp from 9c:56:36:1b:71:08 (capab=0x1531
status=0 aid=7)
[ 7642.843398] wlp0s20f3: associated
[ 7650.896203] LG Gram Laptop Support LGEX0820:00: Received event 130
(268435456)
[ 7651.875882] LG Gram Laptop Support LGEX0820:00: Received event 130
(268435456)
[ 7652.724018] LG Gram Laptop Support LGEX0820:00: Received event 130
(268435456)
[ 7655.360898] LG Gram Laptop Support LGEX0820:00: Received event 130
(251789312)
[ 7658.047661] LG Gram Laptop Support LGEX0820:00: Received event 130
(251789312)
[ 7660.768967] LG Gram Laptop Support LGEX0820:00: Received event 130
(251789312)
[ 7663.182967] LG Gram Laptop Support LGEX0820:00: Received event 130
(251789312)
[ 7696.705618] audit: type=1400 audit(1781537001.681:393): apparmor="AUDIT"
operation="userns_create" class="namespace" info="Userns create - transitioning
profile" profile="unconfined" pid=12474 comm="(ubuntu-insigh)"
requested="userns_create" target="unprivileged_userns"
execpath="/usr/lib/systemd/systemd-executor"
[ 7696.706172] audit: type=1400 audit(1781537001.682:394): apparmor="DENIED"
operation="capable" class="cap" profile="unprivileged_userns" pid=12474
comm="(ubuntu-insigh)" capability=21 capname="sys_admin"
```Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #105 from Armin Wolf ([email protected]) ---
It can be that some features like reader mode are not supported on your devices.
Did i understand correctly that all of you can control the keyboard backlight using the sysfs interface under /sys/devices/platform/LGEX0820:00/leds/kbd_backlight/brightness?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #106 from [email protected] ---
yes I can adjust the brightness on the 2024 model with this command as root:
keyboard backlight off:
echo 0 > /sys/devices/platform/LGEX0820:00/leds/kbd_backlight/brightness
keyboard backlight half brightness:
echo (1-254) > /sys/devices/platform/LGEX0820:00/leds/kbd_backlight/brightness
Full brightness:
echo 255 > /sys/devices/platform/LGEX0820:00/leds/kbd_backlight/brightness
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #107 from Evgeny Ch ([email protected]) ---
Yes, the same commands from previous message work for keyboard backlight for LG gram 16 2022 with new driver.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #108 from Armin Wolf ([email protected]) --- Nice, i will send the patches upstream then.
Regarding the duplicated touchpad toggle event: i think you can use a udev rule to disable the touchpad event from the keyboard.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218901] LG Gram Laptop Extra Features not working on 2024 models (16Z90S)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218901
--- Comment #109 from Armin Wolf ([email protected]) ---
The patch series has been accepted upstream abd will likely land with the 7.3 kernel.
Regarding the missing keyboard backlight toggle reaction: i cannot map the associated event to KBD_ILLUMTOGGLE by default because this would result in duplicated toggle events on devices where the toggle happens automatically.
For now i suggest you use a small script that gets launched when KEY_F16 has been pressed.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.