udisks not installed by default on xubuntu, xfce4-power-manager can't spindown hardrives

Bug #1182167 reported by abhinandh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xfce4 Power Manager
Won't Fix
Wishlist
xfce4-power-manager (Debian)
Fix Released
Unknown
xfce4-power-manager (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Hi,
On a fresh install if Xubuntu 13.04, I find that udisks isn't installed by default and so xfce4-power-manager won't spin down hardisks (the option is greyed out).
Is there a reason behind this? Does xubuntu use another mechanism like laptop-mode-tools to spin down HDD's?
Sorry, I'm quite new to xubuntu (not to linux though).

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: xfce4-power-manager 1.2.0-1ubuntu2
ProcVersionSignature: Ubuntu 3.8.0-21.32-generic 3.8.8
Uname: Linux 3.8.0-21-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Mon May 20 14:04:45 2013
InstallationDate: Installed on 2013-05-19 (0 days ago)
InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Release amd64 (20130423.1)
MarkForUpload: True
SourcePackage: xfce4-power-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Olof Kindgren (flamingolof) wrote :

udisks1 seems to be deprecated in favor of udisks2.

xfce4-power-manager uses udisks for spinning down disks with Drive(un)SetAllSpindownTimeouts after asking for permissions with policykit from org.freedesktop.udisks.drive-set-spindown

This should be replace with the udisks2 equivalents

Revision history for this message
In , Samuli Suominen (ssuominen) wrote :

+1, last UDisks1 release was over year ago and git branch is nearly dead too.

Final UDisks2 is out and this is the only component in Xfce requiring the old version.

Revision history for this message
In , Samuli Suominen (ssuominen) wrote :

(In reply to comment #0)
> This should be replace with the udisks2 equivalents

(latest) gnome-disk-utility should have spindown support to look example from:

https://git.gnome.org/browse/gnome-disk-utility/
http://ftp.gnome.org/pub/gnome/sources/gnome-disk-utility/

likely related too for conversion:

http://udisks.freedesktop.org/docs/latest/gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.Configuration

it's the apm settings that control spindown

(thanks to people in #systemd for hinting to right direction)

Revision history for this message
abhinandh (abhinandh) wrote :
abhinandh (abhinandh)
description: updated
Revision history for this message
In , Pablo Lezaeta (jristz) wrote :

yes, as 2013-jun this is the only package that I have that requiere explicity udisks1

in fact e17 , udiskie, libfm and THIS are the only ones that explicity need udisks1 in my distro

what is the status of this feature request actually??

Revision history for this message
Pierrat (thepierrats) wrote :

I'm reasonably certain this issue is preventing my laptop from going to suspend or hibernate after x minutes (setting in power manager). pm-suspend WORKS, dbus WORKS, so the problem narrows down to xfce4-power-manager.

xfce4-power-manager --debug gives me this:

(xfce4-power-manager:7404): xfce4-power-manager-WARNING **: 'CheckAuthorization' failed with Action org.freedesktop.udisks.drive-set-spindown is not registered
TRACE[xfpm-polkit.c:455] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.udisks.drive-set-spindown is authorized=FALSE
TRACE[xfpm-disks.c:170] xfpm_disks_get_is_auth_to_spin(): Is auth to spin down disks : 0

Xubuntu has udisks2 installed, not udisks, so it seems xfce4-power-manager should be updated to support udisks2.

uname -a:
Linux Dell-D600 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686 i686 i686 GNU/Linux

Revision history for this message
In , Viking-coyote (viking-coyote) wrote :

Is it fixed?

Revision history for this message
In , Samuli Suominen (ssuominen) wrote :

From xfce4-power-manager-1.3.0:

$ grep -r -i udisks *
README: - UDisks 1.0.0 or above (optional).
src/xfpm-disks.c: action_id = "org.freedesktop.udisks.drive-set-spindown";
src/xfpm-disks.c: "org.freedesktop.UDisks",
src/xfpm-disks.c: "/org/freedesktop/UDisks",
src/xfpm-disks.c: "org.freedesktop.UDisks");

No, it's not fixed. Still using UDisks1 instead of UDisks2 for spinning down the disks. Been the only package using UDisks1 on my system for past ~2 years.

Changed in xfce4-power-manager:
importance: Unknown → Wishlist
status: Unknown → Confirmed
Changed in xfce4-power-manager (Debian):
status: Unknown → New
Revision history for this message
Jackson Doak (noskcaj) wrote :

Upstream dropped udisks support in the most recent release

Changed in xfce4-power-manager (Ubuntu):
status: New → Won't Fix
Revision history for this message
In , Simon Steinbeiß (ochosi) wrote :

We've removed the spin-down feature from xfpm, so this won't be fixed.

Changed in xfce4-power-manager:
status: Confirmed → Won't Fix
Changed in xfce4-power-manager (Debian):
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.