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

Legion Slim 5 16APH8 (RTX 4070 Mobile) Support #247

Open
Vicky-Boi opened this issue Aug 28, 2024 · 2 comments
Open

Legion Slim 5 16APH8 (RTX 4070 Mobile) Support #247

Vicky-Boi opened this issue Aug 28, 2024 · 2 comments

Comments

@Vicky-Boi
Copy link

I have seen another issue for the same laptop model, however that issue has the version with an RTX 4060 and my laptop has an RTX 4070.

Moreover, I am getting an error when running sudo make reloadmodule, and the error I am getting suggests that I make an issue here.

[  371.132532] legion PNP0C09:00: legion_laptop not loaded for this device
[  371.132643] legion PNP0C09:00: probe with driver legion failed with error -5

It seems like fan controls are broken as well. fan curves point size is always "0". The fan curve section also doesn't show any values at all. In the GUI, all values in the fan curve section shows "0". Clicking any of the buttons in "Fancurve Hardware" always crashes the GUI with OSError: [Errno 95] Operation not supported. Nothing in "Fancurve Preset" works as well, but it doesn't crash the GUI.

Model and Debug Info

Distribution: Nobara Linux 40
Model name: Lenovo Legion Slim 5 16APH8
CPU model: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
GPU model: NVIDIA GeForce RTX 4070 Laptop GPU
Keyboard backlight: 4-zone RGB
Light in lid or logo: no
Light at IO-Ports at back: no

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

# dmidecode 3.6
Getting SMBIOS data from sysfs.
SMBIOS 3.4.0 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: LENOVO
        Product Name: 82Y9
        Version: Legion Slim 5 16APH8
        Serial Number: ----
        UUID: ----
        Wake-up Type: Power Switch
        SKU Number: LENOVO_MT_82Y9_BU_idea_FM_Legion Slim 5 16APH8
        Family: Legion Slim 5 16APH8

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 0x002A, DMI type 32, 20 bytes
System Boot Information
        Status: No errors detected

Output of sudo dmidecode -t bios:

# dmidecode 3.6
Getting SMBIOS data from sysfs.
SMBIOS 3.4.0 present.

Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
        Vendor: LENOVO
        Version: M3CN42WW
        Release Date: 01/11/2024
        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 (BEFORE sudo make forcereloadmodule):

cat: /sys/kernel/debug/legion/fancurve: No such file or directory

Output of 'sudo make reloadmodule`:

[  371.081227] legion_laptop: legion_laptop exit
[  371.132390] legion_laptop: Loading legion_laptop
[  371.132487] legion PNP0C09:00: legion_laptop platform driver probing
[  371.132490] legion PNP0C09:00: Read identifying information: DMI_SYS_VENDOR: LENOVO; DMI_PRODUCT_NAME: 82Y9; DMI_BIOS_VERSION:M3CN42WW
[  371.132492] legion_laptop: Read identifying information: DMI_SYS_VENDOR: LENOVO; DMI_PRODUCT_NAME: 82Y9; DMI_BIOS_VERSION:M3CN42WW
[  371.132499] legion PNP0C09:00: is_denied: 0; is_allowed: 1; do_load_by_list: 1; do_load: 1
[  371.132501] legion PNP0C09:00: Using configuration for system: M3CN
[  371.132528] legion PNP0C09:00: Could not evaluate ACPI _STA
[  371.132529] legion PNP0C09:00: Could not init ACPI access: -5
[  371.132531] legion_laptop: Unloading legion shared
[  371.132531] legion_laptop: Unloading legion shared done
[  371.132532] legion PNP0C09:00: legion_laptop not loaded for this device
[  371.132643] legion PNP0C09:00: probe with driver legion failed with error -5

Output of sudo make forcereloadmodule:

