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 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Nov 19, 2004 7:29 am    Post subject: AlBook AND iBook G4 Sleep patch released! Reply with quote

NOTE: the latest gentoo sources (2.6.11) should already have the sleep patch applied.

It's that time of week again, and we've got the 7th version of the patch, there should be fewer lockups now. Benh has put in a workaround for cache corruption while he waits for freescale to get back to him. Let us know how it goes!

A new patch has been released by benh that allows sleep on AlBooks *AND* iBook G4. I've pixed the patch paths a little to make it easier for Gentoo users to use, get the patch at: http://dev.gentoo.org/~josejx/albook-ibookg4-sleep-7.diff.gz
Applies cleanly to gentoo-dev-sources 2.6.9-r4:
Code:

cd /usr/src/linux
patch -p0 < /path/to/patch/albook-ibookg4-sleep-7.diff


Original post: http://lists.debian.org/debian-powerpc/2004/11/msg00353.html


Last edited by JoseJX on Mon Mar 14, 2005 9:49 am; edited 7 times in total
Back to top
View user's profile Send private message
colinleroy
n00b
n00b


Joined: 24 Nov 2003
Posts: 50

PostPosted: Fri Nov 19, 2004 9:36 am    Post subject: Reply with quote

.gz.bz2 ? :)
Also, you should better use the second patch BenH sent:
http://lists.debian.org/debian-powerpc/2004/11/msg00356.html
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Fri Nov 19, 2004 2:58 pm    Post subject: Reply with quote

On my ibook G4 this patch work fine.
I've applied it on 2.6.9 vanilla.

I'm the really happy :D
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
minicom
n00b
n00b


Joined: 04 Jun 2004
Posts: 25
Location: washington, dc, usa

PostPosted: Fri Nov 19, 2004 4:18 pm    Post subject: Reply with quote

This is awesome. I can't wait to try it out! :)
_________________
PowerMac G5 (7,3) - 2 x 1.8GHz
Gentoo 2004.3 PPC64
Back to top
View user's profile Send private message
DrACoNuS
Tux's lil' helper
Tux's lil' helper


Joined: 03 Oct 2002
Posts: 116
Location: Edmonton, Alberta, Canada

PostPosted: Fri Nov 19, 2004 5:49 pm    Post subject: awesome Reply with quote

Guess that I have my weekend planned out for me!! This is going to be great.
_________________
Is that a huge bandwidth or are you just happy to see me?
Back to top
View user's profile Send private message
nicoske
n00b
n00b


Joined: 05 May 2004
Posts: 14
Location: Brussels

PostPosted: Sat Nov 20, 2004 6:22 am    Post subject: Reply with quote

Works perfectly on my ibook G4 12" 1ghz !

Code:

Nov 20 07:29:51 satellite eth0: suspending, WakeOnLan disabled
Nov 20 07:29:52 satellite radeonfb: suspending to state: 3...
Nov 20 07:29:53 satellite cpufreq: resume failed to assert current frequency is what timing core thinks it is.
Nov 20 07:29:53 satellite PCI: Enabling device 0000:00:10.0 (0000 -> 0003)
Nov 20 07:29:53 satellite radeonfb: resumed !
Nov 20 07:29:53 satellite Apple USB OHCI 0001:10:18.0 disabled by firmware
Nov 20 07:29:53 satellite Apple USB OHCI 0001:10:19.0 disabled by firmware
Nov 20 07:29:53 satellite enable_irq(29) unbalanced
Nov 20 07:29:53 satellite enable_irq(63) unbalanced
Nov 20 07:29:53 satellite enable_irq(63) unbalanced
Nov 20 07:29:54 satellite eth0: resuming
Nov 20 07:29:54 satellite PHY ID: 4061e4, addr: 0
Nov 20 07:30:01 satellite hda: Enabling Ultra DMA 5
Nov 20 07:30:01 satellite hdc: MDMA, cycleTime: 120, accessTime: 90, recTime: 30
Nov 20 07:30:01 satellite hdc: Set MDMA timing for mode 2, reg: 0x00011d26
Nov 20 07:30:01 satellite hdc: Enabling MultiWord DMA 2
Nov 20 07:30:01 satellite adb: starting probe task...
Nov 20 07:30:01 satellite adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
Nov 20 07:30:01 satellite ADB keyboard at 2, handler 1
Nov 20 07:30:01 satellite ADB mouse at 3, handler set to 4 (trackpad)
Nov 20 07:30:01 satellite adb: finished probe task...
Nov 20 07:30:01 satellite agpgart: Putting AGP V2 device at 0000:00:0b.0 into 4x mode
Nov 20 07:30:01 satellite agpgart: Putting AGP V2 device at 0000:00:10.0 into 4x mode
Nov 20 07:30:01 satellite [drm] Loading R200 Microcode
Nov 20 07:30:02 satellite eth0: Link is up at 100 Mbps, full-duplex.
Nov 20 07:30:02 satellite eth0: Pause is disabled


