Skip to content

Commit

Permalink
upower: Add patch to stop logging bind/unbind events
Browse files Browse the repository at this point in the history
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
  • Loading branch information
donald committed Jul 3, 2018
1 parent 75aba30 commit d3acca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upower.be0
Original file line number Diff line number Diff line change
@@ -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.)
Expand All @@ -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
Expand Down

0 comments on commit d3acca6

Please sign in to comment.