-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing controlling light of Y-Logo in lid or light at IO-Ports (e.g. Legion 7) [looking for testers] #54
Comments
@Guanran928 Yes, but I am not sure if it will work on this older model. It would be great if you can do the tests. |
@Guanran928 Sorry, I forgot to mention that you also have to pull and load the kernel module (see above and README) before it might work 😃 . Could you please upload the file output1.txt and output2.txt ? I guess I have to add your model to the kernel module before it work and I need this information to do it. |
Here you go :D. |
Also, the command Full log here: |
Thanks a lot for the logs. You can force loading it with |
Looks like it is still not working with Here is the log with |
@Guanran928 I added your model/BIOS version to the the code. You can try it now by getting the new code ( |
|
@Guanran928 Thanks for the feedback on controlling the light! If you want, you can test if the other features, e.g. in the python GUI, work on your laptop in Linux. If something does not work, then feel free to report back I can try to adapt the software to make it work with your model. |
Model name: Lenovo Legion 5 Pro-16ACH6H Laptop - Type 82JQ sudo dmidecode -t system
sudo dmidecode -t bios
sudo cat /sys/kernel/debug/legion/fancurve (with light off)
cat /sys/class/leds/platform\:\:ylogo/brightness (with light off)0sudo cat /sys/kernel/debug/legion/fancurve (with light on)
cat /sys/class/leds/platform\:\:ylogo/brightness (with light on)0 |
Model and Debug Info Model name: Legion S7 sudo dmidecode -t system# dmidecode 3.5
Getting SMBIOS data from sysfs.
SMBIOS 3.4.0 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 82UG
Version: Legion S7 16ARHA7
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_82UG_BU_idea_FM_Legion S7 16ARHA7
Family: Legion S7 16ARHA7
Handle 0x001B, DMI type 12, 5 bytes
System Configuration Options
Option 1: String1 for Type12 Equipment Manufacturer
Option 2: String2 for Type12 Equipment Manufacturer
Option 3: String3 for Type12 Equipment Manufacturer
Option 4: String4 for Type12 Equipment Manufacturer
Handle 0x0029, DMI type 32, 20 bytes
System Boot Information
Status: No errors detected sudo dmidecode -t bios# dmidecode 3.5
Getting SMBIOS data from sysfs.
SMBIOS 3.4.0 present.
Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
Vendor: LENOVO
Version: KFCN32WW
Release Date: 09/29/2022
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 32 MB
Characteristics:
PCI is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported
Selectable boot is supported
EDD is supported
Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
5.25"/360 kB floppy services are supported (int 13h)
5.25"/1.2 MB floppy services are supported (int 13h)
3.5"/720 kB floppy services are supported (int 13h)
3.5"/2.88 MB floppy services are supported (int 13h)
8042 keyboard services are supported (int 9h)
CGA/mono video services are supported (int 10h)
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Targeted content distribution is supported
UEFI is supported
BIOS Revision: 1.32
Firmware Revision: 1.32
Handle 0x001C, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Long
Installable Languages: 4
en|US|iso8859-1
fr|FR|iso8859-1
ja|JP|unicode
zh|TW|unicode
Currently Installed Language: en|US|iso8859-1 IO-Port light testsLight Off sudo cat /sys/kernel/debug/legion/fancurveEC Chip ID: 8227
EC Chip Version: 2a4
legion_laptop features: fancurve powermode platformprofile platformprofilenotify minifancurve
legion_laptop ec_readonly: 0
ACPI CFG error: 0
ACPI CFG: 2081289482
temperature access method: 1
CPU temperature error: 0
CPU temperature: 39
CPU temperature EC error: 0
CPU temperature EC: 39
CPU temperature ACPI error: 0
CPU temperature ACPI: 39
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 39
GPU temperature error: 0
GPU temperature: 0
GPU temperature EC error: 0
GPU temperature EC: 0
GPU temperature ACPI error: 0
GPU temperature ACPI: 0
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: 0
GPU temperature WMI2: 0
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 1760
1 fanspeed EC error: 0
1 fanspeed EC: 1760
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 1700
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: 0
1 fanspeed WMI2: 1700
2 fanspeed error: 0
2 fanspeed: 1757
2 fanspeed EC error: 0
2 fanspeed EC: 1757
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 1700
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: 0
2 fanspeed WMI2: 1700
powermode access method: 3
powermode error: 0
powermode: 2
powermode EC error: 0
powermode EC: 0
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 2
has custom powermode: 1
ACPI rapidcharge error: 0
ACPI rapidcharge: 0
WMI backlight 2 state: 0
WMI backlight 3 state: -14
WMI light IO port: 0
WMI light y logo/lid: 0
EC minifancurve feature enabled: 0
EC minifancurve on cool: error
EC lockfancontroller error: 0
EC lockfancontroller: false
EC fanfullspeed error: false
EC fanfullspeed status: 0
EC fan curve current point id: 2
EC fan curve points size: 10
Current fan curve in hardware (embedded controller):
rpm1|rpm2|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
0 0 2 2 60 80 70 76 0 32
1600 1600 2 2 60 80 70 76 31 34
1700 1700 2 2 60 80 70 76 33 40
2000 2000 2 2 60 80 70 76 39 46
2200 2200 2 2 60 80 70 76 45 50
2500 2500 2 2 60 80 70 76 49 53
2800 2800 2 2 60 80 70 76 52 56
3200 3200 2 2 60 80 70 76 55 58
3500 3500 2 2 60 80 70 76 57 61
3500 3500 2 2 60 80 70 76 60 64
===================== cat /sys/class/leds/platform\:\:ioport/brightnesscat: '/sys/class/leds/platform::ioport/brightness': No such file or directory This is all that I have in input13::capslock
input13::compose
input13::kana
input13::numlock
input13::scrolllock
input50::capslock
input50::compose
input50::kana
input50::numlock
input50::scrolllock
input6::capslock
input6::numlock
input6::scrolllock
mmc0::
platform::ylogo Running: Light On sudo cat /sys/kernel/debug/legion/fancurveEC Chip ID: 8227
EC Chip Version: 2a4
legion_laptop features: fancurve powermode platformprofile platformprofilenotify minifancurve
legion_laptop ec_readonly: 0
ACPI CFG error: 0
ACPI CFG: 2081289482
temperature access method: 1
CPU temperature error: 0
CPU temperature: 39
CPU temperature EC error: 0
CPU temperature EC: 39
CPU temperature ACPI error: 0
CPU temperature ACPI: 39
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 39
GPU temperature error: 0
GPU temperature: 0
GPU temperature EC error: 0
GPU temperature EC: 0
GPU temperature ACPI error: 0
GPU temperature ACPI: 0
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: 0
GPU temperature WMI2: 0
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 1755
1 fanspeed EC error: 0
1 fanspeed EC: 1755
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 1700
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: 0
1 fanspeed WMI2: 1700
2 fanspeed error: 0
2 fanspeed: 1761
2 fanspeed EC error: 0
2 fanspeed EC: 1761
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 1700
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: 0
2 fanspeed WMI2: 1700
powermode access method: 3
powermode error: 0
powermode: 2
powermode EC error: 0
powermode EC: 0
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 2
has custom powermode: 1
ACPI rapidcharge error: 0
ACPI rapidcharge: 0
WMI backlight 2 state: 0
WMI backlight 3 state: -14
WMI light IO port: 0
WMI light y logo/lid: 0
EC minifancurve feature enabled: 0
EC minifancurve on cool: error
EC lockfancontroller error: 0
EC lockfancontroller: false
EC fanfullspeed error: false
EC fanfullspeed status: 0
EC fan curve current point id: 2
EC fan curve points size: 10
Current fan curve in hardware (embedded controller):
rpm1|rpm2|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
0 0 2 2 60 80 70 76 0 32
1600 1600 2 2 60 80 70 76 31 34
1700 1700 2 2 60 80 70 76 33 40
2000 2000 2 2 60 80 70 76 39 46
2200 2200 2 2 60 80 70 76 45 50
2500 2500 2 2 60 80 70 76 49 53
2800 2800 2 2 60 80 70 76 52 56
3200 3200 2 2 60 80 70 76 55 58
3500 3500 2 2 60 80 70 76 57 61
3500 3500 2 2 60 80 70 76 60 64
===================== cat /sys/class/leds/platform\:\:ioport/brightnessSame error as above. Running: The attached files were obtained a couple of weeks ago, let me know if you need more recent data. |
Hi ! Model name: Y740-17IRHg ( Type 81UJ ) Output of sudo dmidecode -t system:
Output of sudo dmidecode -t bios:
I couldn't install for the optional files ^^' |
Model name: Lenovo Pro 7i Gen 8 16IRX8
|
Model name: Lenovo Legion 5 Pro 16ach6h (Model 82JQ)
Lid Y-logo Light:click here to expand### OFF
ON
FWTSI managed to run ACPI Tables |
A friend with a similar laptop also kindly ran the windows command for me. Model name: Lenovo Legion 5 Pro 6th Gen |
Model name: Legion 7 16ACHg6 sudo dmidecode -t system $ sudo dmidecode -t system | grep -v "Serial Number" | grep -v UUID
# dmidecode 3.5
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 82N6
Version: Legion 7 16ACHg6
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_82N6_BU_idea_FM_Legion 7 16ACHg6
Family: Legion 7 16ACHg6
Handle 0x0021, DMI type 12, 5 bytes
System Configuration Options
Option 1: String1 for Type12 Equipment Manufacturer
Option 2: String2 for Type12 Equipment Manufacturer
Option 3: String3 for Type12 Equipment Manufacturer
Option 4: String4 for Type12 Equipment Manufacturer
Handle 0x0031, DMI type 32, 20 bytes
System Boot Information
Status: No errors detected sudo dmidecode -t bios$ sudo dmidecode -t bios
# dmidecode 3.5
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.
Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
Vendor: LENOVO
Version: GKCN54WW
Release Date: 05/05/2022
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 16 MB
Characteristics:
PCI is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported
Selectable boot is supported
EDD is supported
Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
5.25"/360 kB floppy services are supported (int 13h)
5.25"/1.2 MB floppy services are supported (int 13h)
3.5"/720 kB floppy services are supported (int 13h)
3.5"/2.88 MB floppy services are supported (int 13h)
8042 keyboard services are supported (int 9h)
CGA/mono video services are supported (int 10h)
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Targeted content distribution is supported
UEFI is supported
BIOS Revision: 1.54
Firmware Revision: 1.54
Handle 0x0022, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Long
Installable Languages: 4
en|US|iso8859-1
fr|FR|iso8859-1
ja|JP|unicode
zh|TW|unicode
Currently Installed Language: en|US|iso8859-1 fwtsACPI Tables |
I would like to contribute, but
|
Have you tried compiling the latest version of the module from git? |
It's been a while, so I removed old directory, updated the system, rebooted and repeated steps:
Perhaps the instruction/code isn't adjusted to my model. It has toggle backlight for ports on the back, but no "Y-Logo" - instead it's "LEGION" text logo with RGB backlight. |
Model name: Legion 7-15IMH05 Output of
Output of
None of the function keys worked for either the IO-Port or Lid light on my system. output of
output of |
Model name: Legion Y7000p-1060Feedora 38 w/ KDECPU model: 8750h Output of `sudo dmidecode -t system`
Output of sudo dmidecode -t bios:
Log file: fwts.log |
@sakgoyal Can you somehow control the light of the logo in the lid, e.g. with Ctrl+U or Ctrl+Y? Otherwise, I think controlling the lights in the logo is not possible. |
I was not able to control it no matter what. I tried |
@sakgoyal Then I guess it is not possible to control the lights by software when it is not possible to control it by some key combo. I see that you use a older model. I have to add it to the kernel driver module. Please create a new issue, where we can test it and try to test all the features step-by-step. Then we can try to fix all stuff (fan control, power modes,...). |
I guess this is the same laptop as in previous post from @themightymak the other thread... Model name: 2022 Lenovo Legion 7 16ARHA7 (82UH) - AMD Advantage Edition Output of
Output of
Output of
Inspection of WMI entries: Test reading light state IO-Port lights
Lid LEGION light
Please let me know how you would like me to test it and where and how you would like me to post the results and logs and eventual bugs or issue for further development for this laptop. Thank You so much for all your effort! |
@linuxazo Did I understand that correctly that you can control the light at the IO-Ports and the light in the logo with the keys Fn+U and Fn+L? This is interesting because I want to get this into the driver and software but I cannot control it on my own model. I will look at the ACPI dissambly and try to find a way to control it on the newer models. Currently, you logs looks like it does not work. Stay tuned! |
@johnfanv2 Yes. You understood correctly. I can control those lights with those keyboard shortcuts without issues. |
@johnfanv2 This is the output of
Hope it helps... |
Yes. Legion 7 Gen 7 AMD ( |
@SirRFI I saw in your reddit post that you are searching for proprietary fingerprint drivers: Also, for Debian: Our fingerprint sensor device is: |
Model name: LENOVO Legion 5 Pro - 82JD004LBM CPU model: 11th Gen Intel(R) Core(TM) i7-11800H Light in lid or logo: yes = Y
Turn the light on.
/sys/class/leds/platform::ylogo/brightness |
Model and Debug Info Model name: Y7000 2020 Output of sudo dmidecode -t system. Please remove Serial Number and UUID for privacy:
Output of sudo dmidecode -t bios:
|
Model and Debug Info Model name: Lenovo Legion Pro 7 16ARX8H
Inspecting WMI entries ACPI_RE |
I have Legion 7 16 archa7 (r5 6800H & rx 6850m xt), , but I can't install the script. I will be grateful if someone helps + it will be possible to test everything you want. fedora silverblue 41 |
Lenovo Legion 7 testingModel Name: Legion 7 16IAX7 - Type 82TD output
output
IO-Port lightFn+U works to control
light off -> output
light on -> output
light on -> output
lid light (vertical "Lenovo")Fn+L works to control
light off -> output
light on -> output
light on -> output
inspecting WMI entriesattached disassembling ACPI tablesarchive attached, I got an error running
|
Model and Debug Info Model name: Y9000K 2021
|
If you have a model with a light at the IO-ports at the back, a light in the Y-Logo in the lid, or another light in the lid please help to test this feature. Please provide the following information. It must be tested on multiple different models since I assume they have slightly different methods. I will first gather information from different models (see below), then implement it, and then ask you to test if it works.
Model and Debug Info
Model name: ???
CPU model: ??? (e.g. AMD Ryzen 7 5800H)
GPU model: ??? (e.g NVIDIA RTX 3700)
Keyboard backlight: ??? (RGB, single color with off/on, single color with off/medium/bright)
Light in lid or logo: ??? (yes/no)
Light at IO-Ports at back: ??? (yes/no)
Output of
sudo dmidecode -t system
. Please remove Serial Number and UUID for privacy:Output of
sudo dmidecode -t bios
:Test reading light state
Please pull the newest code, compile, and load the kernel module as described in the README, i.e. until the step
sudo make reloadmodule
.IO-Port light
The light at the IO-ports can be turned on/off by pressing Fn+U (maybe other?).
sudo cat /sys/kernel/debug/legion/fancurve
and copy here.cat /sys/class/leds/platform\:\:ioport/brightness
and copy here.sudo cat /sys/kernel/debug/legion/fancurve
and copy here.cat /sys/class/leds/platform\:\:ioport/brightness
and copy here.Y-Logo/Lid light
The light can be turned on/off by pressing Fn+L (maybe other?).
sudo cat /sys/kernel/debug/legion/fancurve
and copy here.cat /sys/class/leds/platform\:\:ylogo/brightness
and copy here,sudo cat /sys/kernel/debug/legion/fancurve
and copy here.cat /sys/class/leds/platform\:\:ylogo/brightness
and copy here,The following information would be useful but are optional
Inspecting WMI entries
Then upload files.
Disassembling ACPI tables
# Install requiered tools sudo apt install acpica-tools
Then upload files.
Gathering WMI info in Windows
If you have Windows, then the following information are very very useful to make use of the ACPI methods. If you do not have Windows, then just skip this. Open powershell as admin in Windows and run the following script. It will list all available lenovo WMI methods. Copy output to a file and upload.
The text was updated successfully, but these errors were encountered: