Gsetting command to activate touch screen on external monitor

Hello,
I saw on the post about the Uperfect-x lapdock that there are some gsetting command to make phosh detect an external monitor as a touchscreen,

I have a lenovo m14t which works well, but I can’t find the command.

Today, when I touch the lenovo screen, the scroll (for example) is activated on the librem5’ screen, not on the lenovo side.

lsusb -tv returns:
’’’
Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
|__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
ID 2d1f:524c Wacom Taiwan Information Co. Ltd.
|__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
ID 2d1f:524c Wacom Taiwan Information Co. Ltd.
’’’

1 Like

I don’t know about the gsettings command, but I got touchscreen to work with Nexdock touchscreen using the phosh-mobile-settings app. Maybe it will work for your monitor too.

The issue is that my “dock” is not configured in the phosh-mobile-settings.

I add the following line for my “dock” to src/ms-convergence-panel.c, compile it and running it following https://source.puri.sm/guido.gunther/phosh-mobile-settings but it is still not known.

{
/*
* Manufacturer: LENOVO
* Model: m14T
* /
.name = “Thinkvisiom M14T”,
.make = “LEN”,
.model = “M14T”,
.serial = “V307G6CZ”, /
from Detailed timing descriptors in the edid

.touch_usb_vendor = 0x2d1f, /* from lsusb -vt
.touch_usb_id = 0x524c,
/*.touch_usb_vendor = 0x524c,
.touch_usb_id = 0x2d1f,*/

},

Thanks to @guido.gunther help, I found the correct gsetting command. For other m14t user :

gsettings set org.gnome.desktop.peripherals.touchscreen:/org/gnome/desktop/peripherals/touchscreens/2d1f:524c/ output “[‘Lenovo Group Limited’,‘M14t’,‘V307G6CZ’]”

Thanks @Altor , I added it here.

Could you get me the full edid-decode output please so I can complete the information? The command is something like

 edid-decode /sys/devices/platform/soc@0/32c00000.bus/32e00000.display-controller/drm/card2/card2-DP-1/edid

but you might needed to change the path to the edid blob. See src/ms-convergence-panel.c · main · Guido Günther / phosh-mobile-settings · GitLab on how to locate the edid blob.