tracking down suspend/hibernate bugs?

2008-01-13 Thread Matt Price
hi, just upgraded to hardy and suspend-to-ram is broken again (as in feisty & other releases) i'm trying to figure out, again, how to track down this bug but i'm not entirely sure what the current chain of events is in the suspend process. can someone point me to a location where the process is

Re: tracking down suspend/hibernate bugs?

2008-01-13 Thread Aren Olson
In gutsy I believe the chain is this: gnome-power-manager -> hal (/usr/lib/hal/scripts/hal-system-power-suspend) -> acpi-support (/etc/acpi/sleep.sh) most of the actual work occurs in acpi-support. hal may call a different tool than acpi-support if it is available though, see /usr/lib/hal/script

Re: tracking down suspend/hibernate bugs?

2008-01-13 Thread Matt Price
On Sun, 2008-01-13 at 21:51 -0600, Aren Olson wrote: > In gutsy I believe the chain is this: > > gnome-power-manager -> hal > (/usr/lib/hal/scripts/hal-system-power-suspend) -> acpi-support > (/etc/acpi/sleep.sh) > most of the actual work occurs in acpi-support. > > hal may call a different too

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Matthew Garrett
On Sun, Jan 13, 2008 at 10:51:48PM -0800, Matt Price wrote: > in hardy it appears that acpi-support has been cut out entirely in favor > of pm-utils -- see the attached hal-system-power-suspend-linux script. > i've flipped through the pm-utils code & can't see exactly how it's > determined what is

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Paul S
Matthew Garrett said the following on 01/14/2008 10:23 AM: >> watching over it at all? if so, please let me know what i can do to >> help with debugging and stuff. > > Yes, I'm looking after it. I also would like to see suspend and hibernate finally work, so I upgraded to hardy to try it too.

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Matthew Garrett
On Mon, Jan 14, 2008 at 10:57:13AM -0500, Paul S wrote: > Are you the contact for these kubuntu issues as well as the ubuntu lead? No, I'm afraid I've got no experience of KDE at all. > Is it too early to start feedback on this stuff now, or should we > continue? Do you want us to feedback on

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Mario Vukelic
 On Mon, 2008-01-14 at 16:41 +, Matthew Garrett wrote: > Filing bugs is ok, but if you think an issue is generic then > feel free to bring it up here. Is suspend/hibernate with laptops using the new proprietary ATi driver (fglrx) in Hardy expected to work now, or is is still normal to fail?

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Matt Price
On Mon, 2008-01-14 at 15:23 +, Matthew Garrett wrote: > On Sun, Jan 13, 2008 at 10:51:48PM -0800, Matt Price wrote: > > > in hardy it appears that acpi-support has been cut out entirely in favor > > of pm-utils -- see the attached hal-system-power-suspend-linux script. > > i've flipped throug

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Matt Price
On Mon, 2008-01-14 at 10:30 -0800, Matt Price wrote: > On Mon, 2008-01-14 at 15:23 +, Matthew Garrett wrote: > > On Sun, Jan 13, 2008 at 10:51:48PM -0800, Matt Price wrote: > > > > > > i alsoseem to have an odd problem -- if i choose 'suspend' from the > > > gnome 'quit' menu, then resume fa

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Paul S
Matt Price said the following on 01/14/2008 02:10 PM: > hmmm... fooling around, i find that i can suspend pretty reliably from > the command line > > sudo pm-suspend > > but that the gnome-power-manager dialog reliably fails to resume; this > despitethe fact that it seemsto be using pm-suspend,

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Matthew Garrett
On Mon, Jan 14, 2008 at 11:10:49AM -0800, Matt Price wrote: > sudo pm-suspend Right, so it sounds more like the issue here is that we're passing quirks that are breaking your system. For reference, the quirks that are used by default on Ubuntu are currently: --quirk-dpms-on --quirk-vbestate-re

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Matthew Garrett
On Mon, Jan 14, 2008 at 10:30:33AM -0800, Matt Price wrote: > ... i suppose if the resume worked properly the reverse steps would be > present too? You'd hope so :) How exactly is the resume failing, and which graphics drivers are you using? > ah, this is my bad -- it seems an old script i h

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Paul S
Matthew Garrett said the following on 01/14/2008 06:42 PM: > On Mon, Jan 14, 2008 at 11:10:49AM -0800, Matt Price wrote: > >> sudo pm-suspend > > Right, so it sounds more like the issue here is that we're passing > quirks that are breaking your system. For reference, the quirks that are > used

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Paul S
Paul S said the following on 01/14/2008 08:17 PM: > Still no idea why kde-power-manager can't start a suspend Here's an idea .. maybe some of the old acpi-support suspend is still active. I just tried adding a logger line to /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux to print

Re: tracking down suspend/hibernate bugs?

2008-01-14 Thread Matt Price
On Mon, 2008-01-14 at 23:42 +, Matthew Garrett wrote: > On Mon, Jan 14, 2008 at 11:10:49AM -0800, Matt Price wrote: > > > sudo pm-suspend > > Right, so it sounds more like the issue here is that we're passing > quirks that are breaking your system. For reference, the quirks that are > used

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Matthew Garrett
On Mon, Jan 14, 2008 at 09:17:29PM -0500, Paul S wrote: > Since kde-power-manager won't work and my usb keyboard sleep button > doesn't work, I tried the Fn-Esc key combo on the laptop, which is the > suspend key combo. The laptop suspended and resumed fine. Now, when I > look at /var/log/mes

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Paul S
Matthew Garrett said the following on 01/15/2008 07:12 AM: > On Mon, Jan 14, 2008 at 09:17:29PM -0500, Paul S wrote: > >> Since kde-power-manager won't work and my usb keyboard sleep button >> doesn't work, I tried the Fn-Esc key combo on the laptop, which is the >> suspend key combo. The lapto

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Matthew Garrett
On Tue, Jan 15, 2008 at 08:25:38AM -0500, Paul S wrote: > but same result .. /var/log/pm-suspend.log does not change, suspend / > resume work only from laptop Fn-Esc, not kde-power-manager menu or usb > keyboard sleep button and no "logger" message in /var/log/messages. > > Do I need to reboot

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Paul S
Matthew Garrett said the following on 01/15/2008 09:00 AM: > acpid needs restarting, so rebooting is the easiest way to do that. If > Fn+Esc no longer works, there's some sort of KDE issue. This is not good. I had a kernel update so had to reboot anyway. Now I find that even Fn-Esc does not w

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Matthew Garrett
On Tue, Jan 15, 2008 at 09:30:13AM -0500, Paul S wrote: > This is not good. I had a kernel update so had to reboot anyway. Now > I find that even Fn-Esc does not work. The only way to suspend is by > konsole with "sudo pm-suspend" and it still works ok. The > kde-power-manager menu "suspen

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Paul S
Matthew Garrett said the following on 01/15/2008 01:59 PM: > On Tue, Jan 15, 2008 at 09:30:13AM -0500, Paul S wrote: > >> This is not good. I had a kernel update so had to reboot anyway. Now >> I find that even Fn-Esc does not work. The only way to suspend is by >> konsole with "sudo pm-susp

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Matt Price
On Tue, 2008-01-15 at 16:30 -0500, Paul S wrote: > Matthew Garrett said the following on 01/15/2008 01:59 PM: > > On Tue, Jan 15, 2008 at 09:30:13AM -0500, Paul S wrote: > > > >> This is not good. I had a kernel update so had to reboot anyway. Now > >> I find that even Fn-Esc does not work.

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Matthew Garrett
I can't see how this can happen - the same environment variables are set in both cases independent of the ordering. Is this repeatable? -- Matthew Garrett | [EMAIL PROTECTED] -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Matthew Garrett
Though, having said that, I have found various issues - I've just uploaded a new pm-utils. It'd be nice to know if it worked for you. -- Matthew Garrett | [EMAIL PROTECTED] -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://li

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Matt Price
On Tue, 2008-01-15 at 23:02 +, Matthew Garrett wrote: > Though, having said that, I have found various issues - I've just > uploaded a new pm-utils. It'd be nice to know if it worked for you. > i'll give it a try myself soon as it hits the archive. matt > -- > Matthew Garrett | [EMAIL P

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Paul S
Matthew Garrett said the following on 01/15/2008 05:42 PM: > I can't see how this can happen - the same environment variables are set > in both cases independent of the ordering. Is this repeatable? > Yes, many times. -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com M

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Paul S
Matthew Garrett said the following on 01/15/2008 06:02 PM: > Though, having said that, I have found various issues - I've just > uploaded a new pm-utils. It'd be nice to know if it worked for you. > OK, I'm updating daily, so when it hits the repos I'll get it, unless you have an advance copy

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread (``-_-´´) -- Fernando
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 14 January 2008 19:10:49 Matt Price wrote: > hmmm... fooling around, i find that i can suspend pretty reliably from the > command line > sudo pm-suspend > > but that the gnome-power-manager dialog reliably fails to resume; this > despiteth

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Paul S
Matt Price said the following on 01/15/2008 05:35 PM: > paul, how did you find out that the suspend button initiates quirks in > the order you describe? I edited /usr/share/hal/scripts/linux/hal-syspem-power-suspend-linux and added a line to log the value of $QUIRKS when it was called, as follo

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Matt Price
On Tue, 2008-01-15 at 19:18 -0500, Paul S wrote: > Matt Price said the following on 01/15/2008 05:35 PM: > > paul, how did you find out that the suspend button initiates quirks in > > the order you describe? > > I edited /usr/share/hal/scripts/linux/hal-syspem-power-suspend-linux and > added a

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Adilson Oliveira
> If I suspend my laptop, I'll lose my mouse pointer. The mouse action > is still there, but no mouse pointer, so I cant see what I'm > clicking. In a side note, my notebook, an Asus G1 suspends and hibernates nicely with hardy. []s Adilson. -- Ubuntu-devel-discuss mailing list Ubuntu-devel-di

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Paul S
Paul S said the following on 01/15/2008 07:18 PM: > Matt Price said the following on 01/15/2008 05:35 PM: >> take a look >> at /usr/share/hal/scripts/linux/hal-syspem-power-suspend-linux & related >> scripts -- the $QUIRK variable is built up in these scripts >> progressively; all you would need to

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Matt Price
On Tue, 2008-01-15 at 21:18 -0500, Paul S wrote: > Paul S said the following on 01/15/2008 07:18 PM: > > Matt Price said the following on 01/15/2008 05:35 PM: > ok, now I get it .. since these are based on not being false, they are > set. and "sudo lshal | grep quirk" shows that they are not se

