“Hello World!”
I did it! *Party*
How? don’t really know! But first comes first; the Problem:
As I received a 16″ eGalax resistive Touchscreen and wanted it to use with my fhem Homeautomation System running on RPIB+, when plugged in, the cursor moved across the screen and there was only ONE click event, which never released, as if your left click got stuck.
The Solution:[credits]
change 40-libinput.conf at Touchscreen & Touchpad
sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf
from Driver “libinput” to
Driver "evdev"
HID QUIRKS
echo 1040 > /sys/bus/hid/devices//quirks
my was 0003\:0EEF\:0001.0004, so:
echo 1040 > /sys/bus/hid/devices/0003\:0EEF\:0001.0004/quirks
did the Trick!
Unplug and Plugin again.
sudo -s
root@pi:/home/pi# echo 1040 > /sys/bus/hid/devices/0003\:0EEF\:0001.000*/quirks root@pi:/home/pi# exit exit
now with Script! (not working)
sudo nano /etc/udev/fix_hid_multitouch.shinsert:#!/bin/bash
DEVICE=$1echo 1040 > "/sys/bus/hid/devices/${DEVICE}/quirks"EOF######################
/./etc/udev/fix_hid_multitouch.sh /./etc/udev/fix_hid_multitouch.sh: line 5: /sys/bus/hid/devices//quirks: Permission denied any ideas?
sudo nano /etc/udev/rules.d/65-hid_fix.rules
insert:DRIVER=="hid-multitouch", ENV{MODALIAS}=="hid:b0003g0004v00000EEFp00000001", RUN+="/bin/sh /etc/udev/fix_hid_multitouch.sh %k" ######################
...some Infos: (OTB Settings)~& lsmod Module Size Used by joydev 9766 0 hid_multitouch 8969 0 usbtouchscreen 13528 0 evdev 11000 4 cdc_acm 18406 2 uio_pdrv_genirq 3666 0 uio 9897 1 uio_pdrv_genirq hid_apple 5836 0
~ $ xinput ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ eGalax Inc. USB TouchController Pen id=6 [slave pointer (2)] ⎜ ↳ eGalax Inc. USB TouchController id=7 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Apple, Inc Apple Keyboard id=8 [slave keyboard (3)] ↳ Apple, Inc Apple Keyboard id=9 [slave keyboard (3)]
~& xinput list 9 eGalax Inc. USB TouchController id=9 [slave pointer (2)] Reporting 7 classes: Class originated from: 9. Type: XIButtonClass Buttons supported: 5 Button labels: "Button Unknown" "Button Unknown" "Button Unknown" "Button Wheel Up" "Button Wheel Down" Button state: Class originated from: 9. Type: XIValuatorClass Detail for Valuator 0: Label: Abs X Range: 0.000000 - 4095.000000 Resolution: 0 units/m Mode: absolute Current value: 3521.000000 Class originated from: 9. Type: XIValuatorClass Detail for Valuator 1: Label: Abs Y Range: 0.000000 - 4095.000000 Resolution: 0 units/m Mode: absolute Current value: 116.000000 Class originated from: 9. Type: XIValuatorClass Detail for Valuator 2: Label: Abs MT Position X Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: absolute Current value: 0.000000 Class originated from: 9. Type: XIValuatorClass Detail for Valuator 3: Label: Abs MT Position Y Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: absolute Current value: 0.000000 Class originated from: 9. Type: XIValuatorClass Detail for Valuator 4: Label: None Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: absolute Current value: 0.000000 Class originated from: 9. Type: XIValuatorClass Detail for Valuator 5: Label: None Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: absolute Current value: 0.000000
~& uname -a Linux pi 3.18.8+ #763 PREEMPT Sat Feb 28 18:24:36 GMT 2015 armv6l GNU/Linux
Hi, I also have a same problem,
could you help me?
I tried as following.
At first, mine is 0003\:0EEF\:0002.0005
$ sudo -s
# echo 1040 > /sys/bus/hid/devices/0003\:0EEF\:0002.000*/quirks
# exit
$ sudo nano /etc/udev/rules.d/65-hid_fix.rules
DRIVER==”hid-multitouch”,
ENV{MODALIAS}==”hid:b0003g0004v00000EEFp00000001″, RUN+=”/bin/sh
/etc/udev/fix_hid_multitouch.sh %k”
But doen’t work.
Do you have any ideas?
Thank you.
LikeLike
nice try via udev rules…. i use sudo -s and the echo cmd everytime i reboot the Pi, cause every skript i’ve tried won’t work, because of the sudo -s cmd.
Did it work manually?
LikeLike
Hi, s0n1c3.
Touch screen work well, although, I have not tried “65-hid_fix.rules” yet.
Unfortunately, I don’t know how to write script without “sudo -s”.
If I got to solve it, I’ll tell you later.
LikeLike
😀 you were close…. perhaps that works…?
ACTION==”add”, SUBSYSTEM==”hid”, ENV{VENDOR}==”eGalax_Inc.”, RUN+=”/bin/sh -c ‘echo 1040 >/sys$DEVPATH/quirks'”
LikeLike
Unfortunaterly, I return the LCD to other division, If I got it again, I’ll try again.
LikeLike
after installing and deinstalling some galaxy drivers it works without the hidquirk fix.
notable is the new blacklisted “usbtouchscreen” kernel extenstion plus some new udev rules… but haven’t got the time to sort it out
LikeLike
it wasn’t the blacklisted usbtouchscreen, it was/is a broken libinput driver, which will ultimately result in ignoring the device totally.
LikeLike