Laptop power management support

Julien Olivier julo at altern.org
Wed Nov 10 16:29:51 CST 2004


> Ah - your kernel is oopsing. Hmm. Do you have any USB storage devices
> plugged in?
> 

Yes, I did have a USB storage device plugged in when I did the test.
Then, I removed it and did new tests, with the same result. I attached
the output of dmesg after suspend and resume without anything plugged
in.

> How interesting - you're right, it doesn't have a sleep button. In that
> case, can you try opening a shell in Gnome and typing
> "sudo /etc/acpi/sleep.sh" ?
> 

I did that and it seemed to suspend: I got a black screen. But then,
pressing the power button didn't make it resume. I pressed it a little
longer (2 seconds) and it still didn't resume. Then, I pressed way
longer (4 or 5 seconds) and my laptop shut down :(

-- 
Julien Olivier <julo at altern.org>
-------------- next part --------------
:01:0a.1 [10cf:10e6]
Yenta: ISA IRQ mask 0x0438, PCI irq 11
Socket status: 30000006
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
8139cp: pci dev 0000:01:0c.0 (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp: Try the "8139too" driver instead.
8139too Fast Ethernet driver 0.9.27
ACPI: PCI interrupt 0000:01:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
eth0: RealTek RTL8139 at 0x3000, 00:0b:5d:4a:3d:86, IRQ 11
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
ieee80211_crypt: registered algorithm 'NULL'
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 0.11
ipw2200: Copyright(c) 2003-2004 Intel Corporation
ACPI: PCI interrupt 0000:01:0d.0[A] -> GSI 11 (level, low) -> IRQ 11
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ohci1394: $Rev: 1223 $ Ben Collins <bcollins at debian.org>
ACPI: PCI interrupt 0000:01:0e.0[A] -> GSI 11 (level, low) -> IRQ 11
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[11]  MMIO=[d0204800-d0204fff]  Max Packet=[2048]
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00000e10016cab18]
NET: Registered protocol family 17
NET: Registered protocol family 10
Disabled Privacy Extensions on device c02da4c0(lo)
IPv6 over IPv4 tunneling driver
eth1: duplicate address detected!
ACPI: Battery Slot [CMB1] (battery present)
ACPI: Battery Slot [CMB2] (battery absent)
ACPI: AC Adapter [AC] (on-line)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
cs: IO port probe 0x0100-0x04ff: excluding 0x400-0x407 0x4d0-0x4d7
cs: IO port probe 0x0800-0x08ff: clean.
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0a00-0x0aff: clean.
cpufreq: CPU0 - ACPI performance management activated.
cpufreq: *P0: 1600 MHz, 24500 mW, 100 uS
cpufreq:  P1: 1400 MHz, 20800 mW, 100 uS
cpufreq:  P2: 1200 MHz, 17100 mW, 100 uS
cpufreq:  P3: 1000 MHz, 13400 mW, 100 uS
cpufreq:  P4: 800 MHz, 9700 mW, 100 uS
cpufreq:  P5: 600 MHz, 6000 mW, 100 uS
ACPI: PCI interrupt 0000:00:02.0[A] -> GSI 11 (level, low) -> IRQ 11
[drm] Initialized i915 1.1.0 20040405 on minor 0: Intel Corp. 82852/855GM Integrated Graphics Device
[drm] Initialized i915 1.1.0 20040405 on minor 1: Intel Corp. 82852/855GM Integrated Graphics Device (#2)
mtrr: base(0xd8020000) is not aligned on a size(0x300000) boundary
uba: was not changed
UDF-fs: No VRS found
uba: was not changed
uba: was not changed
uba: was not changed
uba: was not changed
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
usb 4-4: USB disconnect, address 3
Unable to handle kernel NULL pointer dereference at virtual address 0000009e
 printing eip:
c01e7716
*pde = 00000000
Oops: 0000 [#1]
PREEMPT 
Modules linked in: nls_cp437 vfat fat isofs nls_utf8 udf i915 acpi proc_intf freq_table cpufreq_userspace cpufreq_ondemand cpufreq_powersave ds binfmt_misc button ac battery ipv6 af_packet ohci1394 ipw2200 firmware_class ieee80211 ieee80211_crypt 8139too 8139cp mii crc32 yenta_socket pcmcia_core snd_intel8x0m snd_intel8x0 snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc gameport snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore shpchp pciehp pci_hotplug hw_random ehci_hcd hci_usb bluetooth joydev ub usbhid uhci_hcd usbcore intel_agp agpgart irtty_sir sir_dev irda crc_ccitt pcspkr rtc md dm_mod capability commoncap parport_pc lp parport sbp2 ieee1394 tsdev evdev ide_cd mousedev psmouse sr_mod scsi_mod cdrom ext3 jbd ide_generic via82cxxx trm290 triflex slc90e66 sis5513 siimage serverworks sc1200 rz1000 piix pdc202xx_old opti621 ns87415 hpt366 ide_disk hpt34x generic cy82c693 cs5530 cs5520 cmd64x atiixp amd74xx alim15x3 aec62xx pdc202xx_new ide_core unix thermal processor fan
CPU:    0
EIP:    0060:[<c01e7716>]    Not tainted VLI
EFLAGS: 00010802   (2.6.9-1-386) 
EIP is at as_find_arq_hash+0x29/0x83
eax: 0000009e   ebx: dbb22d80   ecx: df2c5880   edx: 00000006
esi: 00006fd6   edi: 00000000   ebp: 00000000   esp: d7459a94
ds: 007b   es: 007b   ss: 0068
Process gam_server (pid: 7463, threadinfo=d7458000 task=dc074aa0)
Stack: 0000009e dbb22d80 dbb22d80 00006fd6 00000000 c01e8e80 df2c5880 00006fd6 
       00000000 00006fd7 00000000 df2c5880 00000001 df173990 00006fd6 00000000 
       c01e1f69 df173990 d7459b04 dbb22d80 c01e45bc df173990 d7459b04 dbb22d80 
Call Trace:
 [<c01e8e80>] as_merge+0x5f/0x19a
 [<c01e1f69>] elv_merge+0x18/0x1c
 [<c01e45bc>] __make_request+0xb5/0x49e
 [<c01e4b23>] generic_make_request+0x17e/0x190
 [<c01174b9>] autoremove_wake_function+0x0/0x3a
 [<c01e4bde>] submit_bio+0xa9/0xb1
 [<c014c16f>] bio_alloc+0x105/0x170
 [<c014bbe9>] submit_bh+0x12e/0x150
 [<c014a11d>] __bread_slow+0x39/0x64
 [<c014a366>] __bread+0x26/0x2c
 [<e05b8c70>] fat__get_entry+0xa3/0x15d [fat]
 [<e05b4bf5>] fat_search_long+0xe9/0x7ee [fat]
 [<c0115e83>] try_to_wake_up+0x47/0x94
 [<c0115ec5>] try_to_wake_up+0x89/0x94
 [<c0115eeb>] wake_up_state+0xc/0xe
 [<c0115e02>] activate_task+0x4d/0x5c
 [<c0115e83>] try_to_wake_up+0x47/0x94
 [<c0115ec5>] try_to_wake_up+0x89/0x94
 [<c0115eeb>] wake_up_state+0xc/0xe
 [<c0121a62>] __group_send_sig_info+0x33/0x82
 [<c0121b75>] group_send_sig_info+0x4a/0x67
 [<c0121b8b>] group_send_sig_info+0x60/0x67
 [<c0121eb2>] send_group_sig_info+0x1d/0x36
 [<c0121ec6>] send_group_sig_info+0x31/0x36
 [<c0156c5c>] send_sigio_to_task+0xd0/0xdb
 [<c01e17ca>] dma_pool_alloc+0x13d/0x147
 [<c0115da9>] recalc_task_prio+0x127/0x133
 [<c0115e02>] activate_task+0x4d/0x5c
 [<e05a6042>] vfat_find+0x58/0xdc [vfat]
 [<e05a6138>] vfat_lookup+0x72/0x1b7 [vfat]
 [<c015bdad>] d_alloc+0x1b/0x17b
 [<c015c185>] d_lookup+0x18/0x35
 [<c0152d48>] real_lookup+0x51/0xb5
 [<c0152f6d>] do_lookup+0x41/0x72
 [<c015378e>] link_path_walk+0x7f0/0xb86
 [<c0133caa>] __alloc_pages+0x97/0x2bc
 [<c0133ec3>] __alloc_pages+0x2b0/0x2bc
 [<c0152a3a>] getname+0x5e/0x98
 [<c0153df6>] path_lookup+0x121/0x129
 [<c0153f28>] __user_walk+0x23/0x3a
 [<c014f8f6>] vfs_stat+0x15/0x41
 [<c01fe9e3>] sock_poll+0x19/0x1d
 [<c0158209>] do_pollfd+0x59/0x80
 [<c0158283>] do_poll+0x53/0xb1
 [<c014fe8f>] sys_stat64+0x10/0x27
 [<c0193822>] copy_to_user+0x2c/0x36
 [<c010b262>] do_gettimeofday+0x16/0x9d
 [<c011cab7>] sys_time+0x13/0x58
 [<c0106025>] sysenter_past_esp+0x52/0x71
Code: 5e c3 55 57 56 53 56 8b 74 24 1c 8b 7c 24 20 89 f0 0f ac f8 03 69 c0 01 00 37 9e 8b 4c 24 18 c1 e8 1a 8b 51 38 8d 04 c2 89 04 24 <8b> 28 39 c5 74 4c 8d 55 e0 83 7a 28 00 8b 5a 18 8b 6d 00 75 08 
 <6>note: gam_server[7463] exited with preempt_count 2
bad: scheduling while atomic!
 [<c0256908>] schedule+0x3c/0x417
 [<c013b2e9>] unmap_vmas+0xe0/0x1cf
 [<c013b36b>] unmap_vmas+0x162/0x1cf
 [<c013eb2f>] exit_mmap+0x63/0x123
 [<c01176e3>] mmput+0x5e/0x82
 [<c011b2a5>] do_exit+0x162/0x34f
 [<c010715c>] do_divide_error+0x0/0xe8
 [<c01151cb>] do_page_fault+0x374/0x4f1
 [<c011520d>] do_page_fault+0x3b6/0x4f1
 [<c0132e33>] mempool_alloc_slab+0xd/0x10
 [<c0132ccd>] mempool_alloc+0x61/0x136
 [<c01174b9>] autoremove_wake_function+0x0/0x3a
 [<c01174b9>] autoremove_wake_function+0x0/0x3a
 [<c0114e57>] do_page_fault+0x0/0x4f1
 [<c0106a81>] error_code+0x2d/0x38
 [<c01e7716>] as_find_arq_hash+0x29/0x83
 [<c01e8e80>] as_merge+0x5f/0x19a
 [<c01e1f69>] elv_merge+0x18/0x1c
 [<c01e45bc>] __make_request+0xb5/0x49e
 [<c01e4b23>] generic_make_request+0x17e/0x190
 [<c01174b9>] autoremove_wake_function+0x0/0x3a
 [<c01e4bde>] submit_bio+0xa9/0xb1
 [<c014c16f>] bio_alloc+0x105/0x170
 [<c014bbe9>] submit_bh+0x12e/0x150
 [<c014a11d>] __bread_slow+0x39/0x64
 [<c014a366>] __bread+0x26/0x2c
 [<e05b8c70>] fat__get_entry+0xa3/0x15d [fat]
 [<e05b4bf5>] fat_search_long+0xe9/0x7ee [fat]
 [<c0115e83>] try_to_wake_up+0x47/0x94
 [<c0115ec5>] try_to_wake_up+0x89/0x94
 [<c0115eeb>] wake_up_state+0xc/0xe
 [<c0115e02>] activate_task+0x4d/0x5c
 [<c0115e83>] try_to_wake_up+0x47/0x94
 [<c0115ec5>] try_to_wake_up+0x89/0x94
 [<c0115eeb>] wake_up_state+0xc/0xe
 [<c0121a62>] __group_send_sig_info+0x33/0x82
 [<c0121b75>] group_send_sig_info+0x4a/0x67
 [<c0121b8b>] group_send_sig_info+0x60/0x67
 [<c0121eb2>] send_group_sig_info+0x1d/0x36
 [<c0121ec6>] send_group_sig_info+0x31/0x36
 [<c0156c5c>] send_sigio_to_task+0xd0/0xdb
 [<c01e17ca>] dma_pool_alloc+0x13d/0x147
 [<c0115da9>] recalc_task_prio+0x127/0x133
 [<c0115e02>] activate_task+0x4d/0x5c
 [<e05a6042>] vfat_find+0x58/0xdc [vfat]
 [<e05a6138>] vfat_lookup+0x72/0x1b7 [vfat]
 [<c015bdad>] d_alloc+0x1b/0x17b
 [<c015c185>] d_lookup+0x18/0x35
 [<c0152d48>] real_lookup+0x51/0xb5
 [<c0152f6d>] do_lookup+0x41/0x72
 [<c015378e>] link_path_walk+0x7f0/0xb86
 [<c0133caa>] __alloc_pages+0x97/0x2bc
 [<c0133ec3>] __alloc_pages+0x2b0/0x2bc
 [<c0152a3a>] getname+0x5e/0x98
 [<c0153df6>] path_lookup+0x121/0x129
 [<c0153f28>] __user_walk+0x23/0x3a
 [<c014f8f6>] vfs_stat+0x15/0x41
 [<c01fe9e3>] sock_poll+0x19/0x1d
 [<c0158209>] do_pollfd+0x59/0x80
 [<c0158283>] do_poll+0x53/0xb1
 [<c014fe8f>] sys_stat64+0x10/0x27
 [<c0193822>] copy_to_user+0x2c/0x36
 [<c010b262>] do_gettimeofday+0x16/0x9d
 [<c011cab7>] sys_time+0x13/0x58
 [<c0106025>] sysenter_past_esp+0x52/0x71
Stopping tasks: ================================================================================================================|
Freeing memory: ....................................................................................................................................................................................................................|
hci_usb 3-1:1.0: resume is unsafe!
hci_usb 3-1:1.1: resume is unsafe!
usb 3-1: no poweroff yet, suspending instead
usbhid 1-2:1.0: resume is unsafe!
usb 1-2: no poweroff yet, suspending instead
usb usb4: no poweroff yet, suspending instead
usb usb3: no poweroff yet, suspending instead
usb usb2: no poweroff yet, suspending instead
usb usb1: no poweroff yet, suspending instead
ACPI: PCI interrupt 0000:00:02.0[A] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.5 to 64
ACPI: PCI interrupt 0000:00:1f.6[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.6 to 64
ACPI: PCI interrupt 0000:01:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:01:0e.0[A] -> GSI 11 (level, low) -> IRQ 11
hub 1-0:1.0: reactivate --> -22
hub 2-0:1.0: reactivate --> -22
hub 3-0:1.0: reactivate --> -22
hub 4-0:1.0: reactivate --> -22
hub 4-0:1.0: reactivate --> -22
Restarting tasks... done
8139too Fast Ethernet driver 0.9.27
ACPI: PCI interrupt 0000:01:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
eth0: RealTek RTL8139 at 0x3000, 00:0b:5d:4a:3d:86, IRQ 11
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 0.11
ipw2200: Copyright(c) 2003-2004 Intel Corporation
ACPI: PCI interrupt 0000:01:0d.0[A] -> GSI 11 (level, low) -> IRQ 11
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
eth1: duplicate address detected!
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
Stopping tasks: ================================================================================================================|
Freeing memory: .................................................................................................................................................|
hci_usb 3-1:1.0: resume is unsafe!
hci_usb 3-1:1.1: resume is unsafe!
usb 3-1: no poweroff yet, suspending instead
usbhid 1-2:1.0: resume is unsafe!
usb 1-2: no poweroff yet, suspending instead
usb usb4: no poweroff yet, suspending instead
ACPI: PCI interrupt 0000:00:02.0[A] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.5 to 64
ACPI: PCI interrupt 0000:00:1f.6[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.6 to 64
ACPI: PCI interrupt 0000:01:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:01:0e.0[A] -> GSI 11 (level, low) -> IRQ 11
hub 4-0:1.0: reactivate --> -22
hub 4-0:1.0: reactivate --> -22
Restarting tasks... done
8139too Fast Ethernet driver 0.9.27
ACPI: PCI interrupt 0000:01:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
eth0: RealTek RTL8139 at 0x3000, 00:0b:5d:4a:3d:86, IRQ 11
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 0.11
ipw2200: Copyright(c) 2003-2004 Intel Corporation
ACPI: PCI interrupt 0000:01:0d.0[A] -> GSI 11 (level, low) -> IRQ 11
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
eth1: duplicate address detected!
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
drivers/usb/input/hid-core.c: input irq status -84 received
usb 1-2: USB disconnect, address 3
Stopping tasks: ================================================================================================================|
Freeing memory: ...........................................................................................|
hci_usb 3-1:1.0: resume is unsafe!
hci_usb 3-1:1.1: resume is unsafe!
usb 3-1: no poweroff yet, suspending instead
usb usb4: no poweroff yet, suspending instead
ACPI: PCI interrupt 0000:00:02.0[A] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.5 to 64
ACPI: PCI interrupt 0000:00:1f.6[B] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.6 to 64
ACPI: PCI interrupt 0000:01:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:01:0e.0[A] -> GSI 11 (level, low) -> IRQ 11
hub 4-0:1.0: reactivate --> -22
hub 4-0:1.0: reactivate --> -22
Restarting tasks... done
8139too Fast Ethernet driver 0.9.27
ACPI: PCI interrupt 0000:01:0c.0[A] -> GSI 11 (level, low) -> IRQ 11
eth0: RealTek RTL8139 at 0x3000, 00:0b:5d:4a:3d:86, IRQ 11
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 0.11
ipw2200: Copyright(c) 2003-2004 Intel Corporation
ACPI: PCI interrupt 0000:01:0d.0[A] -> GSI 11 (level, low) -> IRQ 11
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
eth1: duplicate address detected!
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]


More information about the ubuntu-devel mailing list