[Angstrom-devel] Angstrom keyboard handling

2007-10-21 Thread Andrew Zabolotny
This is a second try to send this message, so I'm sorry if it's a
duplicate. Ugh, if only somebody could add application/pgp-signature
to the list of allowed MIME types for the list...

Hello!

Here is a better version of my previous keymap. I tried to squeeze
everything possible from the Zaurus keyboard.

Differences from the previous version.

1. For the '+', '-', '*' symbols (which are usually accessed via
Fn+something), if you press now it together with Shift, you'll get
keypad +, - and * respectively. Not that it matters a lot, but
sometimes this can be useful.

2. Fn+x, Fn+c, Fn+v will generate the XF86Cut, XF86Copy, XF86Paste
symbols, as designed on keyboard. Not sure what applications honor this
anyways, but now you at least have some extra keys ;)

3. The Calendar, Address, Mail, Home, Menu keys will generate
respectively XF86Calendar, XF86Phone (not the 'telephone' character
which is incorrectly generated for some other PDAs! XF86Phone is a
symbol while `telephone' is a Unicode character), XF86Mail,
XF86HomePage, Menu symbols as designed on keyboard. This change
required some modifications of the default keylaunchrc.matchbox too,
and to the config for gpe-conf keys.

4. I moved the backtick character from Fn+Q to Shift+'-' where it seems
more appropiate.

5. Reverted console scrolling to Fn+Shift+Up/Down (e.g.
Shift+PgUp/PgDn). Fn+Ctrl+Up/Down was pretty non-obvious to me,
couldn't get used to it.

Unfortunately, Caps Lock doesn't work. This seems a limitation of the X
server itself, which always expects the CapsLock symbol to be in column
1 to work (e.g. CapsLock must be the primary key meaning), while on
Zaurus CapsLock stays on the Tab key.

Since the list does not allow attaches with funny extensions, and I
have to attach many files, and many wouldn't like the extra load on the
mailing list I have packed everything into a single zip file here:
http://cs.ozerki.net/zap/zaurus-c3xxx-keyboard.zip

Does it make sense to try push these changes into OE?

-- 
Andrew

___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


Re: [Angstrom-devel] [Angstrom-distro-users] mplayer woes

2007-10-20 Thread Andrew Zabolotny
From Fri, 19 Oct 2007 23:26:08 +0100
Tim Chick [EMAIL PROTECTED] wrote:

  Ah, that's pretty useful. Is there somewhere a web page on this, so
  that I can ask less stupid questions in future ;)
 Sorry, no. It's been in the mailing list a few times though.
Ah, that's good. Will search list archives before asking questions.

 That's odd? It plays again and again here. I wonder if the other
 mlayer ends up still running or something. Does it happen with all
 video files?
It seems somehow related to audio. With -nosound I can run the video
many times almost with no problems, although once I got mplayer not to
respond to any keys so I had to reset. With sound and even with
-af resample=48000 it runs one or two times and the next time it starts
to generate a lot of alignment traps, which are logged to syslog.

 Can you post a sample video file which causes it somewhere?
 PS - did you mean to move off the list?
Sorry, it was my error. I accidentaly replied just to you instead of
cross-posting.

-- 
Andrew

___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


[Angstrom-devel] Angstrom keyboard handling

2007-10-14 Thread Andrew Zabolotny
Hello!

I have some comments and proposals on Angstrom keyboard handling.

First, I have improved the keymap for the Zaurus C3x00 series and I
would like to hear any comments on it. The improved keymap is attached
to this message. What have changed:

1. Added Fn+1..0 as F1...F10. This gets propagated into X11 nicely and
even Shift+Fn+# works as Shift+F#, as expected.
2. Fixed the Del key to actually work. The Delete keyword is actually
a synonym of BackSpace so Del never worked here. The correct keyword is
Remove which maps correctly to X_Delete in X11.
3. I found impossible to enter the ascii grave character (`) from
keyboard, so I added Fn+q to enter the grave character.
4. Mapped Fn+p to Insert, as there's no Ins key on the keyboard in
general. It's just below Del so it's more or less logic and handy.
5. I have mapped Home and End to Fn+Left and Fn+Right, just like Fn+Up
maps to PgUp and Fn+Down maps to PgDown.
6. Changed the key between Alt and - (the one with two hieroglyphs
separated by a slash) to map to Do key which is translated to
XK_Execute in X11. There is little use for a second Control key, maybe
we can find a use for a Execute key. In general, I have some ideas
regarding this key, more about it later.

Now some console-only improvements (these aren't picked up by X11):

1. Moved console switching combinations from Ctrl+Alt+1..4 to
Fn+Control+1..0, e.g. you can switch to one of 10 consoles now. The
Ctrl+Alt+# combinations are handled internally by kernel for debug
things in current kernel (SysRq).
2. Fn+Control+Left/Right will switch to previous/next console.
Previously that was Fn+Left/Right which is Home/End now, besides I
wanted to make all console-only hotkeys all stay on Fn+Control+...,
this is somewhat easier to remember. Perhaps keylaunchrc will have to
be modified to match this combination as well, however keylaunch
doesn't work for me for some reason (?) although it's loaded, but none
of the hotkeys do anything.
3. Added Fn+Control+Up to scroll text console up, Fn+Control+Dn
to scroll text console down.

I'm also tempted to remove all compose entries at the end of the
keymap as there's no Compose key defined anyway (Menu?) so nobody can
use them anyways.



Now as far as I understand, xserver-kdrive doesn't support the Xkb
extension, so as-of-today it's impossible to use the keyboard to enter
national characters for languages with own alphabet (greek, cyrillic,
arabic and so on). As a hack you can add some accent characters for
languages based on the latin script (I see the keymap-locales for
German and Finnish), if you have just a few additional symbols to enter
and it happens that Fn+some char isn't already occupied by something.

I think that we should think of some way to solve this problem
in a general enough way so that people can use it for as many
languages as possible.

The traditional approach in many languages is to have some key (I'm
thinking of the Execute key I was talking above) which will switch your
keyboard between Latin/Native modes. In X11 this key is called
ISO_Next_Group, however as far as I understand X11 without Xkb doesn't
understand keyboard groups in general. So the only solution I see now
is to use some X11 app which will modify the keymap when you press some
key (e.g. Execute, or Control+Shift or Alt+Shift etc etc) via xmodmap,
just like people did in X11R5 long time ago, when there was no Xkb. I
can dig into some old X11 archives and find something suitable,
perhaps it will have to be adapted to suit our needs, I will do that if
required.



Also maybe it would make sense to review the mapping of the Calendar,
Address, Mail, Home, Menu keys for the C3x00 series. They are mapped to
random functional keys right now, but the most correct approach is to
map them to XF86Calendar, XF86Address, XF86Mail, XF86Home, XF86Menu
symbols. I can see that there are already xmodmap bindings to these
symbols for other PDAs (in /etc/X11/), how much will broke if the same
will be done for Zaurus C3x00 ?

-- 
Andrew

P.S. Is it possible to declare the mime type
application/pgp-signature valid for the list, I have all my messages
automatically signed and they're bounced back with The message's
content type was not explicitly allowed. This is a repost, so I'm
sorry if both will sneak.
# Default kernel keymap. This uses 8 modifier combinations.
keymaps 0-2,4-6,8,12

keycode   1 =
keycode   2 = one  exclam
altgr keycode 2 = F1
altgr control keycode  2 = Console_1
keycode   3 = two  quotedbl
altgr keycode 3 = F2
altgr control keycode  3 = Console_2
keycode   4 = threenumbersign
altgr keycode 4 = F3
altgr control keycode  4 = Console_3
keycode   5 = four dollar
altgr keycode 5 = F4
altgr control keycode  5 = Console_4
keycode   6 = five percent
altgr keycode 6 = F5
altgr control keycode  6 = Console_5
keycode   7 = six