Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AlBook AND iBook G4 Sleep patch released!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Tue Jan 18, 2005 10:22 pm    Post subject: Reply with quote

Well, I guess I acted too soon. Today BenH did release a slew of updates for pmac's against 2.6.10. These include:
- ppc32: pmacs sleep support
- ppc32: update cpu state save/restore
- add try_acquire_console_sem
- update aty128fb sleep/wakeup code for new powermac changes
- radeonfb: massive update of PM code
- ppc32: add missing prototype
- sungem update

You can find these patches on the linuxppc-dev mailing list.

For me, the patches did not apply cleanly, I'm guessing that gentoo-dev-sources-2.6.10-r4 is modified somewhat from vanilla kernel sources.

I've applied all the above patches, and made a new diff against gentoo-dev-sources-2.6.10-r4, with fixes. Sleep works. Backlight/keyboard light works still. Everything seems AOK. Here's the link (i suggest some "save link as" action here): http://dev.gentoo.org/~fafhrd/ppc/2.6.10-gds-pmac-diffs.patch.bz2

Have fun.
_________________
jñanam bandha
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Wed Jan 19, 2005 9:11 am    Post subject: Reply with quote

The patch also didn't apply cleanly to dev-sources-2.6.10. And after booting the patched kernel, the screen stayed black and the whole system crashed. :-(


Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
luke Gee
n00b
n00b


Joined: 13 Jun 2004
Posts: 10

PostPosted: Wed Jan 19, 2005 2:52 pm    Post subject: Reply with quote

Same problem here. Applied the patch. Screen goes black upon boot up. After about 2 minutes the system reboots! :cry:
Back to top
View user's profile Send private message
Hippi@Bacarni
n00b
n00b


Joined: 08 Mar 2004
Posts: 53
Location: Hannover, DE

PostPosted: Wed Jan 19, 2005 3:11 pm    Post subject: Reply with quote

Same problem here. Black screen and reboot.

dev-gentoo-2.6.10
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Jan 19, 2005 3:55 pm    Post subject: Reply with quote

Weird.

What version of gentoo-dev-sources did you all use? I'm using 2.6.10-gentoo-r4. Also, what PowerBooks do you have? I have the Aluminum Powerbook 15'' 1.5Ghz.

Let me check the patch again, to make sure, but I double-checked it last time. :-\ Everything works for me here! Argh! We'll get this working, worry not.
_________________
jñanam bandha
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Jan 19, 2005 5:02 pm    Post subject: Reply with quote

Okay, trying this again.
Code:
# emerge -C =gentoo-dev-sources-2.6.10-r4 && rm -Rf # /usr/src/linux-2.6.10-gentoo-r4 && emerge =gentoo-dev-sources-2.6.10-r4
# cd /usr/src
# cp linux-2.6.10-gentoo-r4-patches4/.config ./config-latest
# cp -a linux-2.6.10-gentoo-r4 linux-2.6.10-gentoo-r4-patches5
# cd linux-2.6.10-gentoo-r4-patches5/
# patch -p1 --dry-run < ../2.6.10-gds-pmac-diffs.patch
(all looks okay)
# patch -p1 < ../2.6.10-gds-pmac-diffs.patch
# cd ..
# rm linux
# ln -s linux-2.6.10-gentoo-r4-patches5 linux
# cp config-latest ./linux/.config
# cd linux
# vim Makefile
(I still manually add my extra "-patchesX" version to the Makefile, as the in kernel extra versioning, still installs modules in the official version location)
# make menuconfig
(look over stuff)
# make all && make modules_install


... so it's building now -- all did seem to patch okay.

Let me upload the un-bzipped version, just in case: http://dev.gentoo.org/~fafhrd/ppc/2.6.10-gds-pmac-diffs.patch

I will report back if I can re-create the black screen problem.

Again, I have:
- gentoo-dev-sources-2.6.10-r4
- Aluminum Powerbook 15'' 1.5Ghz

I will report back soon.
_________________
jñanam bandha
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Jan 19, 2005 5:36 pm    Post subject: Reply with quote

Reporting back that:
- the/my patch applies cleanly to gentoo-dev-sources-2.6.10-r4
- My computer boots fine
- Sleep works (slept it 4-5 times, with and w/o a pcmcia card in the slot)
- Everything else seems to work

Is there any parameters that people are passing in via yaboot/ybin? Part of the patch is a massive radeonfb change, so that may be a concern for video.

It still bothers me that this patch failed for 3 other people. Again, what hardware are you using?
_________________
jñanam bandha
Back to top
View user's profile Send private message
Hippi@Bacarni
n00b
n00b


Joined: 08 Mar 2004
Posts: 53
Location: Hannover, DE

PostPosted: Wed Jan 19, 2005 5:37 pm    Post subject: Reply with quote

Hi
I emerge just 30 min ago gentoo-dev-sources2.6.10-r6 and applied your patch. The kernel was patched without Errors. Then I compiled the kernel without errors.

Rebooted and screen went black again :(

I have:
-gentoo-dev-sources-2.6.10-r6
-Aluminum Powerbook 15" 1.5Ghz
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Jan 19, 2005 5:40 pm    Post subject: Reply with quote

Ooh, let me emerge gentoo-dev-sources-2.6.10-r6 and see what happens...

Note that I had used -r4.
_________________
jñanam bandha
Back to top
View user's profile Send private message
Hippi@Bacarni
n00b
n00b


Joined: 08 Mar 2004
Posts: 53
Location: Hannover, DE

PostPosted: Wed Jan 19, 2005 5:44 pm    Post subject: Reply with quote

just rebooted again and thought that i could be something with the bootsplash thing in the yaboot.conf. so I removed all that stuff, but the result that the screen went black again :(

execute just normal
Code:

ybin -v

after I edited yaboot.conf and copied kernel+System.map
Back to top
View user's profile Send private message
kubrick2001
n00b
n00b


Joined: 24 Nov 2004
Posts: 56

PostPosted: Wed Jan 19, 2005 6:03 pm    Post subject: Reply with quote

fafhrd wrote:
Ooh, let me emerge gentoo-dev-sources-2.6.10-r6 and see what happens...

Note that I had used -r4.


Hi, I just tested your patch, but again bad news, the sleep doesn't work on my ibook (G4 1.2 Ghz). I used kernel linux-2.6.10-gentoo-r5.
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Jan 19, 2005 6:15 pm    Post subject: Reply with quote

Hrm, in regards to -r5 and -r6, why don't you both try using the latest "stable"/ppc-keyworded kernel, i.e. -r4?

I mean,it's no big deal, but the patch works on -r4, and I personally like to sleep my laptop a lot. :-)

I am working on patching -r6 now, as it's the latest/~ppc-keyworded one. I'll report here if it works again, but this may be in a little while longer.
_________________
jñanam bandha
Back to top
View user's profile Send private message
luke Gee
n00b
n00b


Joined: 13 Jun 2004
Posts: 10

PostPosted: Wed Jan 19, 2005 6:24 pm    Post subject: Reply with quote

I'm using an IBOOK G4 1Ghz with gentoo-dev-sources-2.6.10-r4. I patched the kernel with no problems.

I was using radeonfb=video in yaboot.conf but that didn't work (black screen with a reboot after a short while).

Now I've just changed it to ofonly=video and now it seems to be working...... :D
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Jan 19, 2005 7:13 pm    Post subject: Reply with quote

If you don't specify either, does it work?

... I don't know offhand, but likely for the iBook's it'll select the radeonfb by default, but then maybe not work still.

I have no way to test on the iBook's, sorry. :-\
_________________
jñanam bandha
Back to top
View user's profile Send private message
kubrick2001
n00b
n00b


Joined: 24 Nov 2004
Posts: 56

PostPosted: Wed Jan 19, 2005 7:14 pm    Post subject: Reply with quote

luke Gee wrote:
I'm using an IBOOK G4 1Ghz with gentoo-dev-sources-2.6.10-r4. I patched the kernel with no problems.

I was using radeonfb=video in yaboot.conf but that didn't work (black screen with a reboot after a short while).

Now I've just changed it to ofonly=video and now it seems to be working...... :D


very interresting, can you display that exact code of yaboot.conf ?
Back to top
View user's profile Send private message
luke Gee
n00b
n00b


Joined: 13 Jun 2004
Posts: 10

PostPosted: Wed Jan 19, 2005 7:25 pm    Post subject: Reply with quote

extract from yaboot.conf:

image=/boot/kernel-2.6.10-gentoo-r4
label= Gentoo
append="ofonly=video"

I'll try it with no options and give feed a.s.a.p!
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Jan 19, 2005 7:33 pm    Post subject: Reply with quote

fyi,

that's:
video=ofonly
-or-
video=radeonfb

... not vice-versa, iirc
_________________
jñanam bandha
Back to top
View user's profile Send private message
luke Gee
n00b
n00b


Joined: 13 Jun 2004
Posts: 10

PostPosted: Wed Jan 19, 2005 7:34 pm    Post subject: Reply with quote

Well it works with no passed parameters too :-)

image=/boot/kernel-2.6.10-gentoo-r4
label=Gentoo


Only if I have append="video=radeonfb" in yaboot.conf, then it does not work:-(
Back to top
View user's profile Send private message
luke Gee
n00b
n00b


Joined: 13 Jun 2004
Posts: 10

PostPosted: Wed Jan 19, 2005 7:39 pm    Post subject: Reply with quote

append="ofonly=video" is what I have.

But I have just tried it vice versa...

append="video=ofonly" and that works too.
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Jan 19, 2005 7:42 pm    Post subject: Reply with quote

lluke Gee-

Check the output of `dmesg` towards the top to see if the radeonfb or the ofonly device gets iinitialized -- if sleep works, and the radeon device is set up correctly, then you are good to go. :-)
_________________
jñanam bandha
Back to top
View user's profile Send private message
luke Gee
n00b
n00b


Joined: 13 Jun 2004
Posts: 10

PostPosted: Wed Jan 19, 2005 7:59 pm    Post subject: Reply with quote

'dmesg' output

----------------------
[drm] Initialized radeon 1.11.0 20020828 on minor 0: ATI Technologies Inc RV250 5c63 [Radeon Mobility 9200 M9+]
Using unsupported 1024x768 ATY,Via_A at 9c008000, depth=8, pitch=1024
Console: switching to colour frame buffer device 128x48
fb0: Open Firmware frame buffer device on /pci@f0000000/ATY,ViaParent@10/ATY,Via_A@0
Using unsupported 640x480 ATY,Via_B at 99008000, depth=8, pitch=768
fb1: Open Firmware frame buffer device on /pci@f0000000/ATY,ViaParent@10/ATY,Via_B@1
----------------------
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Wed Jan 19, 2005 8:04 pm    Post subject: Reply with quote

yeah, that's definitely ofonly being used

It's a shame, sure, but at least sleep works, I suppose :-)

Likely all of this will be ironed out in 2.6.11, but who knows? ;-)
_________________
jñanam bandha
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Thu Jan 20, 2005 7:35 am    Post subject: Reply with quote

Well, just to let everyone know, I applied my patch to gentoo-dev-sources-2.6.10-r6, and it applied cleanly, and everything (sleep/etc) works.

Note sure the nature of the problem others are experiencing...
_________________
jñanam bandha
Back to top
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Mon Jan 24, 2005 11:15 pm    Post subject: Reply with quote

Alright, I'm using a 1Ghz iBook G4 with the 2.6.10-gentoo-r4 kernel. I was able to get the patch to apply without errors, the kernel recompiled and rebooted fine. However, when I close the screen nothing happens. The little Apple window thing still glows and the little LED in the front doesn't pulse.

Am I missing something? Are there some option in the kernel I need to add?
_________________
The Real OTW
"Blue skies and high fives"
Back to top
View user's profile Send private message
luke Gee
n00b
n00b


Joined: 13 Jun 2004
Posts: 10

PostPosted: Tue Jan 25, 2005 8:45 pm    Post subject: Reply with quote

I just wanted to report that the patch works fine with radeonfb. I deactivated open framebuffer in my kernel, and now the sleep modus works with radeonfb.


:lol:

hi 10k1, have you merged pbbuttonsd and configured it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum