[maemo-developers] Re: N800, xkb and Sierra full size bluetooth keyboard

2007-01-23 Thread Sergey Udaltsov

Laurent,

Putting my xkeyboard-config maintainer hat on...


I did not succeed in getting the EIGHT_LEVEL or level5 mode to work
and define more key combos with Fn+key. If any xkb syntax expert
is lurking arount, help welcomed.

First, could you please file a bug in bugzilla.freedesktop.org against
xkeyboard-config and attach your patch into it? Just for
accountability purposes, you know...

I am not excited about  using Hyper_L codes in the compat/level5 and
symbols/level5 file. Why are they needed? Could you not map your key
to 0xfe11 for any reason? I know, this hex code does not look nice -
it is just temporary placeholder till we get proper
XK_ISO_Level5_Shift in keysymdef.h. But hardcoding Hyper_L as the only
way to switch to level5 is really ugly. What I'd recommend is creating
your own variant in symbols/inet and mapping whatever the keycode is
to 0xfe11 - also updating rules/xorg accordingly (there is a list of
inet keyboard at the top).

Also, instead of modifying existing symbols/gb variant - would you
please consider adding new variant to symbols/gb?

Actually, I would appreciate if you do not reply here - just provide
the reference to bugzilla bug and reply in the bugzilla.

Thanks,

Sergey
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: N800, xkb and Sierra full size bluetooth keyboard

2007-01-23 Thread Laurent GUERBY
I've opened

https://bugs.freedesktop.org/show_bug.cgi?id=9745

More a doc bug than anything else.

As I said there is zero useful doc around, so I ended up
hacking around and it's not pretty and not doing what I want.

I'm totally amazed to have found zero example of how to do
something as simple as:

Fn+e = send the x symbol
AltGr+e = send the y symbol
Cmd+e = send the z symbol

having the key codes for Fn, AltGr and Cmd (using xev).

Is that totally impossible with xkb?

Once that documentation problem fixed, I'll provide
a full mapping for the stoaway sierra keyboard in
about five minute.

Thanks in advance,

Laurent

On Tue, 2007-01-23 at 11:46 +, Sergey Udaltsov wrote:
 Laurent,
 
 Putting my xkeyboard-config maintainer hat on...
 
  I did not succeed in getting the EIGHT_LEVEL or level5 mode to work
  and define more key combos with Fn+key. If any xkb syntax expert
  is lurking arount, help welcomed.
 First, could you please file a bug in bugzilla.freedesktop.org against
 xkeyboard-config and attach your patch into it? Just for
 accountability purposes, you know...
 
 I am not excited about  using Hyper_L codes in the compat/level5 and
 symbols/level5 file. Why are they needed? Could you not map your key
 to 0xfe11 for any reason? I know, this hex code does not look nice -
 it is just temporary placeholder till we get proper
 XK_ISO_Level5_Shift in keysymdef.h. But hardcoding Hyper_L as the only
 way to switch to level5 is really ugly. What I'd recommend is creating
 your own variant in symbols/inet and mapping whatever the keycode is
 to 0xfe11 - also updating rules/xorg accordingly (there is a list of
 inet keyboard at the top).
 
 Also, instead of modifying existing symbols/gb variant - would you
 please consider adding new variant to symbols/gb?
 
 Actually, I would appreciate if you do not reply here - just provide
 the reference to bugzilla bug and reply in the bugzilla.
 
 Thanks,
 
 Sergey
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://maemo.org/mailman/listinfo/maemo-developers
 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Re: N800, xkb and Sierra full size bluetooth keyboard

2007-01-22 Thread Laurent GUERBY
After reading docs and some trial and error, I found out if you do the
changes below in /usr/share/X11/xkb/ and select enlish/GB keyboard
the Think Outside Stowaway Sierra Full Size Bluetooth Keyboard
will mostly work ok (with AltGr instead of the Fn key to get the blue
symbols and compose for accents - I'm french :).

I did not succeed in getting the EIGHT_LEVEL or level5 mode to work
and define more key combos with Fn+key. If any xkb syntax expert
is lurking arount, help welcomed.

Laurent
http://guerby.org/blog/

$ diff -u compat/level5 compat/level5_save
--- compat/level5   2007-01-20 21:34:43.0 +0100
+++ compat/level5_save  2007-01-20 21:34:43.0 +0100
@@ -15,13 +15,13 @@
 latchMods.latchToLock= True;
 
 //ISO_Level5_Shift
-interpret Hyper_L+Any {
+interpret 0xfe11+Any {
useModMapMods= level1;
virtualModifier= LevelFive;
action= SetMods(modifiers=LevelFive);
 };
 
-interpret Hyper_L {
+interpret 0xfe11 {
action= SetMods(modifiers=LevelFive);
 };
 
[EMAIL PROTECTED]:~/tmp/n$ diff -u compat/level5_save compat/level5
--- compat/level5_save  2007-01-20 21:34:43.0 +0100
+++ compat/level5   2007-01-20 21:34:43.0 +0100
@@ -15,13 +15,13 @@
 latchMods.latchToLock= True;
 
 //ISO_Level5_Shift
-interpret 0xfe11+Any {
+interpret Hyper_L+Any {
useModMapMods= level1;
virtualModifier= LevelFive;
action= SetMods(modifiers=LevelFive);
 };
 
-interpret 0xfe11 {
+interpret Hyper_L {
action= SetMods(modifiers=LevelFive);
 };
 
$ diff -u symbols/level5_save symbols/level5
--- symbols/level5_save 2007-01-20 21:34:34.0 +0100
+++ symbols/level5  2007-01-20 21:34:34.0 +0100
@@ -12,7 +12,7 @@
 xkb_symbols rctrl_switch {
   key RCTL {
 type[Group1]=ONE_LEVEL,
-symbols[Group1] = [ 0xfe11 ]
+symbols[Group1] = [ Hyper_L ]
 };
-  modifier_map Mod3   { 0xfe11 };
+  modifier_map Mod3   { Hyper_L };
 };
$ diff -u symbols/gb_save symbols/gb
--- symbols/gb_save 2007-01-20 21:34:34.0 +0100
+++ symbols/gb  2007-01-20 21:34:33.0 +0100
@@ -16,17 +16,26 @@
 
 name[Group1]=United Kingdom;
 
-key AE02 { [ 2,   quotedbl,  twosuperior,oneeighth ] };
-key AE03 { [ 3,   sterling, threesuperior,sterling ] };
-key AE04 { [ 4, dollar, EuroSign,   onequarter ] };
+// key AE02  { [ 2,   quotedbl,  twosuperior,oneeighth ] 
};
+// key AE03  { [ 3,   sterling, threesuperior,sterling ] 
};
+// key AE04  { [ 4, dollar, EuroSign,   onequarter ] 
};
+
+// key AC11  { [apostrophe, at, dead_circumflex, dead_caron] 
};
+// key TLDE  { [ grave,notsign,  bar,  bar ] 
};
+
+// key BKSL  { [numbersign, asciitilde,   dead_grave,   dead_breve ] 
};
+// key LSGT  { [ backslash,bar,  bar,brokenbar ] 
};
+
+key AD10 { [ p,  P,sterling,THORN ]  
};
+key AD06 { [ y,  Y,yen,  leftarrow ] };
+key AD03 { [ e,  E, EuroSign, cent, EuroSign 
]   };
+key  TAB {   [ Tab,  ISO_Left_Tab, Escape, Escape]   };
 
-key AC11 { [apostrophe, at, dead_circumflex, dead_caron] };
-key TLDE { [ grave,notsign,  bar,  bar ] };
-
-key BKSL { [numbersign, asciitilde,   dead_grave,   dead_breve ] };
-key LSGT { [ backslash,bar,  bar,brokenbar ] };
+key MENU {[ Hyper_L  ]   };
 
 include level3(ralt_switch_multikey)
+
+
 };
 
 partial alphanumeric_keys
$

On Sat, 2007-01-20 at 14:16 +0100, Laurent GUERBY wrote:
 Hi,
 
 I have an N800 and a sierra bluetooth keyboard. It looks like the Fn
 key of this keyboard is not processed by the keyboard but sent
 to the N800 and interpreted as the Menu key, so in practice all keys
 that should be accessible using the Fn key as modifier don't work. This
 includes F1..F12, PageUp/Down, EuroSign, YenSign, ... so it's
 pretty annoying.
 
 It looks like there is lots of interesting keyboard stuff
 in /usr/share/X11/xkb/ on my N800, any idea on how to define an adapted
 layout? (I assume defining the Fn key as a modifier Hyper_R or something
 then adding definitions on the other keys.)
 
 Thanks in advance,
 
 Laurent
 
 References:
 
 * Think Outside Stowaway Sierra Full Size Bluetooth Keyboard
 http://www.expansys.com/p.aspx?i=137486
 (I have a qwerty model)
 
 * https://maemo.org/bugzilla/show_bug.cgi?id=333


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers