Reply
Thread Tools Search this Thread
don_falcone's Avatar
Posts: 1,468 | Thanked: 1,894 times | Joined on Jul 2011 @ not your mom's basement
#351
I cannot get (several different models) keyboards to work via USB, neither via host cable + adapter PS2->USB, nor directly via host cable. (But flash drives work with this particular adapter cable!)

Kernel message log attached.

Enviro: kp49 +extmouse + extkbd + h-e-n, no HID scripts.

EDIT: "Not working" equals to: no keyboard model detected / selectable from "keyboard" button, layout therefore is also not saved despite success message. Currently i do not have BT devices to check if at least that interface is successful.
Attached Files
File Type: gz hostmode.txt.gz (5.7 KB, 18 views)
__________________
Thinking about switching to a newer device? Not sure if your favorite Maemo/Harmattan application has an equivalent or substitution? Android sucks way less than people around here shout. Check my personally-made substitution list!

Last edited by don_falcone; 02-07-2012 at 08:08 AM.
 
Estel's Avatar
Posts: 3,840 | Thanked: 5,607 times | Joined on Mar 2011
#352
Judging by your dmesg output, device isn't enumerated properly, so extkbd doesn't have much to do.

Seems like report for hostmode thread.

/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!
 
don_falcone's Avatar
Posts: 1,468 | Thanked: 1,894 times | Joined on Jul 2011 @ not your mom's basement
#353
Ok thank you, i will forward case to appropriate queue.

(Is it that i always check with Cherry G80-3000 / MX keyboards and nobody used them before?)
__________________
Thinking about switching to a newer device? Not sure if your favorite Maemo/Harmattan application has an equivalent or substitution? Android sucks way less than people around here shout. Check my personally-made substitution list!
 
Posts: 18 | Thanked: 37 times | Joined on Jan 2012
#354
Originally Posted by jschan View Post
So using evtest and xinput, I've been able to verify that all the keys are making it to my n900 and confirmed that the default keycode mappings should be valid. However, for some reason, the mappings aren't working. Only the following keys are working:
- all letters
- space
- tab
- backsapce
- enter
- comma
- period
- shift (though not at the same time as i press another key)
- esc
- directional keys
- f keys

Numbers, most special characters, and most special keys (such as capslock, ctrl, alt, etc) aren't working though events are sent in. Any idea what could be wrong? I've tried different mappings, but I can't get any of these other keys to work. Has anyone else experienced similar issues and/or know how to get numeric keys and special keys working?
I have the same problem and I found where it is. Unfortunately it took much time, so the only excuse for me is that now I know a little bit more of Xorg internals.

There's a function IsPointerDevice in Xorg code. If the device has "valuator" and buttons, it is treated as pointer device (= mouse). I don't know exactly what the valuator is, but sure in our case combo keyboard is treated as pointer device. Then if keyboard events are coming from pointer dev, they are processed on behalf of some other keyboard.

So xkb config assigned to a combo keyboard is not used, modifiers are not working, and so on.

I hacked evdev_drv.so to skip pointer device configuration, and the keyboard part started to work properly. Now I'm looking for a way to clone the input device so touchpad and keyboard parts would act separately.

Presence of extra capablities in lshal output may be a sign of the problem, but it's not exact as the evdev_drv detects input capabilities on it's own.
 

The Following 3 Users Say Thank You to kirillkk For This Useful Post:
Posts: 18 | Thanked: 37 times | Joined on Jan 2012
#355
I changed evdev_drv.so to be able to handle keyboard and mouse events separately. Driver source was taken from
xserver-xorg-input-evdev-mouse-2.1.99-1osso20090206.12.tar.gz (xserver-xorg-input-evdev-mouse 1:2.1.99-1osso20090206.12-1mouse+0m5).

There are two new options KeyboardOnly and MouseOnly.
If you set KeyboardOnly to "yes", then the evdev can be registered with Xorg for the second time with MouseOnly = "yes". So the single linux evdev can be registered as two X server devices.

There are hal scripts, readme and evdev patch in the attachment.
Attached Files
File Type: gz combokbd.tar.gz (15.9 KB, 34 views)
 

The Following 6 Users Say Thank You to kirillkk For This Useful Post:
Posts: 2,179 | Thanked: 8,281 times | Joined on Mar 2010 @ Sofia,Bulgaria
#356
Originally Posted by kirillkk View Post
I changed evdev_drv.so to be able to handle keyboard and mouse events separately. Driver source was taken from
xserver-xorg-input-evdev-mouse-2.1.99-1osso20090206.12.tar.gz (xserver-xorg-input-evdev-mouse 1:2.1.99-1osso20090206.12-1mouse+0m5).

There are two new options KeyboardOnly and MouseOnly.
If you set KeyboardOnly to "yes", then the evdev can be registered with Xorg for the second time with MouseOnly = "yes". So the single linux evdev can be registered as two X server devices.

There are hal scripts, readme and evdev patch in the attachment.
Do you want to be added as a maintainer of all this extkbd/extmou stuff. As I really just don't have time to actively maintain them, all my spare time goes into KP/CSSU
 

The Following 3 Users Say Thank You to freemangordon For This Useful Post:
Posts: 165 | Thanked: 74 times | Joined on May 2010
#357
@kirillkk - super informative! unfortunately, my n900 died a while ago (no cell signal), so i don't have a need for the nice workaround you created. Still thanks for the follow up!
 
Posts: 18 | Thanked: 37 times | Joined on Jan 2012
#358
Originally Posted by freemangordon View Post
Do you want to be added as a maintainer of all this extkbd/extmou stuff. As I really just don't have time to actively maintain them, all my spare time goes into KP/CSSU
I afraid I don't have time either If you like, I may try to integrate changes into extkbd and evdev packages. But I won't be able to do any continuous support.
 

The Following User Says Thank You to kirillkk For This Useful Post:
Estel's Avatar
Posts: 3,840 | Thanked: 5,607 times | Joined on Mar 2011
#359
Any contribution (to "mainstream" package in -devel) is better than no contribution at all
__________________
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!
 

The Following User Says Thank You to Estel For This Useful Post:
Posts: 1,373 | Thanked: 1,904 times | Joined on Apr 2010 @ St. Helens, England
#360
Any chance of fixing the bugtracker link and pushing the latest to testing, please.
Seems to be stable, shame for small bug fixes like this to be stuck in devel.
__________________
The stable-beast currently runs...
21.2011.38-1Smaemo6 (CSSU Stable)
2.6.28.10power52 (125-600Mhz SR VDD1&2)

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap -


Before posting in a thread please try this.
Before starting a new thread please try this.
 

The Following 2 Users Say Thank You to sixwheeledbeast 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 12:13 PM.