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.

here my edi-code. Sorry for the delay but i didn’t have access to the screen.

edid-decode (hex):

00 ff ff ff ff ff ff 00 30 ae a3 62 5a 43 36 47
13 1f 01 04 a5 1f 11 78 3e ee 95 a3 54 4c 99 26
0f 50 54 bd cf 80 a9 40 81 00 81 80 81 8c 95 00
95 0f a9 4a b3 00 02 3a 80 18 71 38 2d 40 58 2c
45 00 35 ae 10 00 00 1e 00 00 00 ff 00 56 33 30
37 47 36 43 5a 0a 20 20 20 20 00 00 00 fd 00 32
4b 1e 5a 15 00 0a 20 20 20 20 20 20 00 00 00 fc
00 4d 31 34 74 0a 20 20 20 20 20 20 20 20 01 57

02 03 1c b1 4d 01 02 03 11 12 13 04 0e 0f 1d 1e
1f 90 83 01 00 00 65 03 0c 00 10 00 01 1d 00 72
51 d0 1e 20 6e 28 55 00 35 ae 10 00 00 1e 8c 0a
d0 8a 20 e0 2d 10 10 3e 96 00 35 ae 10 00 00 18
0e 1f 00 80 51 00 1e 30 40 80 37 00 35 ae 10 00
00 1c 20 1c 56 86 50 00 20 30 0e 38 13 00 35 ae
10 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 17

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: LEN
    Model: 25251
    Serial Number: 1194738522
    Made in: week 19 of 2021
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 8
    DisplayPort interface
    Maximum image size: 31 cm x 17 cm
    Gamma: 2.20
    DPMS levels: Off
    Supported color formats: RGB 4:4:4, YCrCb 4:4:4, YCrCb 4:2:2
    Default (sRGB) color space is primary color space
    First detailed timing includes the native pixel format and preferred refresh rate
  Color Characteristics:
    Red  : 0.6396, 0.3300
    Green: 0.2998, 0.5996
    Blue : 0.1503, 0.0595
    White: 0.3134, 0.3291
  Established Timings I & II:
    IBM     :   720x400    70.082 Hz   9:5    31.467 kHz  28.320 MHz
    DMT 0x04:   640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz
    Apple   :   640x480    66.667 Hz   4:3    35.000 kHz  30.240 MHz
    DMT 0x05:   640x480    72.809 Hz   4:3    37.861 kHz  31.500 MHz
    DMT 0x06:   640x480    75.000 Hz   4:3    37.500 kHz  31.500 MHz
    DMT 0x09:   800x600    60.317 Hz   4:3    37.879 kHz  40.000 MHz
    DMT 0x0a:   800x600    72.188 Hz   4:3    48.077 kHz  50.000 MHz
    DMT 0x0b:   800x600    75.000 Hz   4:3    46.875 kHz  49.500 MHz
    DMT 0x10:  1024x768    60.004 Hz   4:3    48.363 kHz  65.000 MHz
    DMT 0x11:  1024x768    70.069 Hz   4:3    56.476 kHz  75.000 MHz
    DMT 0x12:  1024x768    75.029 Hz   4:3    60.023 kHz  78.750 MHz
    DMT 0x24:  1280x1024   75.025 Hz   5:4    79.976 kHz 135.000 MHz
    Apple   :  1152x870    75.062 Hz 192:145  68.681 kHz 100.000 MHz
  Standard Timings:
    DMT 0x33:  1600x1200   60.000 Hz   4:3    75.000 kHz 162.000 MHz
    DMT 0x1c:  1280x800    59.810 Hz  16:10   49.702 kHz  83.500 MHz
    DMT 0x23:  1280x1024   60.020 Hz   5:4    63.981 kHz 108.000 MHz
    CVT     :  1280x1024   71.932 Hz   5:4    76.968 kHz 133.000 MHz (EDID 1.4 source)
    GTF     :  1280x1024   72.000 Hz   5:4    76.824 kHz 132.752 MHz (EDID 1.3 source)
    DMT 0x2f:  1440x900    59.887 Hz  16:10   55.935 kHz 106.500 MHz
    DMT 0x30:  1440x900    74.984 Hz  16:10   70.635 kHz 136.750 MHz
    DMT 0x35:  1600x1200   70.000 Hz   4:3    87.500 kHz 189.000 MHz
    DMT 0x3a:  1680x1050   59.954 Hz  16:10   65.290 kHz 146.250 MHz
  Detailed Timing Descriptors:
    DTD 1:  1920x1080   60.000 Hz  16:9    67.500 kHz 148.500 MHz (309 mm x 174 mm)
                 Hfront   88 Hsync  44 Hback 148 Hpol P
                 Vfront    4 Vsync   5 Vback  36 Vpol P
    Display Product Serial Number: 'V307G6CZ'
  Display Range Limits:
    Monitor ranges (GTF): 50-75 Hz V, 30-90 kHz H, max dotclock 210 MHz
    Display Product Name: 'M14t'
  Extension blocks: 1
