[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Sleeping weirdness (was Re: ibook 2 : several question)



On lun, 2002-09-02 at 14:53, David M. Cooke wrote:
> 
> I had similiar problems, but it's working now. I had to disable IDE
> CDROM support, and compile SCSI emulation in.

Indeed, this configuration works. Compiling both as modules also works.

> 
> Since several people seem to have problems, I've put the deb for my
> kernel (2.4.20-pre5-ben0), along with the kernel config file and a deb
> for daenzer's drm-trunk-module at
> 
> http://arbutus.physics.mcmaster.ca/cookedm/ibook/
> 
> Currently, CDROM support with SCSI emulation, sleeping/waking up, and
> sound work. I haven't tested the CD-RW, but cdrecord -scanbus works.
> 

I've tried your kernel and with it sleeping now works... most of the
time. Once, it didn't wake up and another time it woke up and locked up
after.

Something even weirder is that I can't compile a kernel where sleeping
works. I've compiled a kernel using exactly you configuration file
(using the 2.4.20-pre5-benh0 rsync source) and kernel-package but it
never works.

I noticed that you compiled your kernel using gcc 3.2 pre-release so I
thought it might be the problem. I've compiled the kernel (always using
your configuration and doing a make-kpkg clean between run) using gcc
2.95, gcc 3.0 and gcc 3.2 and sleeping never works on the produced
kernel.

A thing that I noticed is that the iBook doesn't seems to sleep
correctly on the failing kernels: the light on the front side of the
iBook doesn't do it's usual sleeping heart beat. It does with the kernel
you compiled.

I'm including here the packages related to my build environment and also
a diff of the dmesg between your kernel and the last one I've compiled
using 3.2.

How is your build environment different than mine? Any insights in this
matter are welcome.

My build environment:

ii  binutils       2.13.90.0.4-1  The GNU assembler, linker and binary utiliti
ii  binutils-doc   2.12.90.0.1-4  Documentation for the GNU assembler, linker 

(binutils 2.12.90.0.1 was used with gcc-2.95 and gcc-3.0. I had to upgrade
binutils to install gcc-3.2 from unstable, otherwise I'm running testing)

ii  gcc            2.95.4-16      The GNU C compiler.
ii  gcc-2.95       2.95.4-11      The GNU C compiler.
ii  gcc-3.0        3.0.4-7        The GNU C compiler.
ii  gcc-3.0-base   3.0.4-7        The GNU Compiler Collection (base package).
ii  gcc-3.2        3.2.1-0pre1    The GNU C compiler.
ii  gcc-3.2-base   3.2.1-0pre1    The GNU Compiler Collection (base package).
ii  gcc-3.2-doc    3.2.1-0pre1    Documentation for the GNU compilers (gcc, go
ii  kernel-package 8.007          Debian Linux kernel package build scripts.
ii  libc6-dev      2.2.5-14       GNU C Library: Development Libraries and Hea
ii  libgcc1        3.2.1-0pre1    GCC support library.

The diff between boot messages generated by your kernel and mine 
(same configuration):

--- dmesg.snooze.worked	2002-09-03 18:25:20.000000000 -0400
+++ dmesg.fail-gcc-32	2002-09-03 18:44:10.000000000 -0400
@@ -1,6 +1,6 @@
 Memory BAT mapping: BAT2=256Mb, BAT3=128Mb, residual: 0Mb
-Total memory = 384MB; using 2048kB for hash table (at c0400000)
-Linux version 2.4.20-pre5-ben0 (dave@venus) (gcc version 3.2 20020809 (Debian prerelease)) #3 Sat Aug 31 07:47:38 EDT 2002
+Total memory = 384MB; using 1024kB for hash table (at c0400000)
+Linux version 2.4.20-pre5-ben0 (francis@Bourdieu) (gcc version 3.2.1 20020830 (Debian prerelease)) #1 mar sep 3 17:45:41 EDT 2002
 Found Uninorth memory controller & host bridge, revision: 192
 Mapped at 0xfdf3c000
 Found a Pangea mac-io controller, rev: 0, mapped at 0xfdebc000
@@ -30,7 +30,7 @@
 time_init: decrementer frequency = 24.835245 MHz
 Console: colour dummy device 80x25
 Calibrating delay loop... 1389.36 BogoMIPS
-Memory: 382776k available (2152k kernel code, 1028k data, 136k init, 0k highmem)
+Memory: 383800k available (2148k kernel code, 1032k data, 136k init, 0k highmem)
 AGP special page: 0xd7fff000
 Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
 Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
@@ -165,8 +165,8 @@
 Detected ADB keyboard, type ISO, swapping keys.
 input1: ADB HID on ID 2:2.c4
 input2: ADB HID on ID 7:7.1f
-ADB mouse at 3, handler set to 4 (trackpad)<7>(recovery.c, 254): journal_recover: JBD: recovery, exit status 0, recovered transactions 13593 to 13603
-(recovery.c, 256): journal_recover: JBD: Replayed 434 and revoked 0/3 blocks
+ADB mouse at 3, handler set to 4 (trackpad)<7>(recovery.c, 254): journal_recover: JBD: recovery, exit status 0, recovered transactions 13640 to 13653
+(recovery.c, 256): journal_recover: JBD: Replayed 475 and revoked 0/3 blocks
 
 input3: ADB HID on ID 3:3.01
 adb: finished probe task...
@@ -220,45 +220,3 @@
 EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,16), internal journal
 EXT3-fs: mounted filesystem with ordered data mode.
 ide_pmac: Set PIO timing for mode 4, reg: 0x1090014a
-usb-ohci.c: USB suspend: usb-10:18.0
-usb-ohci.c: USB suspend: usb-10:19.0
-eth0: suspending, WakeOnLan disabled
-hdb: channel busy
-CLK_PIN_CNTL on wakeup was: 00000005
-hda: Enabling Ultra DMA 2
-ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
-hdb: Enabling MultiWord DMA 2
-ide_pmac: MDMA, cycleTime: 120, accessTime: 75, recTime: 45
-ide_pmac: Set MDMA timing for mode 2, reg: 0x0001978c
-PCI: Enabling bus mastering for device 10:18.0
-usb-ohci.c: USB continue: usb-10:18.0 from host wakeup
-PCI: Enabling bus mastering for device 10:19.0
-usb-ohci.c: USB continue: usb-10:19.0 from host wakeup
-eth0: resuming
-adb: starting probe task...
-adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
-ADB keyboard at 2, handler 1
-ADB mouse at 3, handler set to 4 (trackpad)
-adb: finished probe task...
-Audio jack unplugged, enabling speakers.
-usb-ohci.c: USB suspend: usb-10:18.0
-usb-ohci.c: USB suspend: usb-10:19.0
-eth0: suspending, WakeOnLan disabled
-hdb: channel busy
-CLK_PIN_CNTL on wakeup was: 00000005
-hda: Enabling Ultra DMA 2
-ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
-hdb: Enabling MultiWord DMA 2
-ide_pmac: MDMA, cycleTime: 120, accessTime: 75, recTime: 45
-ide_pmac: Set MDMA timing for mode 2, reg: 0x0001978c
-PCI: Enabling bus mastering for device 10:18.0
-usb-ohci.c: USB continue: usb-10:18.0 from host wakeup
-PCI: Enabling bus mastering for device 10:19.0
-usb-ohci.c: USB continue: usb-10:19.0 from host wakeup
-eth0: resuming
-adb: starting probe task...
-adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
-ADB keyboard at 2, handler 1
-ADB mouse at 3, handler set to 4 (trackpad)
-adb: finished probe task...
-Audio jack unplugged, enabling speakers.


-- 
Francis J. Lacoste
francis@Contre.COM

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: