many thanks to everyone for all the good info in this thread!
i wanted a quick way to boot my OS9 partition with a specified fan speed, so i spent some quality time with OF and came up with the following...
firstly, i found out that the range of speeds accepted by the
set-speeds method seems to be 0 to ff (OF defaults to hexadecimal, so that would be 0 to 255 in decimal). this is the case on my PowerBook6,7 (iBook G4 2005), dont know about others. larger numbers just wrap around to this range. it is worth noting that this is different from the numbers reported by
.speed, which look like they might be RPMs.
with that in mind, i wrote this routine and added it to my nvramrc:
: fans9
dup 0 ff between if
" set-speeds" " fan" open-dev dup >r $call-method r> close-dev
" hd:\\,tbxi" boot
else
." speed must be between 0 and ff"
drop
then
;
now, i can boot into OF and simply type
ff fans9
to boot from my OS9 partition with fans at full speed! or perhaps
80 fans9, for 50%-ish speed, etc.
note that this is hardcoded to boot
hd:\\,tbxi, you may have to change that for your system. and as always, run at your own risk