Lenovo ThinkPad T480s

This article covers the installation and configuration of Arch Linux on a Lenovo T480s laptop. For the most part things work out-of-the-box, but some features may need to be configured manually.

HardwarePCI/USB IDWorking?
GPU (Intel)8086:5917Yes
GPU (NVIDIA)Untested
Wireless8086:24fdYes
Audio8086:9d71Yes
TrackPointYes
TouchpadYes
Webcam5986:2113Yes
Fingerprint reader06cb:009aYes
Mobile broadbandYes
Bluetooth8087:0a2bYes
Smartcard reader058f:9540Yes
SD card reader0bda:0316Yes
PrivacyGuardYes

For a general overview of laptop-related articles and recommendations, see Laptop.

Powersaving

Without special configuration and with default firmware settings, power usage is a bit high (around 7,5W in idle). There are a few knobs to improve battery life:

Warning: Changing Thunderbolt BIOS options has been reported to irreversibly brick ThinkPads due to a firmware bug . A fix is available through a firmware update , which can be installed via fwupd.
  • Set "Thunderbolt BIOS Assist Mode" to "Enabled" in the EFI firmware interface. This seems to reduce number of idle wakeups.
    • However, kernel versions since 4.19+ should support it natively (), and some power consumption improvements is reported if this is switched to "Disabled" .
  • Disable unused peripherals under "Security" -> "I/O port access" in the firmware. This especially applies to the SD/MMC-cardreader, which seems to drain some power even when idle

As of Kernel 4.15, DisplayPort PSR (Panel self refresh) is disabled by default and broken when forcibly enabled (system hangs after a few seconds, display lag). 4.17-rc1 seems to improve a lot in this regard, but PSR still sometimes causes the screen to freeze for a few seconds.

SD card reader

According to various reports the SD card reader drains several watts of power. If you do not want to disable it in bios because you use it semi-regularly, you can turn it off by unbinding its driver using this command:

# echo 2-3 > /sys/bus/usb/drivers/usb/unbind

You can then turn the reader back on by running:

# echo 2-3 > /sys/bus/usb/drivers/usb/bind

Fingerprint reader

The fingerprint sensor is not supported by libfprint.

There is a project python-validity based on open-fprintd, see .

Install or and enroll your fingerprint:

$ fprintd-enroll

Refer to Fprint#Configuration for configuration.

You may experience an issue where the fingerprint reader does not work after the laptop wakes up from suspension. To fix this, try enabling the and systemd services . If the issue is still present, create a unit file as follows, then enable it .

/etc/systemd/system/fingerprint-restart.service
[Unit]
Description=Restart services to fix fingerprint integration
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target

[Service]
Type=oneshot
ExecStart=systemctl restart open-fprintd.service python3-validity.service

[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target

If this solves the issue, you may disable and again.

PrivacyGuard

The PrivacyGuard feature is referred to as LCD Shadow and was introduced in Linux 5.4.

To enable or turn on the LCD shadow:

# echo 1 > /proc/acpi/ibm/lcdshadow

Conversely, use to disable it:

# echo 0 > /proc/acpi/ibm/lcdshadow

Function keys

KeyVisible?1Marked?2Effect
NoYesToggles Fn lock
YesYes
YesYes
YesYes
F4YesYes
YesYes
YesYesXF86MonBrightnessUp
YesYes
YesYes
F9YesYes
YesYes
3Yes
F12YesYes
NoYesControls the keyboard backlight
Fn+LeftYesNo
YesNo
YesNo
YesNo
Fn+pYesNo
YesNoAlt_L
YesNo
YesNo
  1. The key is visible to and similar tools.
  2. The physical key has a symbol on it, which describes its function.
  3. This key has a keyboard symbol on it. According to Lenovo, it should open the keyboard settings page , which it does on Windows 10. It does generate an event on Wayland, but not on X.
Note: Although Fn lock state persists across reboots, the function keys will always behave as standard function keys during device startup.

Troubleshooting

Thermal throttling

There are reported throttling issues for Lenovo T480/T480s/X1C6 notebooks.

This script forces the CPU package power limit (PL1/2) to 44 W (29 W on battery) and the temperature trip point to 95 'C (85 'C on battery) by overriding default values in MSR and MCHBAR every 5 seconds (30 on battery) to block the Embedded Controller from resetting these values to default.

Install the package and enable the .

It is recommended to also undervolt the CPU (Undervolting CPU#intel-undervolt). Most Kaby Lake R chips are able to easily undervolt to -100mV or more, which significantly helps to keep the device from thermal throttling. Throttled also provides undervolting capabilities and will overwrite the undervolt settings applied by intel-undervolt when it updates settings if both services are enabled.

Fix freezes/hangs on QT applications (with Intel driver)

See Intel graphics#AccelMethod.

Fix frequent WiFi disconnects

The iwlwifi driver provided by Linux Kernel 5.1 and later has a bug that can cause disconnects of the WiFi. If this occurs, check the system log using and search for this message: "No beacon heard and the time event is over already." If you see this message, try some of the suggested fixes discussed on Bug 203709. Workarounds discussed in the thread include:

1. Modifying kernel module parameter by adding a new configuration file for modprobe.d(5):

2. Disabling IPv6

3. Applying the kernel patch and creating the following kernel module parameter for modprobe.d(5):

gollark: Although to be honest "geomagnetic" was NOT a very catchy replacement.
gollark: All attempts to halt it have failed.
gollark: Bees were created by an experimental project in late 2019 and have now infected the majority of active members.
gollark: Remove half the configuration, see if it works, if so add back half of it and see if it still works, sort of thing.
gollark: Or try binary search.

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.