1

Logitech M170 mouse some times hard freezing and lag for 5-7 seconds. I'm try to disable power saving for usb devices, but it don't help.

sudo powernap-action --disable usb_autosuspend

and

echo 2 | sudo tee /sys/bus/usb/devices/*/power/autosuspend >/dev/null

In dmesg always after freez

[ 6591.387398] perf: interrupt took too long (2502 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[ 9650.687098] perf: interrupt took too long (3283 > 3127), lowering kernel.perf_event_max_sample_rate to 60750
[18608.931249] perf: interrupt took too long (4145 > 4103), lowering kernel.perf_event_max_sample_rate to 48250

Maybe this is not related, but always a similar message.

Laptop: Lenovo-ideapad 320

Maks
  • 31

1 Answers1

2

I'm not sure if it's your USB ports or the USB hub which is trying to auto-suspend due to power management.

What's the output of

cat /sys/bus/usb/devices/usb*/power/control

what message do you get now and do you still get the same if you run this after booting the machine?

echo "on" | sudo tee /sys/bus/usb/devices/usb*/power/control

If it is not persistent between machine reboots.

You can also check with powertop if you prefer something slightly more user friendly.

sudo apt-get install powertop

Look on the tunables tab. If it's set to bad then auto-suspend is disabled and this is what you want. Try and let us know?

Shaze
  • 426