Skip to content

Instantly share code, notes, and snippets.

@snyh
Created July 2, 2014 00:57
Show Gist options
  • Save snyh/7bfab3f65b2642505915 to your computer and use it in GitHub Desktop.
Save snyh/7bfab3f65b2642505915 to your computer and use it in GitHub Desktop.
associate touchscreen and output under deepin2014
Normal you don't need this unless you work with multi-head and touchscreen. Below steps will associate your devices when things changed.
First, find the *touchscreen device* name. run "xinput | grep -i touchscreen"
and results will be similar to this:
"⎜ ↳ ELAN Touchscreen id=11 [slave pointer (2)]"
the "ELAN Tochscreen" or "11" can be used as device name.
Second, find the *output* which you want to associate to the touchscreen. run "xrandr | grep \ connected | awk '{print $1}'"
the results will be similar to this:
"eDP1"
"HDMI1"
-------------
choose the right one.
Last, let the deepin-display know this association .
$dbus-send --session --dest=com.deepin.daemon.Display /com/deepin/daemon/Display com.deepin.daemon.Display.AssociateTouchScreen string:"eDP1" string:"ELAN Touchscreen"
(replace the last two string to your device name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment