View Single Post
Old 01-12-2012, 01:44 AM   #4
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Instead of showlog, you could try to run a little background script which monitors udev events. Here's some sample output (pressing the home button, followed by the power button).

Code:
[root@kindle root]# udevadm monitor --udev
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing

UDEV  [1326350407.129921] change   /devices/platform/whitney-button/input/input3 (input)
UDEV  [1326350412.356096] online   /devices/virtual/misc/yoshibutton (misc)
Update: here's some more verbose log.
Spoiler:

[root@kindle root]# udevadm monitor --property
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1326351109.292268] change /devices/platform/whitney-button/input/input3 (input)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/platform/whitney-button/input/input3
SUBSYSTEM=input
PRODUCT=19/1/1/100
NAME="whitney-button"
PHYS="whitney-button/input0"
EV==3
KEY==40 0 0 0
MODALIAS=input:b0019v0001p0001e0100-e0,1,kramlsfw
SEQNUM=2575

UDEV [1326351109.293482] change /devices/platform/whitney-button/input/input3 (input)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/platform/whitney-button/input/input3
SUBSYSTEM=input
PRODUCT=19/1/1/100
NAME="whitney-button"
PHYS="whitney-button/input0"
EV==3
KEY==40 0 0 0
MODALIAS=input:b0019v0001p0001e0100-e0,1,kramlsfw
SEQNUM=2575

KERNEL[1326351125.994871] online /devices/virtual/misc/yoshibutton (misc)
UDEV_LOG=3
ACTION=online
DEVPATH=/devices/virtual/misc/yoshibutton
SUBSYSTEM=misc
DEVNAME=yoshibutton
SEQNUM=2576
MAJOR=10
MINOR=158

UDEV [1326351125.995789] online /devices/virtual/misc/yoshibutton (misc)
UDEV_LOG=3
ACTION=online
DEVPATH=/devices/virtual/misc/yoshibutton
SUBSYSTEM=misc
DEVNAME=yoshibutton
SEQNUM=2576
MAJOR=10
MINOR=158

This could also allow you to check if your power button is really broken, or if there's possibly just some configuration oddity (probably unlikely though). In any case, if I were you, I'd return the device to Amazon for exchange if the power button is broken. Keep in mind that if it doesn't work, you have to be extremely careful not to brick your device, because it's often enough the only button you have left once it is broken. Just saying.

Last edited by ixtab; 01-12-2012 at 01:55 AM.
ixtab is offline   Reply With Quote