Quantcast
Channel: Automatic rmmod / modprobe based on dmesg parsing - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 3

Automatic rmmod / modprobe based on dmesg parsing

0
0

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) ?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images