I am using a MacBooPro10,1 Debian stable (default install with rsyslogd
) system for which the trackpad eventually fails (pointer stop working) from time to time as can be seen :
$ dmesg
[...]
[1910159.662967] bcm5974: bad trackpad package, length: 8
The solution is trivial:
$ sudo rmmod bcm5974 && sudo modprobe bcm5974
But I'd rather have it being done automatically.
How can I parse dmesg
output and trigger a command (sudo
power) ?