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

[BUG] Driver not loaded at boot Lenovo yoga slim 7 pro x #299

Closed
Platonio14 opened this issue Feb 16, 2025 · 0 comments
Closed

[BUG] Driver not loaded at boot Lenovo yoga slim 7 pro x #299

Platonio14 opened this issue Feb 16, 2025 · 0 comments

Comments

@Platonio14
Copy link

Problem Description
Hi!

I'm trying to install and test this driver on unsupported hardware in a quest to make Ubuntu use the same fan curves that Windows uses (the laptop runs hotter in linux because it runs fanless for longer)

The driver works fine in testing and i can force-load it with:

sudo make forcereloadmodule_disableplatformprofile

Both fans are recognized and I can edit the fan curve.

I tried installing using both:

sudo make install or sudo make install forcereloadmodule_disableplatformprofile

In both cases the install process completes with success, with warning that the driver was loaded but it would have not been loded if not forced.

The driver is not loaded at boot though, if I check dmesg i get:

[ 2.926908] legion_laptop: loading out-of-tree module taints kernel. [ 2.926916] legion_laptop: module verification failed: signature and/or required key missing - tainting kernel [ 2.929507] ccp 0000:04:00.2: tee enabled [ 2.930321] ccp 0000:04:00.2: psp enabled [ 2.930487] piix4_smbus 0000:00:14.0: SMBus Host Controller at 0xb00, revision 0 [ 2.930491] piix4_smbus 0000:00:14.0: Using register 0x02 for SMBus port selection [ 2.930548] legion_laptop: Loading legion_laptop [ 2.938049] legion PNP0C09:00: legion_laptop platform driver probing [ 2.938055] legion PNP0C09:00: Read identifying information: DMI_SYS_VENDOR: LENOVO; DMI_PRODUCT_NAME: 82TL; DMI_BIOS_VERSION:JVCN40WW [ 2.938058] legion_laptop: Read identifying information: DMI_SYS_VENDOR: LENOVO; DMI_PRODUCT_NAME: 82TL; DMI_BIOS_VERSION:JVCN40WW [ 2.938068] legion PNP0C09:00: is_denied: 0; is_allowed: 0; do_load_by_list: 0; do_load: 0 [ 2.938071] legion PNP0C09:00: Module not usable for this laptop because it is not in allowlist. Notify the maintainer if you want to add your device or force load with param force. [ 2.938073] legion PNP0C09:00: legion_laptop not loaded for this device [ 2.942034] legion PNP0C09:00: probe with driver legion failed with error -12

Is there any way I can force the driver to load at boot once is installed?

Model and Debug Info

Installation type: github
Distribution: Ubuntu 24.04
Model name: Yoga Slim 7 Pro X 14ARH7
CPU model: AMD Ryzen 5 6600HS
GPU model: Nvidia 3050
Keyboard backlight:single color with off/medium/bright
Light in lid or logo: no
Light at IO-Ports at back: no

Output of sudo dmidecode -t system.

SMBIOS 3.3.0 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
	Manufacturer: LENOVO
	Product Name: 82TL
	Version: Yoga Slim 7 ProX 14ARH7
	Serial Number: xxxxx
	UUID: xxxxx
	Wake-up Type: Power Switch
	SKU Number: LENOVO_MT_82TL_BU_idea_FM_Yoga Slim 7 ProX 14ARH7
	Family: Yoga Slim 7 ProX 14ARH7

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

Output of sudo dmidecode -t bios:

SMBIOS 3.3.0 present.

Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
	Vendor: LENOVO
	Version: JVCN40WW
	Release Date: 02/05/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.40
	Firmware Revision: 1.40

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 Version: 2a4
legion_laptop features: fancurve powermode platformprofile platformprofilenotify minifancurve fancurve_pmw_speed fancurve_rpm_speed
legion_laptop ec_readonly: 0
ACPI CFG error: 0
ACPI CFG: 4128047120
temperature access method: 1
CPU temperature error: 0
CPU temperature: 38
CPU temperature EC error: 0
CPU temperature EC: 38
CPU temperature ACPI error: 0
CPU temperature ACPI: 38
CPU temperature WMI error: 0
CPU temperature WMI: 0
CPU temperature WMI2 error: 0
CPU temperature WMI2: 0
CPU temperature WMI3 error: 0
CPU temperature WMI3: 0
GPU temperature error: 0
GPU temperature: 35
GPU temperature EC error: 0
GPU temperature EC: 35
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: 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: 0
1 fanspeed WMI2: 0
1 fanspeed WMI3 error: 0
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: 0
2 fanspeed WMI2: 0
2 fanspeed WMI3 error: 0
2 fanspeed WMI3: 0
powermode access method: 3
powermode error: 0
powermode: 0
powermode EC error: 0
powermode EC: 0
powermode ACPI error: -5
powermode ACPI: 0
powermode WMI error: 0
powermode WMI: 0
has custom powermode: 1
ACPI rapidcharge error: 0
ACPI rapidcharge: 1
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: 0
fanfullspeed: 0
fanfullspeed EC error: 0
fanfullspeed EC: 0
Max speed for fancurve: 10000
Current fan curve in hardware:
Fan curve current point id: 0
Fan curve points size: 4
u(speed_of_unit)|speed1[u]|speed2[u]|speed1[pwm]|speed2[pwm]|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
3	 0	 0	 0	 0	 20	 40	 127	 127	 127	 127	 0	 40
3	 20	 20	 51	 51	 20	 40	 127	 127	 127	 127	 38	 42
3	 22	 22	 56	 56	 20	 40	 127	 127	 127	 127	 39	 45
3	 23	 23	 58	 58	 20	 40	 127	 127	 127	 127	 41	 127
=====================
Current fan curve in hardware (WMI; might be empty)
Fan curve current point id: 0
Fan curve points size: 0
u(speed_of_unit)|speed1[u]|speed2[u]|speed1[pwm]|speed2[pwm]|acceleration|deceleration|cpu_min_temp|cpu_max_temp|gpu_min_temp|gpu_max_temp|ic_min_temp|ic_max_temp
=====================
@st0nie st0nie closed this as completed in 43f2ad0 Feb 20, 2025
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

1 participant