On 13/11/06, Jason Parekh <[EMAIL PROTECTED]> wrote: > Hi all, Hello,
> I've trivially modified the applesmc.patch to allow for changing the minimum > fan speed. This is useful if you don't care mind a trade-off of a little > noise increase for a much cooler laptop. The minimum speed device for each > fan is now writable as well as readable. It works for me. Any objection to commit this patch in subversion? Nicolas, do you have any comment? > Patch: > > Index: kernel/mactel-patches-2.6.18/applesmc.patch > =================================================================== > --- kernel/mactel-patches-2.6.18/applesmc.patch (revision 57) > +++ kernel/mactel-patches-2.6.18/applesmc.patch (working copy) > @@ -641,8 +641,13 @@ > +{ \ > + return applesmc_show_fan_speed(dev, buf, FAN_MIN_SPEED, offset); \ > +} \ > -+static DEVICE_ATTR(fan##offset##_minimum_speed, S_IRUGO, \ > -+ show_fan_minimum_speed_##offset, NULL); \ > ++static ssize_t store_fan_minimum_speed_##offset (struct device *dev, \ > ++ struct device_attribute *attr, const char *buf, size_t count) > \ > ++{ \ > ++ return applesmc_store_fan_speed(dev, buf, count, FAN_MIN_SPEED, offset); > \ > ++} \ > ++static DEVICE_ATTR(fan##offset##_minimum_speed, S_IRUGO | S_IWUSR, \ > ++ show_fan_minimum_speed_##offset, store_fan_minimum_speed_##offset); \ > +\ > +static ssize_t show_fan_maximum_speed_##offset (struct device *dev, \ > + struct device_attribute *attr, char *buf) \ -- Dr. Ludovic Rousseau ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mactel-linux-devel mailing list Mactel-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel