![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Feb 2012
Device: none
|
Debugging the stop responding to touch problem
I decided to see if I could infer anything about the nature of the periodic problem my device has where it stops responding to touch, but still responds to home keypresses, so I wrote a script which would wait for a "long press" on the home key and then dump the results of evtest to a log.
It looks like the fault lies at the device driver layer, or the hardware itself, since evtest doesn't echo any touch events after the problem occurs. This suggests to me that this means that the problem is not in the reader app. There's nothing interesting i see in dmesg, so unless someone has any other debugging ideas I'm stuck. The script is below, in case it is useful to someone : Code:
[root@kobo init.d]# cat watch-button.sh #!/bin/sh HOME_BUTTON=0066 BUTTON_PRESS=0001 BUTTON_RELEASE=0000 while [ true ] do # read 16 bytes off the "keyboard" (one event) result=`od -x -N 16 /dev/input/event0` event=`echo $result | awk '{print $7}'` button=`echo $result | awk '{print $8}'` if [ $event == $HOME_BUTTON ] then if [ $button == $BUTTON_PRESS ] then button_down_time=`date +%s` echo "Home button pressed at $button_down_time" else if [ $button == $BUTTON_RELEASE ] then now=`date +%s` echo "Home button released $now" delta=`expr $now - $button_down_time` echo "delta is $delta" if [ $delta -gt 2 ] then echo "Long press detected" > /etc/init.d/one.log dmesg > /etc/init.d/two.dmesg evtest /dev/input/event1 >> /etc/init.d/one.log fi fi fi fi done |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2012
Device: kobo touch
|
I was wondering if using uinput would not help you trigger your problem.
You could inject a sequence of touch events and check if it freezes. If it does, it would be a good result in favor of your hardware. If you get uinput working properly, I would be interested. I have not yet found a simple way from the shell. Romain |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Trying for calm & polite
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,012
Karma: 9455193
Join Date: May 2010
Location: Mostly in Canada
Device: kobo original, WiFI, Touch, Glo, and Aura
|
I doubt it is the hardware--only because this is a recent problem with this build. Now, it could be a problem with how the latest iteration of the firmware/software interacts with the hardware.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,875
Karma: 70186493
Join Date: Feb 2009
Device: Kobo Clara 2E
|
I thought there were reports that touch still responded, but only on the "tear drops"?
|
![]() |
![]() |
![]() |
#5 |
TechnoGeek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 3202
Join Date: Jun 2011
Location: Hamilton, New Zealand
Device: Likebook Mars, Boox Kepler Pro, InkBook Obsidian
|
Freezing
When mine freezes there are no "tear drops" so I think there are at least two types of freezing. In my case nothing is highlighted, no part of the screen is touch sensitive but the Home and Power keys still work. Turning the power off and then on allows recovery from the freeze.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5
Karma: 2056
Join Date: Apr 2012
Location: Canada
Device: Kindle 3, Kobo Touch
|
Quote:
The new one which I have had for a month or more and have used pretty much twice a day has not done it once yet! ![]() Last edited by Redsgj; 06-09-2012 at 08:54 AM. Reason: typo |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
touch stops responding | jape | Kobo Reader | 17 | 05-24-2012 11:55 AM |
Touch Is Kobo responding to Nook Simple Touch Pricing? | vferdman | Kobo Reader | 14 | 01-06-2012 05:45 PM |
PRS-650 Some buttons stop responding | mimosavj | Sony Reader | 13 | 12-09-2011 12:16 PM |
Debugging Password | kaitorii | enTourage Archive | 4 | 11-14-2010 09:34 AM |
Android Podkast app problem: I can start audio, but can't stop it! :) | Rina | enTourage Archive | 1 | 07-22-2010 06:57 PM |