Switching to battery power locks up Macbook pro

Bug #186018 reported by Rob Campbell
8
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm running 7.10 Kubuntu on a new Macbook Pro (15", rev. 3).
The system is stable so long as it's plugged in. When running on battery I get these weird random crashes every 10 minutes or so. I suddenly loose X and dumped into a blank terminal screen with nothing there but a cursor in the top left. It won't respond to keyboard input so I have to do a hard reset. I've tried disabling applesmc and that doesn't help. The crashes aren't obviously related to switching the CPU frequency policy since I can run it fine on powersave mode with the power cord connected. I can reproduce the crashes by removing the power cord since the system locks within about 10 minutes. However I've not found anything useful in the logs. My lspci output and acpi log from a crash are below

acpi log [note that the lid close event that precedes this crash doesn't generally cause the fault. The machine could go down even if I'm doing nothing at all]

[Thu Jan 24 23:27:46 2008] executing action "/etc/acpi/lid.sh"
[Thu Jan 24 23:27:46 2008] BEGIN HANDLER MESSAGES
ERROR: Couldn't attach to DCOP server!
[Thu Jan 24 23:27:46 2008] END HANDLER MESSAGES
[Thu Jan 24 23:27:46 2008] action exited with status 1
[Thu Jan 24 23:27:46 2008] completed event "button/lid LID0 00000080 00000002"

***** CRASH HERE ********

[Thu Jan 24 23:28:58 2008] starting up
[Thu Jan 24 23:28:58 2008] 72 rules loaded
[Thu Jan 24 23:28:59 2008] client connected from 5386[0:0]
[Thu Jan 24 23:28:59 2008] 1 client rule loaded
[Thu Jan 24 23:28:59 2008] client connected from 5410[107:116]
[Thu Jan 24 23:28:59 2008] 1 client rule loaded
[Thu Jan 24 23:29:02 2008] client connected from 5386[0:0]
[Thu Jan 24 23:29:02 2008] 1 client rule loaded
[Thu Jan 24 23:29:07 2008] received event "ac_adapter ADP1 00000080 00000001"
[Thu Jan 24 23:29:07 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:07 2008] notifying client 5410[107:116]
[Thu Jan 24 23:29:07 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:07 2008] executing action "/etc/acpi/power.sh"
[Thu Jan 24 23:29:07 2008] BEGIN HANDLER MESSAGES
[Thu Jan 24 23:29:08 2008] END HANDLER MESSAGES
[Thu Jan 24 23:29:08 2008] action exited with status 0
[Thu Jan 24 23:29:08 2008] completed event "ac_adapter ADP1 00000080 00000001"
[Thu Jan 24 23:29:08 2008] received event "processor CPU0 00000080 00000000"
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] notifying client 5410[107:116]
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] completed event "processor CPU0 00000080 00000000"
[Thu Jan 24 23:29:08 2008] received event "processor CPU0 00000081 00000000"
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] notifying client 5410[107:116]
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] completed event "processor CPU0 00000081 00000000"
[Thu Jan 24 23:29:08 2008] received event "processor CPU1 00000080 00000000"
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] notifying client 5410[107:116]
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] completed event "processor CPU1 00000080 00000000"
[Thu Jan 24 23:29:08 2008] received event "processor CPU1 00000081 00000000"
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] notifying client 5410[107:116]
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] completed event "processor CPU1 00000081 00000000"
[Thu Jan 24 23:29:08 2008] received event "battery BAT0 00000080 00000001"
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] notifying client 5410[107:116]
[Thu Jan 24 23:29:08 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:08 2008] executing action "/etc/acpi/power.sh"
[Thu Jan 24 23:29:08 2008] BEGIN HANDLER MESSAGES
[Thu Jan 24 23:29:08 2008] END HANDLER MESSAGES
[Thu Jan 24 23:29:08 2008] action exited with status 0
[Thu Jan 24 23:29:08 2008] completed event "battery BAT0 00000080 00000001"
[Thu Jan 24 23:29:10 2008] received event "battery BAT0 00000080 00000001"
[Thu Jan 24 23:29:10 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:10 2008] notifying client 5410[107:116]
[Thu Jan 24 23:29:10 2008] notifying client 5386[0:0]
[Thu Jan 24 23:29:10 2008] executing action "/etc/acpi/power.sh"
[Thu Jan 24 23:29:10 2008] BEGIN HANDLER MESSAGES
[Thu Jan 24 23:29:10 2008] END HANDLER MESSAGES
[Thu Jan 24 23:29:10 2008] action exited with status 0
[Thu Jan 24 23:29:10 2008] completed event "battery BAT0 00000080 00000001"

-------------------------------------------------------------------------------
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, fast devsel, latency 0
 Capabilities: [e0] Vendor Specific Information

00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 03) (prog-if 00 [Normal decode])
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
 I/O behind bridge: 00005000-00005fff
 Memory behind bridge: 90000000-930fffff
 Prefetchable memory behind bridge: 0000000080000000-000000008fffffff
 Capabilities: [88] Subsystem: Intel Corporation Unknown device 0000
 Capabilities: [80] Power Management version 3
 Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
 Capabilities: [a0] Express Root Port (Slot+) IRQ 0

00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03) (prog-if 00 [UHCI])
 Flags: bus master, medium devsel, latency 0, IRQ 20
 I/O ports at 60c0 [size=32]

00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03) (prog-if 00 [UHCI])
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, medium devsel, latency 0, IRQ 16
 I/O ports at 60a0 [size=32]

00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20 [EHCI])
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, medium devsel, latency 0, IRQ 21
 Memory at 9b504c00 (32-bit, non-prefetchable) [size=1K]
 Capabilities: [50] Power Management version 2
 Capabilities: [58] Debug port

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, fast devsel, latency 0, IRQ 20
 Memory at 9b500000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: [50] Power Management version 2
 Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
 Capabilities: [70] Express Unknown type IRQ 0

00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03) (prog-if 00 [Normal decode])
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
 Memory behind bridge: 9b400000-9b4fffff
 Capabilities: [40] Express Root Port (Slot+) IRQ 0
 Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
 Capabilities: [90] Subsystem: Gammagraphx, Inc. Unknown device 0000
 Capabilities: [a0] Power Management version 2

00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03) (prog-if 00 [Normal decode])
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=03, subordinate=0a, sec-latency=0
 I/O behind bridge: 00004000-00004fff
 Memory behind bridge: 97400000-9b3fffff
 Prefetchable memory behind bridge: 0000000093100000-00000000970fffff
 Capabilities: [40] Express Root Port (Slot+) IRQ 0
 Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
 Capabilities: [90] Subsystem: Gammagraphx, Inc. Unknown device 0000
 Capabilities: [a0] Power Management version 2

00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03) (prog-if 00 [Normal decode])
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=0b, subordinate=0b, sec-latency=0
 Memory behind bridge: 97300000-973fffff
 Capabilities: [40] Express Root Port (Slot+) IRQ 0
 Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
 Capabilities: [90] Subsystem: Gammagraphx, Inc. Unknown device 0000
 Capabilities: [a0] Power Management version 2

00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 03) (prog-if 00 [Normal decode])
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=0c, subordinate=0c, sec-latency=0
 I/O behind bridge: 00003000-00003fff
 Memory behind bridge: 97200000-972fffff
 Prefetchable memory behind bridge: 000000009b600000-000000009b6fffff
 Capabilities: [40] Express Root Port (Slot+) IRQ 0
 Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
 Capabilities: [90] Subsystem: Gammagraphx, Inc. Unknown device 0000
 Capabilities: [a0] Power Management version 2

00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI])
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, medium devsel, latency 0, IRQ 16
 I/O ports at 6080 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI])
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, medium devsel, latency 0, IRQ 18
 I/O ports at 6060 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI])
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, medium devsel, latency 0, IRQ 21
 I/O ports at 6040 [size=32]

00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI])
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, medium devsel, latency 0, IRQ 20
 Memory at 9b504800 (32-bit, non-prefetchable) [size=1K]
 Capabilities: [50] Power Management version 2
 Capabilities: [58] Debug port

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) (prog-if 01 [Subtractive decode])
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=0d, subordinate=0d, sec-latency=32
 Memory behind bridge: 97100000-971fffff
 Capabilities: [50] Subsystem: Gammagraphx, Inc. Unknown device 0000

00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, medium devsel, latency 0
 Capabilities: [e0] Vendor Specific Information

