Bug 5528 - iBook 14'' 1.42 Ghz sleep, framebuffer issue
Summary: iBook 14'' 1.42 Ghz sleep, framebuffer issue
Status: REJECTED UNREPRODUCIBLE
Alias: None
Product: Power Management
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Rafael J. Wysocki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 12:33 UTC by gad.kadosh
Modified: 2007-04-28 12:49 UTC (History)
4 users (show)

See Also:
Kernel Version: 2.6.14
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
dmesg after boot (9.37 KB, text/plain)
2005-10-31 22:45 UTC, gad.kadosh
Details
lspci -vv output (7.33 KB, text/plain)
2005-10-31 22:46 UTC, gad.kadosh
Details
.config for kernel-2.6.14 (33.40 KB, text/plain)
2005-10-31 22:46 UTC, gad.kadosh
Details
fbset -i output (523 bytes, text/plain)
2005-10-31 22:47 UTC, gad.kadosh
Details

Description gad.kadosh 2005-10-31 12:33:09 UTC
When I suspend the laptop (iBook 14'' 1.42 Ghz, model from July 2005) everything
seems to work fine, but when resuming - there's a problem with the framebuffer
which causes the screen to cycle through different collors of full screen. It's
a very odd problem. Other than the framebuffer, the resume process seems to be
complete - I can type 'reboot' and the laptop reboots fine.
Comment 1 Pavel Machek 2005-10-31 13:31:42 UTC
Did it work in 2.6.13? What graphics, radeon?
Comment 2 Antonino Daplas 2005-10-31 18:52:39 UTC
Can you post your config file, dmesg after booting, and fbset -i?

The radeon driver has suspend/resume hooks, but nvidiafb and rivafb have none.  
Comment 3 gad.kadosh 2005-10-31 22:45:27 UTC
Created attachment 6433 [details]
dmesg after boot

I haven't tried in 2.6.13 because it's a new laptop. I assumed it won't work in
2.6.13 because there's a new patch for the sleep in 2.6.14.
It's a radeon 9550.
Comment 4 gad.kadosh 2005-10-31 22:46:06 UTC
Created attachment 6434 [details]
lspci -vv output
Comment 5 gad.kadosh 2005-10-31 22:46:48 UTC
Created attachment 6435 [details]
.config for kernel-2.6.14
Comment 6 gad.kadosh 2005-10-31 22:47:35 UTC
Created attachment 6436 [details]
fbset -i output

The output of fbset -i is the same when I ssh to the system after a resume.
Comment 7 gad.kadosh 2005-11-02 10:02:39 UTC
OK, now sleep works with pbbuttonsd - so it's some progress.

However it does not work with:
echo mem > /sys/power/state

I thought that should work too.
Comment 8 Benjamin Herrenschmidt 2005-11-02 12:46:25 UTC
The PowerMac suspend-to-ram code isn't at the moment hooked to /sys/power/state.
I did some work moving the mac code to the main PM infrastructure, but I had to
butcher the later in order to make it fit, due mostly to that infrastructure
being insufficient for doing something seriously (one of the reasons why sleep
on x86 is so bad) and thus the patch didn't go through. I need to work again on
this one of these days and get the proper PM core changes in place but didn't
have time so far.
Comment 9 gad.kadosh 2005-11-02 12:54:53 UTC
Ah OK, now I understand why sleep doesn't work that way. I was sure it should be
working just the same so I can use the same scripts etc...
Thanks 
Comment 10 Antonino Daplas 2005-11-02 16:06:23 UTC
Should this bug be deferred, fix later?
Comment 11 Benjamin Herrenschmidt 2005-11-02 16:57:54 UTC
Well, I need to understand better what is the problem with the framebuffer and
if it happens all the time. Is this a transcient panel blooming or is it
permanent ? In the later case, is it fixed by another sleep/wake cycle ? That
is, is this just a cosmetic issue or it's actually preventing proper use of
sleep/wakeup ?
Comment 12 gad.kadosh 2005-11-02 23:31:15 UTC
It's permanent, and it leaves you without a display, although the system is
running. It's as if the screen goes blank but instead the backlight is on and
the screen is not just black, but cycles through different colors.
This happens always - on every suspend through /sys/power/state. By the way
another problem that happens with sleep through /sys/power/state is that it
suspends the laptop and immediately resumes - it doesn't wait for key
press/mouses move etc...
Comment 13 Benjamin Herrenschmidt 2005-11-02 23:36:24 UTC
And suspend/resume works via pbbuttons lid closing ? Or it does the same ? What
exactly do you do to suspend via /sys/power/state ? echo "disk" or "mem" ? "mem"
is definitely not implemented properly yet ...
Comment 14 gad.kadosh 2005-11-02 23:48:49 UTC
With pbbuttonsd it works fine, either with lid-close or with a 'pbbcmd sleep'.
I used 'mem' in /sys/power/state. Isn't 'disk' for software suspend ?
Comment 15 Benjamin Herrenschmidt 2005-11-03 00:00:03 UTC
Yes, it is. In fact, I'm surprised the kernel let you try "mem", no wonder it
doesn't work, I would have expected an error instead, I must have left something
out. So the solution for now is don't do it. I'll get that fixed later. We might
be able to do a small patch for now to avoid the crash though, I'll have a look
Comment 16 gad.kadosh 2005-12-03 10:10:25 UTC
Benjamin, is there a plan to integrate the pmu sleep interface with
/sys/power/state ? and if so how soon would that be ? 

Thanks
Comment 17 Benjamin Herrenschmidt 2005-12-04 13:55:32 UTC
Dunno. I did patches for that a while ago but they involved some changes to the
generic PM code to add more hooks that I need, and I didn't get those upstream.
I'll have to give it another go sometime later.
Comment 18 Pavel Machek 2006-09-27 01:41:43 UTC
Can you confirm that you have no binary-only modules? Has it ever worked properly?
Comment 19 gad.kadosh 2006-09-27 08:00:14 UTC
I'm not sure anymore. I now use ubuntu dapper and it works just fine...

Note You need to log in before you can comment on or make changes to this bug.