Is there anythins about resume?

View: New views
8 Messages — Rating Filter:   Alert me  

Is there anythins about resume?

by Luna Luan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I want to be notified when the system get hibernate or resume.
since the Hal doesn't emit any hibernate/suspend signals
so i modified the "/usr/lib/hal/scripts/hal-system-power-*" to make it send a signal to dbus when hibernate/suspend

but what about the  "resume" event,because i didn't find any script related to the resume event, and neither in the hal interface api.

how can i be notified when the system get resume from hinernate/suspend?
any solutions?

Thanks a lot!

Br.

Luna

Re: Is there anythins about resume?

by Michael Biebl-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/10 Luna Luan <luanying@...>:
>
> how can i be notified when the system get resume from hinernate/suspend?
> any solutions?

Write a hook for pm-utils.

Cheers,
Michael


--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
_______________________________________________
hal mailing list
hal@...
http://lists.freedesktop.org/mailman/listinfo/hal

Re: Is there anythins about resume?

by Bugzilla from arvidjaar@mail.ru :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 10 of September 2009 05:19:18 Luna Luan wrote:

> Hi all,
>
> I want to be notified when the system get hibernate or resume.
> since the Hal doesn't emit any hibernate/suspend signals
> so i modified the "/usr/lib/hal/scripts/hal-system-power-*" to make
>  it send a signal to dbus when hibernate/suspend
>
> but what about the  "resume" event,because i didn't find any script
>  related to the resume event, and neither in the hal interface api.
>
> how can i be notified when the system get resume from
>  hinernate/suspend? any solutions?
>
Today most systems are probably using pm-tools, so the most obvious
place would be to add it there. pm-tools support initscript-like
extensions to execute arbitrary actions on suspend/resume.


_______________________________________________
hal mailing list
hal@...
http://lists.freedesktop.org/mailman/listinfo/hal

signature.asc (205 bytes) Download Attachment

Re: Is there anythins about resume?

by Luna Luan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you so much for being so helpful,but would u pls explain detailly?
sorry but i'm not quite understand......

Luna


Michael Biebl-2 wrote:
2009/9/10 Luna Luan <luanying@huawei.com>:
>
> how can i be notified when the system get resume from hinernate/suspend?
> any solutions?

Write a hook for pm-utils.

Cheers,
Michael


--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

Re: Is there anythins about resume?

by Bugzilla from rw@rlworkman.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 9 Sep 2009 19:50:42 -0700 (PDT)
Luna Luan <luanying@...> wrote:

> Michael Biebl-2 wrote:
> >
> > 2009/9/10 Luna Luan <luanying@...>:
> >>
> >> how can i be notified when the system get resume from
> >> hinernate/suspend? any solutions?
> >
> > Write a hook for pm-utils.
> >
>
> Thank you so much for being so helpful,but would u pls explain
> detailly? sorry but i'm not quite understand......

First, please don't top-post.

Second, have a look at this:
http://slackware.osuosl.org/slackware-13.0/source/ap/pm-utils/README.SLACKWARE

It really doesn't matter if you're on Slackware or not; except for
the bits about lilo, the information should be generic enough.

-RW


_______________________________________________
hal mailing list
hal@...
http://lists.freedesktop.org/mailman/listinfo/hal

signature.asc (205 bytes) Download Attachment

Re: Is there anythins about resume?

by Luna Luan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Dear guys:

i've added a hook in /etc/pm/sleep.d/ which is as followed:
then i make the pc hibernate and wake up
question is:
in the "/root/Desktop/" i got only "hibernate.txt" and "thaw.txt"
why can't i got the "resume.txt"
what's the difference between "thaw" and "resume"

any instructions would be much appreciate

Br

Luna


--------------------------------------------------------
#!/bin/bash
case $1 in
    hibernate)
        touch /root/Desktop/hibernate.txt
        ;;
    suspend)
        touch /root/Desktop/suspend.txt
        ;;
    thaw)
        touch /root/Desktop/thaw.txt
        ;;
    resume)
        touch /root/Desktop/resume.txt
        ;;
    *)  touch /root/Desktop/nothing.txt
        ;;
esac
--------------------------------------------------------

Re: Is there anythins about resume?

by Danny Kukawka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Donnerstag, 10. September 2009, Luna Luan wrote:

> Dear guys:
>
> i've added a hook in /etc/pm/sleep.d/ which is as followed:
> then i make the pc hibernate and wake up
> question is:
> in the "/root/Desktop/" i got only "hibernate.txt" and "thaw.txt"
> why can't i got the "resume.txt"
> what's the difference between "thaw" and "resume"
>
> any instructions would be much appreciate

You better discuss pm-utils related stuff at:
 
pm-utils@...

Danny
_______________________________________________
hal mailing list
hal@...
http://lists.freedesktop.org/mailman/listinfo/hal

Re: Is there anythins about resume?

by Luna Luan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

okay,thanks to all!!

You better discuss pm-utils related stuff at:
 
pm-utils@lists.freedesktop.org

Danny
_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal