Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pmud & 2.6.x
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
keeney
n00b
n00b


Joined: 20 Jun 2003
Posts: 45
Location: germany

PostPosted: Mon Jan 05, 2004 8:59 pm    Post subject: pmud & 2.6.x Reply with quote

hi!

i can't get pmud running with 2.6.0-r2 and 2.6.1_rc1-benh1 on my ibook 800mhz.

Jan 5 21:55:41 [pmud] pmud [treshold = 420, margin = 15] started
Jan 5 21:55:41 [pmud] fcntl(F_SETFL)
Jan 5 21:55:41 [pmud] daemon stopped (fcntl(F_SETFL))

i've tried several configurations but always the same :(

help!
_________________
Enjoy Noise!
Back to top
View user's profile Send private message
tbfr
n00b
n00b


Joined: 03 Jan 2004
Posts: 26

PostPosted: Tue Jan 06, 2004 10:36 am    Post subject: Reply with quote

you don't need pmud, it hasn't been updated for a long while. you can use pbbuttonsd to replace it. just set replace_pmud to yes in /etc/pbbuttonsd.conf and everything should work fine.

hope this helps.
Back to top
View user's profile Send private message
keeney
n00b
n00b


Joined: 20 Jun 2003
Posts: 45
Location: germany

PostPosted: Wed Jan 07, 2004 8:45 pm    Post subject: Reply with quote

thx!

pbbuttonsd works, but I need pmud to execute some scripts or remove modules before sleep-mode and I don't know how to manage this without pmud :/
_________________
Enjoy Noise!
Back to top
View user's profile Send private message
rt_clik
n00b
n00b


Joined: 18 Jun 2002
Posts: 70
Location: Rohnert Park, California, US

PostPosted: Wed Jan 07, 2004 10:39 pm    Post subject: Same difficulty... Reply with quote

Yep.

keeney wrote:
thx!

pbbuttonsd works, but I need pmud to execute some scripts or remove modules before sleep-mode and I don't know how to manage this without pmud :/


Same here. I've thrown in the towel for now, but would love to know if there's a way to extend pbbuttonsd to replicate (or replace) the pwrctrl.local functionality. Haven't yet tested with the 2.6 kernel on this, but with 2.4 the only way to maintain the health of the Firewire subsystem after sleep was to remove those modules during the sleep call, and reload them upon wake. That was the only reason I continued to use pmud once pbbuttonsd was able to replace other basic functions.
Back to top
View user's profile Send private message
rt_clik
n00b
n00b


Joined: 18 Jun 2002
Posts: 70
Location: Rohnert Park, California, US

PostPosted: Thu Jan 15, 2004 7:27 am    Post subject: script functionality in pbbuttonsd 0.5.7 Reply with quote

You can add scripts to run when your power profile changes in /etc/pbbuttonsd.conf:

Code:
...
Script_ProfChanged      = "/etc/power/pwrctl-pbbuttonsd %s"
...


Notice the '%s'. The man page says:

Quote:

Up to two '%s' could be placed in the command string. The first '%s'
would be replaced with the command word ('profile', 'sleep' or 'wakeup')
and the second with an info about the current powersource ('ac' or 'bat-
tery').


I just copied my old /etc/power/pwrctl-local file, and did some edits to it to make it make more sense in capturing just the 'sleep' and 'wakeup' power events:

Code:

#!/bin/bash
logger=/usr/bin/logger

# -----------------------------------------------------------------------------
# main
# -----------------------------------------------------------------------------
case "$1" in
sleep)
        /sbin/rmmod sbp2
        /sbin/rmmod raw1394
        /sbin/rmmod ohci1394
        /sbin/rmmod ieee1394
        /bin/say "I am going to sleep now. Goodnight."
        $logger -p daemon.info -t pwrctl-local "sleep $2"
;;
wakeup)
        /etc/init.d/ntp-client restart
        /sbin/modprobe ohci1394
        /sbin/modprobe raw1394
        /bin/say "You awoke me from sleep. I am feeling very refreshed."
        $logger -p daemon.info -t pwrctl-local "sleep $2"
;;
*)
        $logger -p daemon.error -t pwrctl-local "invalid arg $1 $2"
        exit 2
;;
esac

exit 0


I love it when a plan comes together.
Back to top
View user's profile Send private message
keeney
n00b
n00b


Joined: 20 Jun 2003
Posts: 45
Location: germany

PostPosted: Mon Jan 19, 2004 7:57 pm    Post subject: Reply with quote

hey, thank you!
that's exactly what i need!!! :)
_________________
Enjoy Noise!
Back to top
View user's profile Send private message
rt_clik
n00b
n00b


Joined: 18 Jun 2002
Posts: 70
Location: Rohnert Park, California, US

PostPosted: Mon Jan 19, 2004 8:08 pm    Post subject: Reply with quote

No problem. :)

If you are using speechd or festival on your system, I've found a need to put a `sleep 5` after the `/bin/say...` command in the sleep routine so that the machine finishes its sentence prior to going all the way to sleep. Probably would be true for anything you are running prior to sleep (especially towards the end of the command set) that takes longer than 2-3 seconds to complete. The wakeup routine works as is.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum