devd & ukbd
From: Andrew Thompson (andy_at_fud.org.nz)
Date: 12/12/03
- Previous message: Nate Lawson: "Re: [acpi-jp 2879] 5.1R: page fault from AcpiNsMapHandleToNode"
- Next in thread: Barney Wolff: "Re: devd & ukbd"
- Reply: Barney Wolff: "Re: devd & ukbd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Dec 2003 14:49:07 +1300 To: current@freebsd.org
Hi,
I am trying to put together a devd rule for attaching a usb keyboard. The
problem is that the usb device is called ukbd0 while the keyboard needs to
be referred to as kbd1.
attach 10 {
device-name "ukbd[0-9]+";
action "kbdcontrol -k /dev/$device-name < /dev/console";
};
detach 10 {
device-name "ukbd[0-9]+";
action "kbdcontrol -k /dev/kbd0";
};
This obviously doesnt work as /dev/ukbd0 doesnt exist, anyone know a way
in devd to translate it to /dev/kbd1?
maybe something like kbd($device-number + 1)
A better solution would be if the kbd1 device caused a devd event when
attached, which it does not seem to.
thanks
Andy
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
- Previous message: Nate Lawson: "Re: [acpi-jp 2879] 5.1R: page fault from AcpiNsMapHandleToNode"
- Next in thread: Barney Wolff: "Re: devd & ukbd"
- Reply: Barney Wolff: "Re: devd & ukbd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|