yoga-usage-mode icon indicating copy to clipboard operation
yoga-usage-mode copied to clipboard

Doesn't work with Lenovo Thinkpad L13 Yoga Gen 4

Open PhilDevProg opened this issue 2 years ago • 10 comments

I have a Lenovo ThinkPad L13 Yoga Gen 4 with Fedora Workstation 38. It runs the 6.4.4 version of the Linux kernel so it includes the patches of this repository but the SW_TABLET_MODE switch doesn't work since it doesn't seem to exist. This is the output of sudo libinput debug-events:

-event3   DEVICE_ADDED            Power Button                      seat0 default group1  cap:k
-event13  DEVICE_ADDED            Video Bus                         seat0 default group2  cap:k
-event0   DEVICE_ADDED            Power Button                      seat0 default group3  cap:k
-event1   DEVICE_ADDED            Lid Switch                        seat0 default group4  cap:S
-event2   DEVICE_ADDED            Sleep Button                      seat0 default group5  cap:k
-event8   DEVICE_ADDED            Wacom HID 5337 Pen                seat0 default group6  cap:T  size 286x179mm calib
-event9   DEVICE_ADDED            Wacom HID 5337 Finger             seat0 default group6  cap:t  size 286x179mm ntouches 10 calib
-event6   DEVICE_ADDED            ELAN067F:00 04F3:3209 Mouse       seat0 default group7  cap:p left scroll-nat scroll-button
-event7   DEVICE_ADDED            ELAN067F:00 04F3:3209 Touchpad    seat0 default group7  cap:pg  size 114x54mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on dwtp-on
-event4   DEVICE_ADDED            AT Translated Set 2 keyboard      seat0 default group8  cap:k
-event5   DEVICE_ADDED            TPPS/2 Elan TrackPoint            seat0 default group9  cap:p left scroll-nat scroll-button
-event16  DEVICE_ADDED            ThinkPad Extra Buttons            seat0 default group10 cap:kS

The SW_TABLET_MODE switch doesn't get triggered when I flip the screen.

PhilDevProg avatar Jul 25 '23 17:07 PhilDevProg

I have the exact same problem. I'm running the L13 Yoga Gen 4 AMD with KDE Plasma (Wayland) on Arch Linux. I'm running kernel version 6.4.6. The output to the command you posted looks almost like mine.

-event3   DEVICE_ADDED            Power Button                      seat0 default group1  cap:k
-event4   DEVICE_ADDED            Video Bus                         seat0 default group2  cap:k
-event0   DEVICE_ADDED            Power Button                      seat0 default group3  cap:k
-event1   DEVICE_ADDED            Lid Switch                        seat0 default group4  cap:S
-event2   DEVICE_ADDED            Sleep Button                      seat0 default group5  cap:k
-event15  DEVICE_ADDED            Wacom HID 5334 Pen                seat0 default group6  cap:T  size 286x179mm calib
-event16  DEVICE_ADDED            Wacom HID 5334 Finger             seat0 default group6  cap:t  size 286x179mm ntouches 10 calib
-event8   DEVICE_ADDED            ELAN067F:00 04F3:3209 Mouse       seat0 default group7  cap:p left scroll-nat scroll-button
-event10  DEVICE_ADDED            ELAN067F:00 04F3:3209 Touchpad    seat0 default group7  cap:pg  size 114x54mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on dwtp-on
-event5   DEVICE_ADDED            AT Translated Set 2 keyboard      seat0 default group8  cap:k
-event17  DEVICE_ADDED            TPPS/2 Elan TrackPoint            seat0 default group9  cap:p left scroll-nat scroll-button
-event6   DEVICE_ADDED            ThinkPad Extra Buttons            seat0 default group10 cap:kS

N11cc00 avatar Jul 28 '23 12:07 N11cc00

Same here #7

sidevesh avatar Jul 30 '23 00:07 sidevesh

Same here #7

Your problem seems different because you have the SW_TABLET_MODE toggle as an event (even if it doesn't change). I don't even get this event, it just doesn't exist on my laptop.

PhilDevProg avatar Jul 30 '23 06:07 PhilDevProg

Same here #7

Your problem seems different because you have the SW_TABLET_MODE toggle as an event (even if it doesn't change). I don't even get this event, it just doesn't exist on my laptop.

Ah okay, @lukas-w anyway to move these issues forward please ? Currently touch mode and auto rotation is conpletely broken on my laptop because of this module being present but not working.

sidevesh avatar Aug 02 '23 04:08 sidevesh

It runs the 6.4.4 version of the Linux kernel so it includes the patches of this repository

I'm not aware of this module being merged into the Linux kernel. Are you sure you're not using a different module?

lukas-w avatar Aug 12 '23 15:08 lukas-w

It runs the 6.4.4 version of the Linux kernel so it includes the patches of this repository

I'm not aware of this module being merged into the Linux kernel. Are you sure you're not using a different module?

Oh, I thought this repository and this were the same or at least did the same thing since it was brought up in https://github.com/lukas-w/yoga-usage-mode/issues/5. I'll try to install this module again.

PhilDevProg avatar Aug 12 '23 15:08 PhilDevProg

same over here but with the gen 3 amd version

-event3   DEVICE_ADDED            Power Button                      seat0 default group1  cap:k
-event13  DEVICE_ADDED            Video Bus                         seat0 default group2  cap:k
-event0   DEVICE_ADDED            Power Button                      seat0 default group3  cap:k
-event1   DEVICE_ADDED            Lid Switch                        seat0 default group4  cap:S
-event2   DEVICE_ADDED            Sleep Button                      seat0 default group5  cap:k
-event6   DEVICE_ADDED            Wacom HID 52EE Pen                seat0 default group6  cap:T  size 286x179mm calib
-event7   DEVICE_ADDED            Wacom HID 52EE Finger             seat0 default group6  cap:t  size 286x179mm ntouches 10 calib
-event11  DEVICE_ADDED            ELAN067F:00 04F3:3209 Mouse       seat0 default group7  cap:p left scroll-nat scroll-button
-event12  DEVICE_ADDED            ELAN067F:00 04F3:3209 Touchpad    seat0 default group7  cap:pg  size 114x54mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on dwtp-on
-event4   DEVICE_ADDED            AT Translated Set 2 keyboard      seat0 default group8  cap:k
-event5   DEVICE_ADDED            TPPS/2 Elan TrackPoint            seat0 default group9  cap:p left scroll-nat scroll-button
-event9   DEVICE_ADDED            ThinkPad Extra Buttons            seat0 default group10 cap:kS
-event18  DEVICE_ADDED            solaar-keyboard                   seat0 default group11 cap:kp left scroll-nat

running fedora 39 kernel 6.5.11

galash13 avatar Nov 12 '23 16:11 galash13

@lukas-w When I try make load as sudo I get this error:


insmod ./yoga-usage-mode.ko
insmod: ERROR: could not insert module ./yoga-usage-mode.ko: No such device
make: *** [Makefile:20: load] Error 1

OS: Fedora Workstation 39 Kernel: 6.5.11 Secure Boot is disabled

PhilDevProg avatar Nov 12 '23 19:11 PhilDevProg

same problem, thinkpad l13 yoga gen4 , ubuntu 24.04 gnome

sudo make load
insmod ./yoga-usage-mode.ko
insmod: ERROR: could not insert module ./yoga-usage-mode.ko: No such device
make: *** [Makefile:20: load] Error 1  

ZevveZ avatar Apr 26 '25 17:04 ZevveZ