PS/2 Keyboard plug events

Hi all,

Does anyone know,

how to detect a PS/2 keyboard plug / unplug event in Linux (may be using UDEVt). I am developing a program, which would pop up a message saying that the “KEYBOARD IS CONNECTED / DISCONNECTED” when the KBD is plugged in/out in PS/2 port.

The problem is there are no events generated by UDEV for PS/2 keyboards.

Requesting for ideas,

thanks
rssrik

On Thu, 03 Jul 2008 14:56:04 GMT
rssrik <rssrik@no-mx.forums.opensuse.org> wrote:

>
> Hi all,
>
> Does anyone know,
>
> how to detect a PS/2 keyboard plug / unplug event in Linux (may be
> using UDEVt). I am developing a program, which would pop up a message
> saying that the “KEYBOARD IS CONNECTED / DISCONNECTED” when the KBD is
> plugged in/out in PS/2 port.
>
> The problem is there are no events generated by UDEV for PS/2
> keyboards.
>
> Requesting for ideas,
>
> thanks
> rssrik
>
>
Hi
Sorry I don’t have a solution, just an observation. Tha’s a good way
to blowup the PS/2 controller fuse on the motherboard, but it’s your
application :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 SP2 x86_64 Kernel 2.6.16.60-0.23-smp
up 2 days 22:12, 1 user, load average: 0.09, 0.09, 0.06
GPU GeForce 8600 GTS Silent - Driver Version: 173.14.09

rssrik schrieb:
> Does anyone know,
>
> how to detect a PS/2 keyboard plug / unplug event in Linux (may be
> using UDEVt). I am developing a program, which would pop up a message
> saying that the “KEYBOARD IS CONNECTED / DISCONNECTED” when the KBD is
> plugged in/out in PS/2 port.

I don’t think that’s possible. The PS/2 port is not designed to
be hotpluggable. In fact, you risk killing the PS/2 port of your
motherboard by plugging in a PS/2 keyboard while the system is
powered on.

HTH
T.