Page 1 of 2

Mouse slow and lagging after rpi-update [solved]

Posted: Wed Aug 20, 2014 10:08 am
by samma
Hello.

I recently installed Raspbian with kernel version 3.12.22+ and the GUI was running very well even at high resolution. However, after i ran the rpi-update (after running apt-get update & upgrade), upgrading the kernel to version 3.12.26+ the mouse input has started lagging a lot. When moving the mouse around the CPU load increases to 25%, not sure if that was the case before the update.

I am using a Microsoft wireless comfort 5000 keyboard and mouse. Other mice works well with almost no input lag. I don't understand why upgrading the system would reduce performance this much.

How should i proceed to solve this issue? I don't really want to go back to the 3.12.22 kernel since I need some of the new stuff for creating device drivers.

Re: Mouse issue after rpi-update

Posted: Wed Aug 20, 2014 12:59 pm
by fruitoftheloom
Have you ran dist-upgrade instead of upgrade ?

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
reboot

Re: Mouse issue after rpi-update

Posted: Wed Aug 20, 2014 4:04 pm
by gkreidl
add
usbhid.mousepoll=0

to /boot/cmdline.txt
in the same line separated from the other stuff by spaces

Re: Mouse issue after rpi-update

Posted: Thu Aug 21, 2014 6:38 am
by samma
gkreidl wrote:add
usbhid.mousepoll=0

to /boot/cmdline.txt
in the same line separated from the other stuff by spaces
Yep, that solved it. Thanks a lot! :)

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Sat Sep 13, 2014 9:41 pm
by darrenscates
Great advice worked first time

Re: Mouse issue after rpi-update

Posted: Sun Sep 14, 2014 9:43 am
by jdb
gkreidl wrote:add
usbhid.mousepoll=0

to /boot/cmdline.txt
in the same line separated from the other stuff by spaces
For the record:

This option was implemented to enforce a mouse polling rate of 62.5Hz which dramatically reduced the XWindow event system update rate in certain circumstances (oddball or "performance" mice can have update rates of 1000Hz, which is silly).

One possible side-effect of this is that some mice are designed badly and assume that the host system will always poll at exactly the requested update rate. This means they communicate position updates assuming a fixed time-delta between each sample. If you decrease that sample rate, the mouse starts to exhibit lag.

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Sun Sep 14, 2014 10:07 am
by canyon
Thanks +1.
I ssh most of the time, and hardly ever use the desktop anyway, so it was a bit of a shock recently to find my wireless mouse wasn't working properly. I thought it was a just that my mouse was dying, so I've been using a wired one since.
Now it all works again!!

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Mon Dec 29, 2014 6:42 am
by mctscott123
Hi i am having this problem, could someone explain to me how i would add the specified code to boot please?

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Mon Dec 29, 2014 12:02 pm
by DougieLawson
mctscott123 wrote:Hi i am having this problem, could someone explain to me how i would add the specified code to boot please?
sudo nano /boot/cmdline.txt
Do it once and reboot and it'll be there at every boot.

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Thu Jan 15, 2015 2:12 pm
by zphil
Thanks for this. Same problem solved for me.

Re: Mouse issue after rpi-update

Posted: Sun Jan 25, 2015 10:37 pm
by HopperPlaysMC
gkreidl wrote:add
usbhid.mousepoll=0

to /boot/cmdline.txt
in the same line separated from the other stuff by spaces
This works and is really easy to do so if you have this problem do this! Thanks you as well gkreidl for the fix. :D

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Mon Feb 23, 2015 7:59 pm
by Fght
i added the line at the end of the file but it is still lagging..

??

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Wed Feb 25, 2015 7:59 pm
by dennmtr
Fght wrote:i added the line at the end of the file but it is still lagging..

??
edited: fixed here. did u modified the correct file? by fault i edited config.txt file which was the wrong file. make sure u restarted pi...

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Sat Mar 28, 2015 5:59 am
by trudge
Worked a treat for me on a RPi2 with a 'Microsoft Wireless Mouse 1000' on Debian Rasbian (updated today)

Used:
sudo nano /boot/cmdline.txt
- to add ' usbhid.mousepoll=0' to the end of the line, then rebooted with
sudo reboot

The mouse is now nice and responsive.
Thanks!

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Fri Apr 17, 2015 10:55 pm
by HilljerkScribe
HilljerkScribe here
Total newbie and need all the help I can get.
Tried the 'usbhid.mousepoll=0' to the end of cmdline.txt & a sudo reboot.
No go on the mouse too slow problem.
It appears I don't know how to save my changes to the .txt file.
Tried the ^X and 'Y' but, if I do another sudo nano /boot/cmdline.txt,
my changes aren't there! WTH???

More Googleing in my future, I see.
And, this forum!

Just got my Pi. Using Raspbian (pretty sure) and trying to get control of
this thing.

Am I not doing something right?

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Fri Apr 17, 2015 11:34 pm
by HilljerkScribe
HilljerkScribe again.
Had to google how to work nano.
Now my edits are taking in the cmdline.txt file and
the rat is working as expected!!!!

Again, I'm a total nooob to this Pi thing and have ZERO linux experience.
A steep learning curve I'm willing to tackle.

Thanks for the help!

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Fri Jun 05, 2015 6:29 pm
by CaptDan
This worked GREAT but I'm a Pi and Linux noob and needed some research before I could get this to work. Here's the cheat sheet for all the other noobs out there:

-Type this into a terminal: sudo nano /boot/cmdline.text
- sudo, short for 'Super User Do' runs commands at supervisor or 'root' privilege level
- nano starts Nano which is a Linux command-line text editor installed with Pi
- /boot/cmdline.text opens the appropriate boot file in the editor

- Add this at the end of the text file content as gkreidl said: usbhid.mousepoll=0

- To save hit Ctrl-O and then hit Enter (ignore options)
- If you open the file you can see that it has now been modified

-To reboot enter the following command: sudo shutdown -r now
- sudo runs as supervisor or 'root' privilege
- r stands for reboot
- now tells it to reboot now.

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Mon Dec 14, 2015 4:08 am
by Maveric296
I am having some issues with this i have tried editing the text with =0 and =1 but i see no change in speed of mouse i just updated my raspberry pie 2 today is there anything else that could be causeing this?

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Mon Dec 21, 2015 6:12 pm
by Tedford
Thankyou, worked perfect.

At first it didnt work because I put the "mousepoll" part on the next line down in the .txt file.
You have to put it on the first line right after everything else! Just a space before it.

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Mon Jan 18, 2016 7:20 pm
by fjbecker
This solved my problem using the Raspberry Pi Zero and an Insignia wireless keyboard mouse combo.

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Wed Jan 04, 2017 3:36 am
by Rod99
When I do the edit, then save it, it saves as another file.
Ex: cmdline.txt.save

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Wed Jan 04, 2017 2:05 pm
by DougieLawson
https://github.com/raspberrypi/linux/co ... bd6394a885
Should make your changes completely redundant when that gets into the mainstream 4.9.x kernel.

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Wed Jan 04, 2017 3:58 pm
by MaxK1
Rod99 wrote:When I do the edit, then save it, it saves as another file.
Ex: cmdline.txt.save
How did you edit / save the file?

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Thu Feb 16, 2017 9:24 am
by Richard1967
I made the changes in cmdline.txt and it worked previously but now it won't let me save the changes.

I need to be able to save changes to the cmdline file.

Seems security has stepped up by the Linux programmers. How to use a wireless mouse if you can't add the line of code?

Re: Mouse slow and lagging after rpi-update [solved]

Posted: Thu Feb 16, 2017 9:37 am
by RaTTuS
check the filesystem for errors
or make sure you are editing vi sudo nano