- Bearbeitet
Hej,
ich bin grad irgendwie am verzweifeln. Ich kann keinen suspend nutzen. systemctl hibernate|poweroff|reboot funktionieren einwandfrei, nur suspend nicht. Erst dacht ich das ist ein Rechteproblem:
ich bin grad irgendwie am verzweifeln. Ich kann keinen suspend nutzen. systemctl hibernate|poweroff|reboot funktionieren einwandfrei, nur suspend nicht. Erst dacht ich das ist ein Rechteproblem:
$ systemctl suspend
Failed to issue method call: Operation not supported
Failed to issue method call: Access denied
Ist es wohl an dieser Stelle auch. Und die Themen die ich dazu gefunden habe haben mich nicht schlauer gemacht. Irgendwas mit pam/systemd/loginctl/logind… Aber, und jetzt wirds lustig, es funktioniert sowieso nicht. Als root:
# systemctl suspend
A dependency job for suspend.target failed. See 'journalctl -n' for details.
# journalctl -n
-- Logs begin at Sat, 2012-10-20 15:01:14 CEST, end at Thu, 2012-10-25 20:01:12 CEST. --
Nov 17 04:01:35 fuckup systemd-sleep[13004]: Suspending system...
Nov 17 04:01:35 fuckup systemd-sleep[13004]: System resumed.
Nov 17 04:01:35 fuckup systemd[1]: systemd-suspend.service: main process exited, code=exited, status=1/FAILURE
Nov 17 04:01:35 fuckup systemd[1]: Failed to start Suspend.
Nov 17 04:01:35 fuckup systemd[1]: Dependency failed for Suspend.
Nov 17 04:01:35 fuckup systemd[1]: Job suspend.target/start failed with result 'dependency'.
Nov 17 04:01:35 fuckup systemd[1]: Service sleep.target is not needed anymore. Stopping.
Nov 17 04:01:35 fuckup systemd[1]: Unit systemd-suspend.service entered failed state
Nov 17 04:01:35 fuckup systemd[1]: Stopping Sleep.
Nov 17 04:01:35 fuckup systemd[1]: Stopped target Sleep.
Schau ich mir die Sache an:
cat /usr/lib/systemd/system/systemd-suspend.service
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Suspend
Documentation=man:systemd-suspend.service(8)
DefaultDependencies=no
Requires=sleep.target
After=sleep.target
[Service]
Type=oneshot
ExecStart=/usr/lib/systemd/systemd-sleep suspend
Aha! na dann:
# /usr/lib/systemd/systemd-sleep suspend
/usr/lib/systemd/system-sleep/notify-upower.sh exited with exit status 1.
Suspending system...
System resumed.
hmm…
cat /usr/lib/systemd/system-sleep/notify-upower.sh
#!/bin/bash
[ "$1" = "post" ] && exec /usr/bin/dbus-send \
--system --type=signal \
--dest=org.freedesktop.UPower \
/org/freedesktop/UPower \
org.freedesktop.UPower.Resuming
Und nun komm ich nicht weiter. Sind ja irgendwie zwei Baustellen - Rechte für den user
- Funktionalität im Ganzen