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

pbbuttonsd and laptop-mode start sequence



I'm running Debian kernel 2.6.8-powerpc, on a 1998 PowerBook G3 Series
"Wallstreet / PDQ."

I've been trying to figure out why the hard drive would spin
constantly, regardless of what I do with the laptop-mode.conf
settings. Based on advice I read somewhere I installed metalog,
removed sysklogd and klogd, put the noatime parameter in /etc/fstab,
and tweaked my pbbuttonsd & laptop-mode settings.

Even after all that, the drive never spun down AT ALL. At some point I
manually restarted /etc/init.d/laptop-mode, and after a delay, the
drive spun down. SO on a whim I changed the order they start up in
/etc/rc2.d by renaming S20laptop-mode to S21laptop-mode. This makes
S20pbbuttonsd start first and THEN S21laptop-mode.

Now my drive spins down! Great! Except I don't understand why... it
seems like the loading order should be the other way around.

I've also noticed that it doesn't seem to matter what spindown values
I put into laptop-mode.conf -- I have to manually set hdparm -S to
adjust the default spindown time.

I have it working better now, but I'd like to be sure I have it right.
Could another script or daemon override laptop-mode settings, or do I
have something broken?

Furthermore, I have apm_emu in /etc/modules and lsmod says something
is using it, though I was under the impression that pbbuttonsd does
not need it. What is using it?

[I started to attach the contents of my /etc/rc2.d/ directory, output
from lsmod, and the contents of /etc/modules,
/etc/laptop-mode/laptop-mode.conf, and /etc/pbbuttonsd.conf -- but I
decided I would hold off on the listings until someone asked for
something more specific!]



Reply to: