LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This 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


Reply
  Search this Thread
Old 01-10-2005, 01:37 AM   #1
fizzdandantilus
LQ Newbie
 
Registered: Feb 2004
Posts: 18

Rep: Reputation: 0
BTC 9019URF mouse buttons not active in X


Hi all,

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********
 
Old 07-19-2005, 05:42 AM   #2
SteveHodge99
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
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.
 
Old 07-19-2005, 06:09 AM   #3
fizzdandantilus
LQ Newbie
 
Registered: Feb 2004
Posts: 18

Original Poster
Rep: Reputation: 0
SOLVED

Thanks for the info.
For me, it turned out that the keyboard was faulty. I got it replaced and it now works.
 
Old 07-19-2005, 06:17 AM   #4
SteveHodge99
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Interesting. What distro and kernel are you running?
 
Old 07-19-2005, 10:16 PM   #5
fizzdandantilus
LQ Newbie
 
Registered: Feb 2004
Posts: 18

Original Poster
Rep: Reputation: 0
suse 9.1 pro. kernel 2.6.4

Last edited by fizzdandantilus; 07-19-2005 at 10:44 PM.
 
Old 10-11-2005, 07:46 AM   #6
rushtrader
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Rep: Reputation: 0
A more "proper" patch would be to define the following in your kernel tree in include/linux/input.h:

Code:
#define BTN_BTC_LEFT            0x11d
#define BTN_BTC_RIGHT           0x11e
#define BTN_BTC_MIDDLE          0x11f
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.

RT
 
Old 10-11-2005, 02:54 PM   #7
SteveHodge99
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Quote:
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.
 
Old 10-29-2005, 11:12 AM   #8
psychowood
LQ Newbie
 
Registered: Oct 2005
Location: Italy
Distribution: VectorLinux Kerner 2.6.12.6
Posts: 3

Rep: Reputation: 0
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).

Thanks in advance for you help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BTC 9019URF keyboard locks up newmoon Linux - Hardware 1 08-23-2005 11:40 PM
Wireless keyboard BTC - mouse buttons don't work scholefn Linux - Hardware 1 07-13-2005 05:21 AM
mouse buttons 6 and 7 tardigrade Linux - Software 8 12-05-2004 10:25 PM
making active windows appear as buttons in the 'taskbar' in fluxbox scuzzman Linux - Newbie 4 06-23-2004 11:46 PM
..But my mouse does have 5 buttons!!! Grimnir Linux - General 12 02-18-2002 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration