I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
Intercepting keystrokes to re-define Hardware Keys?

New MessageIntercepting keystrokes to re-define Hardware Keys? (modified 0 times) davec
Profile
Well, nobody has come up with a good utility to re-define the Audrey hardware buttons yet it seems. Pity, it would be nice to use the buttons to do other things while using the voyager browser (so you don't have to use the stylus on the touchscreen) like:

Channel Knob for scrolling.
Page/Page down
Back
etc.

I've tried seeing what keycodes are generated by the hardware keys (which are actually defined to various function keys) by issuing the following command:

cat /dev/tty

When you push these buttons, you get the folowing keycodes:

E-mail: OR
Channel Knob Counterclockwise: OX
Channel Knob Clockwise: OY
Channel Knob Push: OZ
Calendar: OU
Browser: OS
Address: OT
Options: OV
Power Button doesn't generate a keycode in /dev/tty

I was just thinking as a simple hack, could you generate a simple shell script that checks for one of these key codes (which are mainly ignored) showing up in the keyboard input stream (/dev/tty) and and upon seeing it, inject the keycode for let's say, <page up> into /dev/tty and have it processed properly? You could just keep this running in the background (ie. keyredefine.sh &).

Think this would work? Anyone know the keycodes for the arrow keys and the page up/down? What keycombo (if any) makes the full Voyager browser go BACK and FORWARD? The original Audrey browser had key commands that made it go back and forwards.

DaveC

02-01-2002 18:11:02

New MessageRE:Intercepting keystrokes to re-define Hardware Keys? (modified 0 times) davec
Profile
Oh yeah, I did a little digging around and found this information about the scan codes generated by the hardware keys and what function keys they are mapped to by default. Don't know how the scancodes relate to the characters generated in the /dev/tty buffer though. Not even sure if the O in OR is a capital "o" or a zero (0). Hard to tell with the fonts in the pterm screen.

OR 0xf0c0 () F3 Mail
OS 0xf0c1 () F4 Browser
OT 0xf0c2 () F5 Address Book
OU 0xf0c3 () F6 Calendar
OV 0xf0c4 () F7 Options
0xf0c5 () F8 On/Off?
OX 0xf0c6 () F9 Channel CCW
OY 0xf0c7 () F10 Channel CW
OZ 0xf0c8 () F11 Channel Push

DaveC

02-01-2002 18:42:31

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3