https://wiki.archlinux.org/api.php?action=feedcontributions&user=Timschroedernet&feedformat=atomArchWiki - User contributions [en]2024-03-29T14:17:52ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon_(Gen_6)&diff=539071Lenovo ThinkPad X1 Carbon (Gen 6)2018-08-31T21:21:15Z<p>Timschroedernet: /* TrackPoint and Touchpad issues */ Fix typo.</p>
<hr />
<div>[[Category:Lenovo]]<br />
[[ja:Lenovo ThinkPad X1 Carbon (Gen 6)]]<br />
{{Related articles start}}<br />
{{Related|Lenovo ThinkPad X1 Carbon}}<br />
{{Related|Lenovo ThinkPad X1 Carbon (Gen 2)}}<br />
{{Related|Lenovo ThinkPad X1 Carbon (Gen 3)}}<br />
{{Related|Lenovo ThinkPad X1 Carbon (Gen 4)}}<br />
{{Related|Lenovo ThinkPad X1 Carbon (Gen 5)}}<br />
{{Related articles end}}<br />
<br />
{{tip| A great resource for thinkpads is https://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
== Model description ==<br />
<br />
The Lenovo ThinkPad X1 Carbon, 6th generation is an ultrabook introduced in early 2018. It comes in several variants({{ic|20KH*}} and {{ic|20KG*}}) and 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 />
<br />
Version: ThinkPad X1 Carbon 6th<br />
}}<br />
<br />
=== Support ===<br />
<br />
{| class="wikitable"<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://www3.lenovo.com/us/en/accessories-and-monitors/cables-and-adapters/adapters/CABLE-BO-TP-OneLink%2B-to-RJ45-Adapter/p/4X90K06975 included dongle] || {{Yes}} || ?<br />
|-<br />
| Mobile broadband || {{No}}*** || ?<br />
|-<br />
| Audio || {{Yes}} || snd_hda_intel<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 />
| Fingerprint Reader || {{No}}** || ?<br />
|-<br />
| [[Power management]] || {{Yes}} || ?<br />
|-<br />
| [[Bluetooth]] || {{Yes}} || btusb<br />
|-<br />
| microSD card reader || {{Yes}} || scsi_mod<br />
|-<br />
| Keyboard Backlight || {{Yes}} || thinkpad_acpi<br />
|-<br />
| Function/Multimedia Keys || {{Yes}} || ?<br />
|}<br />
<nowiki>*</nowiki> via [[#TrackPoint_and_Touchpad_issues|workaround]]<br />
<br />
<nowiki>**</nowiki> [https://github.com/nmikhailov/Validity90 progress being made] on driver<br />
<br />
<nowiki>***</nowiki> no working linux pcie driver for Fibocom L850-GL [https://forums.lenovo.com/t5/Linux-Discussion/X1C-gen-6-Fibocom-L850-GL-Ubuntu-18-04/m-p/4078413 forum link] - also see [https://forums.lenovo.com/t5/Linux-Discussion/Linux-support-for-WWAN-LTE-L850-GL-on-T580-T480/td-p/4067969 this forum] for more progress. <br />
<br />
== BIOS ==<br />
The most convenient way to install Arch Linux is by disabling "Secure Boot" {{ic|Security -> Secure Boot - Set to "Disabled"}}. However it is possible to self-sign your kernel and boot with it enabled. For further information have a look at the [[Secure Boot]] article.<br />
<br />
In case your {{ic|efivars}} are not properly set it is most likely due to you not being booted into [[UEFI]]. Should the problem persist be sure to consult the [[UEFI#UEFI variables]] section.<br />
<br />
=== Updates ===<br />
[https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-x-series-laptops/thinkpad-x1-carbon-6th-gen-type-20kh-20kg/downloads BIOS update 1.27] was released on 2018-07-28. Obtain {{aur|geteltorito}} and run {{ic|./geteltorito.pl -o bios-update.img n23ur09w.iso}} on the downloaded ISO file to create a valid [[wikipedia:El_Torito_(CD-ROM_standard)|El Torito]] image file, then flash this file on a USB drive via {{ic|dd}} like you would flash [[USB_flash_installation_media|Arch installation media]]. For further information see [[Flashing_BIOS_from_Linux#Bootable_optical_disk_emulation|flashing BIOS from Linux]].<br />
<br />
The ThinkPad X1 Carbon supports setting a custom splash image at the earliest boot stage(instead of the red "Lenovo" logo), more information can be found in the {{ic|README.TXT}} located in the {{ic|FLASH}} folder of the update image.<br />
<br />
== Suspend issues ==<br />
The 6th Generation X1 Carbon supports S0i3 (also known as Windows Modern Standby), but not S3 out of the box. Missing S3 also causes hybrid-suspend to go directly to hibernate. Thankfully, S3 can be enabled through an ACPI override.<br />
<br />
=== Enabling S3 ===<br />
<br />
First, verify S3 is not currently available by running the following command and making sure S3 is not listed in the supported modes.<br />
<br />
dmesg | grep -i "acpi: (supports"<br />
<br />
To enable S3 support, there is an automatic patching script [https://github.com/fiji-flo/x1carbon2018s3 x1carbon2018s3], that was written with full instructions on both enabling S3 and verifying the patch worked. Follow the instructions in the repository and verify with the above command afterwards.<br />
<br />
The automatic script was based off of a guide written with [https://delta-xi.net/#056 instructions for patching ACPI DSDT tables] to manually add S3 support. A [https://bbs.archlinux.org/viewtopic.php?id=234913 forum thread] has further discussion related to this issue.<br />
<br />
=== Enabling S2idle ===<br />
<br />
{{Note|Since [https://lkml.org/lkml/2018/6/24/113 kernel version 4.18-rc2] <nowiki>acpi.ec_no_wakeup=1</nowiki> is set by default}}<br />
From [https://forums.lenovo.com/t5/Linux-Discussion/X1-Carbon-Gen-6-cannot-enter-deep-sleep-S3-state-aka-Suspend-to/m-p/4016317/highlight/true#M10682 the Lenovo forums]: Add the following [[kernel parameter]] to enable S2idle support:<br />
acpi.ec_no_wakeup=1<br />
<br />
For example, for GRUB, one might edit <code>/etc/default/grub</code> and edit <code>GRUB_CMDLINE_LINUX_DEFAULT</code>:<br />
<br />
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi.ec_no_wakeup=1"<br />
<br />
then perform <br />
<br />
sudo update-grub<br />
<br />
and restart the system.<br />
<br />
{{Note|This supports only S2idle state, not S0i3 state as some seem to have been led to believe!}}<br />
<br />
You might also need to disable the Realtek memory card reader (which appears to use a constant 2-3 W) either via the BIOS or via <br />
echo "2-3" | sudo tee /sys/bus/usb/drivers/usb/unbind<br />
<br />
The power consumption might still be higher than that of the S3 state in this case.<br />
<br />
=== BIOS configurations ===<br />
* {{ic|Config -> Thunderbolt BIOS Assist Mode - Set to "Enabled"}}. When disabled, on Linux, power usage appears to be significantly higher because of a substantial number of CPU wakeups during s2idle.<br />
<br />
== Power management/Throttling issues ==<br />
Due to wrong configured power management registers the CPU may consume a lot less power than under windows and the thermal throttling occurs at 80°C (97°C when using Windows, see [https://www.reddit.com/r/thinkpad/comments/870u0a/t480s_linux_throttling_bug/ T480s throttling bug]).<br />
<br />
There is a [https://forums.lenovo.com/t5/Linux-Discussion/T480s-low-cTDP-and-trip-temperature-in-Linux/td-p/4028489 post in the official Lenovo forum] to inform Lenovo about this issue.<br />
<br />
=== Throttling fix ===<br />
<br />
An easy package has been written to address the problem until (or if) Lenovo ever solves it.<br />
<br />
Install {{Aur|lenovo-throttling-fix-git}}, then run:<br />
<br />
sudo systemctl enable --now lenovo_fix.service<br />
<br />
The script also supports more advance thermal/performance features including CPU undervolting. See the [https://github.com/erpalma/lenovo-throttling-fix lenovo-throttling-fix repository] <code>README.md</code> for details.<br />
<br />
{{Note|If you installed {{Pkg|thermald}}, it may conflict with the throttling fix in this package. Consider disabling thermald or otherwise work around this.}}<br />
<br />
== TrackPoint and Touchpad issues ==<br />
{{Note|Some models of the 6th generation X1 Carbon seem to have issues with the TrackPoint and Touchpad working at the same time.}}<br />
<br />
To get the TrackPoint and Touchpad to work at the same time, add {{ic|1=synaptics_intertouch=1}} to the {{ic|psmouse}} [[kernel module]] options, for example in the cmdline of the [[boot loader]]:<br />
[...] root=/dev/sda1 rw psmouse.synaptics_intertouch=1 [...]<br />
or by editing {{ic|/etc/modprobe.d/psmouse.conf}}:<br />
options psmouse synaptics_intertouch=1<br />
<br />
{{Note|When using [[TLP]] with default powersaving settings, there might be occasional hiccups such as dropouts of tap-to-click functionality for the Touchpad, as well as the TrackPoint not surviving suspends and needing to be re-initialized.}}<br />
<br />
Reconnecting a dead trackpad can be done via<br />
{{bc|echo -n "none" &#124; sudo tee /sys/bus/serio/devices/serio1/drvctl<br />
echo -n "reconnect" &#124; sudo tee /sys/bus/serio/devices/serio1/drvctl}}<br />
<br />
A [https://gitlab.freedesktop.org/libinput/libinput/issues/46 bug] in the libinput library that caused dropouts of the tap-to-click functionality of the touchpad on the X1 Carbon 6th Gen has been fixed in libinput 1.11.2, which was released on [https://lists.freedesktop.org/archives/wayland-devel/2018-July/038782.html 3 July 2018].<br />
<br />
== Full-disk encryption ==<br />
<br />
=== Ramdisk module ===<br />
With LUKS for root, i915 needs to be loaded in ramdisk in order to access the password prompt.<br />
Add i915 to MODULES list in {{ic|/etc/mkinitcpio.conf}} and regenerate the ramdisk.<br />
<br />
== Tools ==<br />
=== Diagnostics ===<br />
<code>s-tui</code> ({{Aur|s-tui}}): an aesthetically pleasing and useful curses-style interface that shows graphs of CPU frequency, utilization, temperature, and power consumption. It also has a built in stress tester.<br />
<br />
<code>intel_gpu_top</code> ({{Pkg|intel-gpu-tools}}): gives you some top-like info for the integrated GPU. This can be quite useful in diagnosing GPU acceleration issues.<br />
<br />
<code>powertop</code> ({{Pkg|powertop}}): provides detailed information about CPU power consumption and recommendations on how to improve it.<br />
<br />
<code>tlp-stat</code> ({{Pkg|tlp}}): a much simpler alternative to remembering which <code>cat /sys/devices/system/*</code> to run in many cases. It can give very detailed, structured information about components like the battery, processor, graphics card, etc.<br />
<br />
== References ==<br />
* [https://delta-xi.net/#056 A good night's sleep for the Lenovo X1 Carbon Gen6]: Patching ACPI DSDT tables to add S3 support<br />
* [https://forums.lenovo.com/t5/Linux-Discussion/X1-Carbon-Gen-6-cannot-enter-deep-sleep-S3-state-aka-Suspend-to/td-p/3998182/highlight/true Lenovo forums: Cannot enter deep sleep S3]<br />
* [https://bbs.archlinux.org/viewtopic.php?id=234913 Thread: No deep sleep]: Includes DSDT patching solution and further discussion<br />
* [https://www.reddit.com/r/thinkpad/comments/870u0a/t480s_linux_throttling_bug/ T480s throttling bug], affects X1C6 as well<br />
* [https://forums.lenovo.com/t5/Linux-Discussion/T480s-low-cTDP-and-trip-temperature-in-Linux/td-p/4028489 Lenovo forums: T480s low cTDP and trip temperature in Linux]<br />
* [https://bbs.archlinux.org/viewtopic.php?id=236367 Thread: TrackPoint/Touchpad issues, 20KG model]<br />
* [https://unix.stackexchange.com/a/431820 StackExchange: Success with enabling RMI4 config flags for Touchpad and TrackPoint]<br />
* [https://patchwork.kernel.org/patch/10324633/ Kernel patch - Input: elantech - add support for SMBus devices]<br />
* [https://patchwork.kernel.org/patch/10330857/ Kernel patch - Input: synaptics - add Lenovo 80 series ids to SMBus]<br />
* [[Kernel_mode_setting#Early_KMS_start|Early KMS start]]: Adding i915 to ramdisk<br />
<br />
== Additional resources ==<br />
<br />
* [https://www.thinkwiki.org/wiki/Category:X1_Carbon_(6th_Gen) ThinkWiki X1 Carbon 6th Gen page]<br />
* Benjamin Tissoires, kernel maintainer of peripherals, has explained how input bugs get fixed in his talk [https://www.youtube.com/watch?v=Bl_0xYxcYd8 Tools to debug a broken input device] ([https://www.x.org/wiki/Events/XDC2015/Program/tissoires_input_debug_tools.html Slides]), especially interesting are slides 16 onward.<br />
* [https://gist.github.com/greigdp/bb70fbc331a0aaf447c2d38eacb85b8f Dell XPS 13 9370 quirks]: Some pointers on getting Watt usage down to ~2W, Intel video powersaving features might be interesting, see also the [[Intel_graphics|Intel Graphics]] page for interesting power-saving options.<br />
* [[Dell XPS 13 (9360)]]: Shares some hardware with the X1C6<br />
* [https://01.org/blogs/rzhang/2015/best-practice-debug-linux-suspend/hibernate-issues Intel Blog: Best practice to debug Linux* suspend/hibernate issues], including the [https://github.com/01org/pm-graph pm-graph] tool to analyze power usage during suspend</div>Timschroedernethttps://wiki.archlinux.org/index.php?title=Lenovo_ThinkPad_X1_Carbon_(Gen_6)&diff=539067Lenovo ThinkPad X1 Carbon (Gen 6)2018-08-31T20:27:06Z<p>Timschroedernet: Added reference to libinput fix for touchpad tap-to-click dropout issue to section "trackpoint and touchpad issues".</p>
<hr />
<div>[[Category:Lenovo]]<br />
[[ja:Lenovo ThinkPad X1 Carbon (Gen 6)]]<br />
{{Related articles start}}<br />
{{Related|Lenovo ThinkPad X1 Carbon}}<br />
{{Related|Lenovo ThinkPad X1 Carbon (Gen 2)}}<br />
{{Related|Lenovo ThinkPad X1 Carbon (Gen 3)}}<br />
{{Related|Lenovo ThinkPad X1 Carbon (Gen 4)}}<br />
{{Related|Lenovo ThinkPad X1 Carbon (Gen 5)}}<br />
{{Related articles end}}<br />
<br />
{{tip| A great resource for thinkpads is https://www.thinkwiki.org/wiki/ThinkWiki}}<br />
<br />
== Model description ==<br />
<br />
The Lenovo ThinkPad X1 Carbon, 6th generation is an ultrabook introduced in early 2018. It comes in several variants({{ic|20KH*}} and {{ic|20KG*}}) and 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 />
<br />
Version: ThinkPad X1 Carbon 6th<br />
}}<br />
<br />
=== Support ===<br />
<br />
{| class="wikitable"<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://www3.lenovo.com/us/en/accessories-and-monitors/cables-and-adapters/adapters/CABLE-BO-TP-OneLink%2B-to-RJ45-Adapter/p/4X90K06975 included dongle] || {{Yes}} || ?<br />
|-<br />
| Mobile broadband || {{No}}*** || ?<br />
|-<br />
| Audio || {{Yes}} || snd_hda_intel<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 />
| Fingerprint Reader || {{No}}** || ?<br />
|-<br />
| [[Power management]] || {{Yes}} || ?<br />
|-<br />
| [[Bluetooth]] || {{Yes}} || btusb<br />
|-<br />
| microSD card reader || {{Yes}} || scsi_mod<br />
|-<br />
| Keyboard Backlight || {{Yes}} || thinkpad_acpi<br />
|-<br />
| Function/Multimedia Keys || {{Yes}} || ?<br />
|}<br />
<nowiki>*</nowiki> via [[#TrackPoint_and_Touchpad_issues|workaround]]<br />
<br />
<nowiki>**</nowiki> [https://github.com/nmikhailov/Validity90 progress being made] on driver<br />
<br />
<nowiki>***</nowiki> no working linux pcie driver for Fibocom L850-GL [https://forums.lenovo.com/t5/Linux-Discussion/X1C-gen-6-Fibocom-L850-GL-Ubuntu-18-04/m-p/4078413 forum link] - also see [https://forums.lenovo.com/t5/Linux-Discussion/Linux-support-for-WWAN-LTE-L850-GL-on-T580-T480/td-p/4067969 this forum] for more progress. <br />
<br />
== BIOS ==<br />
The most convenient way to install Arch Linux is by disabling "Secure Boot" {{ic|Security -> Secure Boot - Set to "Disabled"}}. However it is possible to self-sign your kernel and boot with it enabled. For further information have a look at the [[Secure Boot]] article.<br />
<br />
In case your {{ic|efivars}} are not properly set it is most likely due to you not being booted into [[UEFI]]. Should the problem persist be sure to consult the [[UEFI#UEFI variables]] section.<br />
<br />
=== Updates ===<br />
[https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-x-series-laptops/thinkpad-x1-carbon-6th-gen-type-20kh-20kg/downloads BIOS update 1.27] was released on 2018-07-28. Obtain {{aur|geteltorito}} and run {{ic|./geteltorito.pl -o bios-update.img n23ur09w.iso}} on the downloaded ISO file to create a valid [[wikipedia:El_Torito_(CD-ROM_standard)|El Torito]] image file, then flash this file on a USB drive via {{ic|dd}} like you would flash [[USB_flash_installation_media|Arch installation media]]. For further information see [[Flashing_BIOS_from_Linux#Bootable_optical_disk_emulation|flashing BIOS from Linux]].<br />
<br />
The ThinkPad X1 Carbon supports setting a custom splash image at the earliest boot stage(instead of the red "Lenovo" logo), more information can be found in the {{ic|README.TXT}} located in the {{ic|FLASH}} folder of the update image.<br />
<br />
== Suspend issues ==<br />
The 6th Generation X1 Carbon supports S0i3 (also known as Windows Modern Standby), but not S3 out of the box. Missing S3 also causes hybrid-suspend to go directly to hibernate. Thankfully, S3 can be enabled through an ACPI override.<br />
<br />
=== Enabling S3 ===<br />
<br />
First, verify S3 is not currently available by running the following command and making sure S3 is not listed in the supported modes.<br />
<br />
dmesg | grep -i "acpi: (supports"<br />
<br />
To enable S3 support, there is an automatic patching script [https://github.com/fiji-flo/x1carbon2018s3 x1carbon2018s3], that was written with full instructions on both enabling S3 and verifying the patch worked. Follow the instructions in the repository and verify with the above command afterwards.<br />
<br />
The automatic script was based off of a guide written with [https://delta-xi.net/#056 instructions for patching ACPI DSDT tables] to manually add S3 support. A [https://bbs.archlinux.org/viewtopic.php?id=234913 forum thread] has further discussion related to this issue.<br />
<br />
=== Enabling S2idle ===<br />
<br />
{{Note|Since [https://lkml.org/lkml/2018/6/24/113 kernel version 4.18-rc2] <nowiki>acpi.ec_no_wakeup=1</nowiki> is set by default}}<br />
From [https://forums.lenovo.com/t5/Linux-Discussion/X1-Carbon-Gen-6-cannot-enter-deep-sleep-S3-state-aka-Suspend-to/m-p/4016317/highlight/true#M10682 the Lenovo forums]: Add the following [[kernel parameter]] to enable S2idle support:<br />
acpi.ec_no_wakeup=1<br />
<br />
For example, for GRUB, one might edit <code>/etc/default/grub</code> and edit <code>GRUB_CMDLINE_LINUX_DEFAULT</code>:<br />
<br />
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi.ec_no_wakeup=1"<br />
<br />
then perform <br />
<br />
sudo update-grub<br />
<br />
and restart the system.<br />
<br />
{{Note|This supports only S2idle state, not S0i3 state as some seem to have been led to believe!}}<br />
<br />
You might also need to disable the Realtek memory card reader (which appears to use a constant 2-3 W) either via the BIOS or via <br />
echo "2-3" | sudo tee /sys/bus/usb/drivers/usb/unbind<br />
<br />
The power consumption might still be higher than that of the S3 state in this case.<br />
<br />
=== BIOS configurations ===<br />
* {{ic|Config -> Thunderbolt BIOS Assist Mode - Set to "Enabled"}}. When disabled, on Linux, power usage appears to be significantly higher because of a substantial number of CPU wakeups during s2idle.<br />
<br />
== Power management/Throttling issues ==<br />
Due to wrong configured power management registers the CPU may consume a lot less power than under windows and the thermal throttling occurs at 80°C (97°C when using Windows, see [https://www.reddit.com/r/thinkpad/comments/870u0a/t480s_linux_throttling_bug/ T480s throttling bug]).<br />
<br />
There is a [https://forums.lenovo.com/t5/Linux-Discussion/T480s-low-cTDP-and-trip-temperature-in-Linux/td-p/4028489 post in the official Lenovo forum] to inform Lenovo about this issue.<br />
<br />
=== Throttling fix ===<br />
<br />
An easy package has been written to address the problem until (or if) Lenovo ever solves it.<br />
<br />
Install {{Aur|lenovo-throttling-fix-git}}, then run:<br />
<br />
sudo systemctl enable --now lenovo_fix.service<br />
<br />
The script also supports more advance thermal/performance features including CPU undervolting. See the [https://github.com/erpalma/lenovo-throttling-fix lenovo-throttling-fix repository] <code>README.md</code> for details.<br />
<br />
{{Note|If you installed {{Pkg|thermald}}, it may conflict with the throttling fix in this package. Consider disabling thermald or otherwise work around this.}}<br />
<br />
== TrackPoint and Touchpad issues ==<br />
{{Note|Some models of the 6th generation X1 Carbon seem to have issues with the TrackPoint and Touchpad working at the same time.}}<br />
<br />
To get the TrackPoint and Touchpad to work at the same time, add {{ic|1=synaptics_intertouch=1}} to the {{ic|psmouse}} [[kernel module]] options, for example in the cmdline of the [[boot loader]]:<br />
[...] root=/dev/sda1 rw psmouse.synaptics_intertouch=1 [...]<br />
or by editing {{ic|/etc/modprobe.d/psmouse.conf}}:<br />
options psmouse synaptics_intertouch=1<br />
<br />
{{Note|When using [[TLP]] with default powersaving settings, there might be occasional hiccups such as dropouts of tap-to-click functionality for the Touchpad, as well as the TrackPoint not surviving suspends and needing to be re-initialized.}}<br />
<br />
Reconnecting a dead trackpad can be done via<br />
{{bc|echo -n "none" &#124; sudo tee /sys/bus/serio/devices/serio1/drvctl<br />
echo -n "reconnect" &#124; sudo tee /sys/bus/serio/devices/serio1/drvctl}}<br />
<br />
A [https://gitlab.freedesktop.org/libinput/libinput/issues/46 bug] in the libinput library that caused dropouts of the tap-to-click functionality of the touchpad on the X1 Carbon 6th Gen has been fixed in libinput 1.11.12, which was released on [https://lists.freedesktop.org/archives/wayland-devel/2018-July/038782.html 3 July 2018].<br />
<br />
== Full-disk encryption ==<br />
<br />
=== Ramdisk module ===<br />
With LUKS for root, i915 needs to be loaded in ramdisk in order to access the password prompt.<br />
Add i915 to MODULES list in {{ic|/etc/mkinitcpio.conf}} and regenerate the ramdisk.<br />
<br />
== Tools ==<br />
=== Diagnostics ===<br />
<code>s-tui</code> ({{Aur|s-tui}}): an aesthetically pleasing and useful curses-style interface that shows graphs of CPU frequency, utilization, temperature, and power consumption. It also has a built in stress tester.<br />
<br />
<code>intel_gpu_top</code> ({{Pkg|intel-gpu-tools}}): gives you some top-like info for the integrated GPU. This can be quite useful in diagnosing GPU acceleration issues.<br />
<br />
<code>powertop</code> ({{Pkg|powertop}}): provides detailed information about CPU power consumption and recommendations on how to improve it.<br />
<br />
<code>tlp-stat</code> ({{Pkg|tlp}}): a much simpler alternative to remembering which <code>cat /sys/devices/system/*</code> to run in many cases. It can give very detailed, structured information about components like the battery, processor, graphics card, etc.<br />
<br />
== References ==<br />
* [https://delta-xi.net/#056 A good night's sleep for the Lenovo X1 Carbon Gen6]: Patching ACPI DSDT tables to add S3 support<br />
* [https://forums.lenovo.com/t5/Linux-Discussion/X1-Carbon-Gen-6-cannot-enter-deep-sleep-S3-state-aka-Suspend-to/td-p/3998182/highlight/true Lenovo forums: Cannot enter deep sleep S3]<br />
* [https://bbs.archlinux.org/viewtopic.php?id=234913 Thread: No deep sleep]: Includes DSDT patching solution and further discussion<br />
* [https://www.reddit.com/r/thinkpad/comments/870u0a/t480s_linux_throttling_bug/ T480s throttling bug], affects X1C6 as well<br />
* [https://forums.lenovo.com/t5/Linux-Discussion/T480s-low-cTDP-and-trip-temperature-in-Linux/td-p/4028489 Lenovo forums: T480s low cTDP and trip temperature in Linux]<br />
* [https://bbs.archlinux.org/viewtopic.php?id=236367 Thread: TrackPoint/Touchpad issues, 20KG model]<br />
* [https://unix.stackexchange.com/a/431820 StackExchange: Success with enabling RMI4 config flags for Touchpad and TrackPoint]<br />
* [https://patchwork.kernel.org/patch/10324633/ Kernel patch - Input: elantech - add support for SMBus devices]<br />
* [https://patchwork.kernel.org/patch/10330857/ Kernel patch - Input: synaptics - add Lenovo 80 series ids to SMBus]<br />
* [[Kernel_mode_setting#Early_KMS_start|Early KMS start]]: Adding i915 to ramdisk<br />
<br />
== Additional resources ==<br />
<br />
* [https://www.thinkwiki.org/wiki/Category:X1_Carbon_(6th_Gen) ThinkWiki X1 Carbon 6th Gen page]<br />
* Benjamin Tissoires, kernel maintainer of peripherals, has explained how input bugs get fixed in his talk [https://www.youtube.com/watch?v=Bl_0xYxcYd8 Tools to debug a broken input device] ([https://www.x.org/wiki/Events/XDC2015/Program/tissoires_input_debug_tools.html Slides]), especially interesting are slides 16 onward.<br />
* [https://gist.github.com/greigdp/bb70fbc331a0aaf447c2d38eacb85b8f Dell XPS 13 9370 quirks]: Some pointers on getting Watt usage down to ~2W, Intel video powersaving features might be interesting, see also the [[Intel_graphics|Intel Graphics]] page for interesting power-saving options.<br />
* [[Dell XPS 13 (9360)]]: Shares some hardware with the X1C6<br />
* [https://01.org/blogs/rzhang/2015/best-practice-debug-linux-suspend/hibernate-issues Intel Blog: Best practice to debug Linux* suspend/hibernate issues], including the [https://github.com/01org/pm-graph pm-graph] tool to analyze power usage during suspend</div>Timschroedernet