Bug 223190 - devel/dbus: Error org.freedesktop.DBus.Error.UnknownMethod: No such method 'Suspend'
Summary: devel/dbus: Error org.freedesktop.DBus.Error.UnknownMethod: No such method 'S...
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-23 16:02 UTC by Piotr Kubaj
Modified: 2020-05-25 08:29 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2017-10-23 16:02:22 UTC
I'm trying to make my laptop suspend. I run 11.1-STABLE with KDE. I can suspend just fine with zzz, but can't do it from KDE.

Running:
qdbus org.kde.kded /org/freedesktop/PowerManagement CanSuspend
prints:
true

Running:
qdbus org.kde.kded /org/freedesktop/PowerManagement Suspend
only locks the sceen.

I have traced the problem to DBUS. When I run:
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend, I get:
Error org.freedesktop.DBus.Error.UnknownMethod: No such method 'Suspend'
Comment 1 Gleb Popov freebsd_committer freebsd_triage 2020-04-25 13:30:28 UTC
According to docs [1], nothing in UPower implements Suspend method.

However, there is local.org_kde_powerdevil service, which has org/freedesktop/PowerManagement object, which implements "Suspend". Does that suit you?

[1] https://upower.freedesktop.org/docs/UPower.html