00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03) (prog-if 8a [Master SecP PriP])
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, medium devsel, latency 0, IRQ 21
 I/O ports at 01f0 [size=8]
 I/O ports at 03f4 [size=1]
 I/O ports at 0170 [size=8]
 I/O ports at 0374 [size=1]
 I/O ports at 60e0 [size=16]

00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03) (prog-if 8f [Master SecP SecO PriP PriO])
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 18
 I/O ports at 60f8 [size=8]
 I/O ports at 6114 [size=4]
 I/O ports at 60f0 [size=8]
 I/O ports at 6110 [size=4]
 I/O ports at 6020 [size=16]
 I/O ports at 1000 [size=16]
 Capabilities: [70] Power Management version 3

00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: medium devsel, IRQ 10
 Memory at 9b505000 (32-bit, non-prefetchable) [size=256]
 I/O ports at efa0 [size=32]

01:00.0 VGA compatible controller: nVidia Corporation GeForce 8600M GT (rev a1) (prog-if 00 [VGA])
 Subsystem: Apple Computer Inc. Unknown device 00a0
 Flags: bus master, fast devsel, latency 0, IRQ 16
 Memory at 92000000 (32-bit, non-prefetchable) [size=16M]
 Memory at 80000000 (64-bit, prefetchable) [size=256M]
 Memory at 90000000 (64-bit, non-prefetchable) [size=32M]
 I/O ports at 5000 [size=128]
 [virtual] Expansion ROM at 93000000 [disabled] [size=128K]
 Capabilities: [60] Power Management version 2
 Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
 Capabilities: [78] Express Endpoint IRQ 0

0b:00.0 Network controller: Atheros Communications, Inc. AR5418 802.11a/b/g/n Wireless PCI Express Adapter (rev 01)
 Subsystem: Apple Computer Inc. Unknown device 0087
 Flags: bus master, fast devsel, latency 0, IRQ 16
 Memory at 97300000 (64-bit, non-prefetchable) [size=64K]
 Capabilities: [40] Power Management version 2
 Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
 Capabilities: [60] Express Legacy Endpoint IRQ 0
 Capabilities: [90] MSI-X: Enable- Mask- TabSize=1

0c:00.0 Ethernet controller: Marvell Technology Group Ltd. Marvell Yukon 88E8058 PCI-E Gigabit Ethernet Controller (rev 13)
 Subsystem: Marvell Technology Group Ltd. Unknown device 00ba
 Flags: bus master, fast devsel, latency 0, IRQ 17
 Memory at 97200000 (64-bit, non-prefetchable) [size=16K]
 I/O ports at 3000 [size=256]
 Expansion ROM at 9b600000 [disabled] [size=128K]
 Capabilities: [48] Power Management version 3
 Capabilities: [50] Vital Product Data
 Capabilities: [5c] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
 Capabilities: [e0] Express Legacy Endpoint IRQ 0

0d:03.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b Link Layer Controller (rev 02) (prog-if 10 [OHCI])
 Flags: bus master, medium devsel, latency 248, IRQ 19
 Memory at 97104000 (32-bit, non-prefetchable) [size=2K]
 Memory at 97100000 (32-bit, non-prefetchable) [size=16K]
 Capabilities: [44] Power Management version 2

Tags: cft-2.6.27
Revision history for this message
nosrednaekim (nosrednaekim) wrote :

are you sure its not a switch event? It certainly looks like it.

Try pressing the lid switch and see what the acpi log says. If it says the same thing and it DOESN'T crash, either its not acpi, or acpi is failing silently i guess.

Revision history for this message
Brian Murray (brian-murray) wrote : Package assigned

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage. I have classified this bug as a bug in linux.

Revision history for this message
Brian Murray (brian-murray) wrote : Need more information

Please include the output of the command 'uname -a' in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command 'dmesg > dmesg.log' and attach the resulting file 'dmesg.log' to this bug report.
3. Please run the command 'sudo lspci -vvnn > lspci-vvnn.log' and attach the resulting file 'lspci-vvnn.log' to this bug report.
For your reference, the full description of procedures for kernel-related bug reports is available at https://wiki.ubuntu.com/KernelTeamBugPolicies . Thanks in advance!

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Michele Mangili (mangilimic) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in linux:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.