fan funning high on base system

Justin Hibbits jrh29 at alumni.cwru.edu
Tue Jul 14 03:16:59 UTC 2015


If you would rather stick with 10, here's a patch that should fix the
problem.  That said, there are quite a few changes in 11-current that
haven't made their way into 10-stable (partially out of my laziness,
partially because they're intrusive), so 11-current is better overall
(I run it on all my machines).

- Justin

On Mon, Jul 13, 2015 at 7:56 PM, Herminio Hernandez, Jr.
<herminio.hernandezjr at gmail.com> wrote:
> I am downloading 11 current
>
> On Mon, Jul 13, 2015 at 9:50 PM, Herminio Hernandez, Jr.
> <herminio.hernandezjr at gmail.com> wrote:
>>
>> I would like to file a bug report on this but I am not sure what I would
>> file it against...
>>
>> On Mon, Jul 13, 2015 at 9:49 PM, Herminio Hernandez, Jr.
>> <herminio.hernandezjr at gmail.com> wrote:
>>>
>>> I am running 10.1 where do I get 11 current? I am thinking it is a bug
>>> cause while dmesg is giving me those warnings I am getting this in sysctl
>>>
>>> $ sudo sysctl -a |grep adt746x
>>> device    adt746x
>>> dev.adt746x.%parent:
>>> dev.adt746x.0.%desc: Apple Thermostat Unit ADT746X
>>> dev.adt746x.0.%driver: adt746x
>>> dev.adt746x.0.%location: addr=0x5c
>>> dev.adt746x.0.%pnpinfo: name=fan compat=adt7467
>>> dev.adt746x.0.%parent: iicbus0
>>> dev.adt746x.0.fans.main_enclosure.pwm: 5
>>> dev.adt746x.0.sensors.cpu_core.volt: 191
>>> dev.adt746x.0.sensors.pwr/memory_bottomside.temp: 32.0C
>>> dev.adt746x.0.sensors.cpu_bottomside.temp: 32.0C
>>> dev.adt746x.0.sensors.gpu_bottomside.temp: 35.0C
>>> dev.adt746x.0.sensors.rear_main_enclosure.rpm: 7616
>>>
>>>
>>> On Mon, Jul 13, 2015 at 9:35 PM, Justin Hibbits <jrh29 at alumni.cwru.edu>
>>> wrote:
>>>>
>>>> Hi Herminio,
>>>>
>>>> Are you running 10.x?  If so, could you try again with 11-CURRENT?  I
>>>> fixed a sign bug a few months ago, but haven't MFC'd it (or a host of
>>>> other bugfixes), so that may fix your problem.
>>>>
>>>> - Justin
>>>>
>>>> On Mon, Jul 13, 2015 at 7:29 PM, Herminio Hernandez, Jr.
>>>> <herminio.hernandezjr at gmail.com> wrote:
>>>> > Justin,
>>>> >
>>>> > Right now I have openbox running, but my fan is going crazy with the
>>>> > system
>>>> > on idle. My machine is not hot at all but I am seeing this in dmeg,
>>>> >
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (PWR/MEMORY BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (PWR/MEMORY BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (CPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (PWR/MEMORY BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (PWR/MEMORY BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > WARNING: Current temperature (GPU BOTTOMSIDE: 255.0 C) exceeds
>>>> > critical
>>>> > temperature (80.0 C); count=1
>>>> > $
>>>> >
>>>> >
>>>> > On Sun, Jul 12, 2015 at 10:01 PM, Herminio Hernandez Jr.
>>>> > <herminio.hernandezjr at gmail.com> wrote:
>>>> >>
>>>> >> Once I finished building Xorg and my video drivers, I did a reboot.
>>>> >> Then
>>>> >> logged in again and started X. All was good and my fans were quiet.
>>>> >> Now on
>>>> >> to build my DE!
>>>> >>
>>>> >> Sent from my iPhone
>>>> >>
>>>> >> On Jul 12, 2015, at 12:31 PM, Justin Hibbits <jrh29 at alumni.cwru.edu>
>>>> >> wrote:
>>>> >>
>>>> >> Hi,
>>>> >>
>>>> >> On Jul 12, 2015 8:17 AM, "Herminio Hernandez Jr"
>>>> >> <herminio.hernandezjr at gmail.com> wrote:
>>>> >> >
>>>> >> > I have the base system installed on my iBook G4, but the fans are
>>>> >> > running like crazy. During the install I selected the powerd
>>>> >> > service to
>>>> >> > control cpu scaling, but I am not sure if it is working. It could
>>>> >> > since I am
>>>> >> > installing the port for xorg I just to be sure that there is not
>>>> >> > another
>>>> >> > port I need to install to manage cpu and fans on powerpc. Thanks!
>>>> >> >
>>>> >> > --
>>>> >> > Herminio Hernandez Jr <herminio.hernandezjr at gmail.com>
>>>> >>
>>>> >> The fans should be temperature controlled, which can be disabled
>>>> >> through
>>>> >> the machdep.manage_fans sysctl. All temperatures and fan speeds can
>>>> >> be seen
>>>> >> with sysctl as well. I think the iBook uses the adt746x, but you can
>>>> >> just
>>>> >> grep for 'temp', 'pwm', and 'rpm' for the data, maybe a sensor is
>>>> >> finding a
>>>> >> really high temperature. If you're building anything the temperature
>>>> >> does
>>>> >> sound and the fans go nuts, but afterwards they should quiet down.
>>>> >>
>>>> >> -Justin
>>>> >
>>>> >
>>>
>>>
>>
>
-------------- next part --------------
Index: sys/dev/iicbus/adt746x.c
===================================================================
--- sys/dev/iicbus/adt746x.c	(revision 285522)
+++ sys/dev/iicbus/adt746x.c	(working copy)
@@ -539,9 +539,10 @@
 adt746x_sensor_read(struct adt746x_sensor *sens)
 {
 	struct adt746x_softc *sc;
-	uint16_t tmp = 0;
+	int tmp = 0;
 	uint16_t val;
-	uint8_t temp, data[1], data1[1];
+	uint8_t data[1], data1[1];
+	int8_t temp;
 
 	sc = device_get_softc(sens->dev);
 	if (sens->type != ADT746X_SENSOR_SPEED) {
Index: .
===================================================================
--- .	(revision 285522)
+++ .	(working copy)

Property changes on: .
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /head:r277314


More information about the freebsd-ppc mailing list