OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Usb Keyboard Howto?
egw
post Mar 28 2005, 03:50 PM
Post #1





Group: Members
Posts: 17
Joined: 25-January 05
Member No.: 6,310



Hi,

So I got a mini-A USB adapter and now I'm trying to get my (generic) USB keyboard to work with the Zaurus (c3k, stock.) I've done

insmod usbcore
insmod usbkbd

but when I plug the keyboard in, nothing happens. There's no movement in dmesg or anything.

bash-2.05# lsmod
Module Size Used by
usbkbd 2976 0 (unused)
usbcore 63264 0 [usbkbd]
usb-monitor 6496 0
sharp_mmcsd_m 41008 1
squashfs 31344 1 (autoclean)
prism2_cs 69584 1
p80211 18864 1 [prism2_cs]

anyone know what might be wrong?

Thanks,
Eric
Go to the top of the page
 
+Quote Post
DreamTheater
post Mar 28 2005, 06:56 PM
Post #2





Group: Members
Posts: 44
Joined: 3-January 05
From: Austin, TX
Member No.: 6,104



Hello egw,

Are you sure you got mini-A cable? not a mini-B?
You don't need to do any insmod to work with USB keyboard, they will be automatically loaded. What 'lsusb -v' command says?
Go to the top of the page
 
+Quote Post
dvgnx
post Mar 30 2005, 01:19 AM
Post #3





Group: Members
Posts: 3
Joined: 15-March 05
Member No.: 6,641



hi,
I tried with a qwerty keyboard : everything ok

But I want a azerty keyboard, what i have to do ?

thanks
Go to the top of the page
 
+Quote Post
egw
post Apr 3 2005, 01:06 AM
Post #4





Group: Members
Posts: 17
Joined: 25-January 05
Member No.: 6,310



QUOTE(DreamTheater @ Mar 28 2005, 06:56 PM)
Hello egw,

Are you sure you got mini-A cable? not a mini-B?
You don't need to do any insmod to work with USB keyboard, they will be automatically loaded.  What 'lsusb -v' command says?
*


Hi DreamTheater,

Ya, it's mini-A on one side and A-receptacle (female) on the other.

It's strange. I get an error when with lsusb

bash-2.05$ lsusb -v
cannot open /proc/bus/usb, No such file or directory (2)

The error goes away (replaced with no output) when I "insmod usbcore".

Do you have to use a specific type of keyboard? I'm using a regular full-sized usb keyboard. The sticker on the back of the keyboard says it needs 5V @ 100mA -- perhaps that's the problem?

Eric
Go to the top of the page
 
+Quote Post
iamasmith
post Apr 3 2005, 03:17 AM
Post #5





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



Firstly try plugging in the offending keyboard and issue from a root login...

modprobe usbkbd

If that brings the keyboard to life then tell me what the contents of /proc/bus/usb/devices is.

...actually tell me what the contents of that file is when the keyboard is plugged in even if it doesn't work.

- Andy
Go to the top of the page
 
+Quote Post
egw
post Apr 3 2005, 08:31 AM
Post #6





Group: Members
Posts: 17
Joined: 25-January 05
Member No.: 6,310



QUOTE(iamasmith @ Apr 3 2005, 03:17 AM)
Firstly try plugging in the offending keyboard and issue from a root login...

modprobe usbkbd

If that brings the keyboard to life then tell me what the contents of /proc/bus/usb/devices is.

...actually tell me what the contents of that file is when the keyboard is plugged in even if it doesn't work.

- Andy
*


Hi Andy,

When I type in 'modprobe usbkb', both usbkbd and usbcore show up in 'lsmod', but there's nothing (no files at all) in the /proc/bus/usb/ directory.

CODE
bash-2.05# modprobe usbkbd
bash-2.05# lsmod
Module                  Size  Used by
usbkbd                  2976   0  (unused)
usbcore                63264   0  [usbkbd]
...
usbdcore               35504   0  [pxa_bi storage_fd]
usbdmonitor             5488   0
usb-monitor             6496   0
...
bash-2.05# ls -la /proc/bus/usb/
dr-xr-xr-x    2 root     root            0 Apr  3 09:07 .
dr-xr-xr-x    4 root     root            0 Apr  3 09:07 ..
bash-2.05# cat /proc/bus/usb/devices
cat: /proc/bus/usb/devices: No such file or directory
bash-2.05# uname -a
Linux zaurus 2.4.20 #1 Thu, 28 Oct 2004 09:59:43 +0900 armv5tel unknown


Maybe it's the wrong sort of adapter, even though everything fits physically. I got it from a 'universal usb cable kit' I got at Target (which was significantly more than the Sam's Club price.) Maybe the iriver cable would work better.

Does it look lik anything to you?

Thanks,
Eric
Go to the top of the page
 
+Quote Post
iamasmith
post Apr 3 2005, 08:39 AM
Post #7





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



Sounds like it.

I got an adapter from Maplins that had the right genders but just didn't work.

If you have nothing in /proc/bus/usb then you are off to a bad start. I think you need a different cable.

- Andy
Go to the top of the page
 
+Quote Post
egw
post Apr 5 2005, 04:31 PM
Post #8





Group: Members
Posts: 17
Joined: 25-January 05
Member No.: 6,310



QUOTE(iamasmith @ Apr 3 2005, 08:39 AM)
Sounds like it.

I got an adapter from Maplins that had the right genders but just didn't work.

If you have nothing in /proc/bus/usb then you are off to a bad start. I think you need a different cable.

- Andy
*


Ya, that was it exactly. I got the iRiver cable and now it works fine (well, except for the keyboard mapping -- any hints smile.gif? Or is keyhelper the way to go?)

Anyhow, thanks for all of your help!

Eric
Go to the top of the page
 
+Quote Post
iamasmith
post Apr 6 2005, 04:33 AM
Post #9





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



QUOTE(egw @ Apr 6 2005, 12:31 AM)
QUOTE(iamasmith @ Apr 3 2005, 08:39 AM)
Sounds like it.

I got an adapter from Maplins that had the right genders but just didn't work.

If you have nothing in /proc/bus/usb then you are off to a bad start. I think you need a different cable.

- Andy
*


Ya, that was it exactly. I got the iRiver cable and now it works fine (well, except for the keyboard mapping -- any hints smile.gif? Or is keyhelper the way to go?)

Anyhow, thanks for all of your help!

Eric
*



OK, now for the tough bit.. and I'm afraid I'm not going to be able to help out on this one so if there are any competent French Kernel hackers out there please lend an ear.

KeyHelper is attached to the QT keyboard filter (part of QT not QPE) and doesn't seem to handle USB keyboards.. this may related to the fact that the keyboard device isn't present when Qtopia starts but I haven' tried that.. just tried a standard Keyhelper using a USB keyboard.

I think it's going to be necessary to do scancode translation in the usbkbd module of the Kernel to get your keyboard working properly sad.gif

Sorry, don't have any real time to spend on this for a while.

- Andy
Go to the top of the page
 
+Quote Post
DreamTheater
post Apr 6 2005, 12:48 PM
Post #10





Group: Members
Posts: 44
Joined: 3-January 05
From: Austin, TX
Member No.: 6,104



FYI Eric,

The lsusb error you posted in Post#4 is because of user permission. If you become root, it should work fine.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 14th September 2014 - 08:07 PM