Skip to content

Instantly share code, notes, and snippets.

@lazanet
Created May 22, 2025 15:28
Show Gist options
  • Save lazanet/76a80494c078bf34d00c14a5c058aec1 to your computer and use it in GitHub Desktop.
Save lazanet/76a80494c078bf34d00c14a5c058aec1 to your computer and use it in GitHub Desktop.

Setting up Anmite touch screen monitor for dual touch screen in Ubuntu Wayland system

# Plug monitor
lsusb > 1_input.txt
# Unplug monitor
lsusb > 2_input.txt

diff 1_input.txt 2_input.txt # Get USB entry

# Bus 003 Device 048: ID 27c0:0859 Cadwell Laboratories, Inc. TouchScreen

######################

cat $HOME/.config/monitors.xml > 1_monitor.txt
# Switch monitor resolution
cat $HOME/.config/monitors.xml > 2_monitor.txt

# Find <monitorspec> in diff between 1_monitor.txt and 2_monitor.txt

# <monitorspec>
#   <connector>DP-3</connector>
#   <vendor>RTK</vendor>
#   <product>ANMITE</product>
#   <serial> </serial>
# </monitorspec>


############################################

gsettings set org.gnome.desktop.peripherals.touchscreen:/org/gnome/desktop/peripherals/touchscreens/27c0:0859/ output "['RTK', 'ANMITE', ' ']"



# Extra bits:

# For detecting which event is the touchscreen connected to.
# Prb can be automated to get usb device id somehow - I didn't investigate further, lsusb was sufficient for me.
sudo apt install libinput-tools
sudo libinput record

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment