linux: Detect hardware that needs more polling after event

System Internals / UPower - Bastien Nocera [hadess.net] - 19 June 2018 13:01 EDT

When an event happens on the power line, and we are using a particular device (in this case a MacBook or MacBookAir), we might need to poll more aggressively after the event.

This adds a function to detect and export this.

6ab61ba linux: Detect hardware that needs more polling after event
src/linux/Makefile.am | 1 +
src/linux/up-backend-linux-private.h | 29 +++++++++++++++++++++++++++++
src/linux/up-backend.c | 25 +++++++++++++++++++++++++
3 files changed, 55 insertions(+)

Upstream: cgit.freedesktop.org


  • Share