tomsom / yoga-linux

Run Linux on the Lenovo Yoga 7 14 (14ARB7) with AMD Ryzen 6800U (Rembrand).
https://github.com/tomsom/yoga-linux/wiki
58 stars 1 forks source link

"lenovo-ymc: Unknown key 0 pressed" during boot #63

Closed stuarthayhurst closed 1 month ago

stuarthayhurst commented 3 months ago

While booting, I get lenovo-ymc 06129D99-6083-4164-81AD-F092F9D773A6: Unknown key 0 pressed. The lenovo-ymc driver works perfectly fine otherwise, and I only get this warning during boot and not during resume after suspend.

@soyersoyer I noticed you were involved with the driver when I went poking at its source, any idea?

soyersoyer commented 3 months ago

This is probably what the device reports at startup. I'll create a patch to ignore that.

soyersoyer commented 3 months ago

Unfortunately, this driver does not work reliably for me with the latest BIOS. After 4-5 switches, or if things happen quickly, it gets stuck. Are you experiencing similar things?

stuarthayhurst commented 3 months ago

I can't reproduce that on mine, running BIOS K5CN44WW.

I did have an issue a while ago where returning to regular laptop mode would leave the screen upside-down, but I think that was a bug in mutter where it ignored the orientation sensor after it went from tent to laptop mode, missing the correct orientation.

Myaats commented 3 months ago

Unfortunately, this driver does not work reliably for me with the latest BIOS. After 4-5 switches, or if things happen quickly, it gets stuck. Are you experiencing similar things?

I have experienced this on KDE Plasma 6, sometimes it seems to fix itself after a while.

soyersoyer commented 3 months ago

Unfortunately the lenovo_ymc_trigger_ec sometimes produces a "Thermal Management button" ACPI event. So sometimes it also changes the platform profile in v6.10. This quirk needs to be improved.

And there is a race, the return values ​​of ACPI calls get mixed up. I'll cook a patch.

soyersoyer commented 1 month ago

The patches are in the master. 6.11 also fixes the ABM OLED bug.

stuarthayhurst commented 1 month ago

The patches are in the master. 6.11 also fixes the ABM OLED bug.

Thanks, does this also sort the "lenovo-ymc: Unknown key 0 pressed" message?

stuarthayhurst commented 1 month ago

https://lore.kernel.org/all/371e1476-1b7c-4993-b481-132b7552b572@redhat.com/

Patch picked up upstream, thanks