LenovoLegionLinux
LenovoLegionLinux copied to clipboard
Testing controlling light of Y-Logo in lid or light at IO-Ports (e.g. Legion 7) [looking for testers]
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?).
- Turn the light off.
- Get output of
sudo cat /sys/kernel/debug/legion/fancurve
and copy here. - Get output of
cat /sys/class/leds/platform\:\:ioport/brightness
and copy here. - Turn the light on.
- Get output of
sudo cat /sys/kernel/debug/legion/fancurve
and copy here. - Get output of
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?).
- Turn the light off
- Get output of
sudo cat /sys/kernel/debug/legion/fancurve
and copy here. - Get output of
cat /sys/class/leds/platform\:\:ylogo/brightness
and copy here, - Turn the light on
- Get output of
sudo cat /sys/kernel/debug/legion/fancurve
and copy here. - Gett output of
cat /sys/class/leds/platform\:\:ylogo/brightness
and copy here,
The following information would be useful but are optional
Inspecting WMI entries
# Install required tools
sudo apt install fwts
# Create folder for all the new files
mkdir fwts_re
cd fwts_re
sudo fwts wmi - > fwts_wmi.log
Then upload files.
Disassembling ACPI tables
# Install requiered tools
sudo apt install acpica-tools
# Create folder for all the new files
mkdir acpi_re
cd acpi_re
# List ACPI tables and copy them
ls /sys/firmware/acpi/tables/
sudo cp --no-preserve=mode /sys/firmware/acpi/tables/*SDT* .
# Disassemble tables to output DSDT.dsl
iasl -e SSDT* -d DSDT
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.
$wmi_classes = Get-WmiObject -Namespace 'ROOT/WMI' -List -Class "*LENOVO*"
foreach ($wmi_class in $wmi_classes){
Write-Host "########################################"
Write-Host "########################################"
Write-Host "########################################"
Write-Host "Name:" $wmi_class.Name
Write-Host "Class Name:" $wmi_class.Name
Write-Host "Class GUID:" $wmi_class.Qualifiers["guid"].Value
Write-Host "Description:" $wmi_class.Methods.Count
Write-Host "Methods:"
foreach ($method in $wmi_class.Methods){
Write-Host "Name:" $method.Name
Write-Host "WmiMethodId:" $method.Qualifiers["WmiMethodId"].Value
Write-Host "Class Name:" $wmi_class.Name
Write-Host "Class GUID:" $wmi_class.Qualifiers["guid"].Value
Write-Host "Description:" $method.Qualifiers["Description"].Value
Write-Host "Implemented:" $method.Qualifiers["Implemented"].Value
Write-Host ""
}
Write-Host ""
}
Are you looking for this?
Lenovo Legion Y7000 (china version) Intel i7-8750H + Nvidia 1050ti
@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.
Oops. I think disabling Y-logo light feature isn't available for my model, but here's my system information anyway
@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 :smiley: . 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.
Also, the command sudo make reloadmodule
isn't working for me. (I did not notice that before, sorry 😟)
The log says:
[ 648.065732] legion PNP0C09:00: Module not useable for this laptop because it is not in allowlist. Notify maintainer if you want to add your device or force load with param force.
Currently I have no idea how to force load XD
Full log here: 1.txt
Thanks a lot for the logs. You can force loading it with sudo make forcereloadmodule
.
Looks like it is still not working with sudo make forcereloadmodule
Here is the log with sudo make forcereloadmodule > 2.txt
2.txt
@Guanran928 I added your model/BIOS version to the the code. You can try it now by getting the new code (git pull
or just downloading again), compiling again (make
), and loading again (make reloadmodule
) it should now work without forcing.
sudo make reloadmodule
worked, but FN+L didn't work for me, after some researching, I found that disabling Y-Logo light is not a thing on my model with this specific GPU (according to Lenovo), I didn't know this and I am really sorry. I apologize for the effort that you spent. Is there anything else I can provide?
@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 CPU model: AMD Ryzen 7 5800H GPU model: Nvidia GeForce RTX 3070 Mobile Keyboard backlight: off Light in lid or logo: no
sudo dmidecode -t system
# 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: 82JQ
Version: Legion 5 Pro 16ACH6H
Serial Number:
UUID:
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_82JQ_BU_idea_FM_Legion 5 Pro 16ACH6H
Family: Legion 5 Pro 16ACH6H
Handle 0x0020, 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 0x0030, 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.3.0 present.
Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
Vendor: LENOVO
Version: GKCN60WW
Release Date: 03/07/2023
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.60
Firmware Revision: 1.60
Handle 0x0021, 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
sudo cat /sys/kernel/debug/legion/fancurve (with light off)
EC 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: 46
CPU temperature EC error: 0
CPU temperature EC: 46
CPU temperature ACPI error: 0
CPU temperature ACPI: 46
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 46
GPU temperature error: 0
GPU temperature: 40
GPU temperature EC error: 0
GPU temperature EC: 40
GPU temperature ACPI error: 0
GPU temperature ACPI: 40
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: 0
GPU temperature WMI2: 40
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 1858
1 fanspeed EC error: 0
1 fanspeed EC: 1858
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 1800
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: 0
1 fanspeed WMI2: 1800
2 fanspeed error: 0
2 fanspeed: 1763
2 fanspeed EC error: 0
2 fanspeed EC: 1763
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: 16
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: 0
WMI light IO port: 0
WMI light y logo/lid: 0
EC minifancurve feature enabled: 1
EC minifancurve on cool: true
EC lockfancontroller error: 0
EC lockfancontroller: false
EC fanfullspeed error: false
EC fanfullspeed status: 0
EC fan curve current point id: 1
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 0 63 0 66 0 43
1800 1700 2 2 58 63 62 66 38 46
1800 1900 2 2 58 63 62 66 42 51
2100 2100 2 2 58 63 62 66 46 127
2300 2400 2 2 58 69 62 66 127 127
2600 2600 2 2 63 76 62 66 127 127
2800 2900 2 2 71 80 62 70 127 127
3500 3500 2 2 75 88 65 75 127 127
3800 3800 2 2 83 94 70 78 127 127
4200 4200 2 2 90 127 74 127 127 127
=====================
cat /sys/class/leds/platform\:\:ylogo/brightness (with light off)
0sudo cat /sys/kernel/debug/legion/fancurve (with light on)
EC 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: 49
CPU temperature EC error: 0
CPU temperature EC: 49
CPU temperature ACPI error: 0
CPU temperature ACPI: 49
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 49
GPU temperature error: 0
GPU temperature: 42
GPU temperature EC error: 0
GPU temperature EC: 42
GPU temperature ACPI error: 0
GPU temperature ACPI: 42
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: 0
GPU temperature WMI2: 42
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 1850
1 fanspeed EC error: 0
1 fanspeed EC: 1850
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 1800
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: 0
1 fanspeed WMI2: 1800
2 fanspeed error: 0
2 fanspeed: 1764
2 fanspeed EC error: 0
2 fanspeed EC: 1764
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: 16
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: 0
WMI light IO port: 0
WMI light y logo/lid: 0
EC minifancurve feature enabled: 1
EC minifancurve on cool: true
EC lockfancontroller error: 0
EC lockfancontroller: false
EC fanfullspeed error: false
EC fanfullspeed status: 0
EC fan curve current point id: 1
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 0 63 0 66 0 43
1800 1700 2 2 58 63 62 66 38 46
1800 1900 2 2 58 63 62 66 42 51
2100 2100 2 2 58 63 62 66 46 127
2300 2400 2 2 58 69 62 66 127 127
2600 2600 2 2 63 76 62 66 127 127
2800 2900 2 2 71 80 62 70 127 127
3500 3500 2 2 75 88 65 75 127 127
3800 3800 2 2 83 94 70 78 127 127
4200 4200 2 2 90 127 74 127 127 127
=====================
cat /sys/class/leds/platform\:\:ylogo/brightness (with light on)
0
Model and Debug Info
Model name: Legion S7 CPU model: AMD Ryzen 7 6800H GPU model: Radeon RX 6600S Keyboard backlight: RGB Light in lid or logo: No Light at IO-Ports at back: Yes
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 tests
Light Off
sudo cat /sys/kernel/debug/legion/fancurve
EC 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/brightness
cat: '/sys/class/leds/platform::ioport/brightness': No such file or directory
This is all that I have in /sys/class/leds/
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: cat /sys/class/leds/platform\:\:ylogo/brightness
returned 0
Light On
sudo cat /sys/kernel/debug/legion/fancurve
EC 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/brightness
Same error as above.
Running: cat /sys/class/leds/platform\:\:ylogo/brightness
still returns 0
The attached files were obtained a couple of weeks ago, let me know if you need more recent data.
Hi ! Here's for my laptop : Model and Debug Info
Model name: Y740-17IRHg ( Type 81UJ ) CPU model: Intel i7-9750H GPU model: Nvidia RTX 2070 Max-Q Design Keyboard backlight: RGB with different presets Light in lid or logo: Yes, on the side in the "O" of Legion Logo Light at IO-Ports at back: I do not believe so.
Output of sudo dmidecode -t system:
# dmidecode 3.5
Getting SMBIOS data from sysfs.
SMBIOS 3.0.1 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 81UJ
Version: Lenovo Legion Y740-17IRHg
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_81UJ_BU_idea_FM_Legion Y740-17IRHg
Family: Legion Y740-17IRHg
Handle 0x001F, DMI type 12, 5 bytes
System Configuration Options
Option 1: ConfigOptions1
Option 2: ConfigOptions2
Option 3: ConfigOptions3
Handle 0x0024, DMI type 15, 29 bytes
System Event Log
Area Length: 0 bytes
Header Start Offset: 0x0000
Header Length: 8192 bytes
Data Start Offset: 0x2000
Access Method: General-purpose non-volatile data functions
Access Address: 0x0000
Status: Valid, Not Full
Change Token: 0x12345678
Header Format: OEM-specific
Supported Log Type Descriptors: 3
Descriptor 1: POST memory resize
Data Format 1: None
Descriptor 2: POST error
Data Format 2: POST results bitmap
Descriptor 3: Log area reset/cleared
Data Format 3: None
Handle 0x0031, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected
Output of sudo dmidecode -t bios:
# dmidecode 3.5
Getting SMBIOS data from sysfs.
SMBIOS 3.0.1 present.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: LENOVO
Version: BVCN16WW(V1.12)
Release Date: 06/21/2021
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 10 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.16
Firmware Revision: 1.16
Handle 0x0020, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Long
Installable Languages: 8
en|US|iso8859-1,0
fr|FR|iso8859-1,0
zh|TW|unicode,0
ja|JP|unicode,0
it|IT|iso8859-1,0
es|ES|iso8859-1,0
de|DE|iso8859-1,0
pt|PT|iso8859-1,0
Currently Installed Language: en|US|iso8859-1,0
I couldn't install for the optional files ^^' Hope this helps ! :D
Model name: Lenovo Pro 7i Gen 8 16IRX8 CPU model: i9-13900hx GPU model:rtx 4070 Keyboard backlight: RGB Light in lid or logo: No Light at IO-Ports at back: Yes, not user-controllable (yes/no)
sudo dmidecode -t system
# dmidecode 3.5
Getting SMBIOS data from sysfs.
SMBIOS 3.4 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 82WR
Version: Legion Pro 7 16IRX8
Serial Number: ############
UUID: #############
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_82WR_BU_idea_FM_Legion Pro 7 16IRX8
Family: Legion Pro 7 16IRX8
Handle 0x0024, DMI type 12, 5 bytes
System Configuration Options
Option 1: ConfigOptions1
Option 2: ConfigOptions2
Option 3: ConfigOptions3
Handle 0x0027, DMI type 15, 29 bytes
System Event Log
Area Length: 0 bytes
Header Start Offset: 0x0000
Header Length: 8192 bytes
Data Start Offset: 0x2000
Access Method: General-purpose non-volatile data functions
Access Address: 0x0000
Status: Valid, Not Full
Change Token: 0x12345678
Header Format: OEM-specific
Supported Log Type Descriptors: 3
Descriptor 1: POST memory resize
Data Format 1: None
Descriptor 2: POST error
Data Format 2: POST results bitmap
Descriptor 3: Log area reset/cleared
Data Format 3: None
Handle 0x0034, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected
sudo dmidecode -t bios
# dmidecode 3.5
Getting SMBIOS data from sysfs.
SMBIOS 3.4 present.
Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
Vendor: LENOVO
Version: KWCN35WW
Release Date: 04/07/2023
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.35
Firmware Revision: 1.35
Handle 0x0025, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Long
Installable Languages: 8
en|US|iso8859-1,0
fr|FR|iso8859-1,0
zh|TW|unicode,0
ja|JP|unicode,0
it|IT|iso8859-1,0
es|ES|iso8859-1,0
de|DE|iso8859-1,0
pt|PT|iso8859-1,0
Currently Installed Language: en|US|iso8859-1,0
Model name: Lenovo Legion 5 Pro 16ach6h (Model 82JQ) CPU model: AMD Ryzen 7 5800H GPU model: NVIDIA RTX 3060 Keyboard backlight: RGB (firmware control, no iCUE required) Light in lid or logo: Yes Light at IO-Ports at back: No (?)
$ sudo dmidecode -t system | grep -v UUID | grep -v "Serial Number"
# 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: 82JQ
Version: Legion 5 Pro 16ACH6H
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_82JQ_BU_idea_FM_Legion 5 Pro 16ACH6H
Family: Legion 5 Pro 16ACH6H
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
# 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: GKCN59WW
Release Date: 11/21/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.59
Firmware Revision: 1.59
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
Lid Y-logo Light:
click here to expand
### OFF$ sudo cat /sys/kernel/debug/legion/fancurve
EC 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: 41
CPU temperature EC error: 0
CPU temperature EC: 41
CPU temperature ACPI error: 0
CPU temperature ACPI: 41
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 41
GPU temperature error: 0
GPU temperature: 37
GPU temperature EC error: 0
GPU temperature EC: 37
GPU temperature ACPI error: 0
GPU temperature ACPI: 37
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: 0
GPU temperature WMI2: 37
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 1764
1 fanspeed EC error: 0
1 fanspeed EC: 1764
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: 1963
2 fanspeed EC error: 0
2 fanspeed EC: 1963
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 1900
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: 0
2 fanspeed WMI2: 1900
powermode access method: 3
powermode error: 0
powermode: 1
powermode EC error: 0
powermode EC: 18
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 1
has custom powermode: 1
ACPI rapidcharge error: 0
ACPI rapidcharge: 1
WMI backlight 2 state: 0
WMI backlight 3 state: 0
WMI light IO port: 0
WMI light y logo/lid: 0
EC minifancurve feature enabled: 1
EC minifancurve on cool: true
EC lockfancontroller error: 0
EC lockfancontroller: false
EC fanfullspeed error: false
EC fanfullspeed status: 0
EC fan curve current point id: 1
EC fan curve points size: 8
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 0 48 0 59 0 41
1700 1900 2 2 45 54 55 59 39 44
1900 2000 2 2 51 58 55 59 42 50
2200 2100 2 2 55 62 55 59 46 127
2300 2400 2 2 59 71 55 59 127 127
2600 2700 2 2 68 76 55 64 127 127
2900 3000 2 2 72 81 60 68 127 127
3500 3500 2 2 78 127 65 127 127 127
=====================
sudo cat /sys/class/leds/platform::ylogo/brightness
0
ON
$ sudo cat /sys/kernel/debug/legion/fancurve
EC 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: 42
CPU temperature EC error: 0
CPU temperature EC: 42
CPU temperature ACPI error: 0
CPU temperature ACPI: 42
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 42
GPU temperature error: 0
GPU temperature: 37
GPU temperature EC error: 0
GPU temperature EC: 37
GPU temperature ACPI error: 0
GPU temperature ACPI: 37
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: 0
GPU temperature WMI2: 37
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 1765
1 fanspeed EC error: 0
1 fanspeed EC: 1765
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: 1963
2 fanspeed EC error: 0
2 fanspeed EC: 1963
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 1900
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: 0
2 fanspeed WMI2: 1900
powermode access method: 3
powermode error: 0
powermode: 1
powermode EC error: 0
powermode EC: 18
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 1
has custom powermode: 1
ACPI rapidcharge error: 0
ACPI rapidcharge: 1
WMI backlight 2 state: 0
WMI backlight 3 state: 0
WMI light IO port: 0
WMI light y logo/lid: 0
EC minifancurve feature enabled: 1
EC minifancurve on cool: true
EC lockfancontroller error: 0
EC lockfancontroller: false
EC fanfullspeed error: false
EC fanfullspeed status: 0
EC fan curve current point id: 1
EC fan curve points size: 8
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 0 48 0 59 0 41
1700 1900 2 2 45 54 55 59 39 44
1900 2000 2 2 51 58 55 59 42 50
2200 2100 2 2 55 62 55 59 46 127
2300 2400 2 2 59 71 55 59 127 127
2600 2700 2 2 68 76 55 64 127 127
2900 3000 2 2 72 81 60 68 127 127
3500 3500 2 2 78 127 65 127 127 127
=====================
sudo cat /sys/class/leds/platform::ylogo/brightness
0
FWTS
I managed to run fwts
on Arch Linux using the fwts snap package.
fwts_wmi.log
ACPI Tables
A friend with a similar laptop also kindly ran the windows command for me.
Model name: Lenovo Legion 5 Pro 6th Gen CPU model: AMD Ryzen 7 5800H GPU model: NVIDIA RTX 3070 Keyboard backlight: RGB (firmware control, no iCUE required) Light in lid or logo: Yes Light at IO-Ports at back: No (?)
Model name: Legion 7 16ACHg6 CPU model: AMD Ryzen™ 9 5900HX Processor(Ryzen™ 9 5900HX) GPU model: NVIDIA® GeForce RTX™ 3080 16GB Keyboard backlight: RGB (firmware control, no iCUE required) Light in lid or logo: Yes Light at IO-Ports at back: Yes
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
fwts
ACPI Tables
I would like to contribute, but ioport/brightness
is missing. I have Lenovo Legion 7 Gen 7 AMD (16ARHA7
), which has Legion
logo (RGB) on the lid and light toggle for ports on the back.
$ ls /sys/class/leds/
input2::capslock input33::capslock input4::capslock
input2::numlock input33::numlock input4::compose
input2::scrolllock input33::scrolllock input4::kana
input31::capslock input3::capslock input4::numlock
input31::compose input3::compose input4::scrolllock
input31::kana input3::kana platform::kbd_backlight
input31::numlock input3::numlock platform::ylogo
input31::scrolllock input3::scrolllock
I would like to contribute, but
ioport/brightness
is missing. I have Lenovo Legion 7 Gen 7 AMD (16ARHA7
), which hasLegion
logo (RGB) on the lid and light toggle for ports on the back.$ ls /sys/class/leds/ input2::capslock input33::capslock input4::capslock input2::numlock input33::numlock input4::compose input2::scrolllock input33::scrolllock input4::kana input31::capslock input3::capslock input4::numlock input31::compose input3::compose input4::scrolllock input31::kana input3::kana platform::kbd_backlight input31::numlock input3::numlock platform::ylogo input31::scrolllock input3::scrolllock
Have you tried compiling the latest version of the module from git?
@XenHat I followed instructions from README. Latest commit in local directory matches current latest: https://github.com/johnfanv2/LenovoLegionLinux/commit/f3f363fc1c24469dfc7683003b9ba91dec38f5af
It's been a while, so I removed old directory, updated the system, rebooted and repeated steps:
/sys/class/leds/
before sudo make reloadmodule
input2::capslock/ input2::scrolllock/ input3::compose/ input3::numlock/ input6::capslock/ input6::kana/ input6::scrolllock/
input2::numlock/ input3::capslock/ input3::kana/ input3::scrolllock/ input6::compose/ input6::numlock/
/sys/class/leds/
after sudo make reloadmodule
input2::capslock/ input3::capslock/ input3::numlock/ input6::compose/ input6::scrolllock/
input2::numlock/ input3::compose/ input3::scrolllock/ input6::kana/ platform::kbd_backlight/
input2::scrolllock/ input3::kana/ input6::capslock/ input6::numlock/ platform::ylogo/
platform::ioport/brightness
is still missing.
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 CPU model: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz GPU model: TU104BM [GeForce RTX 2070 SUPER Mobile / Max-Q] (rev a1) Keyboard backlight: RGB Light in lid or logo: yes Light at IO-Ports at back: yes
Output of sudo dmidecode -t system
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 81YT
Version: Lenovo Legion 7 15IMH05
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_81YT_BU_idea_FM_Legion 7 15IMH05
Family: Legion 7 15IMH05
Handle 0x001F, DMI type 12, 5 bytes
System Configuration Options
Option 1: ConfigOptions1
Option 2: ConfigOptions2
Option 3: ConfigOptions3
Handle 0x0023, DMI type 15, 29 bytes
System Event Log
Area Length: 0 bytes
Header Start Offset: 0x0000
Header Length: 8192 bytes
Data Start Offset: 0x2000
Access Method: General-purpose non-volatile data functions
Access Address: 0x0000
Status: Valid, Not Full
Change Token: 0x12345678
Header Format: OEM-specific
Supported Log Type Descriptors: 3
Descriptor 1: POST memory resize
Data Format 1: None
Descriptor 2: POST error
Data Format 2: POST results bitmap
Descriptor 3: Log area reset/cleared
Data Format 3: None
Handle 0x0030, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected
Output of sudo dmidecode -t bios
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.
Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
Vendor: LENOVO
Version: E9CN66WW(V4.11)
Release Date: 09/30/2022
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 12 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: 4.66
Firmware Revision: 4.66
Handle 0x0020, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Long
Installable Languages: 8
en|US|iso8859-1,0
fr|FR|iso8859-1,0
zh|TW|unicode,0
ja|JP|unicode,0
it|IT|iso8859-1,0
es|ES|iso8859-1,0
de|DE|iso8859-1,0
pt|PT|iso8859-1,0
Currently Installed Language: en|US|iso8859-1,0
None of the function keys worked for either the IO-Port or Lid light on my system.
output of sudo cat /sys/kernel/debug/legion/fancurve
EC Chip ID: ffff
EC Chip Version: ffff
legion_laptop features: fancurve powermode platformprofile platformprofilenotify minifancurve
legion_laptop ec_readonly: 0
ACPI CFG error: 0
ACPI CFG: 4228710420
temperature access method: 3
CPU temperature error: 0
CPU temperature: 49
CPU temperature EC error: 0
CPU temperature EC: 255
CPU temperature ACPI error: -5
CPU temperature ACPI: 255
CPU temperature WMI error: 0
CPU temperature WMI: 49
CPU temperature WMI2 error: -14
CPU temperature WMI2: 49
CPU temperature WMI3 error: -14
CPU temperature WMI3: 49
GPU temperature error: 0
GPU temperature: 45
GPU temperature EC error: 0
GPU temperature EC: 255
GPU temperature ACPI error: -5
GPU temperature ACPI: 255
GPU temperature WMI error: 0
GPU temperature WMI: 45
GPU temperature WMI2 error: -14
GPU temperature WMI2: 45
GPU temperature WMI3 error: -14
GPU temperature WMI3: 45
fan speed access method: 3
1 fanspeed error: 0
1 fanspeed: 1600
1 fanspeed EC error: 0
1 fanspeed EC: 65535
1 fanspeed ACPI error: -5
1 fanspeed ACPI: 65535
1 fanspeed WMI error: 0
1 fanspeed WMI: 1600
1 fanspeed WMI2 error: -14
1 fanspeed WMI2: 1600
1 fanspeed WMI3 error: -14
1 fanspeed WMI3: 1600
2 fanspeed error: 0
2 fanspeed: 1600
2 fanspeed EC error: 0
2 fanspeed EC: 65535
2 fanspeed ACPI error: -5
2 fanspeed ACPI: 65535
2 fanspeed WMI error: 0
2 fanspeed WMI: 1600
2 fanspeed WMI2 error: -14
2 fanspeed WMI2: 1600
2 fanspeed WMI3 error: -14
2 fanspeed WMI3: 1600
powermode access method: 3
powermode error: 0
powermode: 2
powermode EC error: 0
powermode EC: 255
powermode ACPI error: -5
powermode ACPI: 76844032
powermode WMI error: 0
powermode WMI: 2
has custom powermode: 0
ACPI rapidcharge error: 0
ACPI rapidcharge: 0
WMI backlight 2 state: 0
WMI backlight 3 state: -5
WMI light IO port: -5
WMI light y logo/lid: -5
EC minifancurve feature enabled: 0
EC minifancurve on cool: error
EC lockfancontroller error: -1
EC lockfancontroller: error
EC fanfullspeed error: error
EC fanfullspeed status: -1
EC fan curve current point id: 0
EC fan curve points size: 0
Current fan curve in hardware:
rpm1|rpm2|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
=====================
Current fan curve in hardware (WMI; might be empty)
rpm1|rpm2|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
=====================
output of cat /sys/class/leds/platform\:\:ioport/brightness
cat: '/sys/class/leds/platform::ioport/brightness': No such file or directory
Model name: Legion Y7000p-1060
Feedora 38 w/ KDE
CPU model: 8750h GPU model: gtx1060-6gb Keyboard backlight: white (off, med, bright) Light in lid or logo: Big white Y logo Light at IO-Ports at back: No (except small red power charging indicator)
Output of `sudo dmidecode -t system`
# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 3.0.1 present.
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 81LF
Version: Lenovo Legion Y7000P-1060
Serial Number: [redacted]
UUID: d56f1dfa-b1a5-11e8-b5f5-e86a640e2769
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_81LF_BU_idea_FM_Legion Y7000P-1060
Family: Legion Y7000P-1060
Handle 0x001F, DMI type 12, 5 bytes
System Configuration Options
Option 1: ConfigOptions1
Option 2: ConfigOptions2
Option 3: ConfigOptions3
Handle 0x0024, DMI type 15, 29 bytes
System Event Log
Area Length: 0 bytes
Header Start Offset: 0x0000
Header Length: 8192 bytes
Data Start Offset: 0x2000
Access Method: General-purpose non-volatile data functions
Access Address: 0x0000
Status: Valid, Not Full
Change Token: 0x12345678
Header Format: OEM-specific
Supported Log Type Descriptors: 3
Descriptor 1: POST memory resize
Data Format 1: None
Descriptor 2: POST error
Data Format 2: POST results bitmap
Descriptor 3: Log area reset/cleared
Data Format 3: None
Handle 0x0031, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected
Output of sudo dmidecode -t bios:
# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 3.0.1 present.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: LENOVO
Version: 9VCN22WW
Release Date: 11/30/2020
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 10 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.22
Firmware Revision: 1.22
Handle 0x0020, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Long
Installable Languages: 8
en|US|iso8859-1,0
fr|FR|iso8859-1,0
zh|TW|unicode,0
ja|JP|unicode,0
it|IT|iso8859-1,0
es|ES|iso8859-1,0
de|DE|iso8859-1,0
pt|PT|iso8859-1,0
Currently Installed Language: en|US|iso8859-1,0
- Fn+L does nothing
-
/sys/kernel/debug/legion
directory does not exist -
/sys/class/leds/platform\:\:ylogo/
directory does not exist
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 Fn+{all letters}
.
I just want to be able to control the fan behavior (Fn+Q). I am ok with the light staying on.
I am also able to manually control the conservation mode for the battery using this command when inside sudo su
:
echo 1 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004\:00/conservation_mode
I didnt know this model even supported that option until I tried it. I never saw that option in vantage when I was on windows. maybe this other folder can do something or has some information that can help?
@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...
According to your instructions, I moved my to this thread. Sorry for the inconvenience.
Either way, I am posting more data @johnfanv2
EDIT: @johnfanv2 - Updated WMI Info from Windows 11 (no significant difference):
win10_11_wmi_info.diff.txt
Model name: 2022 Lenovo Legion 7 16ARHA7 (82UH) - AMD Advantage Edition CPU Model: AMD Ryzen 7 6800H GPU Model: Integrated: APU AMD R680M Rembrandt / Discrete: AMD RX 6700M Keyboard backlight: RGB per key backlight with off/low/medium/bright, It is managed using a fork branch of OpenRGB - https://openrgb.org (in process of being upstreamed)
Output of sudo dmidecode -t system
:
# 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: 82UH
Version: Legion 7 16ARHA7
Serial Number: removed for privacy
UUID: removed for privacy
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_82UH_BU_idea_FM_Legion
7 16ARHA7
Family: Legion 7 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
Output of sudo dmidecode -t bios
:
BIOS Information
Vendor: LENOVO
Version: K9CN42WW
Release Date: 03/10/2023
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.42
Firmware Revision: 1.42
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
Output of sudo cat /sys/kernel/debug/legion/fancurve
:
EC Chip ID: 5507
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
CPU temperature WMI3 error: 0
CPU temperature WMI3: 0
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
GPU temperature WMI3 error: 0
GPU temperature WMI3: 0
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 1675
1 fanspeed EC error: 0
1 fanspeed EC: 1675
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 1600
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: 0
1 fanspeed WMI2: 1600
1 fanspeed WMI3 error: 0
1 fanspeed WMI3: 0
2 fanspeed error: 0
2 fanspeed: 1697
2 fanspeed EC error: 0
2 fanspeed EC: 1697
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 1600
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: 0
2 fanspeed WMI2: 1600
2 fanspeed WMI3 error: 0
2 fanspeed WMI3: 0
powermode access method: 3
powermode error: 0
powermode: 2
powermode EC error: 0
powermode EC: 0
powermode ACPI error: -5
powermode ACPI: 1
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: 0
WMI light IO port: 0
WMI light y logo/lid: 0
EC minifancurve feature enabled: 1
EC minifancurve on cool: true
EC lockfancontroller error: 0
EC lockfancontroller: false
EC fanfullspeed error: false
EC fanfullsp
eed status: 0
EC fan curve current point id: 1
EC fan curve points size: 4
Current fan curve in hardware:
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 0 127 0 127 0 37
1600 1600 2 2 127 127 127 127 33 41
1700 1700 2 2 127 127 127 127 38 46
1900 1900 2 2 127 127 127 127 41
127
=====================
Current fan curve in hardware (WMI; might be empty)
rpm1|rpm2|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
=====================
Inspection of WMI entries:
Output of sudo fwts wmi - > fwts_wmi.log
:
fwts_wmi.log
Disassembling ACPI tables:
Output of iasl -e SSDT* -d DSDT
(the whole acpi_re folder):
acpi_re.zip
Gathering WMI info in Windows 11:
Legion7_16ARHA7_WMI_Info_Windows_11.txt
Test reading light state
IO-Port lights
-
Lights OFF (Fn+U) Output of
sudo cat /sys/kernel/debug/legion/fancurve
: fn+u_off_fancurve.txt Output ofsudo cat /sys/class/leds/platform\:\:ioport/brightness
:cat: '/sys/class/leds/platform::ioport/brightness': No such file or directory
-
Lights ON (Fn+U) Output of
sudo cat /sys/kernel/debug/legion/fancurve
: fn+u_on_fancurve.txt Output ofsudo cat /sys/class/leds/platform\:\:ioport/brightness
:cat: '/sys/class/leds/platform::ioport/brightness': No such file or directory
Lid LEGION light
-
LEGION Light OFF (Fn+L) Output of
sudo cat /sys/kernel/debug/legion/fancurve
: fn+l_off_fancurve.txt Output ofsudo cat /sys/class/leds/platform\:\:ylogo/brightness
:0
-
LEGION Light ON (Fn+L) Output of
sudo cat /sys/kernel/debug/legion/fancurve
: fn+l_on_fancurve.txt Output ofsudo cat /sys/class/leds/platform\:\:ylogo/brightness
:0
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!
@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.