I.MX6 Linux Egalaxtouch automatically acquire device nodes

Source: Internet
Author: User

i.mx6 Linux Egalaxtouch automatically acquires device nodes \\\\\\\\\\\\\\-*-Directory-*-/////////////|A. Requirements:| Two./proc/bus/input/Devices Content:|three. Workaround:|Four. Practical application:--------------------------------------I. Requirements: Get the input device node for Egalaxtouch two./proc/bus/input/devices content: [email protected]/proc/bus/input$ cat/proc/bus/input/Devices I:bus=0019Vendor=0001product=0001version=0100N:name="Gpio-keys"P:phys=gpio-keys/input0 S:sysfs=/devices/platform/gpio-keys/input/input0 U:uniq=h:handlers=kbd event0 B:prop=0B:ev=3B:key=100000 0 0 0I:bus=0003Vendor=0eef product=7201version=0210N:name="Egalax Inc. Egalaxtouch exc7200-0031v1000"P:phys=USB-FSL-EHCI.1-1.3/input0 S:sysfs=/DEVICES/PLATFORM/FSL-EHCI.1/usb2/2-1/2-1.3/2-1.3:1.0/input/input1 U:uniq=h:handlers=cpufreq_interactive B:prop=0B:ev=1b B:key=421 0 30001 0 0 0 0 0 0 0 0B:abs= -3f B:msc=TenI:bus=0006Vendor=0eef product=0020version=0001N:name="Egalaxtouch Virtual Device for Multi"P:phys=S:sysfs=/devices/Virtual/input/Input2 U:uniq=h:handlers=cpufreq_interactive event1 B:prop=2B:ev=b b:key= - 0 0 0 0 0 0 0 0 0 0B:abs=6608000 1000003I:bus=0006Vendor=0eef product=0010version=0001N:name="Egalaxtouch Virtual Device for single"P:phys=S:sysfs=/devices/Virtual/input/INPUT3 U:uniq=h:handlers=Event2 B:prop=2B:ev=b b:key=30000 0 0 0 0 0 0 0 0B:abs=3[email protected]/proc/bus/input$ three. Workaround:1The shell script is used to solve the problem.2The . Shell script is as follows: Inputcheckline= ' Cat/proc/bus/input/devices | Grep-n"Vendor=0eef"| Grep"product=0020 version=0001"| Awk-f:'{print $}'' TouchEvent= ' Sed-n"$ ((${inputcheckline}+5)) p"/proc/bus/input/devices | Grep-o"event."' four. Practical application: ... while[ -Z $touchEvent] DoInputcheckline= ' Cat/proc/bus/input/devices | Grep-n"Vendor=0eef"| Grep"product=0020 version=0001"| Awk-f:'{print $}'' TouchEvent= ' Sed-n"$ ((${inputcheckline}+5)) p"/proc/bus/input/devices | Grep-o"event."' echo"Please hang up USB TOUCH!"UsleepTenDone ... export tslib_tsdevice=/dev/input/${touchevent} export Qws_mouse_proto=tslib:/dev/input/${touchevent} ...

I.MX6 Linux Egalaxtouch automatically acquire device nodes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.