Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No buttons on my wireless USB mouse (almost solved).
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
elyoyo
n00b
n00b


Joined: 24 Jan 2003
Posts: 21
Location: Toulouse (France)

PostPosted: Mon Sep 08, 2003 3:57 pm    Post subject: No buttons on my wireless USB mouse (almost solved). Reply with quote

Hi all
I just bought a "Polaroid Multimedia Wireless Keyboard and Mouse Kit" (which in fact is a BTC product as shown by /proc/bus/usb/devices) :

Code:
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=046e ProdID=5273 Rev= 2.00
S:  Manufacturer=BTC
S:  Product=USB Multimedia Cordless Kit


But the point is not here.
the keyboard works perfecty , the mouse is configured for X and :
1. the pointer moves smoothly thanks to USB
2. the wheel of the mouse works, I can scroll without problems
3. BUT I cannot click anything as if the buttons where out !!!

Additional hints for the Big Mistery of the Mouse without buttons :
- If I plug another USB mouse (WireFull ;-) ), everything works...
- The wireless mouse works under Windows98 without additional drivers (what a shame) !!
- It seems I have the same problem with gpm...

Here is my X configuation for mice :

Code:
Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Mouse1" "SendCoreEvents"
        InputDevice    "Mouse2" "SendCoreEvents"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection


Code:
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "ImPS/2"
        Option      "Device" "/dev/psaux"
        Option      "ZAxisMapping"   "4 5"
EndSection

Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"
        Option      "SendCoreEvents"        "true"
        Option      "Device" "/dev/input/mouse0"
        Option      "Protocol" "ImPS/2"
#In case of, but does not work wihtout either
        Option      "Buttons"   "5"
        Option      "ZAxisMapping"   "4 5"
EndSection


Section "InputDevice"
        Identifier  "Mouse2"
        Driver      "mouse"
        Option      "SendCoreEvents"        "true"
        Option      "Device" "/dev/input/mouse1"
        Option      "Protocol" "IMPS/2"
        Option      "ZAxisMapping"   "4 5"
EndSection

Any ideas are more than welcomed, I am lost :?:


Last edited by elyoyo on Tue Sep 09, 2003 5:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Mon Sep 08, 2003 5:23 pm    Post subject: Reply with quote

elyoyo,

You could try

Option "Protocol" "Auto"

in place of Option "Protocol" "ImPS/2"

There are other mouse protocols too.

Also, be aware that if you unplug one USB mouse then puly in another, both will be /dev/input/mouse0. Your X config should work with all three mice attached at the same time though.

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
elyoyo
n00b
n00b


Joined: 24 Jan 2003
Posts: 21
Location: Toulouse (France)

PostPosted: Tue Sep 09, 2003 12:23 am    Post subject: Reply with quote

Unfortunatly, it did not worked.
But now I am pretty sure it does not come from my X configuration (well maybe not).
I have just noticed that each time I press a mouse button, I have this message in syslog :
Forthe left button :
Code:
[kernel] keyboard.c: can't emulate rawmode for keycode 280

For the right button :
Code:
[kernel] keyboard.c: can't emulate rawmode for keycode 281

For the middle button :
Code:
[kernel] keyboard.c: can't emulate rawmode for keycode 282


Any ideas welcome....
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Tue Sep 09, 2003 8:25 am    Post subject: Reply with quote

elyoyo,

In your /usr/src/linux/.config what does the USB Human Interface Devices (HID) section say?

Here is mine below.

#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set

The two lines
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
are important - they turn off legacy modes for mice and keyboards and they conflict with the use of
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y

HID (Human Interface Devices) support also has other dependancies in the kernel. They are explained in the help.

Looks like you may need to redo your kerenl.

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
elyoyo
n00b
n00b


Joined: 24 Jan 2003
Posts: 21
Location: Toulouse (France)

PostPosted: Tue Sep 09, 2003 5:43 pm    Post subject: Reply with quote

OK, the kernel was already compiled without the usbmouse/usbkeyb modules...
Anyway, I have recompiled it by modifying the include/linux/input.h file.
As I knew the event sent by the mouse are 280,281 and 282 I have replace the following lines :

Code:
#define BTN_LEFT                0x110
#define BTN_RIGHT               0x111
#define BTN_MIDDLE              0x112

by :
Code:
#define BTN_LEFT                0x118
#define BTN_RIGHT               0x119
#define BTN_MIDDLE              0x11a


Recompile the kernel, reboot, and .... IT WORKS 8) .

As this is rather ugly, I would like to know if someone has another idea to solve this problem llike passing an argument to a module when loading it (mousedev for instance).

As usual, any comments welcomed...
Back to top
View user's profile Send private message
malinon
n00b
n00b


Joined: 12 Jul 2003
Posts: 2

PostPosted: Sun Jan 02, 2005 1:27 am    Post subject: No mouse buttons for Wireless Mouse Reply with quote

I have this same mouse/keyboard kit listed here (BTC USB Multimedia Kit), alrhough it brands itself as a Memorex RF7000.

I had managed to hack the buttons to for for a 2.4.2x flavored kernel, but am having a devil of a time updating the 2.6.9 kernel in the same fashion. The above mentioned trick (re-defining BTN_LEFT, etc) didn't work either.

Any ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum