Find all attached keyboars and mice

Oliver Grawert ogra at ubuntu.com
Sat Jan 24 01:52:38 PST 2009


hi,
Am Freitag, den 23.01.2009, 20:35 -0800 schrieb Dan Nicholson:
> mice=`hal-find-by-capability --capability input.mouse`
> for m in $mice; do
>     mice_dev="$mice_dev `hal-get-property --udi $m --key input.device`"
> done
just a note, that you may find a lot of false positives with that if you
have touchscreens and or tablets attached, many of them register
(falsely) as mice ...

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.freedesktop.org/archives/hal/attachments/20090124/a3186225/attachment.pgp 


More information about the hal mailing list