[clug] how to configure a second keyboard

Robert Edwards bob at cs.anu.edu.au
Sun Nov 11 22:22:36 GMT 2007


Michael,

More details on your serial IR receiver - please!

Cheers,

Bob Edwards.

Michael Cohen wrote:
> On Sun, Nov 11, 2007 at 07:40:44PM +1100, Eyal Lebedinsky wrote:
>> But the main question remains: how do I configure this keyboard differently
>> than the main one?
> 
> Eyal,
>   I also have a similar remote which appears like a keyboard - you can
> use xmodmap to remap the keys but AFAIK it works on all keyboards
> simultanously. I just bound keys to launch xmodmap with the relevant
> bindings for the keyboard - so you press a given key before you use the
> main keyboard (in fact the remote binding comes on by default) to reset
> the binding to the keyboard one when needed.
> 
> Since then I built a serial IR receiver and use lirc which is much
> better because you can have different bindings for different apps (ie.
> mythtv receives certain bindings, and mplayer receives others). You also
> have the advantage that you can use all your remotes at once with lirc
> so you dont have to find a particular one just grab the nearest one.
> 
> Michael.
> 
>> Eyal
>>
>> Andrew Janke wrote:
>>> 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)
>> -- 
>> Eyal Lebedinsky	(eyal at eyal.emu.id.au)
>> -- 
>> linux mailing list
>> linux at lists.samba.org
>> https://lists.samba.org/mailman/listinfo/linux



More information about the linux mailing list