Compatibility with Linux - xuwd1/lenovo-legion-slim7i-gen7-knowledges GitHub Wiki

Compatibility with Linux

Kernel parameters

  • With exception that ibt=off may be needed for nvidia driver to properly function, no other extra parameters are needed.

Recommended kernel version

  • Kernel with version higher than 6.3.8 is recommended. Check Display section for details.

Audio

  • Until kernel version 6.3.9:
  1. The speakers cannot make any sound.

    This problem has been solved. See the wiki page on this.

  2. Headphone works

    This is the indication that the codec is functioning.

  • Audio over HDMI and DP works.
  • Microphone works.

Camera

  • The laptop comes with a USB webcam whose USB ID being 30c9:0056, with a switch at the side of the laptop physically controlling whether it is enabled. When enabled, the webcam can be taken over by uvcvideo and works with no problem.

Display

Integrated GPU

  • iGPU works perfectly with kernel version 6.3.8 and higher. In previous versions of the kernel, the i915 driver is buggy and can cause the laptop stuck with a black screen after resuming from a sleep or hibernation. Thus for users who are using distros that are not "rolling", a probable solution is to compile the newer version of i915 manually.
  • With kernels with version < 6.3.8, for the laptop to properly resume from a sleep or hibernation, one could switch to 'Discrete-only' mode in the UEFI BIOS. By doing this the iGPU would be completely disabled and only nvidia-drm would be loaded for handling display with no above mentioned problem.

Discrete GPU

  • It's confirmed that nvidia driver with version higher than 530 works, with the only issue being that the version 530 nvidia driver has some problem with backlight control. Specifically, while the brightness could be adjusted, the actual brightness does not match with the value sysfs gives. It's not clear if nvidia drivers < 530 works properly.
  • Version 535 nvidia driver works perfectly with no above problems.
  • Dynamic boost with nvidia driver higher than 530 works properly. For how to enable it check nvidia's docs. With dynamic boost enabled the GPU could reach a maximum power draw of 100 watts.
  • nvidia-smi could not set power limit to the dGPU.
  • Obviously this laptop comes with the 'advanced optimus' functionality, which in theory could do a hot internal display source switch. But sadly I haven't figured it out how this can be utilized under Linux.
  • Warthunder has a lower frame rate on Linux compared to Windows.

Wi-Fi and bluetooth

  • The laptop is equipped with an intel AX211 wireless module. Both the Wi-Fi and bluetooth work.

USB devices

  • All USB devices are good after Linux is booted.
  • However due to the bugs of the UEFI BIOS, grub might freeze. Check descriptions in The right choice of BIOS version.

Battery

  • Battery related ACPI tables works, battery level and charge rate can be read with no problem.

Performance modes

  • On Linux it's possible to switch between performance, balanced and quiet modes by pressing fn+Q, which is fantastic.
  • With LenovoLegionLinux it's possible to switch to custom mode. However with the current implementation of LenovoLegionLinux most of the options under custom mode can not be applied properly. See Stuffs related to Lenovo Vantage. (TRANSLATIONS WIP)

Ports

  • All ports including the lightning port and the USB type-C port works well.

Fingerprint reader

  • The laptop has a fingerprint reader from FPC, whose USB ID being 10a5:9800
  • The fingerprint reader cannot work out of box, however FPC and Lenovo have released a Linux driver for it. The driver is meant to be used with libfprint and a friend of mine is working on an AUR repackage of it.