This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Lenovo Thinkpad E540

From Gentoo Wiki (test)
Jump to:navigation Jump to:search

Hardware information

Tested hardware

Function Works? Note
Accelerated Graphics Yes
Wifi Yes
Bluetooth Yes
Trackpoint Yes Since the mouse buttons got integrated into the touchpad, it is awkward to use. To enable middle button scrolling use x11-drivers/xf86-input-libinput (>=0.8.0)
LCD Backlight control Yes
Hotkeys Yes
Webcam Yes

Hardware details

root #lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d4)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d4)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d4)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
04:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
root #lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 04f2:b398 Chicony Electronics Co., Ltd 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Issues

  • If the device has an UEFI Firmware version >1.61 it will not resume from suspend

(see this link for more information). It is recommended to update your BIOS to the newest version to fix this problem.

These problems seem to be fixed, but not 100% sure:

  • Sometimes, when the device resumes from suspend, the power LED will blink.

There is a workaround for this problem (see section Workarounds).

  • Sometimes, when the device resumes from suspend, the hotkeys are no longer

working

Workarounds

No Wifi after resume

Note
New BIOS and software versions should fix this problem, so that the workaround below is no longer required. Update your Gentoo system and BIOS to the latest versions available.

When the device resumes from suspend, the Wifi will no longer work. This seems to be a problem with wpa_supplicant, because restarting it fixes it. On Ubuntu distributions, this problem does not occur, so they probably have a patch for it. See this Ubuntu bug report for more information: https://bugs.launchpad.net/ubuntu/+source/gnome-nettool/+bug/1311257 .

With this script in your "/etc/pm/sleep.d" folder, you can restart wpa_supplicant after suspend:

CODE
#!/bin/sh

if [ "$1" = "resume" ]
then
	# If you're using NetworkManager, it will restart this service automatically.
	killall wpa_supplicant
	# Otherwise use this code (not tested):
	#rc-service wpa_supplicant restart
fi

After saving the script file, you have to make it executable:

root #chmod +x fix_wpa_supplicant.sh

No resume possible (UEFI problem)

Note
New BIOS and software versions should fix this problem, so that the workaround below is no longer required. Update your Gentoo system and BIOS to the latest versions available.

When you open the lid or press a button to resume, the device will not resume. The fan seems to come on, but thats it. You have to hard reset (push the power button for about 5 seconds) to make it work again. To make resume work, you have to turn off "USB 3 Mode" in the UEFI settings (pushing Enter when the laptop starts). The drawback of this method is, of course, that your USB ports will only work in USB 2 mode, which means much slower data transfers.

Blinking power LED after resume

Sometimes, when the device resumes, the power LED will blink instead of stay lit. This can be fixed by resetting the power LED after suspend. To do this, you have to issue the following command as root:

root #echo '0 on' > /proc/acpi/ibm/led

See "Documentation/laptops/thinkpad-acpi.txt" in your kernel source directory for more information.

Kernel

KERNEL
Device drivers -->
  Graphics support -->
    Direct Rendering Manager -->
      <M> Intel 8xx/9xx/G3x/G4x/HD Graphics
        [*] Enable modesetting on intel by default
Device drivers -->
  Multifunction device drivers -->
    <M> Realtek PCI-E card reader
  MMC/SD/SDIO card support -->
    <M> Realtek PCI-E SD/MMC Card Interface Driver
  <M> Multimedia support -->
    [*] Cameras/video grabbers support
    [*] Media USB Adapters -->
      <M> USB Video Class (UVC)

Required packages

Wifi and bluetooth firmware:

  • sys-firmware/iwl7260-ucode
  • sys-firmware/iwl7260-bt-ucode

Recommended packages

If you are using Xfce4, you can install this package to see the status of your modifier keys (Caps-Lock,Num-Lock):

  • xfce-extra/xfce4-kbdleds-plugin

For GNOME 3 there is the "Lock keys" extension, which you can find on extensions.gnome.org

Other desktop environments have similar panel plugins.