Use logind for suspend/hibernate/poweroff/reboot

Bug #1175810 reported by Iain Lane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cairo-Dock Plug-ins
Fix Released
High
Matthieu Baerts
cairo-dock-plug-ins (Ubuntu)
Fix Released
Undecided
Matthieu Baerts

Bug Description

As per the title - ConsoleKit is deprecated, as well as UPower's functionality for suspending and hibernating the system. It'd be great if you could port to the modern logind for this. The D-Bus interface is-

  http://www.freedesktop.org/wiki/Software/systemd/logind

In the meantime I'm going to upload the plugins to Ubuntu to add depdenencies on UPower and ConsoleKit.

Cheers!

Revision history for this message
Fabounet (fabounet03) wrote : Re: [Cairo-dock-team] [Bug 1175810] [NEW] Use logind for suspend/hibernate/poweroff/reboot

Yep it's planned already :-)
On the Ubuntu side, I think consolekit is still used, do you know if they
expect to switch soon ?

2013/5/3 Iain Lane <email address hidden>

> Public bug reported:
>
> As per the title - ConsoleKit is deprecated, as well as UPower's
> functionality for suspending and hibernating the system. It'd be great
> if you could port to the modern logind for this. The D-Bus interface is-
>
> http://www.freedesktop.org/wiki/Software/systemd/logind
>
> In the meantime I'm going to upload the plugins to Ubuntu to add
> depdenencies on UPower and ConsoleKit.
>
> Cheers!
>
> ** Affects: cairo-dock-plug-ins
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Plug-ins.
> https://bugs.launchpad.net/bugs/1175810
>
> Title:
> Use logind for suspend/hibernate/poweroff/reboot
>
> Status in Cairo-Dock: Plug-ins:
> New
>
> Bug description:
> As per the title - ConsoleKit is deprecated, as well as UPower's
> functionality for suspending and hibernating the system. It'd be great
> if you could port to the modern logind for this. The D-Bus interface
> is-
>
> http://www.freedesktop.org/wiki/Software/systemd/logind
>
> In the meantime I'm going to upload the plugins to Ubuntu to add
> depdenencies on UPower and ConsoleKit.
>
> Cheers!
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-plug-ins/+bug/1175810/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Iain Lane (laney) wrote :

On Fri, May 03, 2013 at 09:18:24PM -0000, Fabounet wrote:
> Yep it's planned already :-)
> On the Ubuntu side, I think consolekit is still used, do you know if they
> expect to switch soon ?

The switch is already taking place in saucy - hence why I added the
depends; since you make use of the interface, and can't assume that
users will have it any more, you should depend on it. It should be
removed if/when you port. :-)

Cheers!

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
Fabounet (fabounet03) wrote :

ok well, we have a clear goal now, good to know :-)
thank you for the details, I'll mark the corresponding blueprint as high
priority for the 3.3

2013/5/3 Iain Lane <email address hidden>

> On Fri, May 03, 2013 at 09:18:24PM -0000, Fabounet wrote:
> > Yep it's planned already :-)
> > On the Ubuntu side, I think consolekit is still used, do you know if they
> > expect to switch soon ?
>
> The switch is already taking place in saucy - hence why I added the
> depends; since you make use of the interface, and can't assume that
> users will have it any more, you should depend on it. It should be
> removed if/when you port. :-)
>
> Cheers!
>
> --
> Iain Lane [ <email address hidden> ]
> Debian Developer [ <email address hidden> ]
> Ubuntu Developer [ <email address hidden> ]
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Plug-ins.
> https://bugs.launchpad.net/bugs/1175810
>
> Title:
> Use logind for suspend/hibernate/poweroff/reboot
>
> Status in Cairo-Dock: Plug-ins:
> New
>
> Bug description:
> As per the title - ConsoleKit is deprecated, as well as UPower's
> functionality for suspending and hibernating the system. It'd be great
> if you could port to the modern logind for this. The D-Bus interface
> is-
>
> http://www.freedesktop.org/wiki/Software/systemd/logind
>
> In the meantime I'm going to upload the plugins to Ubuntu to add
> depdenencies on UPower and ConsoleKit.
>
> Cheers!
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-plug-ins/+bug/1175810/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team
> More help : https://help.launchpad.net/ListHelp
>

Changed in cairo-dock-plug-ins:
milestone: none → 3.2.99.beta
status: New → Triaged
importance: Undecided → High
assignee: nobody → Fabounet (fabounet03)
Revision history for this message
Matthieu Baerts (matttbe) wrote :

Hello,

logind is now used by default! :)
If logind is available, the dock will use it first to check if the computer can poweroff, reboot, suspend, hibernate and hybrid-sleep. => https://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins/plug-ins/revision/2822

In other words, it means that if logind is available ConsoleKit is no longer used as well as UPower's functionalities for suspending and hibernating the system (but ConsoleKit is still supported for older systems).

Changed in cairo-dock-plug-ins:
assignee: Fabounet (fabounet03) → Matthieu Baerts (matttbe)
milestone: 3.2.99.beta → 3.2.99.alpha
status: Triaged → Fix Committed
Changed in cairo-dock-plug-ins:
status: Fix Committed → Fix Released
Changed in cairo-dock-plug-ins (Ubuntu):
assignee: nobody → Matthieu Baerts (matttbe)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cairo-dock-plug-ins - 3.3.0-0ubuntu1

---------------
cairo-dock-plug-ins (3.3.0-0ubuntu1) saucy; urgency=low

  * New upstream release.
  * Detailed Upstream ChangeLog (beta 2 -> release)
    - Dbus: don't notify of startup if the applet is already controling a
      window
    - Dialogs: tooltip view: fixed the position of the widget inside the
      dialog when it's placed on top of the screen
    - Folder: watch for drop events onto the docks only
    - GMenu:
      - Apps: set the desktop environment to correctly exclude apps
      - Search: When there is no result, display 'Launch this command'
      - Search: launch app: do not restrict to the left click
      - Search: match: display name: locate a substring instead of compare
        the first chars
    - Indicator-Generic: forced the 'data' to be a GldiModuleInstance
    - logout: select shutdown menu item: do not create a list and iter all
      menu items, just save the pointer
    - Messaging Menu: Indicator3: detach the icon at startup: the icon is
      inserted when the entry will be added
    - Messaging Menu: with old versions of libindicator: fixed tiny memory
      leaks
    - po: updated translations
    - Switcher: correctly update the icon by listening more signals
    - Switcher: fixed the drawing of the desktop name in the desklet when
      it's larger than the desklet
    - Terminal: when dropped something in the terminal, take the data and
      not only the text + give the focus just after
    - All: menu functions have been renamed in libgldi
    - All: remove useless g_print
  * Some bugs have been fixed:
    - logout: UPower: invalid fastbin entry LP: #1212981
    - logout: Use logind for suspend/hibernate/poweroff/reboot LP: #1175810
    - keyboard: cairo-dock crashes on keyboard layout swtcher LP: #668061
    - keyboard: Cairo-dock is unable to get CAPS Lock and NumLck values
      LP: #476842
    - quick-browser: Error Message LP: #660261
    - recent-events: Move from zeitgeist-1.0 to zeitgeist-2.0 LP: #1197569
  * debian/control: bumped Cairo-Dock (core) version
 -- Matthieu Baerts (matttbe) <email address hidden> Fri, 04 Oct 2013 15:11:09 +0200

Changed in cairo-dock-plug-ins (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.