Issue sysctl hw.acpi.thermal, W83627THF, ICH5

yasir27 at mail.ru yasir27 at mail.ru
Thu Aug 2 09:14:38 UTC 2007


Hello!
I have MSI 865PE Neo2 motherboard with Intel ICH5 and Winbond W83627THF chipsets.
I'd like to control CPU fan speed but I'm unable to do that in the way manuals recommend because I can't see hw.acpi.thermal.* variables in the sysctl notwithstanding I have compiled the kernel with 'device acpi' in config file. However everything goes OK when I use MSI's CoreCenter utility which comes with their motherboard and a few other tools for MS Windows and Linux (lm-sensors, gkrellm). Also mbmon -I works good for FreeBSD but it's just monitoring, not a controlling. Next you can see outputs of the following commands:
        dmesg -a
        sysctl hw.acpi
        kldstat -v
        mbmon -d

# dmesg -a
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 6.2-RELEASE #0: Wed Aug  1 21:51:38 VLAST 2007
    root@:/usr/obj/usr/src/sys/SMBUS
ACPI APIC Table: <AMIINT INTEL865>
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2400.10-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x4400<CNTX-ID,<b14>>
  Logical CPUs per core: 2
real memory  = 536805376 (511 MB)
avail memory = 519954432 (495 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <AMIINT INTEL865> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0
acpi_throttle1: <ACPI CPU Throttling> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82865 host to AGP bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0xcc00-0xcc1f irq 16 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801EB (ICH5) 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 82801EB (ICH5) USB controller USB-B> port 0xd000-0xd01f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801EB (ICH5) 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 82801EB (ICH5) USB controller USB-C> port 0xd400-0xd41f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801EB (ICH5) 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
uhci3: <Intel 82801EB (ICH5) USB controller USB-D> port 0xd800-0xd81f irq 16 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <Intel 82801EB (ICH5) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel 82801EB/R (ICH5) USB 2.0 controller> mem 0xfebff800-0xfebffbff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801EB/R (ICH5) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pci2: <multimedia, video> at device 3.0 (no driver attached)
pci2: <multimedia> at device 3.1 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 UDMA100 controller> port 0xec00-0xec07,0xe800-0xe803,0xe400-0xe407,0xe000-0xe003,0xdc00-0xdc0f irq 18 at device 31.1 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
atapci1: <Intel ICH5 SATA150 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 31.2 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pci0: <multimedia, audio> at device 31.5 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
orm0: <ISA Option ROM> at iomem 0xe0000-0xe0fff 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
ums0: KYE Genius USB Wheel Mouse, rev 1.00/2.42, addr 2, iclass 3/1
ums0: 5 buttons and Z dir.
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding disabled, default to accept, logging limited to 10 packets/entry by default
ad0: 110602MB <Seagate ST3120026AS 3.05> at ata0-master SATA150
acd0: DVDR <SONY DVD RW DW-D22A/BYS1> at ata2-master UDMA66
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad0s3a
Loading configuration files.
Entropy harvesting:
 interrupts
 ethernet
 point_to_point
 kickstart
.
swapon: adding /dev/ad0s3b as swap device
Starting file system checks:
/dev/ad0s3a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s3a: clean, 224600 free (112 frags, 28061 blocks, 0.0% fragmentation)
/dev/ad0s3g: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s3g: clean, 24661 free (21 frags, 3080 blocks, 0.1% fragmentation)
/dev/ad0s3h: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s3h: clean, 24089 free (25 frags, 3008 blocks, 0.1% fragmentation)
/dev/ad0s3e: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s3e: clean, 253804 free (36 frags, 31721 blocks, 0.0% fragmentation)
/dev/ad0s3f: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s3f: clean, 3717118 free (70942 frags, 455772 blocks, 1.3% fragmentation)
/dev/ad0s3d: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s3d: clean, 745085 free (861 frags, 93028 blocks, 0.1% fragmentation)
Mounting local file systems:
.

Setting hostname: .
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 
Additional routing options:
.
Starting devd.
Starting ums0 moused:
.
hw.acpi.cpu.cx_lowest: 
C1
 -> 
C1

Mounting NFS file systems:
.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/lib/mysql
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Creating and/or trimming log files:
.
Starting syslogd.
Initial i386 initialization:
.
Additional ABI support:
 linux
.
Starting local daemons:
.
Updating motd
.
Mounting late file systems:
.
Starting usbd.
Configuring syscons:
 keymap
 blanktime
.
Starting cron.
Local package initialization:
.
Additional TCP options:
.
Starting default moused:
moused: 
unable to open /dev/ums0: Device busy

.
Starting background file system checks in 60 seconds.

Wed Aug  1 23:38:52 VLAST 2007
Aug  1 23:39:03  login: ROOT LOGIN (root) ON ttyv0


# sysctl hw.acpi
hw.acpi.supported_sleep_state: S1 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.disable_on_reboot: 0
hw.acpi.handle_reboot: 0
hw.acpi.reset_video: 0
hw.acpi.cpu.cx_supported: C1/0
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00%


# kldstat -v
Id Refs Address    Size     Name
 1    5 0xc0400000 371eb4   kernel
        Contains modules:
                Id Name
                 1 xpt
                 2 probe
                 3 cam
                 4 da
                 5 nexus/acpi
                 6 acpi/acpi_acad
                 7 acpi/acpi_button
                 8 acpi/acpi_cmbat
                 9 acpi/cpu
                10 acpi/acpi_ec
                11 acpi/acpi_isab
                12 acpi/acpi_lid
                13 pcib/acpi_pci
                14 acpi/acpi_pci_link
                15 acpi/acpi_pcib
                16 pci/acpi_pcib
                17 cpu/acpi_perf
                18 acpi/acpi_sysresource
                19 acpi/acpi_smbat
                20 acpi/acpi_tz
                21 cpu/acpi_throttle
                22 acpi/acpi_timer
                23 ata
                24 ata/ad
                25 isa/ata
                26 pci/atapci
                27 atapci/ata
                28 ata/acd
                29 bktr/iicbb
                30 lpbb/iicbb
                31 viapm/iicbb
                32 pcf/iicbus
                33 envctrl/iicbus
                34 iicbb/iicbus
                35 bti2c/iicbus
                36 iicbus/iicsmb
                37 iicsmb/smbus
                38 kbdmux
                39 g_md
                40 mem
                41 miibus/acphy
                42 miibus/amphy
                43 miibus/bmtphy
                44 miibus/brgphy
                45 miibus/ciphy
                46 miibus/e1000phy
                47 miibus/xlphy
                48 miibus/gentbi
                49 miibus/inphy
                50 miibus/ip1000phy
                51 miibus/lxtphy
                52 miibus/mlphy
                53 miibus/nsgphy
                54 miibus/nsphy
                55 miibus/pnaphy
                56 miibus/pnphy
                57 miibus/qsphy
                58 miibus/rgephy
                59 miibus/rlphy
                60 miibus/ruephy
                61 miibus/tdkphy
                62 miibus/tlphy
                63 miibus/ukphy
                64 miibus/xmphy
                65 null
                66 pci/fixup_pci
                67 pci/ignore_pci
                68 pci/isab
                69 pcib/pci
                70 pci/pcib
                71 random
                72 pci/sio
                73 cardbus/sio
                74 smbus/smb
                75 pci/ehci
                76 cardbus/ehci
                77 pci/ohci
                78 cardbus/ohci
                79 uhub/ugen
                80 pci/uhci
                81 cardbus/uhci
                82 uhub/uhid
                83 usb/uhub
                84 uhub/uhub
                85 uhub/umass
                86 uhub/ums
                87 ohci/usb
                88 uhci/usb
                89 ehci/usb
                90 watchdog
                91 devfs
                92 msdosfs
                93 procfs
                94 pseudofs
                95 g_dev
                96 g_disk
                97 g_gpt
                98 g_vfs
                99 isab/isa
                100 eisab/isa
                101 isa/isahint
                102 isa/orm
                103 isa/pnp
                104 cd9660
                105 elf32
                106 shell
                107 cpu/cpufreq
                108 rootbus
                109 msgsys
                110 msgctl
                111 msgget
                112 msgsnd
                113 msgrcv
                114 sysvmsg
                115 semsys
                116 __semctl
                117 semget
                118 semop
                119 sysvsem
                120 shmsys
                121 shmat
                122 shmctl
                123 shmdt
                124 shmget
                125 sysvshm
                126 ether
                127 if_faith
                128 if_gif
                129 loop
                130 if_ppp
                131 if_sl
                132 if_tun
                133 ipdivert
                134 dummynet
                135 ipfw
                136 intpm/intsmb
                137 pci/intpm
                138 intsmb/smbus
                139 ufs
                140 g_class
                141 atkbdc/atkbd
                142 isa/atkbdc
                143 acpi/atkbdc
                144 atkbdc/psm
                145 isa/psmcpnp
                146 acpi/psmcpnp
                147 io
                148 isa/sio
                149 acpi/sio
                150 scterm-sc
                151 scrndr-vga
                152 g_bsd
                153 g_mbr
                154 g_mbrext
                155 isa/pnpbios
                156 nexus/legacy
                157 legacy/cpu
                158 pci/piix
                159 legacy/mptable_pcib
                160 pci/mptable_pcib
                161 root/nexus
                162 isa/sysresource
                163 isa/atpic
                164 acpi/atpic
                165 isa/attimer
                166 acpi/attimer
                167 legacy/isa
                168 isa/atdma
                169 acpi/atdma
                170 nexus/npx
                171 isa/npxisa
                172 acpi/npxisa
                173 legacy/pcib
                174 pci/hostb
                175 isa/pcibus_pnp
                176 pci/pcibios_pcib
                177 legacy/pir
                178 isa/sc
                179 isa/vga
                180 pci/agp_ali
                181 pci/agp_amd
                182 pci/agp_amd64
                183 pci/agp_ati
                184 pci/agp_i810
                185 pci/agp_intel
                186 pci/agp_nvidia
                187 pci/agp_sis
                188 pci/agp_via
 2    1 0xc3365000 16000    linux.ko
        Contains modules:
                Id Name
                189 linuxelf
                190 linuxaout

# mbmon -d
ioctl(smb0:open): No such file or directory
SMBus[Intel8XX(ICH/ICH2/ICH3/ICH4/ICH5/ICH6)] found, but No HWM available on it!!
Using ISA-IO access method!!
* Winbond Chip W83627HF/THF/THF-A found.

Thanks!



More information about the freebsd-acpi mailing list