2006 / MacBook: Use Headphone port after suspend
MacBook: Use headphone port after suspend
The night from yesterday to today, my macbook fell into deep sleep as a result of
gnome-power-manager acting upon power loss. Anyway: I was quite surprised that
the macbook came up as I have left it - didn't think this was possible already,
with stock Debian kernels (2.6.17-2-686 is what i currently use).
Anyway, here's part of the syslog from my first macbook suspend on linux ;)
Oct 16 07:49:44 macbook NetworkManager: ^IGoing to sleep.
Oct 16 07:49:44 macbook kernel: sky2 eth1: disabling interface
Oct 16 07:49:44 macbook gnome-power-manager: Suspending computer because the system state is idle
Oct 16 07:49:46 macbook kernel: Freezing cpus ...
Oct 16 07:49:46 macbook kernel: Cannot set affinity for irq 0
Oct 16 07:49:46 macbook kernel: CPU 1 is now offline
Oct 16 07:49:46 macbook kernel: SMP alternatives: switching to UP code
Oct 16 11:23:45 macbook kernel: CPU1 is down
Oct 16 11:23:49 macbook kernel: Stopping tasks: ====================================================================================================================================================================|
Oct 16 11:23:49 macbook kernel: Shrinking memory... ^H-^H\^H|^H/^H-^Hdone (60660 pages freed)
Oct 16 11:23:49 macbook kernel: uvcvideo 5-4:1.1: no suspend for driver uvcvideo?
Oct 16 11:23:49 macbook kernel: uvcvideo 5-4:1.0: no suspend for driver uvcvideo?
Oct 16 11:23:49 macbook kernel: ACPI: PCI interrupt for device 0000:02:00.0 disabled
Oct 16 11:23:49 macbook kernel: ACPI: PCI interrupt for device 0000:00:1f.2 disabled
Oct 16 11:23:49 macbook kernel: ACPI: PCI interrupt for device 0000:00:1d.7 disabled
Oct 16 11:23:49 macbook kernel: ACPI: PCI interrupt for device 0000:00:1d.3 disabled
Oct 16 11:23:49 macbook kernel: ACPI: PCI interrupt for device 0000:00:1d.2 disabled
Oct 16 11:23:49 macbook kernel: ACPI: PCI interrupt for device 0000:00:1d.1 disabled
Oct 16 11:23:49 macbook kernel: ACPI: PCI interrupt for device 0000:00:1d.0 disabled
Oct 16 11:23:49 macbook kernel: hda_intel: azx_get_response timeout, switching to single_cmd mode...
Oct 16 11:23:49 macbook kernel: ACPI: PCI interrupt for device 0000:00:1b.0 disabled
Oct 16 11:23:49 macbook kernel:
Oct 16 11:23:49 macbook kernel: swsusp: Need to copy 59513 pages
Oct 16 11:23:49 macbook kernel: Intel machine check architecture supported.
Oct 16 11:23:49 macbook kernel: Intel machine check reporting enabled on CPU#0.
Oct 16 11:23:50 macbook kernel: swsusp: Restoring Highmem
Oct 16 11:23:50 macbook kernel: ACPI: PCI Interrupt 0000:00:02.0[A] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10
Oct 16 11:23:50 macbook kernel: PM: Writing back config space on device 0000:00:1b.0 at offset 1 (was 100006, writing 100002)Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1b.0[A] -> Link [LNKG] -> GSI 10 (level, low) -> IRQ 10
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1b.0 to 64
Oct 16 11:23:51 macbook kernel: PM: Writing back config space on device 0000:00:1c.0 at offset 1 (was 100007, writing 100407)Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1c.0[A] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1c.0 to 64
Oct 16 11:23:51 macbook kernel: PM: Writing back config space on device 0000:00:1c.1 at offset 1 (was 100007, writing 100407)Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1c.1[B] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1c.1 to 64
Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1d.0[A] -> Link [LNKH] -> GSI 11 (level, low) -> IRQ 11
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1d.0 to 64
Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1d.1[B] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1d.1 to 64
Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1d.2[C] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1d.2 to 64
Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1d.3[D] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1d.3 to 64
Oct 16 11:23:51 macbook kernel: PCI: Enabling device 0000:00:1d.7 (0000 -> 0002)
Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1d.7[A] -> Link [LNKH] -> GSI 11 (level, low) -> IRQ 11
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1d.7 to 64
Oct 16 11:23:51 macbook kernel: PM: Writing back config space on device 0000:00:1d.7 at offset f (was 100, writing 10b)
Oct 16 11:23:51 macbook kernel: PM: Writing back config space on device 0000:00:1d.7 at offset 4 (was 0, writing 90445400)
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1e.0 to 64
Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1f.1[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Oct 16 11:23:51 macbook kernel: PM: Writing back config space on device 0000:00:1f.2 at offset 1 (was 2b00003, writing 2b00007)
Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:00:1f.2[B] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:00:1f.2 to 64
Oct 16 11:23:51 macbook kernel: PM: Writing back config space on device 0000:01:00.0 at offset 1 (was 40100007, writing 100407)
Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
Oct 16 11:23:51 macbook kernel: PCI: Setting latency timer of device 0000:02:00.0 to 64
Oct 16 11:23:51 macbook kernel: ACPI: PCI Interrupt 0000:03:03.0[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
Oct 16 11:23:51 macbook kernel: ata1: dev 1 configured for UDMA/100
Oct 16 11:23:51 macbook kernel: Restarting tasks...<6>usb 5-4: USB disconnect, address 4
Oct 16 11:23:51 macbook kernel: done
Oct 16 11:23:51 macbook kernel: Thawing cpus ...
Oct 16 11:23:51 macbook kernel: SMP alternatives: switching to SMP code
Oct 16 11:23:51 macbook kernel: Booting processor 1/1 eip 3000
Oct 16 11:23:51 macbook kernel: Initializing CPU#1
Oct 16 11:23:51 macbook kernel: Calibrating delay using timer specific routine.. 3994.76 BogoMIPS (lpj=7989524)
Oct 16 11:23:51 macbook kernel: CPU: After generic identify, caps: bfe9fbff 00100000 00000000 00000000 0000c1a9 00000000 00000000
Oct 16 11:23:51 macbook kernel: CPU: After vendor identify, caps: bfe9fbff 00100000 00000000 00000000 0000c1a9 00000000 00000000
Oct 16 11:23:51 macbook kernel: monitor/mwait feature present.
Oct 16 11:23:51 macbook kernel: CPU: L1 I cache: 32K, L1 D cache: 32K
Oct 16 11:23:51 macbook kernel: CPU: L2 cache: 2048K
Oct 16 11:23:51 macbook kernel: CPU: Physical Processor ID: 0
Oct 16 11:23:51 macbook kernel: CPU: Processor Core ID: 1
Oct 16 11:23:51 macbook kernel: CPU: After all inits, caps: bfe9fbff 00100000 00000000 00000140 0000c1a9 00000000 00000000
Oct 16 11:23:51 macbook kernel: Intel machine check architecture supported.
Oct 16 11:23:51 macbook kernel: Intel machine check reporting enabled on CPU#1.
Oct 16 11:23:51 macbook kernel: CPU1: Intel Genuine Intel(R) CPU T2500 @ 2.00GHz stepping 08
Oct 16 11:23:51 macbook kernel: APIC error on CPU1: 00(40)
Oct 16 11:23:51 macbook kernel: CPU1 is up
So what?
Very cool.. After virtual console switch, even X worked without restart, all
my open applications still ran (open SSH sessions timed out, but that's another
story ;). Wanted to listen to some music, but unfortunately
the sound came out of the speakers on the macbook, even though headphones were connected.
Re-loading the alsa driver, so headphone coolness is back again
You may have to close down programs that use the sound card before you can
re-load the driver, but the first command below will also tell you which of
the processes are using it, so you can kill these processes. Anyway, for my system,
I had to kill Gnome's volume applet, but gnome kindly asked me to re-start it for me
(which i approved after reloading the driver). So, here we go:
sudo /etc/init.d/alsa unload
modprobe snd-hda-intel
sudo /etc/init.d/alsa-utils start all
Now, listen to some happy music - on your headphones :)
Mon May 28 13:59:50 2007 +0000