acpi_thermal User Overriden Parameters Reset on Power State Change

From: Nick Withers <nick_at_nickwithers.com>
Date: Tue, 20 Nov 2007 16:25:01 +1100
Hi y'all,

Firstly, sorry if this isn't entirely the correct place to post this,
for starters I'm not sure whether this problem is limited to -CURRENT
and / or 7.0 or not. Tried to have a look at fixing it myself, but I'm
not l33t enough! :-)

On my Compaq Presario B3820 (PV142PA#ABG) laptop, I override the
hw.acpi.thermal.tz0._PSV value because the default is the temperature at
which the CPU is halted by the hardware until the temperature settles
down. Since this gets triggered fairly often and is pretty annoying, I
lower the trigger temperature level and have powerd(8) work
passive-cooling-shaped magic.

However, disconnecting or reconnecting AC power resets the value to the
BIOS provided level.

Would anyone be able to offer assistance with this? It's not too big a
deal, I just have to remember to set the appropriate value again if the
power state changes.

uname -a:
____

FreeBSD presario.shmon.net 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Mon Nov 19
23:16:36 EST 2007 nick_at_presario.shmon.net:/usr/obj/usr/src/sys/PRESARIO
i386
____

dmesg:
____

Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-BETA3 #0: Mon Nov 19 23:16:36 EST 2007
    nick_at_presario.shmon.net:/usr/obj/usr/src/sys/PRESARIO
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1.70GHz (1694.51-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6d6  Stepping = 6

Features=0xafe9f9bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE>
  Features2=0x180<EST,TM2>
real memory  = 536281088 (511 MB)
avail memory = 514666496 (490 MB)
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
RF5413)
acpi0: <PTLTD CooperSp> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x1c> port 0x62,0x66 on acpi0
cpu0: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci_link0: BIOS IRQ 10 for 0.29.INTA is invalid
pci_link3: BIOS IRQ 3 for 0.29.INTB is invalid
pci_link2: BIOS IRQ 11 for 0.29.INTC is invalid
pci_link1: BIOS IRQ 5 for 0.31.INTB is invalid
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82855 host to AGP bridge> on hostb0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci_link0: BIOS IRQ 10 for 1.0.INTA is invalid
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0x3000-0x30ff mem
0xd8000000-0xdfffffff,0xd0100000-0xd010ffff irq 9 at device 0.0 on pci1
acpi_video0: <ACPI video extension> on vgapci0
drm0: <ATI Radeon RV350 Mobility 9600 M10 NP> on vgapci0
info: [drm] AGP at 0xe0000000 256MB
info: [drm] Initialized radeon 1.25.0 20060524
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x1800-0x181f
irq 9 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
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> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0x1820-0x183f
irq 9 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
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> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0x1840-0x185f
irq 9 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
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> on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> mem
0xd0000000-0xd00003ff irq 7 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb3
uhub3: 6 ports with 6 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci_link2: BIOS IRQ 11 for 2.7.INTC is invalid
pci_link1: BIOS IRQ 5 for 2.8.INTA is invalid
pci_link2: BIOS IRQ 11 for 2.9.INTA is invalid
pci2: <ACPI PCI bus> on pcib2
cbb0: <RF5C476 PCI-CardBus Bridge> at device 7.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb0: [ITHREAD]
cbb1: <RF5C476 PCI-CardBus Bridge> at device 7.1 on pci2
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
cbb1: [ITHREAD]
fwohci0: <Ricoh R5C552> mem 0xd0201000-0xd02017ff irq 9 at device 7.2 on
pci2
fwohci0: [FILTER]
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 10:cf:fd:00:00:13:93:66
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
rl0: <RealTek 8139 10/100BaseTX> port 0x4000-0x40ff mem
0xd0201800-0xd02018ff irq 9 at device 8.0 on pci2
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:13:21:10:b0:77
rl0: [ITHREAD]
iwi0: <Intel(R) PRO/Wireless 2200BG> mem 0xd0200000-0xd0200fff irq 9 at
device 9.0 on pci2
iwi0: Ethernet address: 00:0e:35:d6:8b:3f
iwi0: [ITHREAD]
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1860-0x186f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pcm0: <Intel ICH4 (82801DB)> port 0x1c00-0x1cff,0x18c0-0x18ff mem
0xd0000c00-0xd0000dff,0xd0000800-0xd00008ff irq 9 at device 31.5 on pci0
pcm0: [ITHREAD]
pcm0: <Analog Devices AD1981B AC97 Codec>
pci0: <simple comms, generic modem> at device 31.6 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz_attach() called
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Synaptics Touchpad, device ID 0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem
0xc0000-0xcffff,0xd0000-0xd0fff,0xdf000-0xdffff,0xe0000-0xe3fff pnpid
ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
ukbd0: <Logitech Logitech USB Keyboard, class 0/0, rev 1.10/15.00, addr
2> on uhub1
kbd2 at ukbd0
uhid0: <Logitech Logitech USB Keyboard, class 0/0, rev 1.10/15.00, addr
2> on uhub1
ums0: <Logitech USB-PS/2 Optical Mouse, class 0/0, rev 2.00/21.00, addr
3> on uhub1
ums0: 8 buttons and Z dir.
Timecounter "TSC" frequency 1694512240 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding
disabled, default to deny, logging limited to 1000 packets/entry by
default
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
ad0: 57231MB <HTS548060M9AT00 MGBOA53A> at ata0-master UDMA100
cpu0: Cx states changed
GEOM_LABEL: Label for provider ad0s2 is msdosfs/Corporation.
acd0: DVDR <HL-DT-ST DVD-RW GWA-4080N/0G03> at ata1-master UDMA33
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0x00
0x01
cd0 at ata1 bus 0 target 0 lun 0
cd0: <HL-DT-ST DVD-RW GWA-4080N 0G03> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ad0s1a
netsmb_dev: loaded
____
-- 
Nick Withers
email: nick_at_nickwithers.com
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
Received on Tue Nov 20 2007 - 04:41:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:22 UTC