unplugging AC puts laptop to sleep

Bug #146424 reported by Matt Price
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: acpi-support

Unreliably, my dell d820 will go immediately to sleep when i unplug it from ac power. This is on an up-to-date gutsy, but it resembles the behaviour described in this inactive bug:
https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/44863

 In general it happens unexpectedly; recovery of information has been impeded by unreliabe resume from suspend caused probably by compiz/nvidia combination. If there's anything I can do to help track down the problem (I could runa script in the background or something) please let me know.

Revision history for this message
Rafael Sachetto (rsachetto) wrote :

Why don't you try to disable desktop effects and do in a terminal:

lshal -m to try to recover the information

Revision history for this message
Matt Price (matt-price) wrote : Re: [Bug 146424] Re: unplugging AC puts laptop to sleep

thanks rafael. i will try to remember to keep that running all the
time; and when this event recurs, i will hopefully have the info.

more when i can reproduce the effect.

matt

On Fri, 2007-09-28 at 19:26 +0000, Rafael Sachetto wrote:
> Why don't you try to disable desktop effects and do in a terminal:
>
> lshal -m to try to recover the information
>
--
Matt Price
History Dept
University of Toronto
<email address hidden>

Revision history for this message
Matt Price (matt-price) wrote :
Download full text (3.3 KiB)

finally replying...
On Fri, 2007-09-28 at 19:56 +0000, Matt Price wrote:

> On Fri, 2007-09-28 at 19:26 +0000, Rafael Sachetto wrote:
> > Why don't you try to disable desktop effects and do in a terminal:
> >
> > lshal -m to try to recover the information

sorry for the delay. finally caught this bug properly, here is the
output of hslal -m, which doesn't say much to me, with the possible
exception of :computer _logicaldev_input_0 removed:

22:09:52.177: acpi_AC property ac_adapter.present = true
22:09:52.207: acpi_BAT0 property battery.remaining_time removed
22:09:52.207: acpi_BAT0 property battery.charge_level.rate = 0 (0x0)
22:09:52.212: acpi_BAT0 property battery.charge_level.current = 50704
(0xc610)
22:09:52.213: acpi_BAT0 property battery.voltage.current = 12782
(0x31ee)
22:09:52.214: acpi_BAT0 property battery.reporting.rate = 0 (0x0)
22:09:52.215: acpi_BAT0 property battery.reporting.current = 4568
(0x11d8)
22:09:52.215: acpi_BAT0 property battery.rechargeable.is_discharging =
false
22:09:52.273: computer_logicaldev_input_0 removed
22:09:52.276: platform_i8042_i8042_AUX_port_logicaldev_input removed
22:09:52.410: usb_device_0_0_0000_00_1d_7 added
22:09:52.958: usb_device_0_0_0000_00_1d_7_if0 added
22:09:52.958: usb_device_0_0_0000_00_1d_0 added
22:09:52.958: usb_device_ffffffff_ffffffff_noserial added
22:09:52.958: computer_logicaldev_input_0 added
22:09:52.958: usb_device_0_0_0000_00_1d_1 added
22:09:52.958: usb_device_0_0_0000_00_1d_7_usbraw added
22:09:52.958: platform_i8042_i8042_AUX_port_logicaldev_input added
22:09:52.958: usb_device_0_0_0000_00_1d_0_usbraw added
22:09:52.962: usb_device_ffffffff_ffffffff_noserial_0 added
22:09:53.009: usb_device_0_0_0000_00_1d_2 added
22:09:53.026: usb_device_0_0_0000_00_1d_1_usbraw added
22:09:53.079: usb_device_ffffffff_ffffffff_noserial_1 added
22:09:53.113: usb_device_0_0_0000_00_1d_3 added
22:09:53.128: usb_device_0_0_0000_00_1d_2_usbraw added
22:09:53.201: usb_device_ffffffff_ffffffff_noserial_2 added
22:09:53.235: usb_device_0_0_0000_00_1d_3_usbraw added
22:09:53.398: usb_device_413c_a005_noserial added
22:09:53.462: usb_device_ffffffff_ffffffff_noserial_3 added
22:09:53.566: usb_device_413c_a005_noserial_usbraw added
22:09:54.074: usb_device_b97_7761_noserial added
22:09:54.074: usb_device_ffffffff_ffffffff_noserial_4 added
22:09:54.237: usb_device_b97_7761_noserial_usbraw added
22:09:54.501: usb_device_413c_8103_noserial added
22:09:54.860: usb_device_413c_8103_noserial_if2 added
22:09:54.873: usb_device_413c_8103_noserial_if1 added
22:09:54.890: usb_device_b97_7762_noserial added
22:09:54.935: usb_device_b97_7762_noserial_if0 added
22:09:54.963: usb_device_413c_8103_noserial_if0 added
22:09:55.008: usb_device_413c_8103_noserial_if0_bluetooth_hci added
22:09:55.156: usb_device_b97_7762_noserial_usbraw added
22:09:55.160: computer_logicaldev_input_2 added
22:09:55.161: computer_logicaldev_input_1 added
22:09:55.165: usb_device_413c_8103_noserial_usbraw added
22:09:56.860: computer_logicaldev_input_3 added

----
all of this stuff comes *before* the shutdown is ocmplete. after
wakeup, there are no immediate events reported.

i hope this helps a little, and would be of course happy to...

Read more...

Revision history for this message
elijahr (elijahr) wrote :

Hello,
I am also experiencing something similar. I use uswsusp to suspend and hibernate, and upgraded from feisty to gutsy. Unplugging the laptop from AC power causes it go into suspend.

Revision history for this message
Matt Price (matt-price) wrote :

[ping] -- just wondering if anyone's paying any attention to this
anymore, and whether the other reporters are still having issues. For a
couple of months this problem was intermittent for me, but in the last 6
weeks or so it's been omnipresent again. I suspend so often now that
I've discovered a suspend b ug, too -- about 2-5% of the time resume
fails and the system locks -- so this bug has become a little more
intrusive. i'd love to help track it down if there's anything i can do
beyond the reports i've already given. thanks,

matt

Revision history for this message
Richard Schwarting (aquarichy) wrote :

Hello.

I just upgraded to 8.04 and am newly experiencing this.

It occurs about 70% of the time. As you can imagine, that's really annoying, and I fear it needlessly wastes power and time when it goes to sleep, only to be reawoken moments later.

This did not occur with 7.10 or previous releases.

My system is a Acer Travelmate C100 Tablet PC.

Revision history for this message
Richard Schwarting (aquarichy) wrote :

Hello.

So I spent some time trying to get a good log of "lshal -m". My workflow usually sees me keeping my laptop on for a while and changing between hibernating and suspending. Anyway, my steps to reproduce this are:

Steps:
1. boot up
2. manually hibernate, wake-up
3. remove AC Adapter

Actual Results:
* laptop enters suspend (!)

Expected Results:
* laptop does not enter suspend :)

The laptop behaves properly on AC Adapter removal up until my first hibernate. I have annotated the output of "lshal -m" to provide a better idea of what I was doing throughout.

Notably, I see the following the first time I hibernate:
18:36:42.026: computer_logicaldev_input_2 property button.state.value = true
18:36:42.061: computer_logicaldev_input_2 condition ButtonPressed = lid
I do not, however, see this during subsequent hibernations.

Perhaps when I awake from hibernation, button.state.value should equal false? or ButtonPressed should change?

I checked computer_logicaldev_input_2 under "lshal -l" and got the following (left-angle brackets added to note the attributes previously mentioned):

udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2'
  button.has_state = true (bool)
  button.state.value = true (bool) <<<<<<<<<<<
  button.type = 'lid' (string) <<<<<<<<<<<
  info.addons.singleton = {'hald-addon-input'} (string list)
  info.capabilities = {'input', 'input.switch', 'button'} (string list)
  info.category = 'input' (string)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  info.product = 'Lid Switch' (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2' (string)
  input.device = '/dev/input/event5' (string)
  input.product = 'Lid Switch' (string)
  linux.device_file = '/dev/input/event5' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'input' (string)
  linux.sysfs_path = '/sys/devices/virtual/input/input5/event5' (string)

Help :)

Revision history for this message
Wang Daolong (ahlongxp-gmail) wrote :

I can confirm this problem.
And I'm sure this would only occur after suspend and wakeup.
Ubuntu hardy

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in acpi-support:
status: New → Incomplete
Revision history for this message
Matt Price (matt-price) wrote :

On Wed, 2008-11-05 at 23:14 +0000, Daniel T Chen wrote:
> Is this symptom still reproducible in 8.10?
>
not for me.

matt

> ** Changed in: acpi-support (Ubuntu)
> Status: New => Incomplete
>
--
Matt Price
<email address hidden>

Revision history for this message
Richard Schwarting (aquarichy) wrote :

Seemingly not.

Revision history for this message
Steve Langasek (vorlon) wrote :

Thanks for the feedback; marking as resolved.

Changed in acpi-support (Ubuntu):
status: Incomplete → Fix Released
Changed in acpi-support (Ubuntu):
status: Fix Released → New
Steve Langasek (vorlon)
Changed in acpi-support (Ubuntu):
status: New → Fix Released
Revision history for this message
Sarah Weiss (sam81452667) wrote :

running ubuntu 10.04 on advent 4213 - happens everytime I uplug AC power

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.