https://wiki.archlinux.org/api.php?action=feedcontributions&user=Ch1rh0&feedformat=atomArchWiki - User contributions [en]2024-03-29T10:12:59ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Yoga_(Gen_4)&diff=594900Lenovo ThinkPad X1 Yoga (Gen 4)2020-01-13T19:51:47Z<p>Ch1rh0: /* Persistent fix */ I added a '/' character to the beginning of the NoUpgrade line's file path. Was not a proper file path before but now it is.</p>
<hr />
<div>[[Category:Lenovo]]<br />
[[ja:Lenovo ThinkPad X1 Yoga (Gen 4)]]<br />
{{Related articles start}}<br />
{{Related|Lenovo ThinkPad X1 Carbon (Gen 7)}}<br />
{{Related articles end}}<br />
<br />
The Lenovo ThinkPad X1 Yoga, 4th generation is a 2-in-1 convertible laptop introduced in late 2019. Its design is closely related to the [[Lenovo ThinkPad X1 Carbon (Gen 7)]]. It features a 14" screen, 8th-gen Intel Core processors and integrated [[Intel graphics|Intel UHD 620 graphics]].<br />
<br />
To ensure you have this version, [[install]] the package {{Pkg|dmidecode}} and run:<br />
<br />
{{bc|# dmidecode -t system &#124; grep Version<br />
Version: ThinkPad X1 Yoga 4th<br />
}}<br />
{| class="wikitable" style="float: right; clear: right; margin: 0 0 0.5em 0.5em; max-width: 420px; width: 100%;"<br />
| '''Device''' || '''Working''' || '''Modules'''<br />
|-<br />
| [[Intel graphics]] || {{Yes}} || i915, (intel_agp)<br />
|-<br />
| [[Wireless network configuration#iwlwifi|Wireless network]] || {{Yes}} || iwlmvm<br />
|-<br />
| Native Ethernet with [https://www.lenovo.com/us/en/accessories-and-monitors/cables-and-adapters/adapters/CABLE-BO-Ethernet-Extension-Adapter-2/p/4X90Q84427 dongle] (sometimes not included) || {{Yes}} || ?<br />
|-<br />
| Audio || {{Yes}} || snd_hda_intel<br />
|-<br />
| Microphone || {{No}}³ || snd_sof, snd_sof_intel_hda<br />
|-<br />
| [[Touchpad]] || {{Yes}} || psmouse, rmi_smbus, i2c_i801<br />
|-<br />
| [[TrackPoint]] || {{Yes}} || psmouse, rmi_smbus, i2c_i801<br />
|-<br />
| Camera || {{Yes}} || uvcvideo<br />
|-<br />
| [[fprint|Fingerprint reader]] || {{No}}¹ || ?<br />
|-<br />
| [[Power management]] || {{Yes}}² || ?<br />
|-<br />
| [[Bluetooth]] || {{Yes}} || btusb<br />
|-<br />
| NFC || {{Y|?}}⁴ || ?<br />
|-<br />
| Keyboard backlight || {{Yes}} || thinkpad_acpi<br />
|-<br />
| Function/Multimedia keys || {{Yes}} || ?<br />
|-<br />
| colspan=3 style="font-size: 70%; border: none;" | <ol><br />
<li>An official driver and a reverse engineered driver are in the works [https://gitlab.freedesktop.org/libfprint/libfprint/issues/181] (''06cb:00bd''). See [[#Fingerprint sensor]]</li><br />
<li>S3 suspend requires changes to BIOS settings, see section on [[#Enabling S3|enabling S3]].</li><br />
<li>The internal microphone doesn't work on versions of the {{pkg|linux}} kernel before 5.3. On version 5.3 and newer the SOF firmware can be enabled by installing {{Pkg|sof-firmware}}. However, the latest version of sof-fimrware requires Kernel 5.5 and additional udev rules. The X1 Carbon (Gen 7) seems to have the same issue. See the [[Talk:Lenovo_ThinkPad_X1_Carbon_(Gen_7)#Microphone|Talkpage for X1 Carbon (Gen 7)]].</li><br />
<li>Using latest linux package and {{AUR|neard}} nfctool detects the device nfc0 and shows supported protocols </li><br />
|}<br />
== BIOS ==<br />
<br />
=== Updates ===<br />
<br />
==== Automatic (Linux Vendor Firmware Service) ====<br />
<br />
[https://blogs.gnome.org/hughsie/2018/08/06/please-welcome-lenovo-to-the-lvfs/ In August of 2018 Lenovo has joined] the [https://fwupd.org/ Linux Vendor Firmware Service (LVFS)] project, which enables firmware updates from within the OS.<br />
BIOS updates (and possibly other firmware such as the Thunderbolt controller) can be queried for and installed through [[fwupd]].<br />
<br />
=== BIOS hanging, not booting into bootloader ===<br />
<br />
Sometimes, the BIOS just "hangs" and you can't do anything but force-power off. This was fixed in the latest version of the Synaptics touchpad which you can install using fwupdmgr.<br />
<br />
=== Sleep/Suspend ===<br />
<br />
The BIOS has two "Sleep State" options, Windows and Linux, which you can find in at {{ic|Config -> Power -> Sleep State}}. The Linux option is the traditional S3 power state where all hardware components are turned off except for the RAM, and it should work normally. The Windows option is a newer software-based "modern standby" which works on Linux (despite the name). One possible benefit to the Windows sleep state is faster wake up time, and one possible drawback is increased power usage.<br />
<br />
=== S3 Suspend Bug with Bluetooth Devices ===<br />
<br />
Occasionally your Thinkpad will wake up immediately after suspending with certain [[bluetooth]] devices added. To prevent this, remove the devices or disable [[bluetooth]] before suspending.<br />
<br />
<br />
=== Enabling S3 ===<br />
<br />
The BIOS has two "Sleep State" options, Windows and Linux, which you can find in at {{ic|Config -> Power -> Sleep State}}. The Linux option is the traditional S3 power state where all hardware components are turned off except for the RAM, and it should work normally. The Windows option is a newer software-based "modern standby" which works on Linux (despite the name). One possible benefit to the Windows sleep state is faster wake up time, and one possible drawback is increased power usage.<br />
<br />
<br />
Reboot and verify whether S3 is working by running:<br />
dmesg | grep -i "acpi: (supports"<br />
<br />
You should now see something like this:<br />
[ 0.230796] ACPI: (supports S0 S3 S4 S5)<br />
<br />
<br />
== Audio ==<br />
As there are physically four loudspeakers, you need to configure to 4.0 audio output. When using PulseAudio there are various [[PulseAudio#Front-ends|configuration utilities]].<br />
<br />
=== Volume controls ===<br />
<br />
In order for volume controls to work correctly you must edit {{ic|/usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common}} by adding the following above {{ic|[Element PCM]}}:<br />
<br />
[Element Master]<br />
switch = mute<br />
volume = ignore<br />
<br />
A PulseAudio restart is required for this change to take affect. Make sure to increase the "''Master''" channel volume to 100% for the top-firing speakers to work (using amixer or alsamixer, found in {{Pkg|alsa-utils}}).<br />
<br />
==== Persistent fix ====<br />
<br />
Upgrading or reinstalling {{Pkg|pulseaudio}} will overwrite this file, and [https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PulseAudioStoleMyVolumes/ PulseAudio doesn't appear to offer another way] to make this configuration change. To prevent pacman from overwriting the file, add the following line under {{ic|[options]}} in {{ic|/etc/pacman.conf}}:<br />
<br />
NoUpgrade = /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common<br />
<br />
== Tablet Functions ==<br />
<br />
For the most part, the touch screen and stylus work under Xorg after installing {{Pkg|xf86-input-wacom}} package with no issues. See [[Tablet PC]] for further information.<br />
<br />
=== Stylus ===<br />
<br />
The default stylus buttons are mapped by the wacom driver as follows:<br />
<br />
{| class="wikitable"<br />
| '''Physical Button''' || '''Xorg mouse number'''<br />
|-<br />
| Top || 2<br />
|-<br />
| Bottom || "Eraser"<br />
|}<br />
<br />
These can be changed with xsetwacom. To set the top button of the stylus to the equivalent of a middle click or Xorg mouse button 3:<br />
<br />
xsetwacom --set "Wacom Pen and multitouch sensor Pen stylus" Button 2 3<br />
<br />
To register the "eraser" as a right click use:<br />
<br />
xsetwacom --set "Wacom Pen and multitouch sensor Pen eraser" Button 1 2<br />
<br />
=== Screen Rotation ===<br />
==== Automatic Screen Rotation in Gnome ====<br />
The iio-sensor-proxy package provides automatic screen rotation for me in Gnome. The package is available in the community repo<br />
<br />
sudo pacman -S iio-sensor-proxy <br />
<br />
No configuration was needed for my machine.<br />
<br />
==== With Screen Rotator ====<br />
Automatic screen rotation works well with ScreenRotator which has no configuration necessary. The touchscreen two finger swipe does not follow rotation at this time. Install {{AUR|iio-sensor-proxy-git}} and {{AUR|screenrotator-git}}. For KDE, there is {{AUR|kded-rotation-git}}.<br />
<br />
{{Note|[https://github.com/GuLinux/screenrotator ScreenRotator] is in early development stages.}}<br />
<br />
== Touchpad ==<br />
Sometimes after a boot, the touchpad doesn't work. This was fixed in the latest firmware for the Synaptics device which you can install using fwupdmgr.<br />
<br />
<br />
== Fingerprint sensor ==<br />
<br />
Warning : this is for testing only !<br />
<br />
Solution was found for the next version v2.0 of libfprint in [https://gitlab.freedesktop.org/libfprint/libfprint/issues/181 this issue].<br />
<br />
== Configuration ==<br />
<br />
Many of the configuration options can be found in [[Lenovo ThinkPad X1 Carbon (Gen 7)]], as the X1 Carbon 7 has a very similar structure to the X1 Yoga 4.</div>Ch1rh0