Mikko J Piippo
2008-01-07 08:33:21 UTC
I just got an old iBook and installed Debian on it. I was happy to be
able to run a modern OS on that old notebook. Unfortunately I cannot get
suspend to work out-of-the box: when I close the lid, my iBook suspends
seemingly ok, but it fails to wake-up.
Being new to iBook, I'm looking for some clues to solve this annoying
problem. Do I have to compile my own kernel? Dmesg and cpuinfo are at
the end of this message.
Thanks!
Mikko
-------------
Using PowerMac machine description
Total memory = 384MB; using 1024kB for hash table (at cff00000)
Linux version 2.6.22-3-powerpc (Debian 2.6.22-6) (***@debian.org) (gcc
version 4.1.3 20071019 (prerelease) (Debian 4.1.2-17)) #1 Tue Nov 13
15:52:56 UTC 2007
Found initrd at 0xc1900000:0xc1eb5000
Found UniNorth memory controller & host bridge @ 0xf8000000 revision:
0xc0
Mapped at 0xfdfc0000
Found a Pangea mac-io controller, rev: 0, mapped at 0xfdf40000
Processor NAP mode on idle enabled.
PowerMac motherboard: iBook 2
via-pmu: Server Mode is disabled
PMU driver v2 initialized for Core99, firmware: 0c
Entering add_active_range(0, 0, 98304) 0 entries of 256 used
Found UniNorth PCI host bridge at 0x00000000f0000000. Firmware bus
number: 0->0
Found UniNorth PCI host bridge at 0x00000000f2000000. Firmware bus
number: 0->0
Found UniNorth PCI host bridge at 0x00000000f4000000. Firmware bus
number: 0->0
nvram: Checking bank 0...
nvram: gen0=966, gen1=967
nvram: Active bank is: 1
nvram: OF partition at 0x410
nvram: XP partition at 0x1020
nvram: NR partition at 0x1120
Top of RAM: 0x18000000, Total RAM: 0x18000000
Memory hole size: 0MB
Zone PFN ranges:
DMA 0 -> 98304
Normal 98304 -> 98304
HighMem 98304 -> 98304
early_node_map[1] active PFN ranges
0: 0 -> 98304
On node 0 totalpages: 98304
DMA zone: 768 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 97536 pages, LIFO batch:31
Normal zone: 0 pages used for memmap
HighMem zone: 0 pages used for memmap
Built 1 zonelists. Total pages: 97536
Kernel command line: root=/dev/hda6 ro
mpic: Setting up MPIC " MPIC 1 " version 1.2 at 80040000, max 4 CPUs
mpic: ISU size: 64, shift: 6, mask: 3f
mpic: Initializing for 64 sources
PID hash table entries: 2048 (order: 11, 8192 bytes)
GMT Delta read from XPRAM: 120 minutes, DST: off
time_init: decrementer frequency = 24.960000 MHz
time_init: processor frequency = 600.000000 MHz
Console: colour dummy device 80x25
console handover: boot [udbg0] -> real [tty0]
serial8250_console_init: nothing to do on PowerMac
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
High memory: 0k
Memory: 378496k/393216k available (3348k kernel code, 14280k reserved,
148k data, 294k bss, 196k init)
Calibrating delay loop... 49.79 BogoMIPS (lpj=99584)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
device-tree: Duplicate name in /cpus/PowerPC,***@0, renamed to
"l2-cache#1"
NET: Registered protocol family 16
KeyWest i2c @0xf8001003 irq 42 /uni-***@f8000000/***@f8001000
channel 0 bus <multibus>
channel 1 bus <multibus>
KeyWest i2c @0x80018000 irq 26 /***@f2000000/mac-***@17/***@18000
channel 0 bus <multibus>
PMU i2c /***@f2000000/mac-***@17/via-***@16000
channel 1 bus <multibus>
channel 2 bus <multibus>
PCI: Probing PCI hardware
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 5844k freed
Thermal assist unit using timers, shrink_timer: 500 jiffies
Registering PowerMac CPU frequency driver
Low: 400 Mhz, High: 600 Mhz, Boot: 600 Mhz
audit: initializing netlink socket (disabled)
audit(1199685284.460:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: Enabling device 0000:00:10.0 (0086 -> 0087)
aty128fb: Invalid ROM signature c631 should be 0xaa55
aty128fb: BIOS not located, guessing timings.
aty128fb: Rage128 LF M3 AGP [chip rev 0x0] 8M 128-bit SDR SGRAM (1:1)
aty128: Backlight initialized (aty128bl0)
Console: switching to colour frame buffer device 128x48
fb0: ATY Rage128 frame buffer device on Rage128 LF M3 AGP
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
serial8250_init: nothing to do on PowerMac
pmac_zilog: 0.6 (Benjamin Herrenschmidt <***@kernel.crashing.org>)
ttyS0 at MMIO 0x80013020 (irq = 22) is a Z85c30 ESCC - Serial port
ttyS1 at MMIO 0x80013000 (irq = 23) is a Z85c30 ESCC - Serial port
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
MacIO PCI driver attached to Pangea chipset
input: Macintosh mouse button emulation as /class/input/input0
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
adb: starting probe task...
adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
ADB keyboard at 2, handler 1
Detected ADB keyboard, type ISO, swapping keys.
input: ADB keyboard as /class/input/input1
input: ADB Powerbook buttons as /class/input/input2
ADB mouse at 3, handler set to 4 (trackpad)
input: ADB mouse as /class/input/input3
adb: finished probe task...
ide0: Found Apple KeyLargo ATA-4 controller, bus ID 2, irq 19
Probing IDE interface ide0...
hda: TOSHIBA MK2016GAP, ATA DISK drive
hdb: TOSHIBA DVD-ROM SD-R2002, ATAPI CD/DVD-ROM drive
hda: Enabling Ultra DMA 2
hdb: Enabling MultiWord DMA 2
ide0 at 0xd9012000-0xd9012007,0xd9012160 on irq 19
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
PCI: Enabling device 0001:10:18.0 (0000 -> 0002)
ohci_hcd 0001:10:18.0: OHCI Host Controller
ohci_hcd 0001:10:18.0: new USB bus registered, assigned bus number 1
ohci_hcd 0001:10:18.0: irq 27, io mem 0x80081000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Enabling device 0001:10:19.0 (0000 -> 0002)
ohci_hcd 0001:10:19.0: OHCI Host Controller
ohci_hcd 0001:10:19.0: new USB bus registered, assigned bus number 2
ohci_hcd 0001:10:19.0: irq 28, io mem 0x80080000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
input: PMU as /class/input/input4
Registered led device: pmu-front-led
Freeing unused kernel memory: 196k init
usb 1-1: new low speed USB device using ohci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
PowerMac i2c bus pmu 2 registered
PowerMac i2c bus pmu 1 registered
PowerMac i2c bus mac-io 0 registered
PowerMac i2c bus uni-n 1 registered
PowerMac i2c bus uni-n 0 registered
hda: max request size: 128KiB
firewire_ohci: Added fw-ohci device 0002:20:0e.0, OHCI version 1.0
sungem.c:v0.98 8/24/03 David S. Miller (***@redhat.com)
PHY ID: 4061e4, addr: 0
eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:03:93:1d:f8:22
eth0: Found BCM5221 PHY
usbcore: registered new interface driver hiddev
input: HID 062a:0001 as /class/input/input5
input: USB HID v1.10 Mouse [HID 062a:0001] on usb-0001:10:18.0-1
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
hda: 39070080 sectors (20003 MB), CHS=38760/16/63, UDMA(33)
hda: cache flushes not supported
hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9
hdb: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
firewire_core: created new fw device fw0 (0 config rom retries)
Attempting manual resume
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
eth0: Link is up at 100 Mbps, full-duplex.
Linux agpgart interface v0.102 (c) Dave Jones
agpgart: Detected Apple UniNorth/Pangea chipset
agpgart: configuring for size idx: 8
agpgart: AGP aperture is 32M @ 0x0
Adding 676k swap on /dev/hda7. Priority:-1 extents:1 across:676k
EXT3 FS on hda6, internal journal
SCSI subsystem initialized
loop: module loaded
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised:
dm-***@redhat.com
eth0: Link is up at 100 Mbps, full-duplex.
eth0: Pause is disabled
ondemand governor failed to load due to too long transition latency
ondemand governor failed to load due to too long transition latency
lp: driver loaded but no devices found
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
***@ibook:~$
able to run a modern OS on that old notebook. Unfortunately I cannot get
suspend to work out-of-the box: when I close the lid, my iBook suspends
seemingly ok, but it fails to wake-up.
Being new to iBook, I'm looking for some clues to solve this annoying
problem. Do I have to compile my own kernel? Dmesg and cpuinfo are at
the end of this message.
Thanks!
Mikko
-------------
processor : 0
cpu : 745/755
temperature : 7-9 C (uncalibrated)
clock : 600.000000MHz
revision : 51.17 (pvr 0008 3311)
bogomips : 49.79
timebase : 24960000
platform : PowerMac
machine : PowerBook4,1
motherboard : PowerBook4,1 MacRISC2 MacRISC Power Macintosh
detected as : 257 (iBook 2)
pmac flags : 0000001b
L2 cache : 256K unified
pmac-generation: NewWorld
***@ibook:~$ dmesgcpu : 745/755
temperature : 7-9 C (uncalibrated)
clock : 600.000000MHz
revision : 51.17 (pvr 0008 3311)
bogomips : 49.79
timebase : 24960000
platform : PowerMac
machine : PowerBook4,1
motherboard : PowerBook4,1 MacRISC2 MacRISC Power Macintosh
detected as : 257 (iBook 2)
pmac flags : 0000001b
L2 cache : 256K unified
pmac-generation: NewWorld
Using PowerMac machine description
Total memory = 384MB; using 1024kB for hash table (at cff00000)
Linux version 2.6.22-3-powerpc (Debian 2.6.22-6) (***@debian.org) (gcc
version 4.1.3 20071019 (prerelease) (Debian 4.1.2-17)) #1 Tue Nov 13
15:52:56 UTC 2007
Found initrd at 0xc1900000:0xc1eb5000
Found UniNorth memory controller & host bridge @ 0xf8000000 revision:
0xc0
Mapped at 0xfdfc0000
Found a Pangea mac-io controller, rev: 0, mapped at 0xfdf40000
Processor NAP mode on idle enabled.
PowerMac motherboard: iBook 2
via-pmu: Server Mode is disabled
PMU driver v2 initialized for Core99, firmware: 0c
Entering add_active_range(0, 0, 98304) 0 entries of 256 used
Found UniNorth PCI host bridge at 0x00000000f0000000. Firmware bus
number: 0->0
Found UniNorth PCI host bridge at 0x00000000f2000000. Firmware bus
number: 0->0
Found UniNorth PCI host bridge at 0x00000000f4000000. Firmware bus
number: 0->0
nvram: Checking bank 0...
nvram: gen0=966, gen1=967
nvram: Active bank is: 1
nvram: OF partition at 0x410
nvram: XP partition at 0x1020
nvram: NR partition at 0x1120
Top of RAM: 0x18000000, Total RAM: 0x18000000
Memory hole size: 0MB
Zone PFN ranges:
DMA 0 -> 98304
Normal 98304 -> 98304
HighMem 98304 -> 98304
early_node_map[1] active PFN ranges
0: 0 -> 98304
On node 0 totalpages: 98304
DMA zone: 768 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 97536 pages, LIFO batch:31
Normal zone: 0 pages used for memmap
HighMem zone: 0 pages used for memmap
Built 1 zonelists. Total pages: 97536
Kernel command line: root=/dev/hda6 ro
mpic: Setting up MPIC " MPIC 1 " version 1.2 at 80040000, max 4 CPUs
mpic: ISU size: 64, shift: 6, mask: 3f
mpic: Initializing for 64 sources
PID hash table entries: 2048 (order: 11, 8192 bytes)
GMT Delta read from XPRAM: 120 minutes, DST: off
time_init: decrementer frequency = 24.960000 MHz
time_init: processor frequency = 600.000000 MHz
Console: colour dummy device 80x25
console handover: boot [udbg0] -> real [tty0]
serial8250_console_init: nothing to do on PowerMac
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
High memory: 0k
Memory: 378496k/393216k available (3348k kernel code, 14280k reserved,
148k data, 294k bss, 196k init)
Calibrating delay loop... 49.79 BogoMIPS (lpj=99584)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
device-tree: Duplicate name in /cpus/PowerPC,***@0, renamed to
"l2-cache#1"
NET: Registered protocol family 16
KeyWest i2c @0xf8001003 irq 42 /uni-***@f8000000/***@f8001000
channel 0 bus <multibus>
channel 1 bus <multibus>
KeyWest i2c @0x80018000 irq 26 /***@f2000000/mac-***@17/***@18000
channel 0 bus <multibus>
PMU i2c /***@f2000000/mac-***@17/via-***@16000
channel 1 bus <multibus>
channel 2 bus <multibus>
PCI: Probing PCI hardware
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 5844k freed
Thermal assist unit using timers, shrink_timer: 500 jiffies
Registering PowerMac CPU frequency driver
Low: 400 Mhz, High: 600 Mhz, Boot: 600 Mhz
audit: initializing netlink socket (disabled)
audit(1199685284.460:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: Enabling device 0000:00:10.0 (0086 -> 0087)
aty128fb: Invalid ROM signature c631 should be 0xaa55
aty128fb: BIOS not located, guessing timings.
aty128fb: Rage128 LF M3 AGP [chip rev 0x0] 8M 128-bit SDR SGRAM (1:1)
aty128: Backlight initialized (aty128bl0)
Console: switching to colour frame buffer device 128x48
fb0: ATY Rage128 frame buffer device on Rage128 LF M3 AGP
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
serial8250_init: nothing to do on PowerMac
pmac_zilog: 0.6 (Benjamin Herrenschmidt <***@kernel.crashing.org>)
ttyS0 at MMIO 0x80013020 (irq = 22) is a Z85c30 ESCC - Serial port
ttyS1 at MMIO 0x80013000 (irq = 23) is a Z85c30 ESCC - Serial port
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
MacIO PCI driver attached to Pangea chipset
input: Macintosh mouse button emulation as /class/input/input0
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
adb: starting probe task...
adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
ADB keyboard at 2, handler 1
Detected ADB keyboard, type ISO, swapping keys.
input: ADB keyboard as /class/input/input1
input: ADB Powerbook buttons as /class/input/input2
ADB mouse at 3, handler set to 4 (trackpad)
input: ADB mouse as /class/input/input3
adb: finished probe task...
ide0: Found Apple KeyLargo ATA-4 controller, bus ID 2, irq 19
Probing IDE interface ide0...
hda: TOSHIBA MK2016GAP, ATA DISK drive
hdb: TOSHIBA DVD-ROM SD-R2002, ATAPI CD/DVD-ROM drive
hda: Enabling Ultra DMA 2
hdb: Enabling MultiWord DMA 2
ide0 at 0xd9012000-0xd9012007,0xd9012160 on irq 19
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
PCI: Enabling device 0001:10:18.0 (0000 -> 0002)
ohci_hcd 0001:10:18.0: OHCI Host Controller
ohci_hcd 0001:10:18.0: new USB bus registered, assigned bus number 1
ohci_hcd 0001:10:18.0: irq 27, io mem 0x80081000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Enabling device 0001:10:19.0 (0000 -> 0002)
ohci_hcd 0001:10:19.0: OHCI Host Controller
ohci_hcd 0001:10:19.0: new USB bus registered, assigned bus number 2
ohci_hcd 0001:10:19.0: irq 28, io mem 0x80080000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
input: PMU as /class/input/input4
Registered led device: pmu-front-led
Freeing unused kernel memory: 196k init
usb 1-1: new low speed USB device using ohci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
PowerMac i2c bus pmu 2 registered
PowerMac i2c bus pmu 1 registered
PowerMac i2c bus mac-io 0 registered
PowerMac i2c bus uni-n 1 registered
PowerMac i2c bus uni-n 0 registered
hda: max request size: 128KiB
firewire_ohci: Added fw-ohci device 0002:20:0e.0, OHCI version 1.0
sungem.c:v0.98 8/24/03 David S. Miller (***@redhat.com)
PHY ID: 4061e4, addr: 0
eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:03:93:1d:f8:22
eth0: Found BCM5221 PHY
usbcore: registered new interface driver hiddev
input: HID 062a:0001 as /class/input/input5
input: USB HID v1.10 Mouse [HID 062a:0001] on usb-0001:10:18.0-1
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
hda: 39070080 sectors (20003 MB), CHS=38760/16/63, UDMA(33)
hda: cache flushes not supported
hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9
hdb: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
firewire_core: created new fw device fw0 (0 config rom retries)
Attempting manual resume
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
eth0: Link is up at 100 Mbps, full-duplex.
Linux agpgart interface v0.102 (c) Dave Jones
agpgart: Detected Apple UniNorth/Pangea chipset
agpgart: configuring for size idx: 8
agpgart: AGP aperture is 32M @ 0x0
Adding 676k swap on /dev/hda7. Priority:-1 extents:1 across:676k
EXT3 FS on hda6, internal journal
SCSI subsystem initialized
loop: module loaded
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised:
dm-***@redhat.com
eth0: Link is up at 100 Mbps, full-duplex.
eth0: Pause is disabled
ondemand governor failed to load due to too long transition latency
ondemand governor failed to load due to too long transition latency
lp: driver loaded but no devices found
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
***@ibook:~$
--
--
http://www.helsinki.fi/~piippo
--
http://www.helsinki.fi/~piippo