Skip to content
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

Open
johnfanv2 opened this issue May 1, 2023 · 35 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@johnfanv2
Copy link
Owner

johnfanv2 commented May 1, 2023

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 ""
}
@johnfanv2 johnfanv2 added help wanted Extra attention is needed good first issue Good for newcomers labels May 1, 2023
@johnfanv2 johnfanv2 changed the title Testing controlling light of Y-Logo in lid and light at IO-Ports [looking for testers] Testing controlling light of Y-Logo in lid and light at IO-Ports (e.g. Legion 7) [looking for testers] May 1, 2023
@Guanran928
Copy link

IMG_20230504_234219
Are you looking for this?

Lenovo Legion Y7000 (china version)
Intel i7-8750H + Nvidia 1050ti

@johnfanv2 johnfanv2 changed the title Testing controlling light of Y-Logo in lid and light at IO-Ports (e.g. Legion 7) [looking for testers] Testing controlling light of Y-Logo in lid or light at IO-Ports (e.g. Legion 7) [looking for testers] May 4, 2023
@johnfanv2
Copy link
Owner Author

@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
Copy link

image

image

Oops. I think disabling Y-logo light feature isn't available for my model, but here's my system information anyway

@johnfanv2
Copy link
Owner Author

johnfanv2 commented May 5, 2023

@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.

@Guanran928
Copy link

Here you go :D.

output1.txt
output2.txt

@Guanran928
Copy link

Guanran928 commented May 7, 2023

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

@johnfanv2
Copy link
Owner Author

Thanks a lot for the logs. You can force loading it with sudo make forcereloadmodule.

@Guanran928
Copy link

Looks like it is still not working with sudo make forcereloadmodule

Here is the log with sudo make forcereloadmodule > 2.txt
2.txt

@johnfanv2
Copy link
Owner Author

@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.

@Guanran928
Copy link

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?

@johnfanv2
Copy link
Owner Author

@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.

@Peter-Levine
Copy link

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) 0
sudo 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

fwts_wmi.log
acpi_re.tar.gz

@RzVa317
Copy link

RzVa317 commented May 9, 2023

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.

windows_wmi.txt
fwts.tar.gz
acpi.tar.gz

@Bananonymous
Copy link

Bananonymous commented May 10, 2023

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

@potatoalienof13
Copy link

potatoalienof13 commented Jun 2, 2023

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

fmts_wmi.log
results.log
acpi_re.tar.gz

@XenHat
Copy link
Contributor

XenHat commented Jun 3, 2023

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

acpi_re.tar.gz

@XenHat
Copy link
Contributor

XenHat commented Jun 4, 2023

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 (?)

Windows PowerShell.txt

@halfling81
Copy link

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

fwts_wmi.log

ACPI Tables

ACPI_tables.tar.gz

@SirRFI
Copy link

SirRFI commented Jun 7, 2023

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

@XenHat
Copy link
Contributor

XenHat commented Jun 8, 2023

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

Have you tried compiling the latest version of the module from git?

@SirRFI
Copy link

SirRFI commented Jun 8, 2023

@XenHat I followed instructions from README. Latest commit in local directory matches current latest: f3f363f

@SirRFI
Copy link

SirRFI commented Jun 22, 2023

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.

@daemonofchaos
Copy link

daemonofchaos commented Jun 28, 2023

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

fwts_wmi.log

acpi_re.tar.gz

@sakgoyal
Copy link

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

image

@johnfanv2
Copy link
Owner Author

johnfanv2 commented Jul 14, 2023

@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.

@sakgoyal
Copy link

sakgoyal commented Jul 14, 2023

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?

@johnfanv2
Copy link
Owner Author

johnfanv2 commented Jul 15, 2023

@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,...).

@linuxazo
Copy link

linuxazo commented Aug 11, 2023

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 of sudo 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 of sudo 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 of sudo 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 of sudo 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!

@johnfanv2
Copy link
Owner Author

johnfanv2 commented Aug 11, 2023

@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
Copy link

@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.

@linuxazo
Copy link

linuxazo commented Aug 11, 2023

@johnfanv2 This is the output of sudo dmesg | grep legion:

[   13.906686] legion_laptop: legion_laptop starts loading
[   13.906721] legion PNP0C09:00: legion_laptop platform driver probing
[   13.906723] legion PNP0C09:00: Read identifying information: DMI_SYS_VENDOR: LENOVO; DMI_PRODUCT_NAME: 82UH; DMI_BIOS_VERSION:K9CN42WW
[   13.906724] legion_laptop: Read identifying information: DMI_SYS_VENDOR: LENOVO; DMI_PRODUCT_NAME: 82UH; DMI_BIOS_VERSION:K9CN42WW
[   13.906726] legion PNP0C09:00: is_denied: 0; is_allowed: 1; do_load_by_list: 1; do_load: 1
[   13.906727] legion PNP0C09:00: Using configuration for system: K9CN
[   13.908930] legion PNP0C09:00: ACPI CFG: 2081289482
[   13.908932] legion_laptop: Creating RAM access to embedded controller
[   13.908942] legion_laptop: Succeffuly mapped embedded controller: 0xfe00d400 (in RAM)/0x0 (in EC) to virtual 0x00000000e1a3b3a8
[   13.909033] legion PNP0C09:00: Read embedded controller ID 0x5507
[   13.909034] legion PNP0C09:00: Skipped checking embedded controller id
[   13.909035] legion PNP0C09:00: Creating debugfs inteface
[   13.909041] legion_laptop: Creating sysfs inteface
[   13.909381] legion_laptop: Creating hwmon interface
[   13.909679] legion_laptop: Creating platform profile support
[   13.909682] legion_laptop: Init WMI driver support
[   13.909816] legion_wmi 887B54E3-DDDC-4B2C-8B88-68A26A8835D0: Register after probing for WMI.
[   13.910710] legion_wmi BFD42481-AEE3-4501-A107-AFB68425C5F8: Register after probing for WMI.
[   13.910863] legion_wmi BFD42481-AEE3-4502-A107-AFB68425C5F8: Register after probing for WMI.
[   13.910936] legion_wmi D062906B-12D4-4510-999D-4831EE80E985: Register after probing for WMI.
[   13.910956] legion_wmi BC72A435-E8C1-4275-B3E2-D8B8074ABA59: Register after probing for WMI.
[   13.911113] legion_wmi 10AFC6D9-EA8B-4590-A2E7-1CD3C84BB4B1: Register after probing for WMI.
[   13.911289] legion_wmi D320289E-8FEA-41E0-86F9-611D83151B5F: Register after probing for WMI.
[   13.911309] legion_laptop: Init keyboard backlight LED driver
[   13.931251] legion_laptop: ACPI result for 8C5B9127-ECD4-4657-980F-851019F99CA5:1: ACPI buffer length: 2
[   13.931254] legion_laptop: Error WMI call for reading brightness: expected a value between 1 and 3, but got 0
[   13.931255] legion_laptop: Error reading keyboard brighntess
[   13.931256] legion PNP0C09:00: Init keyboard backlight LED driver failed. Skipping ...
[   13.931257] legion_laptop: Init Y-Logo LED driver
[   13.933558] legion_laptop: ACPI result for 8C5B9127-ECD4-4657-980F-851019F99CA5:1: ACPI buffer length: 2
[   13.936085] legion_laptop: ACPI result for 8C5B9127-ECD4-4657-980F-851019F99CA5:1: ACPI buffer length: 2
[   13.936088] legion_laptop: Init IO-Port LED driver
[   13.936528] legion_laptop: ACPI result for 8C5B9127-ECD4-4657-980F-851019F99CA5:1: ACPI buffer length: 2
[   13.936530] legion_laptop: Error WMI call for reading brightness: expected a value between 1 and 2, but got 0
[   13.936531] legion_laptop: Error reading brighntess for light: 5
[   13.936532] legion PNP0C09:00: Init IO-Port LED driver failed. Skipping ...
[   13.936533] legion PNP0C09:00: legion_laptop loaded for this device

Hope it helps...

@SirRFI
Copy link

SirRFI commented Aug 12, 2023

@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!

Yes. Legion 7 Gen 7 AMD (16ARHA7, 2022) controls most stuff on firmware level, so it works out of the both on both Windows and Linux, even before loading the OS actually. This applies to toggling highlighting icons for the ports on the back, LEGION logo on the lid and switching keyboard RGB profiles and brightness on the keyboard. I posted my notes about the device, including function keys and Linux compatibility here. What didn't work last time I tested is Fn + R for 60/165Hz switch. There's open issue to support the device in OpenRGB if that's any use to you.

@linuxazo
Copy link

linuxazo commented Aug 12, 2023

@SirRFI I saw in your reddit post that you are searching for proprietary fingerprint drivers:
https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-edge-laptops/thinkpad-e14-gen-4-type-21eb-and-21ec/downloads/driver-list/component?name=Fingerprint%20Reader&id=A4F7592E-3C73-4CCF-ABB9-09549219DFC8

Also, for Debian:
https://wiki.debian.org/SecurityManagement/fingerprint%20authentication

Our fingerprint sensor device is:
10a5:9800 FPC FPC Sensor Controller L:0001 FW:16.26.23.22
I can confirm it works well...

@gudata
Copy link

gudata commented May 4, 2024

Model name: LENOVO Legion 5 Pro - 82JD004LBM

CPU model: 11th Gen Intel(R) Core(TM) i7-11800H
GPU model: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] (rev a1)
Keyboard backlight: RGB

Light in lid or logo: yes = Y
Light at IO-Ports at back: no

# 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: 2081289494
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: -14
CPU temperature WMI2: 0
CPU temperature WMI3 error: -14
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: -14
GPU temperature WMI2: 0
GPU temperature WMI3 error: -14
GPU temperature WMI3: 0
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 2736
1 fanspeed EC error: 0
1 fanspeed EC: 2736
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 1800
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: -14
1 fanspeed WMI2: 0
1 fanspeed WMI3 error: -14
1 fanspeed WMI3: 0
2 fanspeed error: 0
2 fanspeed: 2681
2 fanspeed EC error: 0
2 fanspeed EC: 2681
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 1700
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: -14
2 fanspeed WMI2: 0
2 fanspeed WMI3 error: -14
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: 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: -5
WMI light IO port: -5
WMI light Y logo/lid: -5
EC minifancurve feature enabled: 1
EC minifancurve on cool: true
EC lockfancontroller error: 0
EC lockfancontroller: false
fanfullspeed error: -22
fanfullspeed: 0
fanfullspeed EC error: 0
fanfullspeed EC: 0
EC fan curve current point id: 1
EC fan curve points size: 10
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       5       5       0       48      0       67      0       36
1800     1700    5       5       45      48      63      67      32      40
1800     1900    5       5       45      48      63      67      37      43
2100     2100    5       5       45      48      63      67      40      127
2400     2300    2       2       45      58      63      67      127     127
2600     2600    2       2       52      66      63      73      127     127
2900     2900    2       2       60      72      69      76      127     127
3500     3500    2       2       68      77      73      79      127     127
3800     3800    2       2       73      80      75      82      127     127
4200     4200    2       2       76      127     78      127     127     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
=====================
ls -la /sys/class/leds/
total 0
drwxr-xr-x  2 root root 0 май  4 10:41 .
drwxr-xr-x 89 root root 0 май  4 10:41 ..
lrwxrwxrwx  1 root root 0 май  4 10:41 input4::capslock -> ../../devices/platform/i8042/serio0/input/input4/input4::capslock
lrwxrwxrwx  1 root root 0 май  4 10:41 input4::numlock -> ../../devices/platform/i8042/serio0/input/input4/input4::numlock
lrwxrwxrwx  1 root root 0 май  4 10:41 input4::scrolllock -> ../../devices/platform/i8042/serio0/input/input4/input4::scrolllock
lrwxrwxrwx  1 root root 0 май  4 10:41 input8::capslock -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:048D:C965.0002/input/input8/input8::capslock
lrwxrwxrwx  1 root root 0 май  4 10:41 input8::compose -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:048D:C965.0002/input/input8/input8::compose
lrwxrwxrwx  1 root root 0 май  4 10:41 input8::kana -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:048D:C965.0002/input/input8/input8::kana
lrwxrwxrwx  1 root root 0 май  4 10:41 input8::numlock -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:048D:C965.0002/input/input8/input8::numlock
lrwxrwxrwx  1 root root 0 май  4 10:41 input8::scrolllock -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:048D:C965.0002/input/input8/input8::scrolllock
lrwxrwxrwx  1 root root 0 май  4 10:41 input9::capslock -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9:1.0/0003:048D:C101.0004/input/input9/input9::capslock
lrwxrwxrwx  1 root root 0 май  4 10:41 input9::compose -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9:1.0/0003:048D:C101.0004/input/input9/input9::compose
lrwxrwxrwx  1 root root 0 май  4 10:41 input9::kana -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9:1.0/0003:048D:C101.0004/input/input9/input9::kana
lrwxrwxrwx  1 root root 0 май  4 10:41 input9::numlock -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9:1.0/0003:048D:C101.0004/input/input9/input9::numlock
lrwxrwxrwx  1 root root 0 май  4 10:41 input9::scrolllock -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9:1.0/0003:048D:C101.0004/input/input9/input9::scrolllock
lrwxrwxrwx  1 root root 0 май  4 10:41 phy0-led -> ../../devices/pci0000:00/0000:00:14.3/leds/phy0-led

