Re: Fan control on iBook2

2004-08-06 Thread Kevin Houlihan
There's no fan in the ibook. +++ Kevin Houlihan http://randomhuman.tk +++

Re: Fan control on iBook2

2004-08-06 Thread Harri Järvi
On Fri, Aug 06, 2004 at 21:41:05 +0200, Luca Bigliardi - shammash wrote: > On Fri, Aug 06, 2004 at 10:06 PM, Harri J?rvi wrote: > > How can I find out if there is a fan and what chip is used for > > controlling it? > > "cat /proc/device-tree/uni-n/i2c/fan/device_type" on my ibook 2.2 > returns "ad

Fan control on iBook2

2004-08-06 Thread Harri Järvi
Hi, I was very excited as I noticed there was a thermostat and fan driver for iBook2 since my ibook has been suffering from high temperatures. I haven't ever heard the fan start using GNU/Linux. I tried the therm_adm103x.c module but it return ENODEV at np = of_find_node_by_name (NULL

Re: Fan control on ibook2

2004-05-03 Thread Johannes Mockenhaupt (aka Joe Malik)
On Thu, Mar 18, 2004 at 04:54:07PM +0100, Cedric Pradalier wrote: Hi all, [...] > the patch is available at > http://cedric.pradalier.free.fr/ibook2/index.html [...] > please report any feedback. I applied the patch to mainline 2.6.5 on my ibook and it's working since. the usual cat /proc/cpuin

Re: Fan control on ibook2

2004-03-18 Thread Cedric Pradalier
Hi all, the patch is available at http://cedric.pradalier.free.fr/ibook2/index.html By default, it does not change anything to the chip status and only provide an access to the adm103x chip. So it can be used just to see what are the default values on your system. please report any feedback. On

Re: Fan control on ibook2

2004-03-18 Thread Colin Leroy
> > Here's a third patch, which factorizes things a bit more and isn't > > reversed as the second one was. > > Note that I'd like to have the driver split to a separate file Ok, i'll do that. -- Colin This message represents the official view of the voices in my head.

Re: Fan control on ibook2

2004-03-17 Thread Benjamin Herrenschmidt
> Here's a third patch, which factorizes things a bit more and isn't > reversed as the second one was. Note that I'd like to have the driver split to a separate file Ben.

Re: Fan control on ibook2

2004-03-17 Thread Benjamin Herrenschmidt
On Thu, 2004-03-18 at 00:04, Colin Leroy wrote: > Hi, > > >First it sets a very high load on the CPU. I wonder if the task is > >correctly scheduled. I'll have a look at that. It's as if the task > >monitoring task was running without yielding the processor... > > No, it just seems to :) You have

Re: Fan control on ibook2

2004-03-17 Thread Alexander Clausen
Hi On Thu, Mar 18, 2004 at 12:03:12AM +0100, Michael Flaig wrote: > Hi, > > is you patch ibook specific, or could it also work with the tibook? > I have an tibook 1Ghz, where can i read what sensor chip is integrated? Look for a directory called "fan" in /proc/device-tree/ Alex

Re: Fan control on ibook2

2004-03-17 Thread Michael Flaig
Hi, is you patch ibook specific, or could it also work with the tibook? I have an tibook 1Ghz, where can i read what sensor chip is integrated? I think you could email benjamin herrenschmidt your patch, to have it integrated in his kernel tree. kind regards, mfl -- Michael Flaig (PROLinux) <[

Re: Fan control on ibook2

2004-03-17 Thread Cedric Pradalier
Ok, I've done my adm103x module. Thanks a lot to Colin and Frank. Without them it would have been much longer. I first tried to integrate the driver in the adt7c module, according to Colin's patches. But I believe the two chips behaviour does not fit well in a common module. On the

Re: Fan control on ibook2

2004-03-17 Thread Colin Leroy
>>No, it just seems to :) You have a 1.0 load average, that's it ? this >>is due to TASK_UNINTERRUPTIBLE, which is needed according to Benjamin; >>however this doesn't eat the cpu power :) >Hmmm. Isn't it a problem in load accounting ? Dunno :-( >I'll try this. Here's a third patch, which facto

Re: Fan control on ibook2

2004-03-17 Thread Cedric Pradalier
On Wed, 17 Mar 2004 14:04:31 +0100, Colin Leroy gracefully wrote: >Hi, > >>First it sets a very high load on the CPU. I wonder if the task is >>correctly scheduled. I'll have a look at that. It's as if the task >>monitoring task was running without yielding the processor... > >No, it just seems to

Re: Fan control on ibook2

2004-03-17 Thread Colin Leroy
> Interesting, maybe you can strip the bits about changing default limits on > ADM*. I put these because on ADT*, the limits are quite high by default. Can you try this patch ? Thanks, -- Colin adm_support.diff Description: Binary data

Re: Fan control on ibook2

2004-03-17 Thread Colin Leroy
Hi, >First it sets a very high load on the CPU. I wonder if the task is >correctly scheduled. I'll have a look at that. It's as if the task >monitoring task was running without yielding the processor... No, it just seems to :) You have a 1.0 load average, that's it ? this is due to TASK_UNINTERRU

Re: Fan control on ibook2

2004-03-17 Thread Cedric Pradalier
Hi, I just tried your patch. It seems to work, at least for acces to the chip, even with a joint driver. Some side effects : First it sets a very high load on the CPU. I wonder if the task is correctly scheduled. I'll have a look at that. It's as if the task monitoring task was r

Re: Fan control on ibook2

2004-03-17 Thread Colin Leroy
> >You are welcome to consolidate these into a single driver allowing > >userland access to those values & finer thermal control :) A bit > >like Colin Leroy did for the recent models ... > > > > I'll try to make some steps in this direction ASAP. > Thanks for the informations. PS: It may be much

Re: Fan control on ibook2

2004-03-17 Thread Colin Leroy
> >You are welcome to consolidate these into a single driver allowing > >userland access to those values & finer thermal control :) A bit > >like Colin Leroy did for the recent models ... > > I'll try to make some steps in this direction ASAP. > Thanks for the informations. For kernel 2.6, you ca

Re: Fan control on ibook2

2004-03-17 Thread Cedric Pradalier
On Wed, 17 Mar 2004 14:09:02 +1100, Benjamin Herrenschmidt gracefully wrote: > >> .../... > >You are welcome to consolidate these into a single driver allowing >userland access to those values & finer thermal control :) A bit >like Colin Leroy did for the recent models ... > I'll try to make some

Re: Fan control on ibook2

2004-03-16 Thread Benjamin Herrenschmidt
> .../... You are welcome to consolidate these into a single driver allowing userland access to those values & finer thermal control :) A bit like Colin Leroy did for the recent models ... > I also have the feeling that my iBook operates at higher temperature > if I using linux (esp. 2.6.4-vanil

Re: Fan control on ibook2

2004-03-16 Thread Frank Klingenhoefer
Cedric Pradalier wrote: > Hi, > I've noticed that the fan is started according to a much higher > temperature when using linux (2.6.3-ben2) w.r.t mac os x. (for instance > if I reboot on macosx after compiling my kernel, fan is started > immediately) > > Does somebody have a hints of w

Fan control on ibook2

2004-03-16 Thread Cedric Pradalier
Hi, I've noticed that the fan is started according to a much higher temperature when using linux (2.6.3-ben2) w.r.t mac os x. (for instance if I reboot on macosx after compiling my kernel, fan is started immediately) Does somebody have a hints of what rules this ? Is there a parame