Flood of log messages about USB over-current

So on my Notebook I noticed I was getting a flood of these frickin' messages;

hub 1-0:1.0: over-current change on port 1

I mean like 5 a second, over and over and … and …

Googl'ed this madness and found no good answer, so I thought I would take an extreme approach and just have Syslog-ng just not log it!

Add this to your destination collection in /etc/syslog-ng.conf;


destination nowhere { file("/dev/null"); };

Then add this to the filter section;


filter f_usb_occ { match("over-current change"); };

Then finally add this to the log section;


log { source(src); filter(f_usb_occ); destination(nowhere); flags(final); );

Restart Syslog-ng and viola! no more logging of that irrating message. woot!

Enjoy!

Leave a Reply