messica
Posts: 7
Joined: Sat Feb 07, 2015 1:07 am

USB Touch Screen Stops Working After Clean Raspbain Install

Sat Feb 07, 2015 1:59 am

Hi, I've been going crazy trying to figure this one out the past few days. I have a KeyTec USB MagicTouch Add On Touch Screen (http://www.magictouch.com/support_usb_xd.html) which works initially when I first boot up the Pi (B+ model). The touch screen functions as a mouse and everything behaves like it should. Great!

However, just minutes later, after a clean install of Raspbian with NOOBS 1.3.12 using the instructions here: http://www.raspberrypi.org/help/noobs-setup/ and leaving raspi-config at default settings, the touch screen stops working and I can't get it to work again no matter what I try. It's driving me insane.

I do notice that "evdev" and "joydev" pop up in lsmod after plugging in the device, but that means nothing to me:
lsmod before:

Code: Select all

jess@raspberrypi ~ $ lsmod
Module                  Size  Used by
snd_bcm2835            19496  0
arc4                    1684  2
snd_soc_bcm2708_i2s     6210  0
regmap_mmio             2818  1 snd_soc_bcm2708_i2s
snd_soc_core          128465  1 snd_soc_bcm2708_i2s
snd_compress            8259  1 snd_soc_core
regmap_i2c              1661  1 snd_soc_core
snd_pcm_dmaengine       5505  1 snd_soc_core
regmap_spi              1913  1 snd_soc_core
snd_pcm                83845  3 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_page_alloc          5132  1 snd_pcm
rt2800usb              17809  0
snd_seq                55484  0
rt2800lib              80368  1 rt2800usb
snd_seq_device          6469  1 snd_seq
rt2x00usb              11661  1 rt2800usb
snd_timer              20998  2 snd_pcm,snd_seq
rt2x00lib              44799  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              329935  3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211              212241  2 mac80211,rt2x00lib
leds_gpio               2079  0
crc_ccitt               1541  1 rt2800lib
led_class               4118  2 leds_gpio,rt2x00lib
rfkill                 19784  2 cfg80211
snd                    62252  7 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress
lsmod after:

Code: Select all

jess@raspberrypi ~ $ lsmod
Module                  Size  Used by
evdev                  10681  1
joydev                  9257  0
snd_bcm2835            19496  0
arc4                    1684  2
snd_soc_bcm2708_i2s     6210  0
regmap_mmio             2818  1 snd_soc_bcm2708_i2s
snd_soc_core          128465  1 snd_soc_bcm2708_i2s
snd_compress            8259  1 snd_soc_core
regmap_i2c              1661  1 snd_soc_core
snd_pcm_dmaengine       5505  1 snd_soc_core
regmap_spi              1913  1 snd_soc_core
snd_pcm                83845  3 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_page_alloc          5132  1 snd_pcm
rt2800usb              17809  0
snd_seq                55484  0
rt2800lib              80368  1 rt2800usb
snd_seq_device          6469  1 snd_seq
rt2x00usb              11661  1 rt2800usb
snd_timer              20998  2 snd_pcm,snd_seq
rt2x00lib              44799  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              329935  3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211              212241  2 mac80211,rt2x00lib
leds_gpio               2079  0
crc_ccitt               1541  1 rt2800lib
led_class               4118  2 leds_gpio,rt2x00lib
rfkill                 19784  2 cfg80211
snd                    62252  7 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress
dmesg:

Code: Select all

jess@raspberrypi ~ $ sudo dmesg -C
jess@raspberrypi ~ $ sudo dmesg
[  104.111679] usb 1-1.2: new low-speed USB device number 5 using dwc_otg
[  104.239144] usb 1-1.2: New USB device found, idVendor=0664, idProduct=0305
[  104.239179] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  104.239194] usb 1-1.2: Product: Magic Touch USB
[  104.239206] usb 1-1.2: Manufacturer: Keytec
[  104.268717] input: Keytec Magic Touch USB as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[  104.270133] hid-generic 0003:0664:0305.0001: input,hidraw0: USB HID v1.00 Device [Keytec Magic Touch USB] on usb-bcm2708_usb-1.2/input0
I've tried installing drivers from their site with no luck as well - I either get kicked out for the wrong OS or there seems to be tons of errors in the installation file. It looks like they just copy some files and add some text to others though, so I wonder if it would be possible for someone with more experience to decipher it (way above my level, butt I'm slowly getting there...) and tell me what files to put where, etc. or if this is even possible. I'm assuming it has to be since the device works initially...right?? :cry:

Or maybe someone could help guide me to figure out the difference before and after installation that makes it stop working??

Help please before I tear all my hair out!!! :cry: :cry: :cry: :cry:

Thank you all so much!
Jess

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: USB Touch Screen Stops Working After Clean Raspbain Inst

Sat Feb 07, 2015 9:16 pm

Where did the drivers originally come from? Did your supplier provide drivers for Raspbian or a Raspbian image?
Or did you have to compile them yourself?

messica
Posts: 7
Joined: Sat Feb 07, 2015 1:07 am

Re: USB Touch Screen Stops Working After Clean Raspbain Inst

Sat Feb 07, 2015 9:23 pm

OK I think i'm getting closer...hopefully...

I'm assuming the drivers are installed with NOOBS.. I'm not sure. The USB touch screen addon basically just replaces the mouse and is attached to a regular non-touch screen monitor. It works fine in the visual OS selection menu in NOOBS but after installing Raspbian it just doesn't work anymore after exiting raspi-config and starting X. Maybe this is because it recognizes it as a joystick (joydev) incorrectly instead after installing Raspbian (and new drivers?) - is that possible?

That other topic gave me an idea to try evtest. So now I can tell that it works, and is returning the position touched. For some reason, it just isn't translating it to the mouse cursor anymore after installation of Rasbian? Is there some way to test or go into command line during NOOBS before installing??

the evtest output is here: http://pastebin.com/dQt2ucYA

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: USB Touch Screen Stops Working After Clean Raspbain Inst

Sat Feb 07, 2015 10:17 pm

Noobs is just a program that installs one or more OS's (well, sort of at least) and it may have its own drivers for some touchscreens.
It does not take care of installing drivers in any of the installed OS's; they have to take care of that themself.
Apparently touchscreens are not configured / enabled by default in Raspbian.

Looking at the loaded drivers it could be that you just have to configure and calibrate your touch module.
Start with installing evtest to see if your touch module is recognised:

Code: Select all

sudo apt-get install evtest
evtest
You then have to select the correct input.

messica
Posts: 7
Joined: Sat Feb 07, 2015 1:07 am

Re: USB Touch Screen Stops Working After Clean Raspbain Inst

Sat Feb 07, 2015 10:55 pm

I tried evtest awhile ago. The output is linked in a pastebin in my last post. Here:http://pastebin.com/dQt2ucYA

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: USB Touch Screen Stops Working After Clean Raspbain Inst

Sat Feb 07, 2015 11:09 pm

Sorry, missed your previous post about evtest, etc.

Check that /usr/share/X11/xorg.conf.d/10-evdev.conf has a section

Code: Select all

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

messica
Posts: 7
Joined: Sat Feb 07, 2015 1:07 am

Re: USB Touch Screen Stops Working After Clean Raspbain Inst

Sat Feb 07, 2015 11:26 pm

Yep:

Code: Select all

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "Calibration" "-275 33064 312 32350"
EndSection
I added the calibration option from the other topic.

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: USB Touch Screen Stops Working After Clean Raspbain Inst

Mon Feb 09, 2015 5:29 pm

So does this mean that since evdev has been pre-installed, Raspbian does support touchscreens without any compiling needed? I understand that settings will need to be configured properly.

Everything else I find makes it sound like it would not be possible to attach an hdmi touchscreen without recompiling the kernel if one wants to run Raspbian. That has changed?

Thanks
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

Return to “Troubleshooting”