# Notes on running Linux Debian 11 on the Lenovo Yoga 12 touchscreen

**URL:** <http://forum.0xdbfb7.com/t/notes-on-running-linux-debian-11-on-the-lenovo-yoga-12-touchscreen/118>\
**Category:** General\
**Created:** [May 4, 2022, 5:15am UTC](http://forum.0xdbfb7.com/t/notes-on-running-linux-debian-11-on-the-lenovo-yoga-12-touchscreen/118 "2022-05-04T05:15:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![0xDBFB7](http://forum.0xdbfb7.com/user_avatar/forum.0xdbfb7.com/0xdbfb7/32/7_2.png) [@0xDBFB7](http://forum.0xdbfb7.com/u/0xDBFB7)\
**Post date:** [May 4, 2022, 5:15am UTC](http://forum.0xdbfb7.com/t/notes-on-running-linux-debian-11-on-the-lenovo-yoga-12-touchscreen/118/1 "2022-05-04T05:15:08Z")

</div>

I didn’t experience much RSI discomfort when using a phone touchscreen. To try to get back to regular activities, I bought a used Lenovo Yoga 12 20DK, reminiscent of a deeply beloved Acer R11 c738t convertible chromebook I used for half a decade before and through university.

In retrospect, I didn’t do enough research - this specific variant doesn’t have a pen digitizer, but does have a touchscreen.

Some useful tools are  
sudo hid-record  
and  
sudo evemu-record, from libevdev.  
sudo xsetwacom --list

[GitHub - Whisprin/thinkpad-yoga-scripts: Thinkpad Yoga 12 touchscreen fix for GNU/Linux](https://github.com/Whisprin/thinkpad-yoga-scripts) has a nifty set of utilities, but this is not

this device is a

Bus 002 Device 003: ID 056a:501b Wacom Co., Ltd Pen and multitouch sensor

sudo dmesg | grep wacom yielded the error  
‘’’  
wacom\_set\_report: "ran out of retries (last error = -110)  
‘’’

In Wayland, xsetwacom did not list any devices. Logged out and switched to x11, and there were some hints that slightly more worked, but the wacom devices still didn’t work.

tried an x11 conf.d file with the right udev id:id but no go

Some suggested modprobe-r or rmmod-ing, but this did nothing for me at this point. Finally, I tried blacklisting wacom, cold-rebooting (beyond a restart), logging into x11. Now two extra entries appeared in xsetwacom:

```
|Wacom Co.,Ltd. Pen and
 multitouch sensor Touchscreen pad|id: 9|type: PAD |
|---|---|---|
|Wacom Co.,Ltd. Pen and multitouch sensor touch|id: 10|type: TOUCH |
|Wacom Co.,Ltd. Pen and multitouch sensor stylus|id: 12|type: STYLUS |
|Wacom Co.,Ltd. Pen and multitouch sensor pad|id: 18|type: PAD |
|Wacom Co.,Ltd. Pen and multitouch sensor eraser|id: 19|type: ERASER |

```

then, incredibly, sudo modprobe wacom (even though the modprobe is blacklisted) worked. yay! one last catch, the touchscreen stops working on suspend. It keeps working if the wacom is unloaded before suspending and then modprobe wacom after.

Adding /usr/lib/systemd/system-sleep/touchscreen.sh

```
#!/bin/bash                                                                     
                                                                            
case "$1" in                                                                    
pre)                                                                        
    # executed on suspend                                                   
    rmmod wacom                                                             
    sleep 1                                                                 
    ;;                                                                      
post)                                                                       
    sleep 1                                                                 
    modprobe wacom                                                          
    # executed on resume                                                    
    ;;                                                                      
*)                                                                          
    ;;                                                                      
esac

```

fixed it right up

finally, needed to set gesture off to get the clean one-finger scroll I’m familiar with.

sudo xsetwacom --set ‘Wacom Pen and multitouch sensor Finger touch’ gesture off

Enabled “always show the accessiblity menu”, and also installed

[https://extensions.gnome.org/extension/3222/block-caribou-36/](https://extensions.gnome.org/extension/3222/block-caribou-36/)

so that the on-screen keyboard wouldn’t keep popping up when using the physical keyboard + touchscreen.

Finally, to load the module on start, added the following to /etc/systemd/system/touchscreen.service

```
[Unit]                                                                          
Description=Touchscreen                                                         
                                                                                
Wants=netwo.target                                                              
After=syslog.target network-online.target                                       
                                                                                
[Service]                                                                       
Type=simple                                                                     
ExecStart=/bin/bash -c "sleep 4 && modprobe wacom"                              
                                                                                
[Install]                                                                       
WantedBy=default.target  

```

and then

sudo systemctl enable touchscreen.

---

<div class="post-metadata">

**Author:** ![0xDBFB7](http://forum.0xdbfb7.com/user_avatar/forum.0xdbfb7.com/0xdbfb7/32/7_2.png) [@0xDBFB7](http://forum.0xdbfb7.com/u/0xDBFB7)\
**Post date:** [May 7, 2022, 4:07pm UTC](http://forum.0xdbfb7.com/t/notes-on-running-linux-debian-11-on-the-lenovo-yoga-12-touchscreen/118/2 "2022-05-07T16:07:29Z")

</div>

popping sound

Alsamixer auto mute didn’t work

```auto
echo "0" | sudo tee /sys/module/snd_hda_intel/parameters/power_save

```

---

<div class="post-metadata">

**Author:** ![0xDBFB7](http://forum.0xdbfb7.com/user_avatar/forum.0xdbfb7.com/0xdbfb7/32/7_2.png) [@0xDBFB7](http://forum.0xdbfb7.com/u/0xDBFB7)\
**Post date:** [June 26, 2024, 9:29pm UTC](http://forum.0xdbfb7.com/t/notes-on-running-linux-debian-11-on-the-lenovo-yoga-12-touchscreen/118/3 "2024-06-26T21:29:33Z")

</div>

> <https://github.com/linuxwacom/input-wacom/issues/110>
>
> Hello,
> 
> I'm having a hard time understanding why my (ThinkPad - Yoga 12) lapto…p's touchscreen stops working after a suspended state.
> 
> Basically, the touchscreen works just fine with a fresh installation of Ubuntu/Gnome 18.04 or 19.04. However, after the computer suspends, the touchscreen no longer works at all. This happens both in Xorg and Wayland. A reboot doesn't fix the issue.
> 
> Things I've already tried...
> 1. Updated bios.
> 2. modprobe -r wacom / modprobe wacom doesn't fix the issue.
> 3. Reboot.
> 
> See below system logs.
> 
> \*\*uname -a\*\*
> 
> Linux yoda-12 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86\_64 x86\_64 x86\_64 GNU/Linux
> 
> \*\*dmesg\*\*
> 
> \[2.975207\] wacom 0003:056A:501B.0005: hidraw3: USB HID v1.11 Device \[Wacom Co.,Ltd. Pen and multitouch sensor\] on usb-0000:00:14.0-5/input0
> \[3.094681\] wacom 0003:056A:501B.0006: hidraw4: USB HID v1.11 Mouse \[Wacom Co.,Ltd. Pen and multitouch sensor\] on usb-0000:00:14.0-5/input1
> \[9.018255\] wacom 0003:056A:501B.0005: wacom\_set\_report: ran out of retries (last error = -110)
> \[2728.305357\] wacom 0003:056A:501B.000B: hidraw3: USB HID v1.11 Device \[Wacom Co.,Ltd. Pen and multitouch sensor\] on usb-0000:00:14.0-5/input0
> \[2728.438077\] wacom 0003:056A:501B.000C: hidraw4: USB HID v1.11 Mouse \[Wacom Co.,Ltd. Pen and multitouch sensor\] on usb-0000:00:14.0-5/input1
> \[2734.332379\] wacom 0003:056A:501B.000B: wacom\_set\_report: ran out of retries (last error = -110)
> \[2814.309342\] wacom 0003:056A:501B.0011: hidraw3: USB HID v1.11 Device \[Wacom Co.,Ltd. Pen and multitouch sensor\] on usb-0000:00:14.0-5/input0
> \[2814.470232\] wacom 0003:056A:501B.0012: hidraw4: USB HID v1.11 Mouse \[Wacom Co.,Ltd. Pen and multitouch sensor\] on usb-0000:00:14.0-5/input1
> \[2820.348589\] wacom 0003:056A:501B.0011: wacom\_set\_report: ran out of retries (last error = -110)
> \[2994.901374\] wacom 0003:056A:501B.0017: hidraw3: USB HID v1.11 Device \[Wacom Co.,Ltd. Pen and multitouch sensor\] on usb-0000:00:14.0-5/input0
> \[2995.065018\] wacom 0003:056A:501B.0018: hidraw4: USB HID v1.11 Mouse \[Wacom Co.,Ltd. Pen and multitouch sensor\] on usb-0000:00:14.0-5/input1
> \[3001.084367\] wacom 0003:056A:501B.0017: wacom\_set\_report: ran out of retries (last error = -110)
> \[30568.762817\] wacom 0003:056A:501B.0017: wacom\_set\_report: ran out of retries (last error = -110)
> 
> \*\*lsusb\*\*
> 
> Bus 001 Device 003: ID 0483:91d1 STMicroelectronics Sensor Hub
> Bus 001 Device 002: ID 8087:8001 Intel Corp. 
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 002 Device 005: ID 04f2:b46a Chicony Electronics Co., Ltd 
> Bus 002 Device 004: ID 056a:501b Wacom Co., Ltd 
> Bus 002 Device 002: ID 1b1c:1b65 Corsair 
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> 
> \*\*lsmod\*\*
> 
> wacom 110592 0
> usbhid 53248 1 wacom
> hid 126976 4 wacom,usbhid,hid\_sensor\_hub,hid\_generic
> 
> \*\*xinput\*\*
> 
> ⎡ Virtual core pointer id=2	\[master pointer (3)\]
> ⎜ ↳ Virtual core XTEST pointer id=4	\[slave pointer (2)\]
> ⎜ ↳ xwayland-pointer:15 id=6	\[slave pointer (2)\]
> ⎜ ↳ xwayland-relative-pointer:15 id=7	\[slave pointer (2)\]
> ⎜ ↳ xwayland-stylus:15 id=10	\[slave pointer (2)\]
> ⎜ ↳ xwayland-eraser:15 id=11	\[slave pointer (2)\]
> ⎜ ↳ xwayland-cursor:15 id=12	\[slave pointer (2)\]
> ⎜ ↳ xwayland-touch:15 id=9	\[slave pointer (2)\]
> ⎣ Virtual core keyboard id=3	\[master keyboard (2)\]
> ↳ Virtual core XTEST keyboard id=5	\[slave keyboard (3)\]
> ↳ xwayland-keyboard:15
> 
> \*\*modinfo\*\*
> 
> version: v2.00
> srcversion: 6669036FD12FD0BF16F93C5
> 
> Thanks in advance for your time and effort.

---

<div class="post-metadata">

**Author:** ![0xDBFB7](http://forum.0xdbfb7.com/user_avatar/forum.0xdbfb7.com/0xdbfb7/32/7_2.png) [@0xDBFB7](http://forum.0xdbfb7.com/u/0xDBFB7)\
**Post date:** [June 26, 2024, 9:38pm UTC](http://forum.0xdbfb7.com/t/notes-on-running-linux-debian-11-on-the-lenovo-yoga-12-touchscreen/118/4 "2024-06-26T21:38:04Z")

</div>

> **[Known Issues](https://github.com/linuxwacom/xf86-input-wacom/wiki/Known-Issues#s3-suspend-bug)**
>
> X.Org driver for Wacom devices. Contribute to linuxwacom/xf86-input-wacom development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![0xDBFB7](http://forum.0xdbfb7.com/user_avatar/forum.0xdbfb7.com/0xdbfb7/32/7_2.png) [@0xDBFB7](http://forum.0xdbfb7.com/u/0xDBFB7)\
**Post date:** [November 30, 2024, 3:09am UTC](http://forum.0xdbfb7.com/t/notes-on-running-linux-debian-11-on-the-lenovo-yoga-12-touchscreen/118/5 "2024-11-30T03:09:06Z")

</div>

> <https://unix.stackexchange.com/questions/258452/audio-pops-in-when-starting-and-stopping/442845#442845>
