Summary: | Add sleep type information to Sleeping signal | ||
---|---|---|---|
Product: | upower | Reporter: | Michael Terry <michael.terry> |
Component: | general | Assignee: | Richard Hughes <richard> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
See Also: | https://launchpad.net/bugs/578542 | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Adds signal arg |
Description
Michael Terry
2011-03-30 07:34:48 UTC
Yup, see http://lists.freedesktop.org/archives/devkit-devel/2011-March/001054.html And yes, adding an argument will upset people. Ah, sorry, searched bugs, but didn't think about the mailing list. What about a second signal, named "SleepingFull" or something? SleepingFull might be best, I though perhaps Sleeping2, but both seem non-ideal. Got any better ideas? Richard. The only alternative to a second signal I can think of is a query method like GetCurrentSleepType(), but that's a whole 'nother round trip eating into the precious second before suspend (I don't know how much of a concern that is). Oh, I think you meant naming ideas? SleepingWithType? (In reply to comment #4) > The only alternative to a second signal I can think of is a query method like > GetCurrentSleepType(), but that's a whole 'nother round trip eating into the > precious second before suspend (I don't know how much of a concern that is). Eek. RTT is probably too high for that. Even setting a property might be racy, I'm not sure. A PropertyChanged signal in GDBus is run in a new thread, and I'm not sure how it works when we're using the clunky dbus-glib. At the moment I'm erring for ::SleepingKind and ::ResumingKind as we call things kinds internally (rather than type, which upsets glib sometimes). The Sleeping signal is deprecated, and removed in my branch. We won't get a new signal. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.