Checksum: 0x57

----------------

Block 1, CTA-861 Extension Block:
  Revision: 3
  Underscans IT Video Formats by default
  Supports YCbCr 4:4:4
  Supports YCbCr 4:2:2
  Native detailed modes: 1
  Video Data Block:
    VIC   1:   640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz
    VIC   2:   720x480    59.940 Hz   4:3    31.469 kHz  27.000 MHz
    VIC   3:   720x480    59.940 Hz  16:9    31.469 kHz  27.000 MHz
    VIC  17:   720x576    50.000 Hz   4:3    31.250 kHz  27.000 MHz
    VIC  18:   720x576    50.000 Hz  16:9    31.250 kHz  27.000 MHz
    VIC  19:  1280x720    50.000 Hz  16:9    37.500 kHz  74.250 MHz
    VIC   4:  1280x720    60.000 Hz  16:9    45.000 kHz  74.250 MHz
    VIC  14:  1440x480    59.940 Hz   4:3    31.469 kHz  54.000 MHz
    VIC  15:  1440x480    59.940 Hz  16:9    31.469 kHz  54.000 MHz
    VIC  29:  1440x576    50.000 Hz   4:3    31.250 kHz  54.000 MHz
    VIC  30:  1440x576    50.000 Hz  16:9    31.250 kHz  54.000 MHz
    VIC  31:  1920x1080   50.000 Hz  16:9    56.250 kHz 148.500 MHz
    VIC  16:  1920x1080   60.000 Hz  16:9    67.500 kHz 148.500 MHz (native)
  Speaker Allocation Data Block:
    FL/FR - Front Left/Right
  Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
    Source physical address: 1.0.0.0
  Detailed Timing Descriptors:
    DTD 2:  1280x720    60.000 Hz  16:9    45.000 kHz  74.250 MHz (309 mm x 174 mm)
                 Hfront  110 Hsync  40 Hback 220 Hpol P
                 Vfront    5 Vsync   5 Vback  20 Vpol P
    DTD 3:   720x480    59.940 Hz   3:2    31.469 kHz  27.000 MHz (309 mm x 174 mm)
                 Hfront   16 Hsync  62 Hback  60 Hpol N
                 Vfront    9 Vsync   6 Vback  30 Vpol N
    DTD 4:  1280x768    59.870 Hz   5:3    47.776 kHz  79.500 MHz (309 mm x 174 mm)
                 Hfront   64 Hsync 128 Hback 192 Hpol N
                 Vfront    3 Vsync   7 Vback  20 Vpol P
    DTD 5:  1366x768    60.000 Hz 683:384  48.000 kHz  72.000 MHz (309 mm x 174 mm)
                 Hfront   14 Hsync  56 Hback  64 Hpol P
                 Vfront    1 Vsync   3 Vback  28 Vpol P
Checksum: 0x17
1 Like