On Thu 24. Jan - 02:33:43, Michael Biebl wrote:
> Hi,
>
> I tried to get powersave 0.15.19 (for which unfortunately no official
> tarball exists, had to extract it from the SUSE srpm) running for Debian.
> The current solution with kpowersave 0.7 and powersave 0.14.x is
> suboptimal, as they both don't really work nicely together.
>
> The versions I used are
> liblazy 0.2
> powersave 0.15.9
> hal 0.5.10 (built with CK/PK support)
> PolicyKit 0.7
> ConsoleKit 0.2.3
>
> This combination doesn't seem to work, at least running powersave -u
> yields
> User is not allowed for hal-power-suspend according to PolicyKit.
> Although I can Suspend/Hibernate from within kpowersave without problems.
>
> It looks like user_binary/powersave.cpp still uses old-style calls to
> PK, e.g. liblazy_hal_is_caller_privileged("hal-power-hibernate")

Has this been removed lately from HAL? I'm currently using a git snapshot from
2007-12-12 and

dbus-send --system --print-reply --dest=org.freedesktop.Hal 
/org/freedesktop/Hal/devices/computer 
org.freedesktop.Hal.Device.IsCallerPrivileged string:hal-power-suspend 
string:":1.9044"

Still works (with guessing the dbus-connection);


> So, what's your plan with regard to powersave? Will it be adapted for PK
> 0.7? And why does user_binary/powersave.cpp contact PK at all for
> Suspend/Hibernate? I mean, HAL does this checks already.

Ok, this could be changed, then, however, it shouldn't be a problem to
check this beforehand.

> Wouldn't it make more sense, to simply call the HAL method, and if you
> get a PermissionDeniedByPolicy error, talks to PK, let the user
> authenticate and acquire the Suspend/Hibernate permission and try again.

Yes, I think this would work. Not sure if HAL already replied with
PermissionDeniedByPolicy to the time I wrote the corresponding code part.

> At least that's how I understood it should work [1].
> Is powersave still actively developed?

It's still maintained. Active development has stalled in the recent
past. Not because we completely developing away from it, but rather
because it is some sort of feature complete.

However, it will be replaced by something more unitized in the future
(combination of an own power management command line tool and ohm or
ppm). But this needs still to be decided.

Regards,
        Holger
_______________________________________________
powersave-devel mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/powersave-devel

Reply via email to