[clug] how to configure a second keyboard

Andrew Janke a.janke at gmail.com
Sun Nov 11 07:25:42 GMT 2007


Hi Eyal,

As far as I am aware there is no unique ID in most keyboards (beyond
the manufacturer ID). Could you put one in a USB port and the other in
a PS/2 port?

Not the best solution but should work.


a

On Nov 11, 2007 6:21 PM, Eyal Lebedinsky <eyal at eyal.emu.id.au> wrote:
> I looked at this too. Simply replugging in a another usb port changes
> the usb device name:
>
> lrwxrwxrwx 1 root root 9 2007-11-11 16:18 pci-0000:00:1d.7-usb-0:3.1.3:1.0- -> ../mouse2
> lrwxrwxrwx 1 root root 9 2007-11-11 16:18 pci-0000:00:1d.7-usb-0:3.1.3:1.0-event- -> ../event3
>
> lrwxrwxrwx 1 root root 9 2007-11-11 18:15 pci-0000:00:1d.7-usb-0:3.1.4:1.0- -> ../mouse2
> lrwxrwxrwx 1 root root 9 2007-11-11 18:15 pci-0000:00:1d.7-usb-0:3.1.4:1.0-event- -> ../event3
>
> The mouse name remained in this case, but will probably change when
> other devices are plugged, or the order is changed.
>
> Eyal
>
> Carlo Hämäläinen wrote:
> > On Nov 11, 2007 5:52 PM, Eyal Lebedinsky <eyal at eyal.emu.id.au> wrote:
> >> How to I tell linux that one keyboard has a different keymap? I do not even
> >> know how to call the keyboard because the /dev/input/{mouseX,eventX} change
> >> based on the order of plugging devices in.
> >
> > Not sure about your main question, but /dev/input/by-path has symlinks
> > to /dev/input/mouseX names. For example on my laptop I have
> >
> >  /dev/input/by-path/platform-i8042-serio-1-mouse -> ../mouse1
> >
> > So you might be able to get to your USB keyboard by a constant name.
> >
> > -- Carlo
> >
> > p.s. /dev/disk/by-id   has symlinks with unique names for USB disks,
> > very handy for making a drive always go to a certain mount point, for
> > example.
>
>
> --
> Eyal Lebedinsky (eyal at eyal.emu.id.au)
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux
>



-- 
Andrew Janke   (a.janke at gmail.com || http://a.janke.googlepages.com/)
Canberra->Australia    +61 (402) 700 883


More information about the linux mailing list