public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.31.5: /dev/input/event? are gone sometimes
@ 2009-10-24 14:01 Harald Dunkel
  2009-10-24 21:05 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Harald Dunkel @ 2009-10-24 14:01 UTC (permalink / raw)
  To: Kernel Mailing List

Hi folks,

Sometimes (by chance, as it seems) the /dev/input/event? devices
are not working after power-on or reboot. They are not listed in
/proc/bus/input/devices. The mouse in X is not moving, keyboard
is dead, etc. All I can do is reboot and hope.

Below you can find the diff of /proc/bus/input/devices between
a bad and a good start.


udev is 146-5 (included with Debian Sid).


Any helpful hints would be highly appreciated. Of course I can
send you the .config, if there is some interest.


Regards

Harri
===================================================================
% diff -u devices.bad devices.good
--- devices.bad 2009-10-24 15:08:24.000000000 +0200
+++ devices.good        2009-10-24 15:17:17.000000000 +0200
@@ -3,7 +3,7 @@
  P: Phys=isa0060/serio0/input0
  S: Sysfs=/devices/platform/i8042/serio0/input/input0
  U: Uniq=
-H: Handlers=kbd
+H: Handlers=kbd event0
  B: EV=120013
  B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
  B: MSC=10
@@ -14,7 +14,7 @@
  P: Phys=usb-0000:00:1a.2-2/input0
  S: Sysfs=/devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.0/input/input1
  U: Uniq=
-H: Handlers=kbd
+H: Handlers=kbd event1
  B: EV=120013
  B: KEY=1000000000007 ff980000000007ff febeffdfffefffff fffffffffffffffe
  B: MSC=10
@@ -25,7 +25,7 @@
  P: Phys=usb-0000:00:1a.2-2/input1
  S: Sysfs=/devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.1/input/input2
  U: Uniq=
-H: Handlers=kbd mouse0
+H: Handlers=kbd mouse0 event2
  B: EV=17
  B: KEY=1f001f 2020000 3878d801d001 1e000000000000 0
  B: REL=103
@@ -36,7 +36,25 @@
  P: Phys=isa0061/input0
  S: Sysfs=/devices/platform/pcspkr/input/input3
  U: Uniq=
-H: Handlers=kbd
+H: Handlers=kbd event3
  B: EV=40001
  B: SND=6

+I: Bus=0019 Vendor=0000 Product=0001 Version=0000
+N: Name="Power Button"
+P: Phys=LNXPWRBN/button/input0
+S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4
+U: Uniq=
+H: Handlers=kbd event4
+B: EV=3
+B: KEY=10000000000000 0
+
+I: Bus=0019 Vendor=0000 Product=0001 Version=0000
+N: Name="Power Button"
+P: Phys=PNP0C0C/button/input0
+S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input5
+U: Uniq=
+H: Handlers=kbd event5
+B: EV=3
+B: KEY=10000000000000 0
+

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.6.31.5: /dev/input/event? are gone sometimes
  2009-10-24 14:01 2.6.31.5: /dev/input/event? are gone sometimes Harald Dunkel
@ 2009-10-24 21:05 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2009-10-24 21:05 UTC (permalink / raw)
  To: Harald Dunkel; +Cc: Kernel Mailing List

Hi Harald,

On Sat, Oct 24, 2009 at 04:01:12PM +0200, Harald Dunkel wrote:
> Hi folks,
>
> Sometimes (by chance, as it seems) the /dev/input/event? devices
> are not working after power-on or reboot. They are not listed in
> /proc/bus/input/devices. The mouse in X is not moving, keyboard
> is dead, etc. All I can do is reboot and hope.
>
> Below you can find the diff of /proc/bus/input/devices between
> a bad and a good start.
>
>
> udev is 146-5 (included with Debian Sid).
>
>
> Any helpful hints would be highly appreciated. Of course I can
> send you the .config, if there is some interest.
>
>
> Regards
>
> Harri
> ===================================================================
> % diff -u devices.bad devices.good
> --- devices.bad 2009-10-24 15:08:24.000000000 +0200
> +++ devices.good        2009-10-24 15:17:17.000000000 +0200
> @@ -3,7 +3,7 @@
>  P: Phys=isa0060/serio0/input0
>  S: Sysfs=/devices/platform/i8042/serio0/input/input0
>  U: Uniq=
> -H: Handlers=kbd
> +H: Handlers=kbd event0

Since evdev binds to -every_ input device registered its absence in the
handlers list suggests that the module is not loaded. I am not sure how
and when your distribution loads evdev; try making it built-in to avoid
cases when it is not loaded for one reason or another.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-24 21:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-24 14:01 2.6.31.5: /dev/input/event? are gone sometimes Harald Dunkel
2009-10-24 21:05 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox