Lenovo ThinkPad P15s
The Thinkpad P15s is a thin-and-light 15.6" workstation laptop from Lenovo's 2020 ThinkPad P lineup.
To use Thunderbolt 3, ensure you are on the latest BIOS firmware (doing the following steps on older BIOSes may brick your device):
1. Go into BIOS
2. Enable BIOS Assist mode: (Thunderbolt 3 -> Enable BIOS assist mode) *Ensure you are on the latest BIOS!*
Currently (5.2.9-arch1), the Nouveau driver can cause quite a lot of kernel panics when using the webcamera. You should blacklist this driver to prevent it from being loaded.
The NVIDIA driver now supports PRIME Offloading. Following this guide you can try out this new mode.
To get the best power options the graphics card may be configured to use low power mode by following the guide here
Currently, one of the easiest solutions for this laptop is to use optimus-manager with the hybrid backend. This requires the most up to date nvidia and xorg-server packages.
This allows easy switching between the PRIME offloading feature above, and a mode where external display ports (HDMI and USB-C) work.
Steps to setup after a fresh install:
- Install nvidia proprietary driver 'prime', not bumblebee.
- Install AUR.
optimus-manager --switch nvidia# this will restart your X session, but not make the change persistent.
lspci -kshould say: Kernel driver in use: nvidia.
xrandrshould list HDMI output - try to configure screen, should work.
optimus-manager --set-startup nvidiamakes it persistent.
- Check: reboot, external display should still work.
This laptop requires firmware in order for the soundcard to work. See Advanced Linux Sound Architecture#ALSA firmware.
The 1.90.1 version of fprint supports this device.
The webcam in this laptop is capable of "Windows Hello" which has a Linux version called Howdy. The device you should use to configure howdy on this laptop is
/dev/video0. It is possible that Howdy will only use the RGB camera, in this case some additional configuration and software is required. Follow this guide on installing chicony-ir-toggle and setting it up as a service. Or you can just install AUR, which automatically helps you enable the IR camera after booting the system and waking up from sleep. Before installing AUR, make sure you change the local variables in
prepare() in PKGBUILD to match your own IR camera. In this case try changing the video device to
/dev/video2 in the howdy config
sudo howdy config, if everything has worked correctly when running
sudo howdy test the IR Camera should have a very faint red light. This will indicate that the camera is functioning and Howdy is using the IR camera correctly.
If you would like to enable the keyboard backlight, run:
echo 2 | tee /sys/class/leds/tpacpi::kbd_backlight/brightness
The "2" represents the brightness and can be any value between 0 and 2 (inclusive) for the laptop. For example, to turn off the keyboard backlight, you would run:
echo 0 | tee /sys/class/leds/tpacpi::kbd_backlight/brightness
The touchpad works out-of-the-box with libinput. However, it will be very insensitive.
Make sure to not install- this driver is deprecated, lacks all features mentioned below, but is still installed by default with the group.
You can check which input driver Xorg is using for your touchpad with:
grep 'Using input driver' /var/log/Xorg.0.log | grep 'SynPS/2 Synaptics TouchPad' # Expected output: [ 248.282] (II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad'
You can explicitly chose an input driver by placing an Xorg configuration snippet like the following in /etc/X11/xorg.conf.d/99-synaptics.conf:
Section "InputClass" Identifier "touchpad catchall" MatchIsTouchpad "on" Driver "libinput" EndSection
You can adjust acceleration using the command:
xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Accel Speed' 0.5
Two-Finger Right Click
Additionally, if you wish to disable right-clicking so that you use two finger click as your right click, run:
xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Click Method Enabled' 0 1
If you would like for a tap on the touchpad to be registered as a click, use:
xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Tapping Enabled' 1
CPU throttling on the P15s is a known issue but can be easily fixed with undervolting by 100mV.
There are a few ways to fix this. You should only use one of the following as they both attempt to undervolt.
To fix this install, then run
systemctl enable --now lenovo_fix.service
Note that on kernels 5.9 and newer, the
msr.allow_writes=on kernel parameter is required to prevent error messages, for example:
Undervolting the CPU/Intel GPU works well with intel-undervolt.