On 13.04.2012 11:14, Harald Dunkel wrote: > On 04/13/12 10:07, Michael Biebl wrote: > >> You can certainly do that. That they are called by upower doesn't mean you >> can't call those scripts from the command line. > > > Thats a misunderstanding. I would like to use upower on the > command line to send a hibernate/suspend command to upowerd.
Why do you want to do that? What exactly do you want to do? Could you describe that in a few use cases. > AFAIK _upowerd_ is supposed to call pm-utils. Some XML files > describe the rules this procedure has to follow. upower provides mechanisms, not policy, like what to do on low-power, lid-close, any-other-type-of-power-event. Those are triggered by a policy agent running in the desktop session, like gnome-power-manager. I'm only guessing here, since it is not clear to me what you actually want, but maybe it is such a powermanagement policy agent for the console session. But that also means you need to setup (manually) a proper dbus session, a ConsoleKit and PolicyKit context on the console. You are probably better served with a script suite like acpi-support, which hooks into acpid and triggeres scripts on certain ACPI events. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

