[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wakeup mess up function keys on powerbook



On Tue, Nov 25, 2003 at 01:43:45PM +0100, Michel Dänzer wrote:
> On Tue, 2003-11-25 at 09:18, Stefano Zacchiroli wrote:
> > 
> > BTW I also want to mimic apm.d behaviour for scripts located in
> > /etc/apm/*.d. I'm using the attached /etc/power/pwrctl-local, but I'm
> > not sure if the semantic I implemented is correct or not wrt to the
> > mapping of events between pmud and apm.
> 
> Neither am I, but here's what I'm using, FWIW:
> 
> function pwrctl_Core99() 
> {
> 	case "$1" in
> [...]
> 	sleep)
> [...]
> 		# Invoke APM scripts
> 		if [ -d /etc/apm/event.d ]; then
> 			run-parts --arg="suspend" --arg="resume" /etc/apm/event.d

Note that some package seem to install in /etc/apm/scripts.d. For example
ifplugd. I don't know what that is about, but you might want to add:

                       run-parts --arg="suspend" --arg="resume" /etc/apm/event.d

too.

Paul

-- 
Student @ Eindhoven                         | JID:   paul@luon.net
University of Technology, The Netherlands   | email: paulvt@debian.org
>>> Using the Power of Debian GNU/Linux <<< | GnuPG: finger paul@luon.net



Reply to: