View Full Version : xmodmap and bluetooth keyboard
Rider
06-09-2008, 11:04 AM
I hacked a nice xmodmaprc for my new Stowaway BT keyboard. So far, everthing works well.
But whenever the keyboard disconnects, either by the 3 minutes timeout or if I close it, all the xmodmap settings are gone. After I connect the keyboard again, i have to call the xmodmap script again.
Probably the best would be if I can automatically run a script whenever the BT keyboard connects.
Any hints?
Benson
06-09-2008, 01:32 PM
Probably need dbus-scripts; I'd bet there's a dbus signal you can catch, but I don't know what.
delaroca
06-11-2008, 12:18 AM
Probably the best would be if I can automatically run a script whenever the BT keyboard connects.
Any hints?
Try looking at this note,
http://cs.gmu.edu/~sean/stuff/n800/keyboard/
By the way, could you post your xmodmaprc file?
--denis
maillaxa
06-11-2008, 07:31 PM
By the way, could you post your xmodmaprc file?
--denis
Yes please ;)
earksiinni
07-01-2008, 09:11 PM
Aye, seconded.
Rider
07-02-2008, 05:08 AM
You find it here:
http://www.internettablettalk.com/forums/showthread.php?t=20903&highlight=xmodmaprc
i believe it to be much more useful in the long run to go directly to the layout files for whatever language your using.
that is, the files in /usr/share/X11/xkb/symbols
Rider
07-02-2008, 10:07 AM
i believe it to be much more useful in the long run to go directly to the layout files for whatever language your using.
that is, the files in /usr/share/X11/xkb/symbols
It is quite a nightmare to play with those files. You will have to edit several files then, and cannot switch to different layouts too.
Even worse: for each OS update your modifications will be lost, and you have to reinstall everything.
The xmodmap solution is much easier and flexible. It is also well documented.
earksiinni
07-03-2008, 08:31 AM
is there any way to get xmodmap files to load when a bluetooth keyboard is discovered? for that matter, is there any way for the n800 to automatically discover keyboards the way the 770 does?
It is quite a nightmare to play with those files. You will have to edit several files then, and cannot switch to different layouts too.
Even worse: for each OS update your modifications will be lost, and you have to reinstall everything.
The xmodmap solution is much easier and flexible. It is also well documented.
heh, maybe so. i ended up going there as it was the easiest way to get my slightly strange bluetooth keyboard to keep its layout between disconnects without having some confused dbus script to hack at.
i only had to alter one file to get the effect i wanted. and i made sure to copy a backup to one of my cards so that when i flashed to diablo i only had to copy it back over the diablo one to get the layout as i wanted it ;)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.