logind: detect whether the system is docked, and if it is inhibit lid switch processing

System Internals / systemd - Lennart Poettering [poettering.net] - 24 February 2014 09:22 UTC

This should make operation nicer with docking stations, but will not cover anything that does not implement SW_DOCK.

2d62c53 logind: detect whether the system is docked, and if it is inhibit lid switch processing
src/login/logind-action.c | 8 ++++++++
src/login/logind-button.c | 23 +++++++++++++++++++----
src/login/logind-button.h | 3 ++-
src/login/logind-core.c | 11 +++++++++++
src/login/logind.c | 2 +-
src/login/logind.h | 2 ++
src/systemd/sd-messages.h | 2 ++
7 files changed, 45 insertions(+), 6 deletions(-)

Upstream: github.com


  • Share