[  431.552209] legion_laptop: legion_laptop exit
[  431.582665] legion_laptop: Loading legion_laptop
[  431.582737] legion PNP0C09:00: legion_laptop platform driver probing
[  431.582740] legion PNP0C09:00: Read identifying information: DMI_SYS_VENDOR: LENOVO; DMI_PRODUCT_NAME: 82Y9; DMI_BIOS_VERSION:M3CN42WW
[  431.582742] legion_laptop: Read identifying information: DMI_SYS_VENDOR: LENOVO; DMI_PRODUCT_NAME: 82Y9; DMI_BIOS_VERSION:M3CN42WW
[  431.582745] legion PNP0C09:00: is_denied: 0; is_allowed: 1; do_load_by_list: 1; do_load: 1
[  431.582747] legion PNP0C09:00: legion_laptop is forced to load.
[  431.582748] legion PNP0C09:00: Using configuration for system: M3CN
[  431.582750] legion PNP0C09:00: Skipping ACPI _STA check
[  431.582751] legion_laptop: Creating RAM access to embedded controller
[  431.582762] legion_laptop: Successfully mapped embedded controller: 0xfe0b0400 (in RAM)/0x0 (in EC) to virtual 0x00000000866d9d1a
[  431.582858] legion PNP0C09:00: Read embedded controller ID 0x8227
[  431.582859] legion PNP0C09:00: Skipped checking embedded controller id
[  431.582860] legion PNP0C09:00: Creating debugfs interface
[  431.582868] legion_laptop: Creating sysfs interface
[  431.582892] legion_laptop: Creating hwmon interface
[  431.582973] legion_laptop: Creating platform profile support
[  431.582977] legion_laptop: Init WMI driver support
[  431.583049] legion_wmi 887B54E3-DDDC-4B2C-8B88-68A26A8835D0: Register after probing for WMI.
[  431.583086] legion_wmi BFD42481-AEE3-4501-A107-AFB68425C5F8: Register after probing for WMI.
[  431.583102] legion_wmi D062906B-12D4-4510-999D-4831EE80E985: Register after probing for WMI.
[  431.583125] legion_wmi BFD42481-AEE3-4502-A107-AFB68425C5F8: Register after probing for WMI.
[  431.583143] legion_wmi BC72A435-E8C1-4275-B3E2-D8B8074ABA59: Register after probing for WMI.
[  431.583159] legion_wmi 10AFC6D9-EA8B-4590-A2E7-1CD3C84BB4B1: Register after probing for WMI.
[  431.583239] legion_wmi D320289E-8FEA-41E0-86F9-611D83151B5F: Register after probing for WMI.
[  431.583391] legion_laptop: Init keyboard backlight LED driver
[  431.583580] legion_laptop: Error WMI call for reading brightness: expected a value between 1 and 3, but got 0
[  431.583585] legion_laptop: Error reading keyboard brightness
[  431.583588] legion PNP0C09:00: Failed to init keyboard backlight LED driver. Skipping ...
[  431.583592] legion_laptop: Init Y-Logo LED driver
[  431.583846] legion_laptop: Init IO-Port LED driver
[  431.583934] legion_laptop: Error WMI call for reading brightness: expected a value between 1 and 2, but got 0
[  431.583938] legion_laptop: Error reading brightness for light: 5
[  431.583941] legion PNP0C09:00: Failed to init IO-Port LED driver. Skipping ...
[  431.583945] legion PNP0C09:00: legion_laptop loaded for this device

Output of sudo cat /sys/kernel/debug/legion/fancurve (AFTER sudo make forcereloadmodule):

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: 4228186128
temperature access method: 5
CPU temperature error: 0
CPU temperature: 31
CPU temperature EC error: 0
CPU temperature EC: 0
CPU temperature ACPI error: -5
CPU temperature ACPI: 0
CPU temperature WMI error: 0
CPU temperature WMI: 31
CPU temperature WMI2 error: 0
CPU temperature WMI2: 0
CPU temperature WMI3 error: 0
CPU temperature WMI3: 31
GPU temperature error: 0
GPU temperature: 32
GPU temperature EC error: 0
GPU temperature EC: 0
GPU temperature ACPI error: -5
GPU temperature ACPI: 0
GPU temperature WMI error: 0
GPU temperature WMI: 32
GPU temperature WMI2 error: 0
GPU temperature WMI2: 0
GPU temperature WMI3 error: 0
GPU temperature WMI3: 32
fan speed access method: 5
1 fanspeed error: 0
1 fanspeed: 1500
1 fanspeed EC error: 0
1 fanspeed EC: 0
1 fanspeed ACPI error: -5
1 fanspeed ACPI: 0
1 fanspeed WMI error: 0
1 fanspeed WMI: 0
1 fanspeed WMI2 error: 0
1 fanspeed WMI2: 0
1 fanspeed WMI3 error: 0
1 fanspeed WMI3: 1500
2 fanspeed error: 0
2 fanspeed: 1500
2 fanspeed EC error: 0
2 fanspeed EC: 0
2 fanspeed ACPI error: 0
2 fanspeed ACPI: 1500
2 fanspeed WMI error: 0
2 fanspeed WMI: 0
2 fanspeed WMI2 error: 0
2 fanspeed WMI2: 0
2 fanspeed WMI3 error: 0
2 fanspeed WMI3: 1500
powermode access method: 3
powermode error: 0
powermode: 3
powermode EC error: 0
powermode EC: 230
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 3
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: true
fanfullspeed error: 0
fanfullspeed: 0
fanfullspeed EC error: -1
fanfullspeed EC: 0
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
=====================
@ryanabx
Copy link

ryanabx commented Sep 2, 2024

I too get error -5 with my Legion 16APH8

@DarkRaven255
Copy link

Exactly the same problem on mine Legion 16APH8 (w/ 4070). Arch + AUR DKMS option to install it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@DarkRaven255 @ryanabx @Vicky-Boi and others