Ok,

Keep having a problem with the mouse cursor freezing; at the end of dmesg I find this after the event.

Code:
[ 1798.430468] perf interrupt took too long (2511 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[ 2588.253279] psmouse serio1: Wheel Mouse at isa0060/serio1/input0 lost synchronization, throwing 3 bytes away.
I can bring the mouse back to life with this bash script

Code:
#!/bin/sh
# restart a dead mouse
sudo rmmod psmouse
sleep 3
sudo modprobe psmouse
#EOF
But it continues to happen.

I pressume "perf" is a peripheral interrupt but where can I find the settings for this; can I manually change the value kernel.perf_event_max_sample_rate to stop this happening?

HARDWARE
HP Compaq dc5800 with ATI v5900 graphics