Turn the light on.
Get output of sudo cat /sys/kernel/debug/legion/fancurve and copy here.

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: 2081289494
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: -14
CPU temperature WMI2: 0
CPU temperature WMI3 error: -14
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: -14
GPU temperature WMI2: 0
GPU temperature WMI3 error: -14
GPU temperature WMI3: 0
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 2722
1 fanspeed EC error: 0
1 fanspeed EC: 2722
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 1800
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: -14
1 fanspeed WMI2: 0
1 fanspeed WMI3 error: -14
1 fanspeed WMI3: 0
2 fanspeed error: 0
2 fanspeed: 2655
2 fanspeed EC error: 0
2 fanspeed EC: 2655
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 1700
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: -14
2 fanspeed WMI2: 0
2 fanspeed WMI3 error: -14
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: 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: -5
WMI light IO port: -5
WMI light Y logo/lid: -5
EC minifancurve feature enabled: 1
EC minifancurve on cool: true
EC lockfancontroller error: 0
EC lockfancontroller: false
fanfullspeed error: -22
fanfullspeed: 0
fanfullspeed EC error: 0
fanfullspeed EC: 0
EC fan curve current point id: 1
EC fan curve points size: 10
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       5       5       0       48      0       67      0       36
1800     1700    5       5       45      48      63      67      32      40
1800     1900    5       5       45      48      63      67      37      43
2100     2100    5       5       45      48      63      67      40      127
2400     2300    2       2       45      58      63      67      127     127
2600     2600    2       2       52      66      63      73      127     127
2900     2900    2       2       60      72      69      76      127     127
3500     3500    2       2       68      77      73      79      127     127
3800     3800    2       2       73      80      75      82      127     127
4200     4200    2       2       76      127     78      127     127     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
=====================

/sys/class/leds/platform::ylogo/brightness
..no platform..

lenovo-5-pro.zip

@unknown10777
Copy link

unknown10777 commented Jun 11, 2024

Model and Debug Info

Model name: Y7000 2020
CPU model: Intel I5 10300H (e.g. AMD Ryzen 7 5800H)
GPU model: Nvidia GTX 1650Ti (e.g NVIDIA RTX 3700)
Keyboard backlight: single with off/medium/bright
Light in lid or logo: yes
Light at IO-Ports at back: no?
Keyboard backlight driver in kernel is working fine, but only in off/bright, not medium

Output of sudo dmidecode -t system. Please remove Serial Number and UUID for privacy:

# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: LENOVO
        Product Name: 82AV
        Version: Lenovo Legion Y7000 2020
        Serial Number: wiped
        UUID: wiped
        Wake-up Type: Power Switch
        SKU Number: LENOVO_MT_82AV_BU_idea_FM_Legion Y7000 2020
        Family: Legion Y7000 2020

Handle 0x0020, 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.2.0 present.

Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
        Vendor: LENOVO
        Version: EFCN46WW
        Release Date: 12/04/2020
        Address: 0xE0000
        Runtime Size: 128 kB
        ROM Size: 11 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.46
        Firmware Revision: 1.46

Handle 0x0021, 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
Turn the light off
Get output of sudo cat /sys/kernel/debug/legion/fancurve and copy here.
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: 2081289494
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: -14
CPU temperature WMI2: 0
CPU temperature WMI3 error: -14
CPU temperature WMI3: 0
GPU temperature error: 0
GPU temperature: 48
GPU temperature EC error: 0
GPU temperature EC: 48
GPU temperature ACPI error: 0
GPU temperature ACPI: 48
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: -14
GPU temperature WMI2: 0
GPU temperature WMI3 error: -14
GPU temperature WMI3: 0
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 0
1 fanspeed EC error: 0
1 fanspeed EC: 0
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 0
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: -14
1 fanspeed WMI2: 0
1 fanspeed WMI3 error: -14
1 fanspeed WMI3: 0
2 fanspeed error: 0
2 fanspeed: 0
2 fanspeed EC error: 0
2 fanspeed EC: 0
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 0
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: -14
2 fanspeed WMI2: 0
2 fanspeed WMI3 error: -14
2 fanspeed WMI3: 0
powermode access method: 3
powermode error: 0
powermode: 1
powermode EC error: 0
powermode EC: 1
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 1
has custom powermode: 1
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: 1
EC minifancurve on cool: true
EC lockfancontroller error: 0
EC lockfancontroller: false
fanfullspeed error: -22
fanfullspeed: 0
fanfullspeed EC error: 0
fanfullspeed EC: 0
EC fan curve current point id: 2
EC fan curve points size: 9
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       53      0       52      0       36
0        0       2       2       49      53      48      52      33      45
0        0       2       2       49      53      48      52      41      127
0        0       2       2       49      64      48      52      127     127
4500     4500    2       2       60      68      48      52      127     127
4500     4500    2       2       64      75      48      52      127     127
4500     4500    2       2       71      80      48      56      127     127
4500     4500    2       2       76      84      52      65      127     127
4500     4500    2       2       80      127     61      71      127     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
=====================
Get output of cat   /sys/class/leds/platform\:\:ylogo/brightness and copy here,
drwxr-xr-x  2 root root 0 2024年 6月11日 .
drwxr-xr-x 74 root root 0 2024年 6月11日 ..
lrwxrwxrwx  1 root root 0  6月11日 14:14 input0::capslock -> ../../devices/platform/i8042/serio0/input/input0/input0::capslock
lrwxrwxrwx  1 root root 0  6月11日 14:14 input0::numlock -> ../../devices/platform/i8042/serio0/input/input0/input0::numlock
lrwxrwxrwx  1 root root 0  6月11日 14:14 input0::scrolllock -> ../../devices/platform/i8042/serio0/input/input0/input0::scrolllock
lrwxrwxrwx  1 root root 0  6月11日 12:36 input8::capslock -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:048D:C100.0002/input/input8/input8::capslock
lrwxrwxrwx  1 root root 0  6月11日 12:36 input8::compose -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:048D:C100.0002/input/input8/input8::compose
lrwxrwxrwx  1 root root 0  6月11日 12:36 input8::kana -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:048D:C100.0002/input/input8/input8::kana
lrwxrwxrwx  1 root root 0  6月11日 12:36 input8::numlock -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:048D:C100.0002/input/input8/input8::numlock
lrwxrwxrwx  1 root root 0  6月11日 12:36 input8::scrolllock -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:048D:C100.0002/input/input8/input8::scrolllock
lrwxrwxrwx  1 root root 0  6月11日 13:15 phy0-led -> ../../devices/pci0000:00/0000:00:14.3/leds/phy0-led
lrwxrwxrwx  1 root root 0  6月11日 12:36 platform::kbd_backlight -> ../../devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/leds/platform::kbd_backlight

Turn the light on
Get output of sudo cat /sys/kernel/debug/legion/fancurve and copy here.
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: 2081289494
temperature access method: 1
CPU temperature error: 0
CPU temperature: 50
CPU temperature EC error: 0
CPU temperature EC: 50
CPU temperature ACPI error: 0
CPU temperature ACPI: 50
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: -14
CPU temperature WMI2: 0
CPU temperature WMI3 error: -14
CPU temperature WMI3: 0
GPU temperature error: 0
GPU temperature: 49
GPU temperature EC error: 0
GPU temperature EC: 49
GPU temperature ACPI error: 0
GPU temperature ACPI: 49
GPU temperature WMI error: 0
GPU temperature WMI: 0
GPU temperature WMI2 error: -14
GPU temperature WMI2: 0
GPU temperature WMI3 error: -14
GPU temperature WMI3: 0
fan speed access method: 1
1 fanspeed error: 0
1 fanspeed: 0
1 fanspeed EC error: 0
1 fanspeed EC: 0
1 fanspeed ACPI error: 0
1 fanspeed ACPI: 0
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: -14
1 fanspeed WMI2: 0
1 fanspeed WMI3 error: -14
1 fanspeed WMI3: 0
2 fanspeed error: 0
2 fanspeed: 0
2 fanspeed EC error: 0
2 fanspeed EC: 0
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 0
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: -14
2 fanspeed WMI2: 0
2 fanspeed WMI3 error: -14
2 fanspeed WMI3: 0
powermode access method: 3
powermode error: 0
powermode: 1
powermode EC error: 0
powermode EC: 1
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 1
has custom powermode: 1
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: 1
EC minifancurve on cool: true
EC lockfancontroller error: 0
EC lockfancontroller: false
fanfullspeed error: -22
fanfullspeed: 0
fanfullspeed EC error: 0
fanfullspeed EC: 0
EC fan curve current point id: 2
EC fan curve points size: 9
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       53      0       52      0       36
0        0       2       2       49      53      48      52      33      45
0        0       2       2       49      53      48      52      41      127
0        0       2       2       49      64      48      52      127     127
4500     4500    2       2       60      68      48      52      127     127
4500     4500    2       2       64      75      48      52      127     127
4500     4500    2       2       71      80      48      56      127     127
4500     4500    2       2       76      84      52      65      127     127
4500     4500    2       2       80      127     61      71      127     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
=====================
Get output of cat   /sys/class/leds/platform\:\:ylogo/brightness and copy here,
not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests