Lenovo ThinkPad P40 Yoga

HardwarePCI/USB IDWorking?
GPU (Intel)8086:1916Yes
GPU (NVIDIA)10de:137aYes
Wireless8086:24f3Yes
Audio8086:9d70Yes
TouchpadYes
Touchscreen13d3:5248Yes
Webcam13d3:5248Yes
Card reader1217:8520Yes
Fingerprint reader138a:0017Yes
Bluetooth8087:0a2bYes
AccelerometerYes

Configuration

Automatic rotation

Install . Under GNOME, rotation will happen automatically. Under i3, you can use this script in the background:

#!/bin/sh
# Requires https://github.com/hadess/iio-sensor-proxy

dbus-monitor --system interface=org.freedesktop.DBus.Properties,member=PropertiesChanged,path=/net/hadess/SensorProxy 2> /dev/null |
        sed -n -u -e '/string "AccelerometerOrientation"/ {n ; s/\s*variant\s*string\s*"\(.*\)"/\1/p}' |
        while read -r line ; do
                case $line in
                        right-up )
                                xrandr -o right &> /dev/null
                                ;;
                        left-up )
                                xrandr -o left &> /dev/null 
                                ;;
                        bottom-up )
                                xrandr -o inverted &> /dev/null
                                ;;
                        normal | * )
                                xrandr -o normal &> /dev/null
                                ;;
                 esac
        done

In order to have your touchpad, Trackpoint, touchscreen and stylus also change orientation, install xrandr-align and run the following script at startup:

See also

Official Support page

ThinkPad P40 Yoga Platform Specifications

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