Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to get my BTC 9019URF multimedia keyboard/joystick being used in Suse 9.1, XFree86 4.3.99 and KDE 3.3.2, to work.
So far I have pointer movement and standard keys on the keyboard working, but the mouse buttons don't do anything.
If you have any suggestions I would be grateful.
******LOG**********
usb 1-1: new low speed USB device using address 2
usb 1-1: Product: USB Multimedia Cordless Kit
usb 1-1: Manufacturer: BTC
ieee1394: Host added: ID:BUS[0-00:1023] GUID[00023c009107a346]
drivers/usb/core/usb.c: registered new driver hiddev
drivers/usb/input/hid-core.c: ctrl urb status -32 received
input: USB HID v1.00 Keyboard [BTC USB Multimedia Cordless Kit ] on usb-0000:00:02.2-1
drivers/usb/input/hid-core.c: ctrl urb status -32 received
drivers/usb/input/hid-core.c: ctrl urb status -32 received
drivers/usb/input/hid-core.c: ctrl urb status -32 received
drivers/usb/input/hid-core.c: ctrl urb status -32 received
drivers/usb/input/hid-core.c: ctrl urb status -32 received
input,hiddev96: USB HID v1.00 Mouse [BTC USB Multimedia Cordless Kit ] on usb-0000:00:02.2-1
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
*******END*LOG********
I got the mouse buttons working. I found that the BTC sends unusual codes for the mouse buttons, so I hacked my kernel source to recognise those codes. I just changed the mousedev_key_event function in /usr/src/linux/drivers/input/mousedev.c to include the extra codes:
Code:
static void mousedev_key_event(...
...
case BTN_TOUCH:
case BTN_0:
case BTN_FORWARD:
case 285:
case BTN_LEFT: index = 0; break;
case BTN_STYLUS:
case BTN_1:
case 286:
case BTN_RIGHT: index = 1; break;
case BTN_2:
case BTN_STYLUS2:
case 287:
case BTN_MIDDLE: index = 2; break;
case BTN_3:
...
The bold lines with the 28x numbers are the ones I added. Just do the same and recompile and install the new kernel.
then change drivers/input/mousedev.c in the same place as above but to look like this:
Code:
switch (code) {
case BTN_TOUCH:
case BTN_0:
case BTN_FORWARD:
case BTN_BTC_LEFT:
case BTN_LEFT: index = 0; break;
case BTN_STYLUS:
case BTN_1:
case BTN_BTC_RIGHT:
case BTN_RIGHT: index = 1; break;
case BTN_2:
case BTN_STYLUS2:
case BTN_BTC_MIDDLE:
case BTN_MIDDLE: index = 2; break;
case BTN_3:
case BTN_BACK:
case BTN_SIDE: index = 3; break;
case BTN_4:
case BTN_EXTRA: index = 4; break;
default: return;
}
While the same result is accomplished, it is easier to read and debug this way.
Originally posted by rushtrader A more "proper" patch would be to define the following in your kernel tree in include/linux/input.h:
Yeah, that's better, though I don't think that is the right place to solve the problem for a "real" patch. The lower level driver code should be fixed to generate BTN_LEFT/BTN_RIGHT/BTN_MIDDLE codes.
Anyway, the problem vanished when I upgraded to 2.6.12 so I don't think the patch is likely to be needed anymore.
Hi,
I'm trying to make the 9019urf work with VectorLinux (SOHO Latest version) but I have a different problem: the mouse doesn't work at all!
I only moves up and down, and the "recognition pattern" isn't correct: I mean, it moves UP when I move LEFT, DOWN when I move RIGHT, LEFT (slow) for the MIDDLE BUTTON, LEFT (faster) for the RIGHT BUTTON, and so on...
Vectorlinux runs Kernel version 2.6.12, so it should be compatible without any patch.
Bu the way, under windows XP it works flawlessly (no drivers needed).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.