Hello I've done some work. I hope I had a recent file to do the diff. (Took it from the newest Kernel source 2.6.7-bk14). The patch is attached. By the way I'm using this driver since my first mail and I enjoy the silent CPU-fan :-) On Wed, 2004-06-30 at 05:13, Mark M. Hoffman wrote: > Hello Peter: > > Wow, I see it's been a long time, but... yes I'm interested in what > you've done with the w83627hf driver - at least what's below looks > pretty good to me. If you have a patch against current, that'd be > great! Otherwise, send whatever you have directly to the sensors > mailing list and we'll have a look: > > LM Sensors <sensors at Stimpy.netroedge.com> > > > Peter Oehry wrote: > > > > >Hello Philip > > > > > >I updated the w83627hf driver with some code to support the QFan options > > >of the w83627thf chip. I think, if we have a Chip, that is able to > > >control the fans, it's better to let the chip do this work rather than > > >software. > > >So far my updated driver can control nearly all qfan settings through > > >some new sysfs nodes. It does the work perfect for me. I was only able > > >to test the settings for fan2 as the MB (ASUS P4P800) so far as I now > > >has only the cpu-fan-pwm connected to the chip. > > > > > >I don't know if there is another driver in the lm_sensors, that can > > >already do this. The problem of getting this things into the lm_sensors > > >project might be de discussion of how should the new nodes in the sysfs > > >be named an how do they behave. I have now idea how many chips the > > >ability of qfan have and how different they are to control. > > > > > >So far I created the following nodes: > > >They correspond direct with the datasheet of the w83627thf > > > > > >qfan[1-3]_mode Mode are defined as follows: > > > 0 = manual Mode > > > 1 = thermal cruise > > > 2 = fan speed cruise > > > 3 = reserved no function > > > offset of 4 controls duty-Bit (if set fan does > > > not turn off) > > >qfan[1-3]_start When at Thermal Cruise mode, fan_pwm will > > > increase from 0 to this register value to provide > > > a minimum value to turn on the fan. > > >qfan[1-3]_stop minimal value for fan_pwm (before it turns of) > > >qfan[1-3]_stop_time defines the time from stop value to 0 in 0.1s > > >qfan[1-3]_target target temperature in ?C > > >qfan[1-3]_tolerance +/- tolerance for target temperature > > >qfan_step_down determines the speed of fan_pwm decreasing > > >the > > > speed, when temperature is below > > > target-tolerance (Unit is 1.6 seconds) > > >qfan_step_up determines the speed of fan_pwm increasing the > > > speed, when temperature is above > > > target+tolerance (Unit is 1.6 seconds) > > > > > >the good thing about all these changes is that all other functions > > >(except that it's not possible to change the pwm_value during cruise > > >mode) remains the same. So any front-end application can use all the old > > >functions as before. > > > > > >Let me know if you're interested in my work. I can send you the driver > > >as it is or make a diff against my source. It might need some cosmetic > > >work before I can give you the driver. I thought I'll do this only if > > >you're interested. I can also help in further development or testing. By > > >the way I worked with the driver I got from the latest Kernel patch > > >(2.6.5-rc2). I am still using a 2.6.1 Kernel patched with some drivers. > > Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: w83627hf.patch Type: text/x-patch Size: 15588 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040701/c0495d37/attachment.bin