Date: Sun, 28 Jan 2007 20:01:01 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Lars Stokholm <lars.stokholm@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: rd.d/power_profile: dev.cpu.0.cx_supported doesn't exist Message-ID: <20070128190101.GA99290@slackbox.xs4all.nl> In-Reply-To: <45BCEAB8.60602@gmail.com> References: <45BC1AF1.8070208@gmail.com> <20070128102805.GA26802@slackbox.xs4all.nl> <45BC85A0.1000809@gmail.com> <20070128115802.GA87910@slackbox.xs4all.nl> <45BCC724.2080604@gmail.com> <20070128172452.GA97123@slackbox.xs4all.nl> <45BCE61B.5050700@gmail.com> <45BCEAB8.60602@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, Jan 28, 2007 at 07:26:00PM +0100, Lars Stokholm wrote:
>=20
> Damnit, I seem to be making one mistake after another, with no end to=20
> it. I'm truely sorry for wasting your time.=20
Been there, done that. A lot of times when I had a problem with the base
system (from 5.3-RELEASE uptil now) it turned out to be "pilot error".
> Let's step back to where I=20
> started; dev.cpu.0.cx_supported *does* exist:
>=20
> # sysctl dev.cpu.0.cx_supported
> dev.cpu.0.cx_supported: C1/0
>=20
> And here's the problem; this is what I get when I fire up FreeBSD:
>=20
> ...
> Starting ums0 moused:.
> hw.acpi.cpu.cx_lowest: C1
> sysctl: hw.acpi.cpu.cx_lowest: Invalid argument
> Mounting NFS file systems:.
> ...
>=20
> Taking the power_profile into account, I guess it comes something=20
> similar to:
>=20
> # sysctl hw.acpi.cpu.cx_lowest=3DC1/0
I'm not sure that this is what is being called. The '/0' is removed by awk:
$ sysctl -n hw.acpi.cpu.cx_supported
C1/0
$ sysctl -n hw.acpi.cpu.cx_supported |awk '{ print "C" split($0, a) }' - 2>=
/dev/null
C1
> hw.acpi.cpu.cx_lowest: C1
> sysctl: hw.acpi.cpu.cx_lowest: Invalid argument
Works fine here:
# sysctl hw.acpi.cpu.cx_lowest=3DC1/0
hw.acpi.cpu.cx_lowest: C1 -> C1
> So, finally, the question now is why I get the "invalid argument".
The only thing I can think of is that you've defined
performance_cx_lowest or economy_cx_lowest to some bogus value in rc.conf.
Roland
--=20
R.F.Smith http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
--CE+1k2dSO48ffgeK
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (FreeBSD)
iD8DBQFFvPLtEnfvsMMhpyURAqsdAJ9M7ZnSP/2HlXHQVvEjeOVwrUXXvACfe0xy
cnf13UqFKDz+7hagg4VUOyU=
=h5jE
-----END PGP SIGNATURE-----
--CE+1k2dSO48ffgeK--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070128190101.GA99290>
