From 6b957c3d7c339d30622f67bd821a4117b97c7b36 Mon Sep 17 00:00:00 2001 From: Manuel Reimer Date: Fri, 26 Apr 2013 14:37:00 +0200 Subject: Some documentation additions --- README | 7 +++++++ vdrpbd | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README b/README index a650648..584475c 100644 --- a/README +++ b/README @@ -14,3 +14,10 @@ Features: - Systemd integration. If systemd is detected, then vdrpbd tries to register itself as "power button inhibitor". The module "Net::DBus" is required for this to work. + Note that this requires systemd version 201 or later and vdrpbd has to be + started by systemd (systemctl start vdrpbd): + http://lists.freedesktop.org/archives/systemd-devel/2013-April/010171.html + For older systemd versions you have to add the following line to your + /etc/systemd/logind.conf: + + HandlePowerKey=ignore diff --git a/vdrpbd b/vdrpbd index cd450f0..700f1e6 100755 --- a/vdrpbd +++ b/vdrpbd @@ -231,9 +231,10 @@ sub SendDBus { sub SystemdInhibit { # HACK... Add support for UNIX FD return values to Net::DBus. - # 2013-01-24: Patch has been mailed to module developer + # 2013-01-24: Mailed patch to module developer # 2013-02-07: First reply from developer --> Patch will be added after review # 2013-03-27: Sent mail asking for an update about current status + # 2013-04-05: https://gitorious.org/net-dbus/net-dbus/commit/5bf227d unless (exists $Net::DBus::Binding::Introspector::simple_type_rev_map{ord('h')}) { $Net::DBus::Binding::Introspector::simple_type_rev_map{ord('h')} = 'unixfd'; $Net::DBus::Binding::Introspector::simple_type_map{'unixfd'} = ord('h'); -- cgit v1.2.3