On Wed, 24 Dec 2008, Bart Samwel wrote:

> Hi Christian,
>
> Cristian Ionescu-Idbohrn wrote:
> > Isn't this more sensical?
> >
> > --- 90-hdparm.sh~   2008-08-19 21:59:10.000000000 +0200
> > +++ 90-hdparm.sh    2008-12-23 17:18:23.000000000 +0100
> > @@ -12,7 +12,7 @@
> >  DO_HDPARM=y
> >  if [ -e /usr/sbin/laptop_mode ] ; then
> >    LMT_CONTROL_HD_POWERMGMT=$(. /etc/laptop-mode/laptop-mode.conf && echo 
> > "$CONTROL_HD_POWERMGMT")
> > -  if [ "$LMT_CONTROL_HD_POWERMGMT" != 0 ] ; then
> > +  if [ "$LMT_CONTROL_HD_POWERMGMT" != 1 ] ; then
> >      # Laptop mode controls hdparm -B settings, we don't.
> >      DO_HDPARM=n
> >    fi
>
> Well, no. The logic is like this: if LMT_CONTROL_HD_POWERMGMT is
> nonzero, then *we* shouldn't do it because laptop mode tools already
> does this. So we set our flag to N if the LMT flag is set to nonzero!

I see...  Hmm...  That's some sort of catch 22 situation then.
If CONTROL_HD_POWERMGMT=0, acpi-support will do hd power management.
If CONTROL_HD_POWERMGMT=1, laptop-mode will do hd power management.

I have both the acpi-support and laptop-mode-tools packages installed, and
I don't want any of these to do hd power management.  I don't see how I
can achieve that by just modifying the flag value in
/etc/laptop-mode/laptop-mode.conf.

The reason for wanting to stop 'hdparm -B 254' from executing is that it
_some times_ it locks up my laptop at boot, when on AC.  The only way to
get around is to power cycle and reboot.  I don't like that.  I didn't
figure out yet what to blame.


Cheers,

-- 
cii



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to