Re: tracking down suspend/hibernate bugs?

2008-01-15 Thread Paul S
Matt Price said the following on 01/15/2008 10:08 PM: >> Now this is fine for my dell with nvidia driver, but I hope it works for >> others too. >> > didn't catch this, what model is your dell? mine is latitude d820, if > you're the same maybe we've identified a laptop-specific bug. I have an E1

Re: tracking down suspend/hibernate bugs?

2008-01-17 Thread Paulus Esterhazy
Matt Price schrieb: > hi, > > just upgraded to hardy and suspend-to-ram is broken again (as in feisty > & other releases) i'm trying to figure out, again, how to track down > this bug but i'm not entirely sure what the current chain of events is > in the suspend process. can someone point me to

Re: tracking down suspend/hibernate bugs?

2008-01-17 Thread Lars Wirzenius
On to, 2008-01-17 at 11:59 +0100, Paulus Esterhazy wrote: > It would be *very* helpful if a developer who really knows this stuff > could write a document on the Wiki detailing how this process works for > hardy. To users, suspend problems are opaque, because there often are no > logs readily avail

Re: tracking down suspend/hibernate bugs?

2008-01-17 Thread Paulus Esterhazy
Lars Wirzenius schrieb: > https://wiki.ubuntu.com/UnderstandingSuspend might of some help to some > people. Thanks, that's a great start, which could be improved by documenting the changes made in hardy (that would improve debugging feedback before the relase). The next time I'll have troube with

Re: tracking down suspend/hibernate bugs?

2008-01-26 Thread Mark Weaver
Matthew Garrett wrote: > On Mon, Jan 14, 2008 at 11:10:49AM -0800, Matt Price wrote: > >> sudo pm-suspend > > Right, so it sounds more like the issue here is that we're passing > quirks that are breaking your system. For reference, the quirks that are > used by default on Ubuntu are currently: