Linux on PPC tools
In order to ease testing and usage of the stuff on this page, I set
up my own little deb-file repository for apt. Just add the line
deb http://cedric.pradalier.free.fr/ibook2/ ./
to your /etc/apt/sources.list, and you should be able to access my
small package list.
Don't forget to report problems, but also successes.
Thanks and Welcome
A kernel patch for accessing the thermal control chip on ibook2.2 (linux kernel >= 2.6.4).
Note: From kernel 2.6.8, lm-sensors modules support adm1030
chip. So I think there will be no longer need for the adm103x module,
but I still use it...
From 2.6.8, I added some ioctl access to the driver. If udev don't
handle this automatically, create the /dev node with:
(for module <1.2.4) mknod /dev/adm103x c 63 200
(for module ≥1.2.4) mknod /dev/adm103x c 10 131
How to setup the therm-adm103x driver
Install the patch. Go to /usr/src/linux-2.6.x and
run patch -p1 < path/to/adm103x-2.6.x.diff.
- diff with 2.6.14
- diff with 2.6.15
- diff with 18.104.22.168
complete sources of the independant module.
To see if thermal control is done by the chips that this
module can manage, just check that
returns adm1030 or adm1031.
This driver provides some thermostat monitoring for ibook2 rev. 2 (ibook2
is not sufficient),
equipped with a adm103x fan control chip. It also provides and
sysfs access to the adm103x fan control parameters. For instance
T:51°C S:56°C R:10°C <-- sensor 0
T:48°C S:76°C R:10°C <-- sensor 1
#echo "56 10" > /sys/device/temperatures/info0
make the fan starts at 56 degrees and accelerate progressively
till max at 66 degrees (56 + 10), on the sensor 0.
- New : a dockable app which monitor
the sensors state.
- The admctl package contains a text
utility (admstate) which displays and
interpretes all adm1030/adm1031 registers. In the same
package, admstate-ioctl uses the ioctl interface of the driver to
display the same information.
- With new version of the patch, displayed temperature is real
temperature with offset removed and full resolution. Starting fan
temperature can be set to any integer value.
- On my ibook, I used 56° and 60° for first version of the
patch (52° and 52° with offsets removed). I now set general
temperature limit to 54° and CPU limit to 50°.
- Since version 1.4 of the dockable application, a middle
click on the window check if the fan is still needed and
eventually switch off the fan. This needs the ioctl capable
driver (version > 1.2).
A ybin version (based on yaboot 1.3.11 code) which checks
yaboot.conf syntax before installing boot partition.
- The ycheck binary is just a call to the yaboot config reader
with prom_printf replaced by printf. So when ycheck is ok, it means
that yaboot will be able to parse the config. I just add 3 lines to
make the test on ybin.
- This is not a patch since yaboot authors is working on yaboot
2.0 with improved syntax checking.
- The tar.gz : here
- Install : make and copy files where you want to access
A modernized version of ical (an old calendar/schedule utility)
- The tar.gz : here
- The debian package for linux ppc :
- Modifs : easiest compilation, roll mouse management, other
options for the text version...
- I'm not the only one to have tried to modernized ical. Please
have a look to the
ical maintenance project. I'm too lazy to bother to make a
patch between these two versions...
A modified version of hotkeys : here
- Added ibook2.def for ibook2 keyboard definition
- Make it compile without any warning with gcc-3.3.3 -Wall
(added headers, removing unused, initializing variables, adding
forward declarations, removing static for exported functions, added
- Added support for the backlight control buttons of my ibook.
In fact backlight control is managed by Kernel. But this generate
an X event nonetheless, so I add a showBrightness function which
catch this event and I use libxosd to display backlight status. I
had to add two keys in the xml specs : BrightUp and BrightDown on
the model of VolUp and VolDown.
- Added a --with-pmu flag in configure.in to control if
backlight management must use pmu.