Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 1998 11:51:26 -0600
From:      Nate Williams <nate@mt.sri.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        Nate Williams <nate@mt.sri.com>, rob@remarque.org, freebsd-mobile@FreeBSD.ORG
Subject:   Re: weird sound problem with tp 560 
Message-ID:  <199804281751.LAA28563@mt.sri.com>
In-Reply-To: <199804281637.JAA00502@dingo.cdrom.com>
References:  <199804281613.KAA28059@mt.sri.com> <199804281637.JAA00502@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > > the other nit i have, is that when i went from PAO -> vanilla freebsd,
> > > i noticed suspends under vanilla freebsd seem to use more battery
> > > power.  i have two PCCARDs shoved into the machine, pretty much at all
> > > times.  
> > 
> > That's weird.  It certainly shouldn't do that, and I don't know what
> > would be causing that.
> 
> Are we perhaps not powering the cards off all the way?

>From /sys/pccard.c:
static int
slot_suspend(void *arg)
{
        struct slot *slt = arg;

        /* This code stolen from pccard_event:card_removed */
        if (slt->state == filled) {
                int s = splhigh();
--->            disable_slot(slt);
                slt->state = suspend;
                splx(s);
                printf("Card disabled, slot %d\n", slt->slotnum);
        }
---->   slt->ctrl->disable(slt);
        return (0);
}

Note the lines I point to. We disable the slot, as well as the
controller at suspend time.  There isn't much more I could disable. :)



Nate

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804281751.LAA28563>