Happy user ! :-)
Back to top
View user's profile Send private message
killefiz
n00b
n00b


Joined: 24 Apr 2004
Posts: 5

PostPosted: Sat Nov 20, 2004 10:23 am    Post subject: mpf - no nvidia support :( Reply with quote

Too bad Apple used an NVidia-Chip in the current
12" G4 Powerbooks.

So no sleep for me ...

--
killefiz
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Sat Nov 20, 2004 11:31 am    Post subject: Re: mpf - no nvidia support :( Reply with quote

killefiz wrote:
Too bad Apple used an NVidia-Chip in the current
12" G4 Powerbooks.

So no sleep for me ...

Support for pbook 12'' is in the future (as said Behn)
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
toojays
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 150
Location: Adelaide, Australia

PostPosted: Sun Nov 21, 2004 12:32 am    Post subject: Reply with quote

When did he say that? I got the impression that the technique used to reverse engineer the ATI drivers could not be used for the Nvidia ones.

See this message for details.
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Sun Nov 21, 2004 1:09 am    Post subject: Reply with quote

Sorry... I misunderstood this post:
Quote:
This is an experimental patch against 2.6.9. It concerns the ATI based
Aluminium PowerBook. The nVidia based ones aren't concerned at all, and
the iBook G4 will have to wait a bit more for me to get the video wakeup
code right.


Only a lack of memory :roll:
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
aronchi
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2004
Posts: 94

PostPosted: Tue Nov 23, 2004 9:19 am    Post subject: Reply with quote

here:
https://forums.gentoo.org/viewtopic.php?p=1795346#1795346
is a post of an Italian pwbook owner that made the VGA out works with this kernel patch.

He did that:

patch the kernel with the sleep diff
load the kernel-sleep
put on an external monitor into VGA out cable
sleep the notebook
resume the monitor

Then he has a clone mode active.

I've noticed he don't use FBDev.
Is it possible to get this thing work? anyone can reproduce that?

Can you write to BenH to say this message, maybe it can be useful for a newer ibook-vgaout patch :)
_________________
Alessandro Ronchi Home Page
SOASI: Sviluppo Software e Sistemi Open Source Forlì
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Wed Nov 24, 2004 4:07 pm    Post subject: Reply with quote

Yes, I am the italian user :wink: , vga out works for me. Benh say that it works only with radeonfb. If you use fbdev, you don't have a lot of problems, but you can't use vgaout for now... :(
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
blubbfisch
n00b
n00b


Joined: 19 Oct 2003
Posts: 55
Location: World->Pacific->New Zealand->Hamilton

PostPosted: Fri Nov 26, 2004 12:32 am    Post subject: Reply with quote

Anybody else seeing black&white horizontal stripes in the root (X-background) after wake-up with 2nd patch applied?
Using the first patch it worked alright, it only started with the second patch.

Have fun*
Back to top
View user's profile Send private message
Motomouse
n00b
n00b


Joined: 28 Nov 2003
Posts: 56

PostPosted: Sun Nov 28, 2004 10:26 pm    Post subject: Reply with quote

works over here :D

had to copy first pmac_cache.S from subdir /usr/src/linux/sleep-2.6.9-sleep/arch/ppc/platforms to
/usr/src/linux/arch/ppc/platforms
until that i got errors on missing Makefile rule for pmac_cache.o

Thanks a lot
ralph
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Thu Dec 02, 2004 3:40 pm    Post subject: Reply with quote

Quote:
works over here Very Happy


Ditto :D
BTW- revision 6 is available too !

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Dec 05, 2004 9:21 pm    Post subject: Reply with quote

Bump for new patch version!
Back to top
View user's profile Send private message
Motomouse
n00b
n00b


Joined: 28 Nov 2003
Posts: 56

PostPosted: Mon Dec 06, 2004 5:38 pm    Post subject: Reply with quote

(On gentoo_dev_sources 2.6.9-r1 i had to copy again the file mentioned two posts above)
version 7 working fine :D

by the way, no more lock ups over here with this version

(only prob remaining, if you can call this a problem, rhythmbox has problems recovering from sleep, xmms no problem, my other apps all recover fine)
Back to top
View user's profile Send private message
Hippi@Bacarni
n00b
n00b


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

PostPosted: Mon Dec 20, 2004 8:17 am    Post subject: Reply with quote

Also no probs with number 7 :-D with gentoo-dev-2.6.9-r9

I love it!
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Sat Dec 25, 2004 7:11 pm    Post subject: Reply with quote

When will there be support von kernel 2.6.10? Does anybody know? The new kernel now activates both fans of the Powerbook (and it does this in a smoother way!)


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


Joined: 21 Jul 2002
Posts: 150
Location: Adelaide, Australia

PostPosted: Tue Dec 28, 2004 2:26 am    Post subject: Reply with quote

The next sleep patch will be against 2.6.10 I think, but I saw a message saying that benh is going on holidays, so I guess it wont be out until after he gets back.

By the way, much of the discussion about the sleep patch takes place on Debian's PowerPC list.
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: Sun Jan 16, 2005 10:10 pm    Post subject: Reply with quote

You can try this updated patch:
Code:
# wget http://dev.gentoo.org/~fafhrd/ppc/albook-ibookg4-sleep-7-for-2.6.10.diff.bz2


Note that "Your Mileage _Will_ Vary". ;-)

It patches cleanly against gentoo-dev-sources-2.6.10-r4.
_________________
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: Sun Jan 16, 2005 10:34 pm    Post subject: Reply with quote

... just adding a note to say that the patch seems to work well after multiple sleep attempts. (don't think I made it clear that it does work above).
_________________
jñanam bandha
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Sun Jan 16, 2005 10:36 pm    Post subject: Reply with quote

Great! Thanks, I will try it!


Christopher
_________________
Are YOU high - on bonsai?
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: Mon Jan 17, 2005 5:56 am    Post subject: Reply with quote

Well, the only thing that seems to have gone wrong is that backlight control doesn't seem to work -- but sleep still does.

If any one else with some kernel hacking experience wants to take a look at this patch as well, that'd be great.

Likely BenH will bang out a more official patch for 2.6.10 when he returns from his break or whatever.
_________________
jñanam bandha
Back to top
View user's profile Send private message
kubrick2001
n00b
n00b


Joined: 24 Nov 2004
Posts: 56

PostPosted: Mon Jan 17, 2005 5:45 pm    Post subject: Reply with quote

fafhrd wrote:
Well, the only thing that seems to have gone wrong is that backlight control doesn't seem to work -- but sleep still does.


Same problem here. backlight doesn't work.
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 1, 2, 3, 4  Next
Page 1 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