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.
Mouse slow and lagging after rpi-update [solved]
Last edited by samma on Thu Aug 21, 2014 6:49 am, edited 2 times in total.
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Mouse issue after rpi-update
Have you ran dist-upgrade instead of upgrade ?
Code: Select all
sudo apt-get update
sudo apt-get dist-upgrade
reboot
Take what I advise as advice not the utopian holy grail, and it is gratis !!
Re: Mouse issue after rpi-update
add
usbhid.mousepoll=0
to /boot/cmdline.txt
in the same line separated from the other stuff by spaces
usbhid.mousepoll=0
to /boot/cmdline.txt
in the same line separated from the other stuff by spaces
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer
Re: Mouse issue after rpi-update
Yep, that solved it. Thanks a lot!gkreidl wrote:add
usbhid.mousepoll=0
to /boot/cmdline.txt
in the same line separated from the other stuff by spaces

-
- Posts: 1
- Joined: Sat Sep 13, 2014 9:39 pm
Re: Mouse slow and lagging after rpi-update [solved]
Great advice worked first time
Re: Mouse issue after rpi-update
For the record:gkreidl wrote:add
usbhid.mousepoll=0
to /boot/cmdline.txt
in the same line separated from the other stuff by spaces
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.
Rockets are loud.
https://astro-pi.org
https://astro-pi.org
Re: Mouse slow and lagging after rpi-update [solved]
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!!
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!!
-
- Posts: 6
- Joined: Mon Dec 29, 2014 6:40 am
Re: Mouse slow and lagging after rpi-update [solved]
Hi i am having this problem, could someone explain to me how i would add the specified code to boot please?
- DougieLawson
- Posts: 42635
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: Mouse slow and lagging after rpi-update [solved]
sudo nano /boot/cmdline.txtmctscott123 wrote:Hi i am having this problem, could someone explain to me how i would add the specified code to boot please?
Do it once and reboot and it'll be there at every boot.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Mouse slow and lagging after rpi-update [solved]
Thanks for this. Same problem solved for me.
-
- Posts: 1
- Joined: Sun Sep 14, 2014 2:45 am
Re: Mouse issue after rpi-update
This works and is really easy to do so if you have this problem do this! Thanks you as well gkreidl for the fix.gkreidl wrote:add
usbhid.mousepoll=0
to /boot/cmdline.txt
in the same line separated from the other stuff by spaces

Re: Mouse slow and lagging after rpi-update [solved]
i added the line at the end of the file but it is still lagging..
??
??
Re: Mouse slow and lagging after rpi-update [solved]
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...Fght wrote:i added the line at the end of the file but it is still lagging..
??
Re: Mouse slow and lagging after rpi-update [solved]
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!
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!
-
- Posts: 3
- Joined: Fri Apr 17, 2015 10:28 pm
Re: Mouse slow and lagging after rpi-update [solved]
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?
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?
-
- Posts: 3
- Joined: Fri Apr 17, 2015 10:28 pm
Re: Mouse slow and lagging after rpi-update [solved]
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!
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]
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.
-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.
-
- Posts: 1
- Joined: Mon Dec 14, 2015 4:01 am
Re: Mouse slow and lagging after rpi-update [solved]
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]
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.
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]
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]
When I do the edit, then save it, it saves as another file.
Ex: cmdline.txt.save
Ex: cmdline.txt.save
- DougieLawson
- Posts: 42635
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: Mouse slow and lagging after rpi-update [solved]
https://github.com/raspberrypi/linux/co ... bd6394a885
Should make your changes completely redundant when that gets into the mainstream 4.9.x kernel.
Should make your changes completely redundant when that gets into the mainstream 4.9.x kernel.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: Mouse slow and lagging after rpi-update [solved]
How did you edit / save the file?Rod99 wrote:When I do the edit, then save it, it saves as another file.
Ex: cmdline.txt.save
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.
When General Failure and Major Disaster get together, Private Parts usually suffers.
-
- Posts: 3
- Joined: Wed Jan 04, 2017 12:29 pm
Re: Mouse slow and lagging after rpi-update [solved]
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?
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]
check the filesystem for errors
or make sure you are editing vi sudo nano
or make sure you are editing vi sudo nano
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe
WARNING - some parts of this post may be erroneous YMMV
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe