Git Product home page Git Product logo

Comments (33)

potatoalienof13 avatar potatoalienof13 commented on May 20, 2024 1

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

from lenovolegionlinux.

SirRFI avatar SirRFI commented on May 20, 2024 1

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

from lenovolegionlinux.

Guanran928 avatar Guanran928 commented on May 20, 2024

IMG_20230504_234219
Are you looking for this?

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

from lenovolegionlinux.

johnfanv2 avatar johnfanv2 commented on May 20, 2024

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

from lenovolegionlinux.

Guanran928 avatar Guanran928 commented on May 20, 2024

image

image

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

from lenovolegionlinux.

johnfanv2 avatar johnfanv2 commented on May 20, 2024

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

from lenovolegionlinux.

Guanran928 avatar Guanran928 commented on May 20, 2024

Here you go :D.

output1.txt
output2.txt

from lenovolegionlinux.

Guanran928 avatar Guanran928 commented on May 20, 2024

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

from lenovolegionlinux.

johnfanv2 avatar johnfanv2 commented on May 20, 2024

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

from lenovolegionlinux.

Guanran928 avatar Guanran928 commented on May 20, 2024

Looks like it is still not working with sudo make forcereloadmodule

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

from lenovolegionlinux.

johnfanv2 avatar johnfanv2 commented on May 20, 2024

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

from lenovolegionlinux.

Guanran928 avatar Guanran928 commented on May 20, 2024

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?

from lenovolegionlinux.

johnfanv2 avatar johnfanv2 commented on May 20, 2024

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

from lenovolegionlinux.

Peter-Levine avatar Peter-Levine commented on May 20, 2024

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

from lenovolegionlinux.

RzVa317 avatar RzVa317 commented on May 20, 2024

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

from lenovolegionlinux.

Bananonymous avatar Bananonymous commented on May 20, 2024

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

from lenovolegionlinux.

XenHat avatar XenHat commented on May 20, 2024

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

from lenovolegionlinux.

XenHat avatar XenHat commented on May 20, 2024

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

from lenovolegionlinux.

halfling81 avatar halfling81 commented on May 20, 2024

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

from lenovolegionlinux.

SirRFI avatar SirRFI commented on May 20, 2024

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

from lenovolegionlinux.

XenHat avatar XenHat commented on May 20, 2024

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?

from lenovolegionlinux.

SirRFI avatar SirRFI commented on May 20, 2024

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

from lenovolegionlinux.

SirRFI avatar SirRFI commented on May 20, 2024

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.

from lenovolegionlinux.

daemonofchaos avatar daemonofchaos commented on May 20, 2024

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

from lenovolegionlinux.

sakgoyal avatar sakgoyal commented on May 20, 2024

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

from lenovolegionlinux.

johnfanv2 avatar johnfanv2 commented on May 20, 2024

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

from lenovolegionlinux.

sakgoyal avatar sakgoyal commented on May 20, 2024

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?

from lenovolegionlinux.

johnfanv2 avatar johnfanv2 commented on May 20, 2024

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

from lenovolegionlinux.

linuxazo avatar linuxazo commented on May 20, 2024

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!

from lenovolegionlinux.

johnfanv2 avatar johnfanv2 commented on May 20, 2024

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

from lenovolegionlinux.

linuxazo avatar linuxazo commented on May 20, 2024

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

from lenovolegionlinux.

linuxazo avatar linuxazo commented on May 20, 2024

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

from lenovolegionlinux.

linuxazo avatar linuxazo commented on May 20, 2024

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

from lenovolegionlinux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.