Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Dec 2004 12:13:10 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-hackers@freebsd.org
Cc:        security@revolutionsp.com
Subject:   Re: Unable to get APM working -- help!
Message-ID:  <200412261213.46361.doconnor@gsoft.com.au>
In-Reply-To: <62945.81.84.175.77.1104011752.squirrel@81.84.175.77>
References:  <62903.81.84.175.77.1104000639.squirrel@81.84.175.77> <200412261043.30020.doconnor@gsoft.com.au> <62945.81.84.175.77.1104011752.squirrel@81.84.175.77>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1515442.EHiTLc3FYt
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sun, 26 Dec 2004 08:25, security@revolutionsp.com wrote:
> Indeed, I do have a /dev/apm with APM off and ACPI on, but..
>
> APM version: 1.2
> APM Management: Enabled
> AC Line status: unknown
> Battery Status: charging
> Remaining battery life: invalid value (0xffffffff)
> Remaining battery time: unknown
> Number of batteries: 0
>
> # acpiconf -i0
> acpiconf: get battery info (0) failed: Device not configured
>
> o CPU Frequency: 1600ghz
> o Battery left : -1%
> o Battery time : -1 hrs
> o Wireless stat: Radio is ON

Try acpiconf -i 1

> Neither APM or acpiconf or estctrl (it's a port) are doing their jobs.
> estctrl was correctly lowering the CPU clock to 600ghz, when there was no

I prefer acpi_pcc http://www.spa.is.uec.ac.jp/~nfukuda/software/ which I=20
believe does the same thing but only needs a kernel module to work.

> load, and maxing it (1.6GHz) under load, but with ACPI off. With ACPI on
> it's always at 1.6GHz. Plus, I've noticed the 'top' CPU values are plain
> wrong. I was compiling thunderbird, xmms, and firefox and it showed all
> processes with 0.00% CPU.

Do your kernel and userland match?

> Are there any battery status/etc KDE applications? I've searched, and
> found none.

There is a klaptop system tray doodad which works for me, although..
[inchoate 12:10] /usr/src >acpiconf -i 0
Battery 0 information
Design capacity:        71590 mWh
Last full capacity:     71590 mWh
Technology:             secondary (rechargeable)
Design voltage:         11100 mV
Capacity (warn):        3000 mWh
Capacity (low):         1000 mWh
Low/warn granularity:   200 mWh
Warn/full granularity:  200 mWh
Model number:           DELL 0004P2
Serial number:          1975
Type:                   LION
OEM info:               Sony
State:
Present Rate:           Unknown
Remaining Capacity:     71590 mWh
Volt:                   12537 mV
[inchoate 12:10] /usr/src >apm
APM version: 1.2
APM Management: Enabled
AC Line status: on-line
Battery Status: high
Remaining battery life: 100%
Remaining battery time: unknown
Number of batteries: 2
Battery 0:
        Battery Status: high
        Remaining battery life: 100%
        Remaining battery time:  0:00:00
Battery 1:
not present
Resume timer: unknown
Resume on ring indicator: disabled

> Here is a dmesg:
>
> Copyright (c) 1992-2004 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>         The Regents of the University of California. All rights reserved.
> FreeBSD 5.3-RELEASE #1: Sat Dec 25 03:41:40 WET 2004
>     hugo@porntatil.bsdlan.org:/usr/src/sys/i386/compile/laptop-kernel
> WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
> WARNING: MPSAFE network stack disabled, expect reduced performance.
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Intel(R) Pentium(R) M processor 1.60GHz (1598.65-MHz 686-class CPU)
>   Origin =3D "GenuineIntel"  Id =3D 0x6d6  Stepping =3D 6
> =20
> Features=3D0xafe9f9bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMO=
V,PA
>T,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE> real memory  =3D 535691264
> (510 MB)
> avail memory =3D 514539520 (490 MB)
> acpi0: <ACER Kestrel> on motherboard
> acpi0: Power Button (fixed)
> acpi_ec0: <Embedded Controller: GPE 0x1d> port 0x66,0x62 on acpi0
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
> cpu0: <ACPI CPU (3 Cx states)> on acpi0
> acpi_tz0: <Thermal Zone> on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> agp0: <Intel Generic host to PCI bridge> mem 0xe0000000-0xefffffff at
> device 0.0 on pci0
> pci0: <base peripheral> at device 0.1 (no driver attached)
> pci0: <base peripheral> at device 0.3 (no driver attached)
> pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> pci1: <display, VGA> at device 0.0 (no driver attached)
> uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x1800-0x181f irq
> 6 at device 29.0 on pci0
> uhci0: [GIANT-LOCKED]
> usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
> usb0: USB revision 1.0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0x1820-0x183f irq
> 6 at device 29.1 on pci0
> uhci1: [GIANT-LOCKED]
> usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
> usb1: USB revision 1.0
> uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0x1840-0x185f irq
> 6 at device 29.2 on pci0
> uhci2: [GIANT-LOCKED]
> usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
> usb2: USB revision 1.0
> uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 removable, self powered
> pci0: <serial bus, USB> at device 29.7 (no driver attached)
> pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci2: <ACPI PCI bus> on pcib2
> bfe0: <Broadcom BCM4401 Fast Ethernet> mem 0xd0204000-0xd0205fff irq 6 at
> device 2.0 on pci2
> miibus0: <MII bus> on bfe0
> bmtphy0: <BCM4401 10/100baseTX PHY> on miibus0
> bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> bfe0: Ethernet address: 00:c0:9f:6a:8e:1c
> bfe0: [GIANT-LOCKED]
> pci2: <network> at device 4.0 (no driver attached)
> cbb0: <PCI-CardBus Bridge> mem 0xd0209000-0xd0209fff irq 10 at device 6.0
> on pci2
> cardbus0: <CardBus bus> on cbb0
> pccard0: <16-bit PCCard bus> on cbb0
> fwohci0: <1394 Open Host Controller Interface> mem
> 0xd0200000-0xd0203fff,0xd020a000-0xd020a7ff irq 10 at device 6.2 on pci2
> fwohci0: [GIANT-LOCKED]
> fwohci0: OHCI version 1.10 (ROM=3D1)
> fwohci0: No. of Isochronous channels is 4.
> fwohci0: EUI64 00:c0:9f:00:00:32:14:de
> fwohci0: Phy 1394a available S400, 2 ports.
> fwohci0: Link S400, max_rec 2048 bytes.
> firewire0: <IEEE1394(FireWire) bus> on fwohci0
> fwe0: <Ethernet over FireWire> on firewire0
> if_fwe0: Fake Ethernet address: 02:c0:9f:32:14:de
> fwe0: Ethernet address: 02:c0:9f:32:14:de
> sbp0: <SBP-2/SCSI over FireWire> on firewire0
> fwohci0: Initiate bus reset
> fwohci0: node_id=3D0xc000ffc0, gen=3D1, CYCLEMASTER mode
> firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me)
> firewire0: bus manager 0 (me)
> pci2: <mass storage> at device 6.3 (no driver attached)
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel ICH4 UDMA100 controller> port
> 0x1860-0x186f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
> ata0: channel #0 on atapci0
> ata1: channel #1 on atapci0
> pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
> pci0: <multimedia, audio> at device 31.5 (no driver attached)
> pci0: <simple comms> at device 31.6 (no driver attached)
> acpi_lid0: <Control Method Lid Switch> on acpi0
> acpi_button0: <Sleep Button> on acpi0
> atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
> atkbd0: <AT Keyboard> irq 1 on atkbdc0
> kbd0 at atkbd0
> atkbd0: [GIANT-LOCKED]
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
> psm0: [GIANT-LOCKED]
> psm0: model Generic PS/2 mouse, device ID 0
> npx0: [FAST]
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> orm0: <ISA Option ROMs> at iomem
> 0xe0000-0xe3fff,0xdf800-0xdffff,0xd0000-0xd17ff,0xc0000-0xcffff on isa0
> pmtimer0 on isa0
> ppc0: parallel port not found.
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=3D0x300>
> sio0: configured irq 4 not in bitmap of probed irqs 0
> sio0: port may not be enabled
> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
> sio0: type 8250 or not responding
> sio1: configured irq 3 not in bitmap of probed irqs 0
> sio1: port may not be enabled
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> Timecounter "TSC" frequency 1598649123 Hz quality 800
> Timecounters tick every 10.000 msec
> WARNING: apm_saver module requires apm enabled
> IPsec: Initialized Security Association Processing.
> acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
> ad0: 57231MB <TOSHIBA MK6025GAS/KA200A> [116280/16/63] at ata0-master
> UDMA100 acd0: DVDR <Slimtype DVDRW SOSW-852S/PRS9> at ata1-master UDMA33
> Mounting root from ufs:/dev/ad0s3a
> Enhanced Speedstep running at 1600 MHz
> iwi0: <Intel(R) PRO/Wireless 2200BG MiniPCI> mem 0xd0208000-0xd0208fff irq
> 10 at device 4.0 on pci2
> iwi0: Ethernet address: 00:0e:35:8d:db:e3
> iwi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> iwi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
> 24Mbps 36Mbps 48Mbps 54Mbps
> iwi0: [GIANT-LOCKED]
> pcm0: <Intel ICH4 (82801DB)> port 0x18c0-0x18ff,0x1c00-0x1cff mem
> 0xd0000800-0xd00008ff,0xd0000c00-0xd0000dff irq 10 at device 31.5 on pci0
> pcm0: [GIANT-LOCKED]
> pcm0: <Unknown AC97 Codec (id =3D 0x43585430)>
>
> > On Sun, 26 Dec 2004 05:20, security@revolutionsp.com wrote:
> >> Still, /dev/apm*'s never show up. Except if I actually disable APM and
> >> enable ACPI instead, /dev/apm will show.. but no /dev/apmctl.
> >>
> >> I'm new to the laptop world and I really would like to enable power
> >> saving
> >> features on this laptop.. I managed to get est/estctrl running, and it
> >> was
> >> changing my CPU from 600 to 1600 ghz according to the load, but when I
> >> disabled APM and enabled ACPI this ceases to work and the CPU will
> >> always
> >> run at  1600ghz. Also, acpiconf -i0 says device not configured..
> >
> > Use ACPI.
> > It will provide an APM like interface (/dev/apm) for userland apps to u=
se
> > to
> > get info.
> >
> > It's possible your laptop doesn't even _do_ APM :)
> >
> >> As far as I was able to see, most battery monitoring stuff (integrated
> >> on
> >> KDE and all) will depend on APM.. So I'd really like to enable it!
> >
> > ACPI will allow you to do this plus a lot more.
> >
> > If you want to do things based on power related state changes (eg lid
> > close,
> > power button press, AC unplugged etc..) you can use devd which can
> > respond to
> > ACPI events.
> >
> > --
> > Daniel O'Connor software and network engineer
> > for Genesis Software - http://www.gsoft.com.au
> > "The nice thing about standards is that there
> > are so many of them to choose from."
> >   -- Andrew Tanenbaum
> > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--nextPart1515442.EHiTLc3FYt
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQBBzhdS5ZPcIHs/zowRAsoqAJ46CrUKwoGjw3jTWxSrK+wyjFOzZQCgm0oD
5hgyYO+ZVGQvmy1NAIFsTpg=
=jaiB
-----END PGP SIGNATURE-----

--nextPart1515442.EHiTLc3FYt--



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