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

Re: How to manager different network environments?



On Sun, 2002-10-06 at 00:34, Derek Broughton wrote:
> 
> > Unfortunately the ACPI handling is not fully mature yet, so the script
> > doesn't do a run-parts... on some directory to let other packages more
> > easily hook into it.  (Hmmmm... maybe I feel a wishlist bug coming on...
> > :-)
> >
> 
> Well, it's pretty trivial.
> 
> The default.sh as distributed doesn't do anything except shut down cleanly when
> the power button is pressed.  Everything else is up to the individual user.
> 
> So, resume your PC, go to the log and look at exactly what message was sent, go
> back to default.sh add a line in the "case $1" statement to handle whatever
> value is in the first (and possibly second) word of the event and do run-parts
> on /etc/acpi/resume.d
> 
>  Then send a diff to the maintainer :-)  The problem, and likely reason why it
> hasn't been done, is that it's difficult for acpid to know what all the values
> in the event are.  As you see in the current default.sh, it already has two
> options for the power button "power" and "PBTN", but the real value is defined
> in the machine's DSDT table (in BIOS - mine is PWRF).  I'd do it myself, except
> that I can't get suspend/resume working on my machine...

Sounds to me like you are first telling me it's trivial, and then going
on to explain just how _non_ trivial it actually is!

:-)

I realise roughly what the patch would look like, but the devil is in
the details.  Personally I couldn't see myself providing a patch like
that until I had a laptop that forced me to use ACPI, or if ACPI matured
enough to give me better functionality in other areas - the ability to
control fans, read sensors and so forth.  My current beast is 18 months
old and works very well with APM.

Maybe someone else will have that itch and scratch it before I even get
bitten :-)

Cheers,
					Andrew.
-- 
---------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/         PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201     MOB: +64(21)635-694    OFFICE: +64(4)499-2267
           Survey for nothing with http://survey.net.nz/ 
---------------------------------------------------------------------



Reply to: