generic wireless mouse not working

Bug #1021019 reported by Marco Biscaro
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Medium
linux (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Mouse keeps connecting and disconnecting. Because of this it is unsuable. Every few seconds lsusb finds it as a Novatek Microelectronics Corp. device, vendor id 0x0603 and dev id 0x1602. Using 12.04 with kernel 3.2.14 sources downloaded with apt-get. Tested on a 64bit system.

uname -a :

Linux dragon-mobi-lx 3.2.14-dell-6 #1 SMP Sat May 19 12:01:05 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

lsusb :

Bus 002 Device 004: ID 0603:1602 Novatek Microelectronics Corp.

syslog :

May 16 19:39:04 dragon-mobi-lx kernel: [ 465.013279] usb 2-1.3: new low-speed USB device number 41 using ehci_hcd
May 16 19:39:04 dragon-mobi-lx mtp-probe: checking bus 2, device 41: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3"
May 16 19:39:04 dragon-mobi-lx mtp-probe: bus: 2, device: 41 was not an MTP device
May 16 19:39:04 dragon-mobi-lx kernel: [ 465.129696] input: USB Device HID̖USBice as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input1016
May 16 19:39:04 dragon-mobi-lx kernel: [ 465.130468] generic-usb 0003:0603:1602.03EE: input,hiddev0,hidraw0: USB HID v1.11 Mouse [USB Device HID̖USBice] on usb-0000:00:1d.0-1.3/input0
May 16 19:39:04 dragon-mobi-lx kernel: [ 465.147224] usb 2-1.3: USB disconnect, device number 41

---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: marco 2133 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe600000 irq 45'
   Mixer name : 'Intel IbexPeak HDMI'
   Components : 'HDA:111d7605,12972013,00100104 HDA:80862804,80862804,00100000'
   Controls : 23
   Simple ctrls : 11
DistUpgraded: Fresh install
DistroCodename: precise
DistroRelease: Ubuntu 12.04
DistroVariant: ubuntu
HibernationDevice: RESUME=UUID=dda60741-4288-4df2-b3bc-bbe9e09f744d
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120402)
MachineType: OEM B14HM21
Package: xserver-xorg-input-mouse 1:1.7.1-1build3
PackageArchitecture: amd64
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-26-generic root=UUID=34b62f2c-8a71-4ec6-a9fc-25968db23d9d ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-26-generic N/A
 linux-backports-modules-3.2.0-26-generic N/A
 linux-firmware 1.79
Tags: precise precise ubuntu patch
Uname: Linux 3.2.0-26-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip lpadmin plugdev sambashare sudo vboxusers
dmi.bios.date: 03/01/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.02.002.E3 Test Only
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: B14HM21
dmi.board.vendor: OEM
dmi.board.version: To be filled by O.E.M.
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 10
dmi.chassis.vendor: OEM
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1.02.002.E3TestOnly:bd03/01/2011:svnOEM:pnB14HM21:pvrTobefilledbyO.E.M.:rvnOEM:rnB14HM21:rvrTobefilledbyO.E.M.:cvnOEM:ct10:cvrToBeFilledByO.E.M.:
dmi.product.name: B14HM21
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: OEM
version.compiz: compiz 1:0.9.7.8-0ubuntu1
version.ia32-libs: ia32-libs 20090808ubuntu36
version.libdrm2: libdrm2 2.4.32-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.2-0ubuntu3.1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.2-0ubuntu3.1
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu10.3
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu1.2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build2

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1021019

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

Original question about this problem: https://answers.launchpad.net/ubuntu/+source/xserver-xorg-input-mouse/+question/197812

I have the same problem in precise fully updated.

uname -a:
Linux galaxy 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

This fix was proposed in the original question.

tags: added: apport-collected patch precise ubuntu
description: updated
Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : AcpiTables.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : AlsaDevices.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : AplayDevices.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : BootDmesg.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : BootLog.gz

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : CRDA.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : Card0.Codecs.codec.3.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : Dependencies.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : DpkgLog.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : IwConfig.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : LightdmLog.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : Lspci.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : Lsusb.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : PciMultimedia.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : ProcEnviron.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : ProcModules.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : PulseList.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : RfKill.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : UdevDb.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : UdevLog.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : WifiSyslog.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : XorgLog.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : XorgLogOld.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : peripherals.txt

apport information

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote : xinput.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
draekko (draekko) wrote :

The logs are not going to help as it requires modifying the kernel, i've already put the patch code that fixes it at the top of this thread though i can email to who ever wants it.

I've tested this on 2 systems (using a 32bit and 64bit laptop) with kernels 3.2.0 (generic 24 & 25) as well as from kernels.org sources using 3.3.7, 3.3.8, 3.4.2, and 3.4.4 the patch fixes it. I haven't bothered testing it with generic 26 since i'm happily working with 3.4.4 so far.

Revision history for this message
draekko (draekko) wrote :

Addendum seems like my original post is gone, but i have 4 of these mices and they all exhibit the same behaviour. The patch i just posted fixes it.

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "fix.diff" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Can you provide some information on the status of the patch with regards to getting it merged upstream? Has it been sent upstream, what sort of feedback has it received, is it getting applied to a subsystem maintainer's tree, etc?

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

We generally ask bug reporters to first request that the driver or patch be added to the upstream kernel. This can be done by mailing the Linux Kernel Mailing List or opening a bug at bugzilla.kernel.org.

People affected by this bug are probably wondering why the kernel team doesn't just add the patch and fix it. The reason is that the kernel team is reluctant (not opposed) to apply any patch/driver to a kernel that is not from upstream. Applying patches and adding drivers that don't come from upstream add greatly to the support of the kernel as other upstream patches/drivers may touch the same area as the non-upstream patch and may prevent them from applying cleanly.

Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

[This looks like an issue in the kernel; no changes needed for the X -mouse driver (which probably isn't the correct driver anyway). Dropping the -mouse task.]

no longer affects: xserver-xorg-input-mouse (Ubuntu)
Changed in linux:
importance: Undecided → Unknown
status: New → Unknown
Changed in linux:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Harry Sufehmi (harry-sufehmi) wrote :

Thank you Marco for reporting this bug, and Draekko for giving us the patch to fix it !

I suffered from this problem. It's quite frustrating when your input devices doesn't work.
While the solution is quite easy, even a kernel newbie like me managed to did it.

I can not imagine why it's still not fixed in the latest update of Precise / 12.04

Anyway, after patching the current ubuntu kernel & recompiled it, now my new mouse works flawlessly ! :D

Unfortunately, there are a lot of tutorials on how to recompile your kernel, and most are wrong in one way or another. For newbies, it must be very frustrating.

I followed the excellent tutorial here to recompile the kernel on my Ubuntu Precise Pangolin (12.04) :
http://www.howtogeek.com/howto/ubuntu/how-to-customize-your-ubuntu-kernel/

With a minor edit; this is the first command which will work with any version of your current kernel :
sudo apt-get install linux-source-`uname -r` kernel-package libncurses5-dev fakeroot

DO NOT follow the instructions here : https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
It does NOT work. I wasted a whole day & only got more confused by the errors caused by it.

So here's what I did, copy-paste style :

===================================================
### create a temporary directory
mkdir ~/tmp
cd tmp

### install required packages
sudo apt-get update
sudo apt-get install linux-source-`uname -r` kernel-package libncurses5-dev fakeroot

### copy current kernel configurations
cp /boot/config-`uname -r` ~/tmp/linux-`uname -r`/.config

### let's go to the kernel source's directory
cd ~/tmp/linux-`uname -r`

### you can reconfigure anything;
### if you want to leave everything as before then just skip this step
make menuconfig

### let's compile !

### clean up everything first
make-kpkg clean

### change 5 into the number of your CPU's cores + 1
### it will make the recompiling process much faster
export CONCURRENCY_LEVEL=5

### recompiling now
time fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers

### let's install the new kernel packages
cd ..
sudo dpkg -i *deb

### reboot
sudo reboot

### hope it helps !

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

I've tried to include the fix in upstream [1][2], but I was told "we need a patch with a "Signed-off-by" line of the original autor"[3]. And the patch was not accepted.

I've tried to contact the original author (draekko) but I couldn't. Do we really need all of this departmentalism to this very simple patch?

Could someone from the Ubuntu Kernel Team help with this bug?

[1] http://permalink.gmane.org/gmane.linux.usb.general/70452
[2] http://permalink.gmane.org/gmane.linux.usb.general/70456
[3] http://permalink.gmane.org/gmane.linux.usb.general/70474

Revision history for this message
draekko (draekko) wrote :

I've been busy, i don't have time to go digging for procedural issues. What exactly is meant by signing off on it? If its my approval for it to be included, hell yeah sure go ahead. I release it to the public domain as is. Do what though will with it.

Revision history for this message
Harry Sufehmi (harry-sufehmi) wrote :
Download full text (29.1 KiB)

Hi, I happened to have a lInux kernel source in my laptop, so I took a look into its Documentation/SubmittingPatch document.

Turn out the reason for "Signed-off-by" line is to ensure that your patch is licensed with the same license as that particular version of Linux kernel.

Since the license (GPL) is one of the most powerful feature of the Linux kernel, it really makes sense.

So let's do it draekko :)

Here's the complete content of that file, detailing all of the procedure to submit a patch to the kernel :

========================================
sufehmi@E125:/usr/src/linux-source-3.2.0/linux-source-3.2.0/Documentation$ cat SubmittingPatches

 How to Get Your Change Into the Linux Kernel
  or
 Care And Operation Of Your Linus Torvalds

For a person or company who wishes to submit a change to the Linux
kernel, the process can sometimes be daunting if you're not familiar
with "the system." This text is a collection of suggestions which
can greatly increase the chances of your change being accepted.

Read Documentation/SubmitChecklist for a list of items to check
before submitting code. If you are submitting a driver, also read
Documentation/SubmittingDrivers.

--------------------------------------------
SECTION 1 - CREATING AND SENDING YOUR CHANGE
--------------------------------------------

1) "diff -up"
------------

Use "diff -up" or "diff -uprN" to create patches.

All changes to the Linux kernel occur in the form of patches, as
generated by diff(1). When creating your patch, make sure to create it
in "unified diff" format, as supplied by the '-u' argument to diff(1).
Also, please use the '-p' argument which shows which C function each
change is in - that makes the resultant diff a lot easier to read.
Patches should be based in the root kernel source directory,
not in any lower subdirectory.

To create a patch for a single file, it is often sufficient to do:

 SRCTREE= linux-2.6
 MYFILE= drivers/net/mydriver.c

 cd $SRCTREE
 cp $MYFILE $MYFILE.orig
 vi $MYFILE # make your change
 cd ..
 diff -up $SRCTREE/$MYFILE{.orig,} > /tmp/patch

To create a patch for multiple files, you should unpack a "vanilla",
or unmodified kernel source tree, and generate a diff against your
own source tree. For example:

 MYSRC= /devel/linux-2.6

 tar xvfz linux-2.6.12.tar.gz
 mv linux-2.6.12 linux-2.6.12-vanilla
 diff -uprN -X linux-2.6.12-vanilla/Documentation/dontdiff \
  linux-2.6.12-vanilla $MYSRC > /tmp/patch

"dontdiff" is a list of files which are generated by the kernel during
the build process, and should be ignored in any diff(1)-generated
patch. The "dontdiff" file is included in the kernel tree in
2.6.12 and later. For earlier kernel versions, you can get it
from <http://www.xenotime.net/linux/doc/dontdiff>.

Make sure your patch does not include any extra files which do not
belong in a patch submission. Make sure to review your patch -after-
generated it with diff(1), to ensure accuracy.

If your changes produce a lot of deltas, you may want to look into
splitting them into individual patches which modify things in
logical stages. This will facilitate easier reviewing by other
kernel developers, very important if you want yo...

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

The fix was committed[1] and the new kernel is already available in raring.

[1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=b8a8f515d234f74ac19fb3597580775d8229ce50

Changed in linux (Ubuntu):
status: Triaged → Fix Released
Changed in linux:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.