Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 03-13-2012, 08:16 PM   #1
jape
Member
jape began at the beginning.
 
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
jape is offline   Reply With Quote
Old 06-08-2012, 08:27 AM   #2
Rom1
Junior Member
Rom1 began at the beginning.
 
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
Rom1 is offline   Reply With Quote
Advert
Old 06-08-2012, 10:55 AM   #3
taming
Trying for calm & polite
taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.taming ought to be getting tired of karma fortunes by now.
 
taming's Avatar
 
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.
taming is offline   Reply With Quote
Old 06-08-2012, 12:04 PM   #4
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 7,875
Karma: 70186493
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by jape View Post
...

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.

...
I thought there were reports that touch still responded, but only on the "tear drops"?
John F is offline   Reply With Quote
Old 06-08-2012, 11:27 PM   #5
Techbar
TechnoGeek
Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.
 
Techbar's Avatar
 
Posts: 43
Karma: 3202
Join Date: Jun 2011
Location: Hamilton, New Zealand
Device: Likebook Mars, Boox Kepler Pro, InkBook Obsidian
Freezing

Quote:
Originally Posted by John F View Post
I thought there were reports that touch still responded, but only on the "tear drops"?
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.
Techbar is offline   Reply With Quote
Advert
Old 06-09-2012, 08:54 AM   #6
Redsgj
Junior Member
Redsgj knows what time it isRedsgj knows what time it isRedsgj knows what time it isRedsgj knows what time it isRedsgj knows what time it isRedsgj knows what time it isRedsgj knows what time it isRedsgj knows what time it isRedsgj knows what time it isRedsgj knows what time it isRedsgj knows what time it is
 
Posts: 5
Karma: 2056
Join Date: Apr 2012
Location: Canada
Device: Kindle 3, Kobo Touch
Quote:
Originally Posted by jape View Post
It looks like the fault lies at the device driver layer, or the hardware itself
I would have to agree with this. My first Touch would stop responding to touch just about every time I used it (although I was only using it occasionally at the time). I had just bought it a few weeks earlier so I decided to exchange it.

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
Redsgj is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:57 PM.


MobileRead.com is a privately owned, operated and funded community.