Author Topic: Help With Tosa Keyboard Map  (Read 2756 times)

undrwater

  • Full Member
  • ***
  • Posts: 232
    • View Profile
    • http://
Help With Tosa Keyboard Map
« on: March 06, 2007, 07:09:42 pm »
I'm having a lot of fun (and frustration) with pdaXrom!    The one thing that I can't seem to get my head around is keymapping.

I've read some of the posts for the other devices out there and searched google for howtos, but I can't seem to get some basic stuff working on the Tosa.

Particularly I'm interested in getting a CTRL key so I can interrupt whatever is happening on the console, maybe some copy/paste type functionality, etc...

OH...and the rotate button!

So I've modified the /etc/xdg/openbox/rc.xml file to try and get rotating working by doing the following:
Code: [Select]

 rotate

I tried linking the tosa.xmodmap to ~/ but nothing seemed to work.

Hope someone can help, or maybe point out something useful that my searches didn't unearth.

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Help With Tosa Keyboard Map
« Reply #1 on: March 06, 2007, 07:31:42 pm »
Quote
Particularly I'm interested in getting a CTRL key so I can interrupt whatever is happening on the console, maybe some copy/paste type functionality, etc...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155614\"][{POST_SNAPBACK}][/a][/div]

I assume you're on pdaxrom beta1.  In this version, my current approach for the "control" key is  to run "inputconfig.py" from a terminal.  It's pretty straightforward to get the "control" key working from there.

Another approach is  "xmodmap" + "xev".  In case you didn't know, running "xev" from a terminal will show you your keycodes, and running "xmodmap" will show you their mappings as well as allow you to remap them.

Please edit the text file "/etc/X11/kb/tosa.xmodmap" to your liking.   I use keycode 96 for the control key, since that's what "inputconfig.py" uses also, in an entirely different way.


Quote
OH...and the rotate button!

So I've modified the /etc/xdg/openbox/rc.xml file to try and get rotating working by doing the following:
Code: [Select]

 rotate
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155614\"][{POST_SNAPBACK}][/a][/div]


The "Rotate" command doesn't work for me .  (Command not found).  I use "xrandr  -o 1" from a terminal for this purpose.  The options for "xrandr" are pretty straightforward if you run it from a terminal.

You can use the "XF86RotateWindows" key to call this from the openbox rc.xml file.
« Last Edit: March 06, 2007, 07:34:26 pm by radiochickenwax »
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus

undrwater

  • Full Member
  • ***
  • Posts: 232
    • View Profile
    • http://
Help With Tosa Keyboard Map
« Reply #2 on: March 10, 2007, 03:12:51 pm »
Took a while to reply to this one.  I couldn't find any other version for Tosa other than beta1, so that's the one I'm using.

Using inputconfig.py was something I tried before, and I can get the Fn key to be the "control" key, but then it no longer can produce the silk screen? keys like #, @, etc... plus the numbers.

Ideally, I'd like to use the "dot" key (opposite the rotate/light key) as the "control" key, but it doesn't show up when using xev.  OZ does this.  I'd also like to get creative with the "record" key as well.

@radiochickenwax; rotate doesn't work for me either, but rotate.sh does.  I both rotate.sh and xrandr in /etc/xdg/openbox/rc.xml, but neither work when I push the "rotate" button.  I'll look into this a bit more deeply.

Finally, what's the magic that allowed SharpROM to do the "caps-lock" and "num-lock" thing?  Is this something that is locked away in some proprietary binary or something, because I haven't seen it working outside of the SharpROM.

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Help With Tosa Keyboard Map
« Reply #3 on: March 12, 2007, 08:19:45 pm »
Quote
I couldn't find any other version for Tosa other than beta1
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155915\"][{POST_SNAPBACK}][/a][/div]

rc10-rc12 work, but they're really old.  beta1 is about as new as it gets until someone can get the uboot bootloader to work on tosa.  I'm trying to do this, but it's low priority for me right now.

Quote
Using inputconfig.py was something I tried before, and I can get the Fn key to be the "control" key, but then it no longer can produce the silk screen? keys like #, @, etc... plus the numbers.

Ideally, I'd like to use the "dot" key (opposite the rotate/light key) as the "control" key, but it doesn't show up when using xev.  OZ does this.  I'd also like to get creative with the "record" key as well.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155915\"][{POST_SNAPBACK}][/a][/div]

I believe the "silkscreen" keys are only on the clamshell models, not the tosa.  They are little pictographs on the lcd screen that act as virtual-buttons.  I wouldn't try to use the "Fn" key to act as control, because as you've said, you lose the "!,@,#$,%,^,&,*,(.,)" keys.    "Fn" needs to be set as "mode_switch" and it's like this by default.  

"inputconfig.py" automatically sets the "calendar" key to act as the "control" key.  To keep things less confusing, it's a good idea to stick with this scheme.  Otherwise, you'll need to find a different key to act as "mode_switch".  

Have you ever had the "control" key working in beta1?  If you haven't, maybe you ought to focus on making it work at all before trying to move it around which is a little difficult.   There are many places where the keymaps get changed, and it's hard to keep them all consistent sometimes.

Also, the buttons on the tosa are a little different than other models.  The Guylhelm ROM was working on remapping some of the tosa buttons in Sharp-rom, but sadly, that sorta fizzled away for the time being.

Quote
@radiochickenwax; rotate doesn't work for me either, but rotate.sh does.  I both rotate.sh and xrandr in /etc/xdg/openbox/rc.xml, but neither work when I push the "rotate" button.  I'll look into this a bit more deeply.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=155915\"][{POST_SNAPBACK}][/a][/div]

I don't use openbox, but I tried this out because I thought this would have worked in the rc.xml file, but it doesn't work for me either.  I'm trying to work out a solution to this.  I'll edit this post if/when I do.

Quote
Finally, what's the magic that allowed SharpROM to do the "caps-lock" and "num-lock" thing?  Is this something that is locked away in some proprietary binary or something, because I haven't seen it working outside of the SharpROM.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155915\"][{POST_SNAPBACK}][/a][/div]

As far as this goes, I've almost had it working, but there are some problems.  You can almost get it to work with the xmodmap file, but then "caps-lock" locks the capital keys on every press of "tab" instead of "Fn+Tab".  One solution might be to use one of the non-keyboard keys "calendar, address, mail, menu, home" to act as caps-lock, and another to act as num-lock.
« Last Edit: March 12, 2007, 08:52:09 pm by radiochickenwax »
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus