public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomas Carnecky <tom@dbservice.com>
To: Zhang Rui <rui.zhang@intel.com>
Cc: Steven King <sfking@fdwdc.com>,
	linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	ibm-acpi-devel@lists.sourceforge.net
Subject: Re: 2.6.26.[1-3] + x61 tablet + x6ultrabase: no resume after	undocking
Date: Mon, 01 Sep 2008 12:50:36 +0200	[thread overview]
Message-ID: <48BBC8FC.1020809@dbservice.com> (raw)
In-Reply-To: <1220239048.24775.152.camel@rzhang-dt>

[-- Attachment #1: Type: text/plain, Size: 2571 bytes --]

Zhang Rui wrote:
> On Sat, 2008-08-30 at 15:35 -0700, Steven King wrote:
>> While 2.6.26 made my x61t work with the x6ultrabase, I find that once I have 
>> docked the x61t, I can only resume after a suspend2ram if the x61t is docked.  
>> That is:
>>
>> Never have been docked: suspend & resume works fine.
>> Docked: suspend & resume works fine.
>> Docked, undocked, re-docked: suspend & resume works fine.
>>
>> Docked, then undocked: never finishes resuming (the disk seems to spin up and 
>> the sleep led goes off, but the system doesnt seem to get any further).
>>
>> Any suggestions?
>>
> I have an acpidump of a X61, and it may also send notifications in _STA
> method.
> Please please try the following patch and see if it helps.
> and it would be great if you can attach the acpidump of your laptop.

It has always been a mystery to me how the docking station works. It
never worked for me correctly, in some situations, depending on how I
docked/undocked the notebook, it would hang during resume. I brought the
problem up in linux-acpi after I bought my X61 and the X6 UltraBase, but
no patch resulted so I simply got used to shutting down my notebook
instead of putting it to sleep.
There is one question though that was never answered: Is there any
interaction needed from the userspace when docking/undocking? Something
that the acpi daemon would have to do in response to a dock/undock
event? I'm thinking about
 $ echo 1 > /sys/bus/scsi/devices/3\:0\:0\:0/rescan
or something like that. To tell the kernel that some devices may have
disappeared and that it shouldn't try to bring them up when resuming
from sleep. I would expect that ACPI would take care of that (it
certainly removes all USB devices and detaches ata4 (which is the bay in
the docking station).

Anyway, I tried your patch (on top of 2.6.26.3). If I start up the
notebook in the dock, take it out, put it to sleep, then it hangs during
resume (all I see on the screen is the cursor in the top left corner).

That behavior is consistent with my earlier experience, that is: If the
notebook was _ever_ running in the docking station, it won't resume
outside of it. No matter whether I start it outside the dock and then
put it into the dock, or start it up in the dock - once the notebook has
been docked, suspend/resume outside of the dock won't work anymore.
My wild uneducated guess is that the kernel doesn't remove/disable some
devices when undocking (the bay device?) and when it tries to resume
without them present it will hang.

Attached is my acpidump, I hope it helps.

tom




[-- Attachment #2: acpi-dump --]
[-- Type: application/octet-stream, Size: 63905 bytes --]

  reply	other threads:[~2008-09-01 10:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30 22:35 2.6.26.[1-3] + x61 tablet + x6ultrabase: no resume after undocking Steven King
2008-09-01  3:17 ` Zhang Rui
2008-09-01 10:50   ` Tomas Carnecky [this message]
     [not found]     ` <48BBC8FC.1020809-ix/z9KG6G0Jl57MIdRCFDg@public.gmane.org>
2008-09-01 11:28       ` Henrique de Moraes Holschuh
2008-09-01 12:16         ` Tomas Carnecky
2008-09-01 18:34           ` Matthew Garrett
2008-09-01 19:05           ` Steven King
     [not found]             ` <200809011205.05253.sfking-xS0NTnu2YfYAvxtiuMwx3w@public.gmane.org>
2008-09-03 14:45               ` 2.6.26.[1-3] + x61 tablet + x6ultrabase: no resume after?undocking Holger Macht
2008-09-03 15:04                 ` Tomas Carnecky
2008-09-07 22:39                   ` Jeremy Fitzhardinge
2008-09-03 21:28                 ` Henrique de Moraes Holschuh
2008-09-05  9:00                   ` Holger Macht
2008-09-08 22:17           ` 2.6.26.[1-3] + x61 tablet + x6ultrabase: no resume after undocking Steven King
2008-09-01 11:34     ` Matthew Garrett
2008-09-01 18:21   ` Steven King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48BBC8FC.1020809@dbservice.com \
    --to=tom@dbservice.com \
    --cc=ibm-acpi-devel@lists.sourceforge.net \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=sfking@fdwdc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox