maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] External Keyboard Support - extkbd (https://talk.maemo.org/showthread.php?t=65577)

freemangordon 2011-04-06 10:03

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Hmm, sounds strange, never saw such behaviour nor other user reported that. Is it possible that you have some other software messing with keyboard settings? like bt-hid-scripts or something. I am almost sure that is the case. And I remind you that internal keyboard should be open all the time.

number41 2011-04-06 20:12

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
freemangordon, I finally got it to work with diacritics. I'm writing this from a 12 year old compaq keyboard, connected to the device thru usb hostmode.

I recall reporting that diacritics were working correctly, but still I was unable to get c cedillas to work; it seems that diacritics in the intl variant of english (USA) is mapped to the Alt Gr-Comma key, which I would never have guessed.

While going through the xkb-chinook directory yesterday, trying to get an abnt2 keyboard to work, I read the pc layout file and it had a dead cedilla mapped to alt-gr comma; while your mapping differs a bit, the trend remains, with yours mapping a c cedilla to that key combination (Btw, where did you get the mappings from?).

The keyboard works great,I have page up and down working, as well as home and end. Delete seems to act up, though, it will go from erasing text after the typing marker to erasing text before it in a few seconds, as well as locking locking shift/capslock, but I'm not sure that has to do with extkbd.

Changing subject, if I may ask... Would it be possible to add support for the abnt2 pc105 variant geometry? Extkbd has no support for this keyboard layout, and that support would be a great addition to its functionality for someone living in brazil; it's impossible to find keyboards with other layouts here, and since the layout is not supported, symbols on the keyboard don't match their output, which can be a bit of a problem...

Well, that's it. Keep up the good work. I've added my thanks and will help push this to extras.

freemangordon 2011-04-06 23:45

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
1 Attachment(s)
I am not sure I understand what your problem is, but after playing for a while here is the result:

you can have all those strange symbols by using key combination - see attached pic for details. It is produced for Brazil language and variant none. you have several variants to play with.

Shift-6 is used to put diaeresis (double dot) on the next symbol.
Key next to P is used for acute.
C cedilla has its own key.

To produce picture like attached and check your current configuration:

as root in xterm

xkbcomp -xkm -i 4 :0.0
xkbprint -eps -nokc server-0_0.xkm

the result is server-0_0.eps file, open it with your favorite graphics editor

hildon-im-xkbtool --list should be used to get correct id of your keyboard (-i parameter of xkbcomp)

Hope that helps

Edit: sorry for the image quality, maemo.org done this :D

number41 2011-04-07 02:06

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
I'm laughing right now, even though I'm feeling a bit foolish. I got it all mixed up, and getting the keyboard to work was so easy, lol.

Short explaination: You did it, man! All I had to do to set the layout to abnt2 (the layout most keyboards come with in brazil) was choose Brazil as language, rather than look for an abnt2 option in the Layout dialogue. Extkbd IS abnt2-compatible, making the package fully able to localise external keyboard input to the N900. Lot's of kudos due here! :)

Long explanation: I always assumed the Language dialogue in extkbdd referred to the keyboard map one wanted to load, while it seems Language is responsible for the keyboard's geometry/layout. This would explain why at first, while using a SU-8W, I tried loading Brazil/Portuguese in Language and got weird results.

I'm now using the SU-8W with Language set to USA and Variant set to intl; this gets all the weird symbols, the diacritics, to work. And in order to set up the old Compaq keyboard I dug from the basement, an abnt2 layout keyboard, setting Language set to Brazil, no variants, loads the correct map, and it works like a charm.

I guess the Language descripton in that dialogue might be a bit confusing.

My issues are over, keyboard and mice are working great. I should add that I'm using that firefox mouse fix you shared, way ago in azerty1's thread, to get a mouse working in Firefox. It has since become my main browser; this is being typed in FF4 RC1, btw. :)

Keep up the good work, man.

freemangordon 2011-04-07 08:22

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Glad to see your issues solved. What I did not answer is where I get those layouts from. They are from debian mainstrean xkb-data, v1.8.1.

And you are right, Language could be misleading, but same (if not worse) will be if I change it to Layout. The real thing will be translations+help system+option for layout preview, but I won't do that. I rarely write help/documentation even for SW I am paid for, other people do it :D. I hope UI is simple and intuitive enough so one can live without it being translated. Layout preview depends on ps2pdf converter, which I have no idea if it is available for maemo. And it does not make sense to me to spend several days for a feature which will be used once or twice by user (if ever used).

Mentalist Traceur 2011-04-09 16:16

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Can your package please not override the /usr/share/X11/xkb/symbols/nokia_vndr/* files? There's no technical reason why installing extra keyboard mappings should have to delete the N900 hardware-keyboard mappings the end-user already has.

I use a heavily modified keyboard mapping, with Page Up, Page Down, Home, End, Tab, Delele, and Escape keys mapped to different keys (and almost every other key having at least one extra character mapped to it... and a completely modified Russian layout which I toggle to using a method different from the hard-coded "Ctrl-Space" one, as that way fails to get layer 3 and 4 switched properly), and it's horribly jarring to have that suddenly disappear mid-use after your extkbd package finishes installing; sure, I can then go and copy my backup file in, but doesn't seem to be at all necessary. You can install all the standard xkb files without installing stock nokia_vndr mappings over the ones already there, can't you?

WhiteWolf 2011-04-10 05:47

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
How do I add buttons to the profile of a keyboard? I want to add multimedia keys.

Thanks.

leohart 2011-04-12 15:03

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
n900 cannot pair with my bluetooth keyboard, it said authentation failure after I type the 4 digits on keyboard and hit return.Any clue? does it mean this keyboard is not comptiable with n900? It is a foldable bt keyboard from HP iPaq 4700...

leohart 2011-04-12 17:05

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
hi, I have paired the keyboard, but extkbd cannot recognize it, is it because of the profile is SPP? does extkbd only support HID?

leohart 2011-04-12 17:09

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
the kbdd(http://fanoush.wz.cz/maemo/) used to support SPP profile keyboard, and this keyboard is listed as support(btfoldable HP iPAQ bluetooth foldable keyboard). Unfortunately, the kbdd only support old model N770/N800 and I cannot make it work under N900 :(

freemangordon 2011-04-15 05:41

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by Mentalist Traceur (Post 984626)
Can your package please not override the /usr/share/X11/xkb/symbols/nokia_vndr/* files? There's no technical reason why installing extra keyboard mappings should have to delete the N900 hardware-keyboard mappings the end-user already has.

I use a heavily modified keyboard mapping, with Page Up, Page Down, Home, End, Tab, Delele, and Escape keys mapped to different keys (and almost every other key having at least one extra character mapped to it... and a completely modified Russian layout which I toggle to using a method different from the hard-coded "Ctrl-Space" one, as that way fails to get layer 3 and 4 switched properly), and it's horribly jarring to have that suddenly disappear mid-use after your extkbd package finishes installing; sure, I can then go and copy my backup file in, but doesn't seem to be at all necessary. You can install all the standard xkb files without installing stock nokia_vndr mappings over the ones already there, can't you?

So, you want me to break upstream package (xkb-data) just for the sake of saving you one file copy? How often do you reinstall extkbd? And as your question is carrying the answer (restore your backup files after installing extkbd) the answer is no.

freemangordon 2011-04-15 05:50

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by leohart (Post 986651)
hi, I have paired the keyboard, but extkbd cannot recognize it, is it because of the profile is SPP? does extkbd only support HID?

Yes, extkbd only supports HID devices.

freemangordon 2011-04-15 05:53

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by WhiteWolf (Post 984880)
How do I add buttons to the profile of a keyboard? I want to add multimedia keys.

Thanks.

I am afraid I cannot help you but you can ask Mentalist Traceur for help, he seems very skilled on modifying layout files.

Storm_11 2011-04-28 12:06

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
i have one of these cheapies http://www.amazon.com/iTon-Bluetooth.../dp/B0044ZM3UM

an iTon PA-BK03. I see no profile that matches it, and I've fiddled with a few without success. Letter keys work, thats about the only thing that does work. Ideas?

edit: argh, it will work, but after about 10 minutes it disconnects. if i try and reconnect, it says "failed to connect".

Mentalist Traceur 2011-05-04 08:54

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by freemangordon (Post 988775)
So, you want me to break upstream package (xkb-data) just for the sake of saving you one file copy? How often do you reinstall extkbd?

Yes, because I'm the only person who remaps my hardware keyboard. If it was actually just me I wouldn't bother asking, unless it was for something I had an ethical conviction arguement for.

First off, I don't see the "break" as something problematic - you're not gutting the nokia_vndr directory from the upstream package and submitting that up there - you'd be making a change that is very relevant to the platform you're porting it to: if someone's installing this on the N900, they either have the files in nokia_vndr, or they probably have other issues. If they haven't changed the file, then it's effectively as if it was added, if they've changed it, that change gets reverted.

Second, you don't even have to change the package itself - just have a preinst script that copies the already existing nokia_vndr files, and then a postinst that recopies the copy back over the xkb-data stock ones.

Quote:

And as your question is carrying the answer (restore your backup files after installing extkbd) the answer is no.
*Shrug* I'll live, but the point is it's rather unnecessary for them to be overriden.

cfenell 2011-05-05 19:40

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by x-lette (Post 886727)
...
Next, I'll try the tools you gave me. evdev should print the keycodes for a pressed key so I can at least check if they are same as on PC and probably port the correct mapping from there.

Thanks for this discussion! Having the same problem here trying to connect a Microsoft BT Mobile Keyboard 6000 (running kernel-power v47). Only letters work, no numbers or special keys. So I wonder, is this another non-PC105 keyboard or is there a kernel issue?
Will try my colleague's Apple keyboard tomorrow.

cfenell 2011-05-06 17:55

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
The Apple Wireless works!

Update: tested the MS Mobile keyboard 6000 with evtest and got correct scancodes. So (as it seems) standard pc10x keyboards don't work properly here but Apple ones do.

freemangordon 2011-05-26 16:08

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
It should work for all users.

Install .deb from here http://talk.maemo.org/showpost.php?p...&postcount=235 and follow instructions from impeham's post

EDIT: I do not have DS3 available, so I am afraid to give you step-by-step instructions based only on my memories. Try above, steps are very simple.

freemangordon 2011-05-26 16:43

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
this http://talk.maemo.org/showpost.php?p...&postcount=249

BT address:
And to make sure that you are providing correct bluetooth address of your sixaxis do cat /var/lib/bluetooth/XX:XX:XX:XX:XX:X/names and wrote MAC which is on the left of "PLAYSTATION(R)3 Controller". This is your sixaxis bluetooth address. And XX:XX:XX:XX:XX:XX stands for bluetooth address of your n900. You can get it from Settings->About

EDIT:
and please don't call me 'SIR', I am a hard labor worker :D

freemangordon 2011-05-26 20:48

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
yeah, correct, go ahead. and there should be no need to repair devices

btw you have to install "sixauth_0.0.2_armel.deb" from command line as root

dpkg -i sixauth_0.0.2_armel.deb

droll 2011-05-26 23:53

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by Dead1nside (Post 980681)
Just wanted to say thanks, this works great with the ThinkOutside Stowaway Bluetooth Keyboard, apart from a few keys, which have already been listed in this thread.

what keys don't work for you? for me, the following don't work (all of them are on the lower right of the keyboard)
1. del
2. /\| (this is one key)
3. right arrow
4. right ctrl

what's really crippling is #2 and #3. is there a utility that i can run with the stowaway keyboard connected to check if the N900 is indeed seeing input from the keyboard when i press those keys but is not mapping it correctly?

F2thaK 2011-05-27 00:03

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by devildriven (Post 1016221)
so if i do the following...

install "sixauth_0.0.2_armel.deb"
(from that post)

Then in x-term...
gainroot (i have root enabled already)
cat /var/lib/bluetooth/XX:XX:XX:XX:XX:X/names (to gain PS3 BT Address)
/opt/usr/bin/sixauth [XX:XX:XX:XX:XX:X]
(PS3 BT Address)

Pair the keyboard and mouse (Do i need to delete the paring before i proceed?)

Connect sixaxis


Connect mouse and keyboard.

Bingo Bango. PS3 and Keyboard connected as before?

Would i need to pair the keyboard and mouse everytimme before i try and connect the PS3 controller?

If you can confirm this is correct i will go ahead and give it a go. Sorry about the sir business, i'm common as muck and refer to anyone above my status as such! :p

Thanks for all your help, i really appreciate it!


so has someone figured out how to have sixaxis and mouse/kb paired at the same time? I was asking for this ages ago!

freemangordon 2011-05-27 05:02

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
What? It has been working for months.

freemangordon 2011-06-01 09:57

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
It is OK wherever it is, just find the location you have saved the file to and execute dpkg from there.

Or download it on your PC, connect n900 as mass storage and copy the .deb in main directory of first disk (should be named N900). After that disconnect usb cable. Now downloaded .deb should reside in /home/user/MyDocs (remember CAPITAL LETTERS, it is linux ;) ).

And just to remind you - you must be root when executing dpkg.

droll 2011-06-01 10:48

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by droll (Post 1016374)
what keys don't work for you? for me, the following don't work (all of them are on the lower right of the keyboard)
1. del
2. /\| (this is one key)
3. right arrow
4. right ctrl

what's really crippling is #2 and #3. is there a utility that i can run with the stowaway keyboard connected to check if the N900 is indeed seeing input from the keyboard when i press those keys but is not mapping it correctly?

my bad. faulty keyboard. should have guessed since the keys are all bunched up in one nice square at a corner

freemangordon 2011-06-01 10:52

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by devildriven (Post 1020033)
Cool. Ok well now i changed the folder i have got somewhere but not sure what to do next?... X-term shows...

/home/user # cd /home/user/MyDocs
/home/user/MyDocs # dpkg i- sixauth_0.0.2_armel.deb
dpkg: need an action option

Type dpkg --help for help about installing and deinstalling packages[*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL)[*].

Options marked[*] produce a lot of output - pipe it through `less' or `more' !


Which option, if any, should i do now?

correct commnad is:

dpkg -i sixauth_0.0.2_armel.deb

note the hyphen before i, not after it

freemangordon 2011-06-01 11:24

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
I think there is no need to wait, try it now.

droll 2011-06-06 01:50

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
something weird is happening to my setup. i now see 2 keyboards listed by extkbd. broadcom corp. keyboard and thinkoutside keyboard - i only have the latter connected to my phone. i did pair with a sixaxis this morning after i modified /etc/bluetooth/main.conf.

how do i remove the broadcom corp. keyboard entry?

droll 2011-06-06 02:33

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
it also defaults to using this keyboard all the time. i have removed "input" from main.conf and it now correctly defaults to my keyboard. but the broadcom entry is still there.

freemangordon 2011-06-06 10:30

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by droll (Post 1022974)
it also defaults to using this keyboard all the time. i have removed "input" from main.conf and it now correctly defaults to my keyboard. but the broadcom entry is still there.

Will you please be more specific on what your problem is, I cannot understand.

Estel 2011-06-06 12:36

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Sorry for speaking "in behalf", but i think that by this:

Quote:

Originally Posted by droll
something weird is happening to my setup. i now see 2 keyboards listed by extkbd. broadcom corp. keyboard and thinkoutside keyboard - i only have the latter connected to my phone. i did pair with a sixaxis this morning after i modified /etc/bluetooth/main.conf.

how do i remove the broadcom corp. keyboard entry?

...and this:

Quote:

Originally Posted by droll
it also defaults to using this keyboard all the time.

... he mean that extkbd set for him broadcom corp. keyboard as default one, even when he doesn't have it connected, or even got connected other keyboard at the moment. He also mentioned, that this can be fixed only by manual editing config file.

I would also like to mention that i NEVER encountered such problem and for me extkbd work perfectly fine.

freemangordon 2011-06-06 16:47

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by Estel (Post 1023237)
Sorry for speaking "in behalf", but i think that by this:



...and this:



... he mean that extkbd set for him broadcom corp. keyboard as default one, even when he doesn't have it connected, or even got connected other keyboard at the moment. He also mentioned, that this can be fixed only by manual editing config file.

I would also like to mention that i NEVER encountered such problem and for me extkbd work perfectly fine.


Thanks for trying to make things clearer, but what does 'default' mean, that is what I cannot understand. If it is that it is first in the list - should be no problem. Or the problem is something different. Once connected and set up, keyboards stays in list, so you can edit settings even without having particular keyboard connected. And as long as one is able to use currently connected keyboard with correct settings...


I still do not understand what the problem is, sorry.


EDIT:
Got it,
Quote:

how do i remove the broadcom corp. keyboard entry?
@ droll - You cannot remove it from the UI. You have two options:
1. delete (as root) /usr/share/hal/fdi/policy/20thirdparty/99-x11-external-keyboard.fdi and re-apply settings for your new keyboard.

2. edit /usr/share/hal/fdi/policy/20thirdparty/99-x11-external-keyboard.fdi and remove extra entry.


BTW - why did you edit /etc/bluetooth/main.conf by hand?

droll 2011-06-06 21:23

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
thanks. editing the fdi file fixed it. the broadcom keyboard was listed as the first item in the list when i open the extkbd ui. because it had all settings as default, that meant the keyboard language was set to afghanistan. so when i start typing, i get arabic text on my device. annoying, true, but it could be fixed by changing the broadcom keyboard language to usa and setting the appropriate layout. this tells me the n900 is defaulting to the broadcom keyboard settings when i connect my thinkoutside keyboard.

i edited it by hand because i had disableplugins = (blank) and i couldn't get my ps3 controller to pair. this was the setting i had for a long time way before you made your app compatible with the sixaxis package.

thanks again for the fix.

zdanee 2011-06-06 22:10

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Hi all! I have an igo sowaway keyboard. For many months it worked great with extkbd, I configured it in december and never had to touch anything. Now however I cannot make it work, as soon as I try to connect it reports failed connection. I can pair it, I tried removing the device also reinstalling extkbd, purging bluemaemo and anything that does bluetooth, but no success. I remember a connect option in extkbd in settings, it seems to be missing now. Ive read the topics, and I saw other reports, but no solution that worked for me yet. So is this a known bug and would reverting to an old package fix things?

droll 2011-06-07 00:15

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
can't be a bug. i'm using the latest package and it works fine for me. i also have bluemaemo installed and bunch of other bluetooth related packages (sixaxis, bluetooth on/off widget).

what does your main.conf file look like?

freemangordon 2011-06-07 06:39

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by zdanee (Post 1023676)
Hi all! I have an igo sowaway keyboard. For many months it worked great with extkbd, I configured it in december and never had to touch anything. Now however I cannot make it work, as soon as I try to connect it reports failed connection. I can pair it, I tried removing the device also reinstalling extkbd, purging bluemaemo and anything that does bluetooth, but no success. I remember a connect option in extkbd in settings, it seems to be missing now. Ive read the topics, and I saw other reports, but no solution that worked for me yet. So is this a known bug and would reverting to an old package fix things?

In latest version 'connect' button is moved in standard BT UI, see first page

zdanee 2011-06-07 07:34

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by freemangordon (Post 1023818)
In latest version 'connect' button is moved in standard BT UI, see first page

Yeah, I know that. Still when I try to connect with standard BT UI, after pairing it drops connection immediately. The keyboard works with my laptop, so it cannot be faulty. My n900's bt also connects to my laptop, so it must be good as well.

This is what I do:
- I turn on the iGo keyboard, set it up in pairing mode
- I start the control panel on my N900 and start up BT
- I go to devices, Think Outside Keyboard, Edit
- I press "Connect"

At this point I get an error message: "Could not connect to Think Outside Keyboard". If I delete the connection and pair the devices again, after successful pairing I get the same error message. I'm using v47pali and CSSU15 BTW.

freemangordon 2011-06-07 08:31

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Are you sure BT input plugin is enabled in /etc/bluetooth/main.conf? i.e. there is no 'input' on the line starting with DisablePlugins.

zdanee 2011-06-07 08:51

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Quote:

Originally Posted by freemangordon (Post 1023855)
Are you sure BT input plugin is enabled in /etc/bluetooth/main.conf? i.e. there is no 'input' on the line starting with DisablePlugins.

Okay, this was my "Oh sh*t!" moment. To my defense I do not know when was this changed back... THX!

jschan 2011-07-09 22:19

Re: [ANNOUNCE] External Keyboard Support - extkbd
 
Anyone find a mapping that works with the Motorola Bluetooth keyboard by any chance?


All times are GMT. The time now is 10:41.

vBulletin® Version 3.8.8