Touchpad switch not working (Lenovo IdeaPad L340-15IRH, Kubuntu 20.04)

Bug #1885033 reported by Yann Leray on 2020-06-25
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Wishlist
Unassigned

Bug Description

The touchpad switch, Fn-F6, does not work for me. It does work on Windows 10 (dual boot)
The touchpad works well, but I can only set the option in System Conguration.

See launchpad answer : https://answers.launchpad.net/ubuntu/+question/691511

Kubuntu 20.04
Lenovo IdeaPad L340-15IRH - Type 81LK
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: yann 1350 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: KDE
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-02-20 (125 days ago)
InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 04f2:b604 Chicony Electronics Co., Ltd Integrated Camera (1280x720@30)
 Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
 Bus 001 Device 004: ID 0cf3:e500 Qualcomm Atheros Communications
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 81LK
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-37-generic root=UUID=0ac30ea3-dc16-4323-a1a3-acea99fa90b5 ro quiet splash resume=/dev/nvme0n1p6 vt.handoff=7
ProcVersionSignature: Ubuntu 5.4.0-37.41-generic 5.4.41
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-37-generic N/A
 linux-backports-modules-5.4.0-37-generic N/A
 linux-firmware 1.187
Tags: focal
Uname: Linux 5.4.0-37-generic x86_64
UpgradeStatus: Upgraded to focal on 2020-05-14 (41 days ago)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 02/10/2020
dmi.bios.vendor: LENOVO
dmi.bios.version: BGCN29WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: NO DPK
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: IdeaPad L340-15IRH Gaming
dmi.modalias: dmi:bvnLENOVO:bvrBGCN29WW:bd02/10/2020:svnLENOVO:pn81LK:pvrIdeaPadL340-15IRHGaming:rvnLENOVO:rnLNVNB161216:rvrNODPK:cvnLENOVO:ct10:cvrIdeaPadL340-15IRHGaming:
dmi.product.family: IdeaPad L340-15IRH Gaming
dmi.product.name: 81LK
dmi.product.sku: LENOVO_MT_81LK_BU_idea_FM_IdeaPad L340-15IRH Gaming
dmi.product.version: IdeaPad L340-15IRH Gaming
dmi.sys.vendor: LENOVO

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1885033/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment

apport information

tags: added: apport-collected focal
description: updated

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

Yann Leray (yannl35133) wrote :

I should add that this bug was there from the beginning

affects: ubuntu → linux (Ubuntu)

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
You-Sheng Yang (vicamo) wrote :

Hi, what's your `sudo acpi_listen` output when pressed Fn-F6? And what's the output of `cat /sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/touchpad`? You mentioned it doesn't change, but what's the output exactly?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Yann Leray (yannl35133) wrote :

I'll add a summary of what was told in the anwser :

I have the latest BIOS on the Lenovo webpage, this bug appears for both (Linux) and neither on Win10.

- xev detects any Fn-Fx combination, apart from Fn-F6 (touchpad toggle). It doesn't detect Fn alone
- dmesg does not print any error linked with me pressing Fn-F6
- "Ideapad extra buttons" is listed both in /proc/bus/input/devices and in xinput --list
- File named /sys/devices/platform/ideapad/touchpad in the documentation appears to be /sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/touchpad on my computer. Its content is always 1 regardless of the setting in Kubuntu or me pressing Fn-F6
- File /sys/kernel/debug/ideapad/status is always
```
Backlight max: 21
Backlight now: 17
BL power value: On
=====================
Radio status: On(1)
Wifi status: Off(0)
BT status: Off(0)
3G status: Off(0)
=====================
Touchpad status:On(1)
Camera status: Off(0)
=====================
Conservation mode: Off(268829184)
```
regardless of regardless of the setting in Kubuntu or me pressing Fn-F6 (touchpad status) or even me changing the luminosity, toggling Wifi, etc.
- evtest results :
  + F1 through F12 show the corresponding keycode.
  + On its own, Fn does not appear at all.
  + Fn-F1 (mute) shows MSC_SCAN value a0, keycode 113 (KEY_MUTE) with values alternating 1-0 (as I press/release, this will be the same)
  + Fn-F2 (vol down) and Fn-F3 (vol up) show MSC_SCAN values ae and b0, with keycodes 114 (KEY_VOLUMEDOWN) and 114 (KEY_VOLUMEUP)
  + Fn-F4 (mute mic) does not appear at all (it works well though)
  + Fn-F5 (reload) appears as F5
  + Fn-F6 (touchpad switch) does not appear at all (and doesn't work)
  + Fn-F7 (airplane mode) does not appear at all (but works)
  + Fn-F8 (cut camera, I guess?) does not appear at all (doesn't work? I haven't found its use, but when streaming my webcam to VLC, it did nothing)
  + Fn-F9 (lock) appears as LEFTMETA-L, where releasing F9 releases L and Fn releases LEFTMETA
  + Fn-F10 (change multiscreen options) appears as LEFTMETA-P where repressing F10 represses P and releasing Fn releases LEFTMETA
  + Fn-F11 (luminosity down) and Fn-F12 (luminosity up) do not appear at all (but work well though)

- acpi_listen results:
  + Fn-F1: button/mute MUTE 00000080 00000000 K
  + Fn-F2: button/volumedown VOLDN 00000080 00000000 K
  + Fn-F3: button/volumeup VOLUP 00000080 00000000 K
  + Fn-F4: button/f20 F20 00000080 00000000 K
  + Fn-F5: ^[[15~ (not acpi_listen, but the same code as F5 in console)
  + Fn-F[6-10]:
  + Fn-F11: video/brightnessdown BRTDN 00000087 00000000
  + Fn-F12: video/brightnessup BRTUP 00000086 00000000

You-Sheng Yang (vicamo) wrote :

Please attach your acpi dump info:

  $ sudo apt install acpica-tools
  $ sudo acpidump -o acpi.dump

And attach that `acpi.dump` file.

Yann Leray (yannl35133) wrote :
You-Sheng Yang (vicamo) on 2020-06-25
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Yann Leray (yannl35133) wrote :

Could you please explain what is missing for this bug to be considered complete?

Kai-Heng Feng (kaihengfeng) wrote :

Hmm, somehow my comment didn't show up.

Please install libinput-tools, run `sudo libinput debug-events`, press the hotkey and attach the output here.

Yann Leray (yannl35133) wrote :

$ sudo libinput debug-events
-event4 DEVICE_ADDED Video Bus seat0 default group1 cap:k
-event3 DEVICE_ADDED Video Bus seat0 default group1 cap:k
-event1 DEVICE_ADDED Power Button seat0 default group2 cap:k
-event0 DEVICE_ADDED Lid Switch seat0 default group3 cap:S
-event9 DEVICE_ADDED HDA NVidia HDMI/DP,pcm=3 seat0 default group4 cap:
-event5 DEVICE_ADDED PixArt USB Optical Mouse seat0 default group5 cap:p left scroll-nat scroll-button
-event6 DEVICE_ADDED Integrated Camera: Integrated C seat0 default group6 cap:k
-event8 DEVICE_ADDED Elan Touchpad seat0 default group7 cap:pg size 104x68mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on
-event7 DEVICE_ADDED Ideapad extra buttons seat0 default group8 cap:k
-event11 DEVICE_ADDED HDA Intel PCH Headphone seat0 default group4 cap:
-event12 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=3 seat0 default group4 cap:
-event13 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=7 seat0 default group4 cap:
-event14 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=8 seat0 default group4 cap:
-event15 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=9 seat0 default group4 cap:
-event16 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=10 seat0 default group4 cap:
-event10 DEVICE_ADDED HDA Intel PCH Mic seat0 default group4 cap:
-event2 DEVICE_ADDED AT Translated Set 2 keyboard seat0 default group9 cap:k
# Pressing and releasing Fn (nothing)
# Pressing Fn, pressing and releasing F6 (ie, pressing and releasing Fn+F6) (nothing)
# Pressing and releasing F6
 event2 KEYBOARD_KEY +10.435s *** (-1) pressed
^[[17~ event2 KEYBOARD_KEY +10.508s *** (-1) released
# Pressing and releasing F5
 event2 KEYBOARD_KEY +19.242s *** (-1) pressed
^[[15~ event2 KEYBOARD_KEY +19.306s *** (-1) released
# Pressing and releasing Fn+F5
 event2 KEYBOARD_KEY +19.726s *** (-1) pressed
^[[15~ event2 KEYBOARD_KEY +19.802s *** (-1) released
# Pressing and releasing F7
 event2 KEYBOARD_KEY +22.121s *** (-1) pressed
^[[18~ event2 KEYBOARD_KEY +22.203s *** (-1) released
# Pressing and releasing Fn+F7
-event7 KEYBOARD_KEY +22.612s KEY_RFKILL (247) pressed
 event7 KEYBOARD_KEY +22.612s KEY_RFKILL (247) released
# Pressing Ctrl+C
-event2 KEYBOARD_KEY +25.287s *** (-1) pressed
 event2 KEYBOARD_KEY +25.503s *** (-1) pressed
^C

BTW, the touchpad inputs are still registered when my computer has them off, but I guess that's just how KDE/Ubuntu works for cutting them.

Kai-Heng Feng (kaihengfeng) wrote :

Can you please run `evtest` and choose `AT keyboard`, see if there's anything from pressing the hotkey.

Yann Leray (yannl35133) wrote :
Download full text (11.6 KiB)

I thought the results above would be sufficient, here is the full output:

sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Power Button
/dev/input/event2: AT Translated Set 2 keyboard
/dev/input/event3: Video Bus
/dev/input/event4: Video Bus
/dev/input/event5: PixArt USB Optical Mouse
/dev/input/event6: Integrated Camera: Integrated C
/dev/input/event7: Ideapad extra buttons
/dev/input/event8: Elan Touchpad
/dev/input/event9: HDA Intel PCH Mic
/dev/input/event10: HDA Intel PCH Headphone
/dev/input/event11: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event12: HDA Intel PCH HDMI/DP,pcm=7
/dev/input/event13: HDA Intel PCH HDMI/DP,pcm=8
/dev/input/event14: HDA Intel PCH HDMI/DP,pcm=9
/dev/input/event15: HDA Intel PCH HDMI/DP,pcm=10
Select the device event number [0-15]: 2
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x1 product 0x1 version 0xab83
Input device name: "AT Translated Set 2 keyboard"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 1 (KEY_ESC)
    Event code 2 (KEY_1)
    Event code 3 (KEY_2)
    Event code 4 (KEY_3)
    Event code 5 (KEY_4)
    Event code 6 (KEY_5)
    Event code 7 (KEY_6)
    Event code 8 (KEY_7)
    Event code 9 (KEY_8)
    Event code 10 (KEY_9)
    Event code 11 (KEY_0)
    Event code 12 (KEY_MINUS)
    Event code 13 (KEY_EQUAL)
    Event code 14 (KEY_BACKSPACE)
    Event code 15 (KEY_TAB)
    Event code 16 (KEY_Q)
    Event code 17 (KEY_W)
    Event code 18 (KEY_E)
    Event code 19 (KEY_R)
    Event code 20 (KEY_T)
    Event code 21 (KEY_Y)
    Event code 22 (KEY_U)
    Event code 23 (KEY_I)
    Event code 24 (KEY_O)
    Event code 25 (KEY_P)
    Event code 26 (KEY_LEFTBRACE)
    Event code 27 (KEY_RIGHTBRACE)
    Event code 28 (KEY_ENTER)
    Event code 29 (KEY_LEFTCTRL)
    Event code 30 (KEY_A)
    Event code 31 (KEY_S)
    Event code 32 (KEY_D)
    Event code 33 (KEY_F)
    Event code 34 (KEY_G)
    Event code 35 (KEY_H)
    Event code 36 (KEY_J)
    Event code 37 (KEY_K)
    Event code 38 (KEY_L)
    Event code 39 (KEY_SEMICOLON)
    Event code 40 (KEY_APOSTROPHE)
    Event code 41 (KEY_GRAVE)
    Event code 42 (KEY_LEFTSHIFT)
    Event code 43 (KEY_BACKSLASH)
    Event code 44 (KEY_Z)
    Event code 45 (KEY_X)
    Event code 46 (KEY_C)
    Event code 47 (KEY_V)
    Event code 48 (KEY_B)
    Event code 49 (KEY_N)
    Event code 50 (KEY_M)
    Event code 51 (KEY_COMMA)
    Event code 52 (KEY_DOT)
    Event code 53 (KEY_SLASH)
    Event code 54 (KEY_RIGHTSHIFT)
    Event code 55 (KEY_KPASTERISK)
    Event code 56 (KEY_LEFTALT)
    Event code 57 (KEY_SPACE)
    Event code 58 (KEY_CAPSLOCK)
    Event code 59 (KEY_F1)
    Event code 60 (KEY_F2)
    Event code 61 (KEY_F3)
    Event code 62 (KEY_F4)
    Event code 63 (KEY_F5)
    Event code 64 (KEY_F6)
    Event code 65 (KEY_F7)
    Event code 66 (KEY_F8)
    Event code 67 (KEY_F9)
    Event code 68 (KEY_F10)
    Event code 69 (KEY_NUMLOCK)
    Event code 70 (KEY_SCROLLLOCK)
    Event code 71 (KEY_KP7)
    Event code 72 (KEY_KP8)
    Event code 73 (KEY_...

Kai-Heng Feng (kaihengfeng) wrote :

Ok. Other than ask Lenovo to share the spec or implement a patch, there's nothing else we can do here.

Yann Leray (yannl35133) wrote :

I tried to contact them about this, but so far I have a forum post that didn't gather importance, two cancelled support requests and a conversation where they told me they didn't support Linux, hence couldn't report a bug for Linux.

Could we set this bug in a state where it won't disappear, so that other people affected can know about it and maybe raise more attention to Lenovo?

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers