Reply
Thread Tools Search this Thread
Posts: 8 | Thanked: 9 times | Joined on Dec 2011
#341
Hi,

unluckily there are quite a few different freedom keyboards around.
There is the freedom keyboard (which I have),
the freedom i-connex and the freedom pro. The respective languages are not relevant for kbdd as they are translated by the keyboard language set in extkbd.

If you want to contribute your keys, use
Code:
 sudo gainroot
 stop kbdd # to stop the running daemon
 rfcomm bind all #once to create the device files
 kbdd -d -c /etc/bluetooth/kbdd/kbdd.conf # to output the input keys
 start kbdd # to start the daemon again
press the keys which are working wrong and send me the output. Please add some annotation what the respective key presses are.

I set the keyboard layout to standard 105 keys. kbdd maps the key events to uinput keys which are standard keyboard (which is English) equivalent.
 

The Following User Says Thank You to hypnotoad123 For This Useful Post:
Estel's Avatar
Posts: 3,840 | Thanked: 5,613 times | Joined on Mar 2011
#342
@freemangordon
After Easy Debian went 100% Squeeze-based, it turned out that all one need to do, to achieve 100% working hardware keyboard mapping in ED (including custom remapping, done in /usr/share/X11/xkb/symbols/nokia_vndr/rx-51), is to replace /.debian/usr/share/X11/xkb/ (when ED partition/image is mounted) with usr/share/X11/xkb/ (maemo one).

Ho ever, it doesn't work, if one got extkbd installed (yet, no external keyboard connected ATM) - all blue arrow keys aren't working, and blue arrow act like real AltGr.

It's not a problem, but an idea came to my mind - knowing that, wouldn't it be easy for You, to enhance extkbd to work simultaneously on usr/share/X11/xkb/ (as it does now) and /.debian/usr/share/X11/xkb/, so it would allow hassle-free usage of external keyboard in Easy Debian, putting unmaintained and troublesome bt-hid-scripts into long-deserved obsoleteness?

Considering, that now everyone can use LbreOffice or Chromium hassle-free, extending extkbd to support ED in LXDE (for ED programs run under Maemo via 'debbie', extkbd works already), would be really appreciated.

Thanks in advance

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 01-06-2012 at 03:33 PM.
 

The Following 3 Users Say Thank You to Estel For This Useful Post:
Posts: 146 | Thanked: 234 times | Joined on May 2011
#343
Originally Posted by hypnotoad123 View Post
Hi,

unluckily there are quite a few different freedom keyboards around.
There is the freedom keyboard (which I have),
the freedom i-connex and the freedom pro. The respective languages are not relevant for kbdd as they are translated by the keyboard language set in extkbd.

If you want to contribute your keys, use
Code:
 sudo gainroot
 stop kbdd # to stop the running daemon
 rfcomm bind all #once to create the device files
 kbdd -d -c /etc/bluetooth/kbdd/kbdd.conf # to output the input keys
 start kbdd # to start the daemon again
press the keys which are working wrong and send me the output. Please add some annotation what the respective key presses are.

I set the keyboard layout to standard 105 keys. kbdd maps the key events to uinput keys which are standard keyboard (which is English) equivalent.


Ok here is a photo of the keyboard


And I'm going to start pressing keys from the first row top left to the right ( so ESC key, 1, 2, 3 ,4 .... BACKSPACE) then do the same with second row and so on


Here is the result for the first row from ESC to 5 (key 6 causes a crash and the terminal closes, it could be key 5 causing this )


Code:
Nokia-N900:~# kbdd -d -c /etc/bluetooth/kbdd/kbdd.conf
14 32
press 32
142 33
release 33
dð^[[^[[C22 57
press 57
 150 15
release 15
 ^[[^[[C30 12
press 12
-158 13
release 13
\^[[^[[C38 26
press 26
166 27
release 27
[^[[^[[C37 25
press 25
p165 26
release 26
þ^[[^[[C46 28
press 28
174 49
release 49





EDIT: the battery keeps draining fast on this keyboard! and when I put new ones in it doesn't turn on automatically, so sorry it might take a while for me to get the full output

second row
thrid row
fourth row
[/CODE][/CODE]

Last edited by lonk; 01-06-2012 at 10:41 AM.
 

The Following User Says Thank You to lonk For This Useful Post:
Posts: 8 | Thanked: 9 times | Joined on Dec 2011
#344
Originally Posted by lonk View Post
And I'm going to start pressing keys from the first row top left to the right ( so ESC key, 1, 2, 3 ,4 .... BACKSPACE)
Hi lonk,
since this is not extkbd related, lets move to this thread.
 

The Following User Says Thank You to hypnotoad123 For This Useful Post:
Posts: 2,179 | Thanked: 8,282 times | Joined on Mar 2010 @ Sofia,Bulgaria
#345
Originally Posted by Estel View Post
@freemangordon
After Easy Debian went 100% Squeeze-based, it turned out that all one need to do, to achieve 100% working hardware keyboard mapping in ED (including custom remapping, done in /usr/share/X11/xkb/symbols/nokia_vndr/rx-51), is to replace /.debian/usr/share/X11/xkb/ (when ED partition/image is mounted) with usr/share/X11/xkb/ (maemo one).

Ho ever, it doesn't work, if one got extkbd installed (yet, no external keyboard connected ATM) - all blue arrow keys aren't working, and blue arrow act like real AltGr.

It's not a problem, but an idea came to my mind - knowing that, wouldn't it be easy for You, to enhance extkbd to work simultaneously on usr/share/X11/xkb/ (as it does now) and /.debian/usr/share/X11/xkb/, so it would allow hassle-free usage of external keyboard in Easy Debian, putting unmaintained and troublesome bt-hid-scripts into long-deserved obsoleteness?

Considering, that now everyone can use LbreOffice or Chromium hassle-free, extending extkbd to support ED in LXDE (for ED programs run under Maemo via 'debbie', extkbd works already), would be really appreciated.

Thanks in advance

/Estel
I am not sure I understand exactly what "work simultaneously" means, but anyway what extkbd does is to setup hal in such a way that correct mappings to be used. All other stuff is done by hal and X, extkbd is just an UI.
 
Estel's Avatar
Posts: 3,840 | Thanked: 5,613 times | Joined on Mar 2011
#346
By "work simultaneously", I meant that it could do exactly the same operations on /.debian/usr/share/X11/xkb/, as it does on /usr/share/X11/xkb/.

I understand (so-so) what You mean by setting up hal to use correct mapping, but, /usr/share/X11/xkb/ on device without extkbd installed is *much* different (in countless of file comparisons), that one device with extkbd. That's why someone using extkbd can't just copy /usr/share/X11/xkb/ to /.debian/usr/share/X11/xkb/ after dist-upgrade (people without extkbd upgraded can do it to get correct N900 hardware keyboard mapping, people with extkbd installed cannot, as it results in non-working special characters, invoked by BlueArrow (aka AltGr).

I just though, that part of things that extkbd does, is to manipulate /usr/share/X11/xkb/, and restore it back from backup, when external keyboard gets disconnected. So, I got an idea, that the same can be applied to /.debian/usr/share/X11/xkb/, thus achieving workign external keyboard inside LXDE.

If no, what the heck bt-hid-scripts are doing, that they support external keyboard on LXDE? As you probably noticed, qole shifted gis interest in Harmattan, and getting even simplest answers from him, require weeks of waiting (and, a little provocation ). So, in fact, Easy Debian is now maintained (unofficially) by Sulu and me - thus, extensive work on Squeeze image.

That's why it would be really great, if You could look @ possibilities to achieve external keyboard support also in LXDE (by looking at bt-hid-scripts code, or other means), via extkbd (GUI and it's backend parts). Of course, I know that You're already working actively on plentora of N900 projects, and I'll 100% understand, if You just plain lack of time to do so.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 2,179 | Thanked: 8,282 times | Joined on Mar 2010 @ Sofia,Bulgaria
#347
Originally Posted by Estel View Post

I just though, that part of things that extkbd does, is to manipulate /usr/share/X11/xkb/, and restore it back from backup, when external keyboard gets disconnected. So, I got an idea, that the same can be applied to /.debian/usr/share/X11/xkb/, thus achieving workign external keyboard inside LXDE.
That is not the case, contents of /usr/share/X11/xkb/ is a part of a different package (xkb-data-extkbd) which is backported debian xkb-data (v1.8 if memory serves me well). And extkbd just reads the keyboard descriptions from there(to fill in the UI list and to prepare hal script).

What I can think as a solution is to re-package xkd-data from repos (with a name like xkb-data-easydebian), so its content to be put under /.debian/usr/share/X11/xkb/ upon installation. And BTW xkb-data-extkbd makes a backup of /usr/share/X11/xkb/ before overwriting it, one just can untar it in the correct place.

I've used to know the hackery used by bt-hid-scripts, but that was a long time ago . And you are right, too many projects on my side, just cannot participate in this one too
 

The Following User Says Thank You to freemangordon For This Useful Post:
Estel's Avatar
Posts: 3,840 | Thanked: 5,613 times | Joined on Mar 2011
#348
Originally Posted by freemangordon View Post
And BTW xkb-data-extkbd makes a backup of /usr/share/X11/xkb/ before overwriting it, one just can untar it in the correct place.
Yea, I noticed the backup, that why I've thought about extkbd bringing it back after operations. It seems, that I've misunderstood how etxkbd (GUI) and it's related packages works. Thanks for explanation!

Originally Posted by freemangordon View Post
I've used to know the hackery used by bt-hid-scripts, but that was a long time ago . And you are right, too many projects on my side, just cannot participate in this one too
As I've said, no problem, and I'm sure honest response is much better than taking 143234 projects and disappearing without any trace, like we've seen too many times

I'll try little harder to reverse-engineer it, and/or buggy original creator about working principles. Expect me to drop here from time to time and ask some quasi-off-topic trivials

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Estel's Avatar
Posts: 3,840 | Thanked: 5,613 times | Joined on Mar 2011
#349
@freemangordon
qole was kind to explain part of bt-hid-scripts, that are responsible for proper external keyboard support in LXDE:
http://talk.maemo.org/showpost.php?p...postcount=2513

Any chances to implement it in extkbd?

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 2,179 | Thanked: 8,282 times | Joined on Mar 2010 @ Sofia,Bulgaria
#350
Originally Posted by Estel View Post
@freemangordon
qole was kind to explain part of bt-hid-scripts, that are responsible for proper external keyboard support in LXDE:
http://talk.maemo.org/showpost.php?p...postcount=2513

Any chances to implement it in extkbd?

/Estel
Well, all my experience with setxkbmap is that it ruins all that extkbd/hal had set. Isn't it possible to do that from chrooted environment (i.e. from easydebian itself)?

On the other hand maybe it is possible to set up keyboard layout from hal for X:1. Will look at the issue these days.
 

The Following 3 Users Say Thank You to freemangordon For This Useful Post:
Reply

Tags
bluetooth, keyboard

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 01:30 AM.