From d3acca6c305915f0454beb85375bf73866ba4fe8 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 3 Jul 2018 17:31:21 +0200 Subject: [PATCH] upower: Add patch to stop logging bind/unbind events Newer kernels emit bind and unbind events, which upowerd doesn't understand. Jul 03 16:19:54 theinternet.molgen.mpg.de upowerd[761]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0 Jul 03 16:19:54 theinternet.molgen.mpg.de upowerd[761]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0 Jul 03 16:19:55 theinternet.molgen.mpg.de upowerd[761]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0 Jul 03 16:19:55 theinternet.molgen.mpg.de upowerd[761]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0 Jul 03 16:19:55 theinternet.molgen.mpg.de upowerd[761]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0 This became a problem, when we tried to used `blink1-tool` in a loop. This could fill our log files. A patch to make upowerd less chatty on newer kernels has been sent to its development mailing list and committed to its master development branch [1] [2]. Apply this patch as a backport. [1] https://bugs.freedesktop.org/show_bug.cgi?id=106019 [2] https://cgit.freedesktop.org/upower/commit/?id=40e525edbde41f24f53a3a5255fbace71c79261a --- upower.be0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upower.be0 b/upower.be0 index 5556a8377..4d1d658a3 100755 --- a/upower.be0 +++ b/upower.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION upower-0.9.16-1 +# BEE_VERSION upower-0.9.16-2 ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) @@ -15,7 +15,7 @@ SRCURL[0]="https://upower.freedesktop.org/releases/upower-${PKGVERSION}.tar.xz" ## Add URLs/pathes to patch files to the PATCHURL array. ## The sources will be patched in the order of the array. -# PATCHURL+=() +PATCHURL+=(https://bugs.freedesktop.org/attachment.cgi?id=138815) ############################################################################### ## Add filename patterns to the EXCLUDE array of files that should not