PPC: Using powermanagement and Firewire on PowerMacs

Support knowledgebase (olh_ppc_sleep)
Applies to

Kernel: Versions since 2.4.7
SuSE Linux PowerPC: Versions since 7.0

Request:

You have an Apple portable or an iMac and want to use power management.

Procedure:

Power management is available since kernel 2.4.7, it contains also experimantal support for FireWire drives.
You need a newer kernel to use the features (5MB):
ftp://ftp.suse.com/pub/suse/ppc/kernel/2.4.16/k_deflt.rpm
Install the kernel with rpm -Uvh k_deflt.rpm
The new binary to boot is /boot/vmlinux.

You need pmud.rpm to use power management, download it from the ftp server:

ftp://ftp.suse.com/pub/suse/ppc/kernel/BETA/pmud/pmud.rpm
and install it with rpm -Uvh pmud.rpm.

Start it with rcpmud start. Your PowerBook or iBook should go to sleep when you close the lid. Do force sleep without closing the lid or put your iMac to sleep run the tool /sbin/snooze.
/usr/bin/Batmon is a tool to display the remaining battery power, it requires tk.rpm.
/sbin/trackpad is a tool to modify the behaviour.

Using FireWire:

Modify your /etc/modules.conf and add these lines:

pre-install ohci1394 modprobe ieee1394
pre-install sbp2 modprobe ohci1394
To load the modules run "modprobe sbp2" as root, you can put that command into /etc/init.d/boot.local to load the drivers at boot time.

This creates virtual SCSI devices, just look in the "dmesg" output to see the exact device names. To mount a CD in a FW CD burner you could do for example:

mount /dev/sr0 /mnt


Keywords: PPC, POWERPC, APPLE, MACINTOSH, PMUD, SLEEP, FIREWIRE

SDB-olh_ppc_sleep, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 23. Jul 2001
SuSE Linux AG - Last generated: 28. Jan 2002 by olh (sdb_gen 1.40.0)