Help - Search - Members - Calendar
Full Version: Help With Tosa Keyboard Map
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
undrwater
I'm having a lot of fun (and frustration) with pdaXrom! biggrin.gif 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
<keybind key="XF86RotateWindows">
<action name="Execute"><execute>rotate</execute></action>
</keybind>


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
QUOTE(undrwater @ Mar 7 2007, 12:09 AM)
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...
*


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(undrwater @ Mar 7 2007, 12:09 AM)
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
<keybind key="XF86RotateWindows">
<action name="Execute"><execute>rotate</execute></action>
</keybind>

*



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.
undrwater
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
QUOTE(undrwater @ Mar 10 2007, 08:12 PM)
I couldn't find any other version for Tosa other than beta1
*


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(undrwater @ Mar 10 2007, 08:12 PM)
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.
*


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(undrwater @ Mar 10 2007, 08:12 PM)
@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.

*


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(undrwater @ Mar 10 2007, 08:12 PM)
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.
*


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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.