Dalmango
Posts: 46
Joined: Sat Aug 05, 2017 5:21 pm

Re: Mouse issue after rpi-update

Sat Aug 05, 2017 5:24 pm

gkreidl wrote:
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
Thanks gkreidl, this fixed it for me too. :D

Antaresr
Posts: 1
Joined: Thu Dec 07, 2017 4:57 pm

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

Thu Dec 07, 2017 5:03 pm

I cant save the file, ctrl-0 and enter does not work for me. Thank you

tyherbz
Posts: 1
Joined: Sat Dec 09, 2017 8:59 am

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

Sat Dec 09, 2017 9:04 am

I gave this a try:

sudo leafpad /boot/cmdline.txt

Which opened up the code in leaf pad. So I added "usbhid.mousepoll=0" at the very end of the line. Saved it (ctrl + S) and rebooted.

Mouse works like a pro now. Hope this helps anyone in need.

o_kante
Posts: 1
Joined: Thu Mar 01, 2018 8:32 pm

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

Thu Mar 01, 2018 9:33 pm

Thanks, that was very useful ;)

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

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

Fri Mar 02, 2018 7:48 am

don't use rpi-update
unless you are following very specific instructions dated after 2018 here off this board

as rpi-update will in most cases make it not do what your expecting and you'll have to start again from a backup
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

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

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

Fri Mar 02, 2018 8:22 am

RaTTuS wrote:
Fri Mar 02, 2018 7:48 am
don't use rpi-update
unless you are following very specific instructions dated after 2018 here off this board

as rpi-update will in most cases make it not do what your expecting and you'll have to start again from a backup
The problem itself is not related to the use of rpi-update at all. It just showed up for the first time in 2014 when updating the kernel. The reduced mouse polling rate has been in the official kernel releases for a long time now. Although it's fine by itself, it produces problems with most wireless keyboard/mouse combos. The command line option was added for people who run into this problem.
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

mattg31
Posts: 77
Joined: Fri Jan 05, 2018 9:55 pm

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

Mon Apr 23, 2018 9:53 am

Hi everyone,
This solved my problem on my raspberry pi 3 with a raspbian image from 2017. Now I have a Raspberry pi 3 b+, and running the latest image from April 18th.
The /boot/cmdline.text is empty? I added the usbhid.mousepoll=0 anyway but it didn't solve the issue.
Any tips for the new version of raspian?

User avatar
B.Goode
Posts: 8894
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

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

Mon Apr 23, 2018 10:03 am

The /boot/cmdline.text is empty? I added the usbhid.mousepoll=0 anyway but it didn't solve the issue.
Any tips for the new version of raspian?
Maybe the same solution is still applicable?

That would involve modifying /boot/cmdline.txt

mattg31
Posts: 77
Joined: Fri Jan 05, 2018 9:55 pm

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

Mon Apr 23, 2018 10:20 am

Yes I modified the text file (even though it was empty). Still no change, my mouse is still very slow and laggy...

User avatar
B.Goode
Posts: 8894
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

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

Mon Apr 23, 2018 10:28 am

Although it is nearly 4 years since this solution was first posted, I would not expect /boot/cmdline.txt to be an empty file with a fresh installation of Raspbian Stretch.

To be sure you are not missing my point: although it contains readable text, the file is not named /boot/cmdline.text.

Edit: Disclaimer - I am not in front of a Raspbian system to check right now. But a change in this area would break so many tutorials, and has not been mentioned in release notes, so I am pretty sure it remains unchanged.
Last edited by B.Goode on Mon Apr 23, 2018 10:33 am, edited 1 time in total.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23931
Joined: Sat Jul 30, 2011 7:41 pm

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

Mon Apr 23, 2018 10:31 am

B.Goode wrote:
Mon Apr 23, 2018 10:28 am
Although it is nearly 4 years since this solution was first posted, I would not expect /boot/cmdline.txt to be an empty file with a fresh installation of Raspbian Stretch.

To be sure you are not missing my point: although it contains readable text, the file is not named /boot/cmdline.text.
No, cmdline.txt should never be an empty file. I suspect the poster has edited the wrong filename.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

mattg31
Posts: 77
Joined: Fri Jan 05, 2018 9:55 pm

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

Mon Apr 23, 2018 10:50 pm

When I type into the terminal: sudo nano /boot/cmdline.text OR sudo leafpad /boot/cmdline.text
an empty file is loaded.

On my raspberry pi 3 model B, using Raspian from sometime in 2017, I get a populated text file.

Maybe the image is corrupt?

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

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

Mon Apr 23, 2018 11:16 pm

mattg31 wrote:
Mon Apr 23, 2018 10:50 pm
When I type into the terminal: sudo nano /boot/cmdline.text OR sudo leafpad /boot/cmdline.text
an empty file is loaded.

On my raspberry pi 3 model B, using Raspian from sometime in 2017, I get a populated text file.

Maybe the image is corrupt?
/boot/cmdline.txt, not /boot/cmdline.text.
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

mattg31
Posts: 77
Joined: Fri Jan 05, 2018 9:55 pm

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

Tue Apr 24, 2018 1:48 am

#embarrassed..
Thanks for the correction. That fixed it.

User avatar
jkwilborn
Posts: 1
Joined: Sun Apr 29, 2018 7:29 pm

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

Sun May 06, 2018 4:25 pm

I have a Pi 3, model B, Raspbian 9.4. The mouse is very lagging. I have tried the fix in the cmdline.txt file. The 0 produced no change but 1 though 15 do speed the movements up when increased. By the response, it would seem that maybe it's the lower 4 bits? It doesn't speed it up fast enough to be useful.

I've run this OS (pure Debian) on numerous, slow, machines and have not had this problem before. Does anyone know where this problem is rooted, hardware, software? I'm still pretty knew with this guy...

Keyboard/mouse Targus Model AKB214. I did see the short piece on the mouse polling too often. Can I check that some way? Any suggestions would be nice.

Thanks

LPJ25
Posts: 1
Joined: Mon Jun 25, 2018 5:19 pm

Re: Mouse issue after rpi-update

Mon Jun 25, 2018 5:21 pm

gkreidl wrote:
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
tried this and the pi freezes on reboot. Any tips?

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

Re: Mouse issue after rpi-update

Tue Jun 26, 2018 4:28 am

LPJ25 wrote:
Mon Jun 25, 2018 5:21 pm
gkreidl wrote:
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
tried this and the pi freezes on reboot. Any tips?
Check your edits again.
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

learner21
Posts: 2
Joined: Thu Sep 20, 2018 8:35 pm

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

Thu Sep 20, 2018 8:39 pm

so I opened the terminal and added the line of code. My mouse works fine now (not laggy anymore) but now I have two config.txt files. One that says config.txt and the other config.txt.save this is because I didnt know how to save the addition after adding the line, so I opened another terminal and hit sudo reboot.

Is it okay for me to delete the other config.txt file or should I just keep both?

learner21
Posts: 2
Joined: Thu Sep 20, 2018 8:35 pm

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

Thu Sep 20, 2018 11:30 pm

CaptDan wrote:
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.
THIS is GREAT!! it worked for me!!!

JCB
Posts: 4
Joined: Sun Oct 21, 2018 2:38 am

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

Sun Oct 21, 2018 3:06 am

Thank you gkreidl for your solution!

I am a total noob that just bought a Raspberry Pi 3 B+ and a new wireless keyboard with mouse. I thought I would have to buy another mouse but your code saved the day!

I typed:

sudo nano /boot/cmdline.text

Then I added a space to the end of the line and typed: usbhid.mousepoll=0 then I hit Ctrl O and ENTER and finally I rebooted.

My mouse now works like a charm! :D

User avatar
ramseyrt
Posts: 23
Joined: Fri Dec 23, 2016 10:57 pm
Location: Niceville, FL
Contact: Website

Re: Mouse issue after rpi-update

Mon Apr 08, 2019 8:37 pm

This fix worked for me! I'm running a Raspberry Pi 2 connected to a Avocent Cybex KVM which is connected to a Logitech K360 wireless keyboard and mouse.

8 Apr 2019

Thanks!

Rob
gkreidl wrote:
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

Philmanwho1
Posts: 1
Joined: Tue May 14, 2019 8:07 pm

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

Tue May 14, 2019 8:12 pm

Tried for like 20 mins to get this working, it turns out some how, there was an extra return press before the text.

The row of text needs to be on the very first row of the file.

I'll be honest, I don't think I caused the extra row, but it is a new install of the os, and it's already been covered above that that file hasn't changed on the build, so it must have been me.

Thanks for this, worked a treat on the end

seandex
Posts: 2
Joined: Sun Dec 10, 2017 11:08 am
Location: Los Angeles - Korea Town

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

Tue Jun 25, 2019 10:27 am

#1. copy the code below. (or click 'Select all' below and then CTRL+C)

Code: Select all

sudo sed -i 's/$/ usbhid.mousepoll=0&/p' /boot/cmdline.txt
#2. CTRL + ALT + T

#3. then paste the code from #1. (or CTRL+SHIFT+V then ENTER)

reboot. (or restart raspberry pi)

HKey_Root
Posts: 1
Joined: Wed Aug 28, 2019 2:16 pm

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

Wed Aug 28, 2019 2:27 pm

Just a PS on this thread from another noobie...

I followed the:

usbhid.mousepoll=0

to /boot/cmdline.txt

and it worked fine until I changed my wireless mouse/keyboard to new replacements and the mouse pointer became sluggish again.

I solved the problem by editing cmdline.txt by removing usbhid.mousepoll=0, saving, rebooting then adding it back in followed by another reboot.

All's well again. Thanks for the previous advice given.

JumpZero
Posts: 1032
Joined: Thu Mar 28, 2013 7:35 pm
Location: 127.0.0.1

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

Mon Sep 30, 2019 5:15 pm

Hi
Even if it's an old post it worked for me on a Pi4 4Gb with Buster up to date.
I changed my mouse to an noname wireless keyboard/mouse combo then mouse was weird.
Mouse isn't lagging anymore after this setting in /boot/cmdline.txt:
usbhid.mousepoll=0

Return to “Troubleshooting”