summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Reimer <manuel.reimer@gmx.de>2013-04-26 14:37:00 +0200
committerManuel Reimer <manuel.reimer@gmx.de>2013-04-26 14:37:00 +0200
commit6b957c3d7c339d30622f67bd821a4117b97c7b36 (patch)
treec8db5a40a2b51e39c6b39ec2a0cefbc338530112
parent53e0218dc17689d2a8a5bc4e3b0c44ff5fd81e4a (diff)
downloadvdrpbd-6b957c3d7c339d30622f67bd821a4117b97c7b36.tar.gz
vdrpbd-6b957c3d7c339d30622f67bd821a4117b97c7b36.tar.bz2
Some documentation additions
-rw-r--r--README7
-rwxr-xr-xvdrpbd3
2 files changed, 9 insertions, 1 deletions
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');