LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-14-2004, 06:50 PM   #1
lubond
LQ Newbie
 
Registered: Feb 2004
Location: Jan Juc, Australia
Distribution: RH9
Posts: 8

Rep: Reputation: 0
HP cordless usb mouse/kb combo problem


my new HP pavillion came with a wireless mouse and keyboard combo that both go through the one cordless receiver. this receiver has one usb plug only. both these devices work fine in winXP. linux recognises the keyboard and mouse as seperate devices and the keyboard works fine 100%. my problem is that the mouse buttons won't work. the mouse pointer can be moved around and the wheel works, but no buttons. if i type the following:

cat /dev/input/mice

and then move the mouse around i get data on the screen. but if i press the buttons i get nothing. the interesting this is that when i am in console mode (ie. not in X), mouse clicks generate the following message:

keyboard.c: can't emulate rawmode for keycode 284

where '284' varies depending which button i press, whether its a mousedown or mouseup event, etc.

so it seems to me that linux thinks that these mouse clicks are events coming from the keyboard that are from extra keys that aren't assigned to functions (like the volume and cd controls that come with these branded keyboards these days). so this seems promising to me...perhaps if i knew more about the kernel i could change some code to get it to work- perhaps fool it into treating these 'keyboard events' as mouse clicks or something...?

the following lines are what's relevant from 'lsmod':

keybdev 2976 0 (unused)
mousedev 5656 1
hid 22308 0 (unused)
input 6208 0 [keybdev mousedev hid]
usb-uhci 27404 0 (unused)
ehci-hcd 20456 0 (unused)
usbcore 82592 1 [usb-storage hid usb-uhci ehci-hcd]

can anybody suggest anything that i can try to get the mouse buttons working? please let me know if i can post any more information for you.

also let me know if you just thing i'm screwed and should give up......
 
Old 05-01-2004, 07:09 AM   #2
silverton
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Get reolved?

Did you ever resolve this issue? I am having very similar problems with a mouse/keypad wireless combo by Targus on FC1. The keypad works fine and the movement of the mouse works fine. But, the bttons on the mouse seem to have no effect.

When I cat /dev/input/mice (or mouse0 to isolate it), I see the movement but no signs of the buttons working.

Anyone know how to help?
 
Old 05-08-2004, 08:58 PM   #3
Mikey Likes It
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
I have the same problem under SUN's new Java Desktop. For a temp fix I have set the mouse as left handed so that I can click and select things with the right mouse button. The scroll wheel works but the left mouse button does nothing. When i was running mandrake I never had a problem.
 
Old 08-14-2004, 10:04 PM   #4
ianlilly
LQ Newbie
 
Registered: Aug 2004
Location: KL, Malaysia
Distribution: RH9
Posts: 1

Rep: Reputation: 0
HP cordless usb mouse/kb combo problem

I have a recently purchased HP Pavilion T638 with the same configuration (kbrd/mouse) as the initial poster (lubond) reported. The keyboard works peffoectly under windows Xp and Linux RH9 but the mouse behaviour is weird. Movement works fine and the scrollwheel works with Gnome and KDE desktops/window managers but button presses are ignored. Something happens - i can hear the HDD working when I click the buttons and the activity light on the wireless TX/RX unit flashes.

I've tried a couple of different mouse protocols in the XF86Config file but all I managed to do was disable the scrollwheel on one occasion. The boot sequence for Linux indicates that it's finding the HID device on the USB but from then on the buttons refuse to function.

Any ideas?

moving the wifi mouse out of range and plugging a M'soft optical whelle mouse into the uSB port works immediately.

Ian
 
Old 09-08-2004, 11:52 AM   #5
rodimus
LQ Newbie
 
Registered: Sep 2004
Location: Texas
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
Similar Problem

I am having the same problem using a Targus PAWM004 Wireless optical mouse.

It also shows movement and scrollwheel activity when using 'cat /dev/input/mice' , but no buttons. I believe the problem arises from the receiver being able to handle a keyboard and a mouse at the same time. I think it is waiting for input from the keyboard and not seeing the mouse for what it is.

I am using Slackware (updated against the current tree), and when I edit '/etc/rc.d/rc.gpm' and add the -M command,

"-M Enable multiple mode. The daemon will read two different mouse devices. Any subse_
quent option will refer to the second device, while any preceding option will be used
for the first device. This option automatically forces the repeater (`-R') option on."

then the mouse moves, and the buttons work, but behave erratic. It cuts and pastes and highlights at random. I do not have it working right yet, but If I get it fixed I will post a follow up here. I hope this information helps out.

Rodimus
 
Old 09-13-2004, 10:02 AM   #6
mikebroderick
LQ Newbie
 
Registered: Sep 2004
Location: ma
Posts: 1

Rep: Reputation: 0
FWIW, I'm running 2.4.21-20.EL (RHEL-3.0) and started getting these messages:

Sep 8 09:16:56 vball kernel: keyboard.c: can't emulate rawmode for keycode 273

on [external] mouse clicks (272=left, 274=middle, 273=right). They started when I attached a USB-PS2 adapter to my USB port so I could use a PS2 keyboard and mouse. I have a simple compaq 105 key keyboard and microsoft wheel mouse. Before that I had a USB wheel mouse (broken wheel) and used the laptop keyboard.

The mouse works fine so it seems these events are just getting mistakingly passed to the keyboard driver too?

_Mike
 
Old 09-22-2004, 10:22 PM   #7
Quinnere
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
I have an HP Pavilion a545c with the cordless mouse and keyboard and I have a similar problem with the mouse button not working. This is using the Knoppix distribution of linux, has anybody resolved this issue yet? When I enable the wheel mouse option the wheel-mouse works. It is just the buttons I can't use.
 
Old 02-06-2005, 01:35 PM   #8
jfryman
Member
 
Registered: Dec 2004
Location: Newport News, Virginia
Distribution: CentOS 4, FC4, Ubuntu Breezy/Dapper, Arch 0.7.1
Posts: 40

Rep: Reputation: 15
Targus PAWM004 Fix

Hey all,

For those of you who have had problems with a Targus PAWM004, I've run into an interesting document to help fix those keycodes. Apparently, the usage-code in input/input.c is the same for all three keypresses on this mouse, so the usb driver ignores them.

More information regarding this problem and how to diagnose and fix can be found at http://www.amitysolutions.com.au/doc...3-technote.pdf
Special thanks to Jon Barnett for this fix. It's quick and dirty, requires a rebuild of the usb modules or an entire kernel rebuild. If you're new to this, check out http://www.digitalhermit.com/linux/K...ild-HOWTO.html
That should get you started.

I've put together a patchfile for the 2.6.10 kernel, if anybody is interested. Have fun!
E-Mail me at jfryman (at) gmail (dot) com if you're in need of help.

-James

diff -rcNP /usr/src/linux-2.6.10/drivers/usb/input/hid-core.c /usr/src/linux-2.6.10-targus/drivers/usb/input/hid-core.c
*** /usr/src/linux-2.6.10/drivers/usb/input/hid-core.c 2004-12-24 16:34:58.000000000 -0500
--- /usr/src/linux-2.6.10-targus/drivers/usb/input/hid-core.c 2005-02-06 09:58:03.631626632 -0500
***************
*** 784,789 ****
--- 784,797 ----
static void hid_process_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value, struct pt_regs *regs)
{
hid_dump_input(usage, value);
+ // Addition (Targus PAWM004 Mouse)
+ if (usage->hid==589825)
+ usage->code = 272;
+ if (usage->hid==589826)
+ usage->code = 273;
+ if (usage->hid==589827)
+ usage->code = 274;
+ // End Addition
if (hid->claimed & HID_CLAIMED_INPUT)
hidinput_hid_event(hid, field, usage, value, regs);
if (hid->claimed & HID_CLAIMED_HIDDEV)
 
Old 07-10-2005, 05:47 AM   #9
jangoo
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
Hi!

I have installed targus mouse pawm004 in linux successfully, following the instructions in 12369.ph.p0k.info/. BE CAREFUL, YOU MUST RECOMPILE YOUR KERNEL SO YOU SHOULD BE WITH SOMEONE WHO CAN DO IT

first of all, you have to download kernel sources of your kernel version. You should find hid-core.c into them and add the following lines in hid_process_event:


static void hid_process_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value, struct pt_regs *regs)
{
hid_dump_input(usage, value);

if (usage->hid==589825) //added
usage->code = 272; //added
if (usage->hid==589826) //added
usage->code = 273; //added
if (usage->hid==589827) //added
usage->code = 274; //added


if (hid->claimed & HID_CLAIMED_INPUT)
hidinput_hid_event(hid, field, usage, value, regs);
if (hid->claimed & HID_CLAIMED_HIDDEV)
hiddev_hid_event(hid, field, usage, value, regs);
}


Now, it's time to compile the new kernel. I have followed the instructions in

http://www.falkotimme.com/howtos/deb...el2.6_compile/

And it works! It should also work with other targus models pawm003 , pawm002 , pawm001...
 
  


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
USB wireless Mouse/Keyboard combo config?? AckeyOnYou Linux - Hardware 3 08-14-2005 09:44 AM
Logitech cordless optical USB mouse on SUSE 9.1 redrabbit28 Linux - Distributions 2 06-07-2004 09:04 PM
Logittech/USB/Cordless Trackman Wheel Mouse justaguynsrq Linux - Hardware 0 06-25-2003 07:54 PM
Logitech Cordless Keyboard/Mouse problem alyo Linux - Hardware 1 10-13-2002 06:19 PM
logitech cordless mouse/keyboard combo asholds Linux - Hardware 0 09-30-2002 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:45 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