[maemo-developers] [maemo-developers] Stuff to make h/w bt keyboards more useful

From: Matthew Allum mallum at gmail.com
Date: Mon Nov 28 22:59:46 EET 2005
Hi;

I recently bought one of the Nokia BT keyboards for my 770. Tomas's
btkeyboard-plugin rocks but I soon got pretty frustrated at the 770
not registering keypresses as activity to stop the display from
blanking.

Attached is a patch to btkeyboard-plugin which attempts to remedy
this. It works rather brutally via sniffing out x keyevents on
currently active windows and calling the equivilent of
osso_display_blanking_pause() for each key press, keeping the display
lit for another 60 seconds.

There is no doubt more efficient ways to do the same thing lower down
the stack. But this was quickest way for me todo and suit my needs.

Also attached is a matchbox keyboard shortcut config file. Put this
file in /home/user/.matchbox/kbdconfig, then run matchbox-remote -k.
This sets up keyshortcuts for 'tabbing' between windows,
fullscreening, closing apps and a couple of other things ( check
kbdconfig for details ). YMMV with these shortcuts as matchbox key
shortcuts arn't totally integrated into maemo.

Finally attached is an xmodmap file. This is relevant at least for the
Nokia BT keyboard and may need editing for other makes. It basically
switches the caps and ctrl keys, makes 'del' a backspace and maps the
non functional 'blue' keys to page up, page down and home.

Put this file in /home/user/.xmodmap. Remap keyboard via 'xmodmap
~/.xmodmap' (  patched btkeyboard-plugin runs this command on new
keyboard connection ). I've put an ARM binary ( from Debian ) of
xmodmap here;

http://butterfeet.org/maemo/keyboard/

( Also togeather with a patched built binary of bt-plugin.so etc. )

All this is very much hacker orientated and really aimed at those who
know what there doing. Try at your own risk. At least for me it makes
the keyboard a little more useable.

Regards;

  -- Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: btkeyboard-plugin-fix-display-blanking.patch
Type: text/x-patch
Size: 8462 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20051128/c043e83b/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kbdconfig
Type: application/octet-stream
Size: 310 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20051128/c043e83b/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .xmodmap
Type: application/octet-stream
Size: 584 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20051128/c043e83b/attachment-0001.obj 
More information about the maemo-developers mailing list