[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2008-07-11 Thread Nolan
Just a note for people who find this by search:
In Hardy, I've found that you must now kill/delete hald-addon-pmu instead of 
gnome-power-manager.

Combined with BenH's /etc/power scripts, suspend/resume by closing the
lib now appears to work reliably.

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2008-03-07 Thread ScottMiller
PowerPC no longer has commercial paid support from Canonical. That is the only 
thing that was dropped. 
It is still a supported architecture as far as making Ubuntu releases for the 
public.

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2008-02-24 Thread jh
Similar issues of a G4 powerbook. In my experience, gnome-power-manager
is a disaster on ppc. Deleting /usr/bin/gnome-power-manager and letting
pbbuttonsd handle power management makes for stable suspend / resume,
albeit with a VT switcher in /etc/power/{suspend.d,resume.d}.

A consensus on how to arbitrate between pbbuttonsd / g-p-m is solicited;
I really don't like that two things fighting over power management.

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2008-02-16 Thread ScottMiller
This is a rather critical bug still present in hardy alpha. Should this
be assigned to the kernel team? Anyone know?

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2008-02-16 Thread John Steele Scott
I just assumed it wasn't assigned to anyone because powerpc is no longer
a supported architecture.

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2008-02-07 Thread fuoco
This doesn't seem to be fixed in hardy. Moreover in hardy I cannot
suspend at all - it's no longer an option in gnome-power-manager. also
according to pm-is-suspend suspend is unavailable. if i manually suspend
it does work - but of course doesn't resume because of this problem.

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2008-01-15 Thread Benjamin Herrenschmidt
Some notes:

 - APM emu is broken in recent kernels, so that's why that part doesn't work, 
but it isn't a big issue here
 - Fixing HAL is not really useful as we want something more like x86 where 
it's done by the suspend
resume scripts and works always, not only when HAL is there. I would 
suggest using the example
   script I posted, it works fine
 - This has been open for some time and the fix is still not in...

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2007-11-20 Thread b
I'm having this same problem on my powerbook 5,2 gutsy.

Some extra observations:

/usr/lib/hal/hal-system-power-pmu sleep

Does seem to work in all cases, except when the GDM screen is formost
(tested by using sleep to have the command issued after I've switched to
VT7.)

Running suspend from the GDM actions menu does nothing, and I see this
in the syslog:

Nov 20 17:08:12 localhost gdm[9409]: WARNING: Request for configuration
key daemon/SuspendCommand=, but not type STRING

Any ETA and when the patch above will be in the repos so I can update?
I'd also much rather have been bumped to another VT than have the
machine hang after suspend.

Thanks,

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2007-11-05 Thread Steven Walter
The patch posted by John Steele Scott fixes the resume issue I had.

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2007-10-14 Thread John Steele Scott
Sleep doesn't work on my iBook G4 either. It used to work in Feisty.

One strange thing I've noted is that when the machine goes to sleep,
after the LED starts breathing (fading in and out to show the machine
is asleep), the LCD backlight turns on.

Ben, I haven't been able to get your workaround to work for me yet, but
I'll keep fiddling with it a bit more. Problem is there's never really a
convenient time to do the kind of stuff which requires constantly
crashing/rebooting the computer. :(

I think the gnome-power-manager is handling the sleep via hal, which
should mean that /usr/lib/hal/hal-system-power-pmu is invoked to use the
PMU ioctl to cause sleep. If that's the case, should the APM emulation
module still be required? It is loaded on my iBook, but my install is
pretty crufty because I've been through many dist-upgrades over the last
few years.

** Changed in: ubuntu
   Status: New = Confirmed

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2007-10-14 Thread Benjamin Herrenschmidt
APM emu should still be useful to notify apps that directly listen to
/dev/apm_bios such as X, though I haven't seen that working properly
lately.

A few things you can try:

 - First, check if radeonfb is loaded  working
 - Try sleeping from console mode without having ever launched X from boot
 - Try sleeping from console mode after switching to console from X
 - Try sleeping with network manager not running
 - Try all of the above while booting with the feisty kernel

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2007-10-14 Thread John Steele Scott
Okay, I'm sure your workaround is the way to go, it's just the
implementation which doesn't seem to be the same between my computer and
yours.

Notes:

If I manually switch to vt1 and sleep using /usr/lib/hal/hal-system-
power-pmu sleep, it sleeps and resumes fine.

Also, if I sleep from X by running pbbcmd sleep, it runs
/etc/power/suspend.d/console-switch-out and sleeps and resumes okay, but
for some reason /etc/power/resume.d/console-switch-in is not being run
and so after wakeup I have to switch back to vt7 by hand.

But if I try and sleep just by closing the lid, I get the backlight
switching on after it goes to sleep, and the machine dies on resume.

Am I correct in thinking that the /etc/power scripts are called from
userspace by pbbuttonsd or pmud? So if the PMU ioctl is being called by
some other process, those scripts will not necessarily be run?

I think it's gnome-power-manager which is handling the lid-close event,
and not running the scripts. So I just need to find out where to hook
into there to do the vt switch. I suspect it's happening in
/usr/lib/hal/scripts/linux/hal-system-power-suspend-linux; if that's the
case it should be a piece of cake to fix.

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2007-10-14 Thread John Steele Scott
This patch mostly fixes it for me . . . I can now confidently close the
lid to suspend, and open it without a crash.

The only issue is that the call to chvt after resume does not always
work, so sometimes I need to switch vts manually. But it sure beats
having the machine lock-up.

** Attachment added: patch for hal-system-power-suspend-linux: switch to 
text-mode VT before invoking PMU sleep
   http://launchpadlibrarian.net/9977781/fix-ibook-sleep-on-gutsy.diff

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2007-10-14 Thread Benjamin Herrenschmidt
Are env. variables preserved between invocations of the script ? they
are on ACPI scripts but not on /etc/power scripts afaik, which is why my
proposed pair of scripts does this hack with a temp file. You might
simply be missing your CONSOLE variable on the way back...

I find it a bit disturbing that we end up having at least now 3 or 4
different sleep mechanisms using different sets of scripts.

I especially wonder what kind of conflict do we end up with having both
pbbuttonsd and that gnome thing trying to do it.

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2007-09-24 Thread Benjamin Herrenschmidt
With a bit more digging, it seems that for some reason, the APM emulation isn't 
doing the job it used to do of
having X cleanup properly for suspend. It could be a bug with the recent X 
servers or ATI drivers, that's unclear.

However, rather than trying to fix that, the best solution is to do like x86 
does with ACPI and basically use
scripts to trigger a VT switch. That will be more solid anyway.

The ACPI scripts are not useable as-is with /etc/power as they assume that env. 
variables can be set in
suspend and re-used in resume. So I've hacked a pair of scripts that can be put 
in /etc/power/suspend.d and
/etc/power/resume.d for powerpc (though they wouldn't hurt old style APM based 
x86 either I believe). Those
are a bit on the hackish side of things but they do the job fine for me, please 
do something similar to fix the
problem in gutsy !

- console-switch-out (in suspend.d):

#!/bin/sh

# And remember which console we're on
fgconsole /tmp/saved-fg-console

# Change away from X, otherwise it'll blow up when we POST the video interface
chvt 12


- console-switch-in (in resume.d):

#!/bin/sh

CONSOLE=`cat /tmp/saved-fg-console`
rm /tmp/saved-fg-console
chvt $CONSOLE

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 144305] Re: [gutsy] sleep on powerbook crashes

2007-09-23 Thread Benjamin Herrenschmidt
Looks like I wasn't completely right above. I don't know yet whether
userspace is using the ioctl or not, but it seems that calling the ioctl
directly also fails when X is frontmost.

Among other things I've noticed:

 - the APM emulation module isn't loaded by default.
 - the kernel isn't switching to text console before suspend

The 2 above together means that X has no chance to quiesce the graphics
engine and properly re-initialize it on wakeup, which probably explains
some of the problems. I've  manually loaded apm-emu and restart X, but
that didn't fully fix the problem, so there is still something else
going on. I'll try to investigate and let you know. In the meantime,
apm-emu should definitely be added to the loaded-by-default list of
modules at least on powerbooks.

-- 
[gutsy] sleep on powerbook crashes
https://bugs.launchpad.net/bugs/144305
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs