Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jun 2010 14:39:13 +0200
From:      David DEMELIER <demelier.david@gmail.com>
To:        Ian Smith <smithi@nimnet.asn.au>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: Automatic shutdown with devd.
Message-ID:  <AANLkTik8c-9CYk0cjuBZA3ja2Q5b6P8jrXxExJxLBJ7X@mail.gmail.com>
In-Reply-To: <20100603141648.E27982@sola.nimnet.asn.au>
References:  <20100601120131.A070C10657ED@hub.freebsd.org> <20100602001405.T27982@sola.nimnet.asn.au> <AANLkTilLGKhJ5MuzgDopTNYwh2FKo1Mbnrph_MXnVGpe@mail.gmail.com> <20100603141648.E27982@sola.nimnet.asn.au>

next in thread | previous in thread | raw e-mail | index | archive | help
--000325553f0678b7ab04881f7eeb
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

2010/6/3 Ian Smith <smithi@nimnet.asn.au>:
> On Tue, 1 Jun 2010, David DEMELIER wrote:
> =C2=A0> 2010/6/1 Ian Smith <smithi@nimnet.asn.au>:
> =C2=A0> > In freebsd-questions Digest, Vol 313, Issue 4, Message: 26
> =C2=A0> > On Tue, 1 Jun 2010 10:55:08 +0200 David DEMELIER <demelier.davi=
d@gmail.com> wrote:
> [..]
> =C2=A0> > =C2=A0> Is there a way to make this conditional to do only if t=
he laptop is
> =C2=A0> > =C2=A0> not charging, AC plugged in ?
> =C2=A0> >
> =C2=A0> > Your script can check whether the AC power is on with:
> =C2=A0> >
> =C2=A0> > =C2=A0 =C2=A0 =C2=A0 =C2=A0AC=3D`sysctl -n hw.acpi.acline`
> =C2=A0> > =C2=A0 =C2=A0 =C2=A0 =C2=A0if [ $AC =3D 1 ]; then
> =C2=A0> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0exit 0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# or whatever, when on AC power
> =C2=A0> > =C2=A0 =C2=A0 =C2=A0 =C2=A0elif [ $AC =3D 0 ]; then
> =C2=A0> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # do whatever when on battery
> =C2=A0> > =C2=A0 =C2=A0 =C2=A0 =C2=A0else
> =C2=A0> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0: =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # AC/Battery state unknown ..
> =C2=A0> > =C2=A0 =C2=A0 =C2=A0 =C2=A0fi
> =C2=A0> >
> =C2=A0> > You could try just logging all state changes for a while; from =
critical
> =C2=A0> > charging to charging to high to discharging to critical dischar=
ging, I
> =C2=A0> > think that's the lot .. you can also check hw.acpi.battery.life=
 etc.
> =C2=A0> >
> =C2=A0>
> =C2=A0> Okay I will try a script like this one.
>
> Let us know how it goes; it's clearer now from below why you need this.
>
> =C2=A0> > However, your system should do an 'emergency suspend' on critic=
al low
> =C2=A0> > battery anyway .. usually set at 1% capacity but some BIOS will=
 let you
> =C2=A0> > adjust that (see acpiconf -i0). =C2=A0Only if suspend/resume wo=
rks of course.
> =C2=A0> >
> =C2=A0>
> =C2=A0> It would be great if suspend/resume would works yes ! For the mom=
ent
> =C2=A0> it's not the case :
> =C2=A0>
> =C2=A0> http://www.freebsd.org/cgi/query-pr.cgi?pr=3Di386/146715
>
> Ah yes. =C2=A0I guess you might have to try the freebsd-acpi list about t=
hat,
> after reading the ACPI debugging section of the Handbook, providing your
> dmesg and probably an acpidump of your ASL as shown there.
>
> I don't know the current status of suspend/resume on amd64, nor anything
> about your HP Probook 4510s. =C2=A0The freebsd-mobile list might be a bet=
ter
> place to start, at least to ask whether anyone else shares your problem?
>
> cheers, Ian

Okay, the HP Probook has some problems with ACPI suspend/resume now. I
attached the acpidump -dt.

As described in the PR, the resume works but seems to freeze (cannot
shutdown by pressing the power button) and the screen stays off.

Cheers

--=20
Demelier David

--000325553f0678b7ab04881f7eeb--



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