samma
Posts: 2
Joined: Wed Aug 20, 2014 9:59 am

Mouse slow and lagging after rpi-update [solved]

Wed Aug 20, 2014 10:08 am

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.
Last edited by samma on Thu Aug 21, 2014 6:49 am, edited 2 times in total.

User avatar
fruitoftheloom
Posts: 15434
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Mouse issue after rpi-update

Wed Aug 20, 2014 12:59 pm

Have you ran dist-upgrade instead of upgrade ?

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
reboot
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C ARM32 SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC.
3 Mobile Huawei E5330 Mobile Mi-Fi

gkreidl
Posts: 5382
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Mouse issue after rpi-update

Wed Aug 20, 2014 4:04 pm

add
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

samma
Posts: 2
Joined: Wed Aug 20, 2014 9:59 am

Re: Mouse issue after rpi-update

Thu Aug 21, 2014 6:38 am

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! :)

darrenscates
Posts: 1
Joined: Sat Sep 13, 2014 9:39 pm

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

Sat Sep 13, 2014 9:41 pm

Great advice worked first time

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1705
Joined: Thu Jul 11, 2013 2:37 pm

Re: Mouse issue after rpi-update

Sun Sep 14, 2014 9:43 am

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.
Rockets are loud.
https://astro-pi.org

canyon
Posts: 38
Joined: Sun Jan 29, 2012 9:47 am
Location: London UK

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

Sun Sep 14, 2014 10:07 am

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!!

mctscott123
Posts: 6
Joined: Mon Dec 29, 2014 6:40 am

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

Mon Dec 29, 2014 6:42 am

Hi i am having this problem, could someone explain to me how i would add the specified code to boot please?

User avatar
DougieLawson
Posts: 30943
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

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

Mon Dec 29, 2014 12:02 pm

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.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

zphil
Posts: 1
Joined: Thu Jan 15, 2015 2:07 pm

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

Thu Jan 15, 2015 2:12 pm

Thanks for this. Same problem solved for me.

HopperPlaysMC
Posts: 1
Joined: Sun Sep 14, 2014 2:45 am

Re: Mouse issue after rpi-update

Sun Jan 25, 2015 10:37 pm

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

Fght
Posts: 319
Joined: Thu Feb 05, 2015 10:26 pm

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

Mon Feb 23, 2015 7:59 pm

i added the line at the end of the file but it is still lagging..

??

dennmtr
Posts: 27
Joined: Sun Feb 15, 2015 1:06 pm
Location: Athens
Contact: Website

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

Wed Feb 25, 2015 7:59 pm

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...

trudge
Posts: 1
Joined: Sat Mar 28, 2015 5:49 am

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

Sat Mar 28, 2015 5:59 am

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!

HilljerkScribe
Posts: 2
Joined: Fri Apr 17, 2015 10:28 pm

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

Fri Apr 17, 2015 10:55 pm

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?

HilljerkScribe
Posts: 2
Joined: Fri Apr 17, 2015 10:28 pm

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

Fri Apr 17, 2015 11:34 pm

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!

CaptDan
Posts: 2
Joined: Fri Jun 05, 2015 6:10 pm

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

Fri Jun 05, 2015 6:29 pm

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.

Maveric296
Posts: 1
Joined: Mon Dec 14, 2015 4:01 am

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

Mon Dec 14, 2015 4:08 am

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?

Tedford
Posts: 1
Joined: Mon Dec 21, 2015 6:07 pm

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

Mon Dec 21, 2015 6:12 pm

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.

fjbecker
Posts: 1
Joined: Mon Jan 18, 2016 7:15 pm

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

Mon Jan 18, 2016 7:20 pm

This solved my problem using the Raspberry Pi Zero and an Insignia wireless keyboard mouse combo.

Rod99
Posts: 1
Joined: Wed Jan 04, 2017 3:28 am

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

Wed Jan 04, 2017 3:36 am

When I do the edit, then save it, it saves as another file.
Ex: cmdline.txt.save

User avatar
DougieLawson
Posts: 30943
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

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

Wed Jan 04, 2017 2:05 pm

https://github.com/raspberrypi/linux/co ... bd6394a885
Should make your changes completely redundant when that gets into the mainstream 4.9.x kernel.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

MaxK1
Posts: 928
Joined: Sun Aug 26, 2012 11:34 pm

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

Wed Jan 04, 2017 3:58 pm

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?
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

Richard1967
Posts: 3
Joined: Wed Jan 04, 2017 12:29 pm

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

Thu Feb 16, 2017 9:24 am

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?

User avatar
RaTTuS
Posts: 9630
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

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

Thu Feb 16, 2017 9:37 am

check the filesystem for errors
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

Return to “Troubleshooting”

Who is online

Users browsing this forum: CaptainBisquick, raspz1 and 57 guests