Alubook (Powerbook 5,6)
From ArchWiki
Contents |
[edit] Powerbook 5,6 on Linux
I use a powerbook5,6 with Arch Linux PPC. this is an alubook feb 2006.
[benoitc@enlil ~]$ cat /proc/cpuinfo processor : 0 cpu : 7447A, altivec supported clock : 1666.666000MHz revision : 0.2 (pvr 8003 0102) bogomips : 73.47 timebase : 18432000 platform : PowerMac machine : PowerBook5,6 motherboard : PowerBook5,6 MacRISC3 Power Macintosh detected as : 287 (PowerBook G4 15") pmac flags : 0000001b L2 cache : 512K unified pmac-generation : NewWorld
Configuration 80 GB HD, GPU Ati RV350 (Radeon 9600 M10),Audio, Video Out (DVI/S-Video), ethernet, airport extreme
[benoitc@enlil ~]$ lspci 00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP 00:10.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] 0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI 0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03) 0001:10:13.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller 0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O 0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB 0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB 0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43) 0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43) 0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04) 0002:24:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI 0002:24:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100 0002:24:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2 FireWire (rev 81) 0002:24:0f.0 Class ffff: Illegal Vendor ID Unknown device ffff (rev ff)
What works:
- Display : ok. 3D Acceleration with R300. No S-Video Out. DVI Out works without problem with VGA screen and with a hack on DVI screens.
- Auio: works with snd-powermac. Quality is better with snd-aoa module(2.6.18x kernel) but input don't work with this one. Only software mixing works with dmis plugin
- firewire : ok
- ethernet (sungem module)
- Wifi : airport extreme. works with bcm43xx module. Only 8201/b .
[edit] Display
I configure the powerbook with r300 driver and 3D acceleration : Install driver :
pacman -Sy xf86-video-ati
xorg.conf is available on Arch Linux PPC ftp:
ftp://ftp.archlinuxppc.org/other/misc/dualhead-powerbook56/xorg.conf
The powerbook is configured with automatic dualhead : DualHead on alubook (radeon)
[edit] Audio
I use currently snd_powermac.
modprobe snd_powermac
To have a good sound set PCM to 70 %.
amixer set PCM 70% unmute
dmix alsa plugin is used for software mixing. I configured /etc/asound.conf :
pcm.!default {
type plug
slave.pcm asymer
}
pcm.dmixer {
type dmix
ipc_key 1977
ipc_perm 666
# ipc_key_add_uid true
slowptr true
slave {
pcm "hw:0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
}
pcm.dsnooper {
type dsnoop
ipc_key 1978
ipc_perm 666
# ipc_key_add_uid true
slave.pcm "hw:0"
}
pcm.asymer {
type asym
playback.pcm "dmixer"
capture.pcm "dsnooper"
}
pcm.jack {
type jack
playback_ports {
0 alsa_pcm:playback_1
1 alsa_pcm:playback_2
}
capture_ports {
0 alsa_pcm:capture_1
1 alsa_pcm:capture_2
}
}
# These are for alsa-oss
pcm.dsp0 pcm.default
ctl.mixer0 "hw:0"
File is available here : ftp://ftp.archlinuxppc.org/other/misc/dmix-powerbook/asound.conf
Don't forget to reload module after.
[edit] Wifi
bcm43xx module is used. Wep works well with a 2.6.17x kernel. On Arch Linux i had to apply a patch to detect AP . Patch is here : http://bugs.archlinux.org/task/5234
foolwing modules should be added to /etc/rc.conf :
ieee80211softmac ieee80211_crypt_wep
I use network profiles for network :
Lines /etc/rc.conf :
lo="lo 127.0.0.1" INTERFACES=(lo) NET_PROFILES=(menu)
Wifi profil (WEP):
DESCRIPTION="Home (Wifi)"
INTERFACE="wlan0"
HOSTNAME="enlil.metavers.net"
IFOPTS="192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY=192.168.1.1
DOMAIN=
DNS1=192.168.1.1
DNS2=
ESSID="<MY ESSID>"
KEY="<MY KEY>"
IWOPTS="rate 11M channel 7 enc ${KEY} essid ${ESSID}"
WIFI_INTERFACE="wlan0"
WIFI_WAIT=5
It's very important to follow order of options in IWOPTS due to some bugs in current version of bcm43xx.
Network interfaces change each time you reload. I prefer to fix interface names using MAC address. Add to the file /etc/udev/rules.d/10-network.rules :
SUBSYSTEM=="net", SYSFS{address}=="<ADRESSE MAC ETHERNET>", NAME="eth0"
SUBSYSTEM=="net", SYSFS{address}=="<ADRESSE MAC AIRPORT EXTREME", NAME="wlan0"
You can get MAC address with iwconfig.
[edit] Power management
power is managed with 2 tools : pbbuttonsd & powernowd
pacman -Sy pbbuttonsd powernowd
[edit] Pbbuttonsd
read the man of pbbuttonsd to configure it. Pbbuttonsd manage power, screen light, key dimming....
To use pbbuttonsd you need to load the i2c_dev module to manage function keys. Load therm_adt746x for temperature info and fan control:
modprobe i2c-dev modprobe therm-adt746x
To launch pbbuttonsd :
/etc/rc.d/pbbuttonsd start
Add the name to DAEMONS line in /etc/rc.conf to start it on boot.
[edit] Powernowd
Powernowd is used to change cpu speed on demand. First load cpufreq_userspace module:
modprobe cpufreq_userspace
Default configuration of powernowd is enough, just launch it :
/etc/rc.d/powernowd start
Add the name to DAEMONS line in /etc/rc.conf to start it on boot.
Note: From time to time with powernowd your computer freeze due to change of cpu speed. If you don't want it you could also play manually with cpufreq* modules.
[edit] External Links
- This report has been listed in the Linux Laptop and Notebook Installation Survey: Apple.