Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-23 Thread Jack Malmostoso
Benjamin Herrenschmidt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... No, it's all normal. Ben. Mmm I'll check my .config with Pau's then, and see if there are any differences.

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-23 Thread clemens kurtenbach
Hi, 'echo ram /sys/power/state' also does nothing. Am I missing something? pmud or pbbuttonsd set to pmud replacement mode ... sorry, but what does this exactly mean ? By closing/opening the lid suspend-to-ram is working fine with debian sarge and a patched (#4) vanilla 2.6.9 kernel. But

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-23 Thread Benjamin Herrenschmidt
On Tue, 2004-11-23 at 22:28 +0100, clemens kurtenbach wrote: Hi, 'echo ram /sys/power/state' also does nothing. Am I missing something? pmud or pbbuttonsd set to pmud replacement mode ... sorry, but what does this exactly mean ? By closing/opening the lid suspend-to-ram is working

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-22 Thread Daniele Menozzi
On 17:56:50 19/Nov , Benjamin Herrenschmidt wrote: Get it at: http://gate.crashing.org/~benh/albook-ibookg4-sleep.diff great, it fixed one video problem I had on my AlBook 15; with the other patches, after different sleep cycles, some pixels started to change colour, growing(in number) on

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-22 Thread Jack Malmostoso
Jack Malmostoso [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I have them builtin. Maybe it's something bluetooth module related, I think the kernel sees it as USB. I'll make a couple of tries. I have tried disabling all bluetooth stuff (daemons and kernel modules) but the

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-22 Thread Benjamin Herrenschmidt
On Mon, 2004-11-22 at 00:49 -0800, Jack Malmostoso wrote: Nov 21 18:15:04 localhost kernel: eth0: suspending, WakeOnLan disabled Nov 21 18:15:06 localhost kernel: PCI: Enabling device :00:10.0 ( - 000 3) Nov 21 18:15:06 localhost kernel: Apple USB OHCI 0001:10:18.0 disabled by firmwa

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-21 Thread Jack Malmostoso
Ciao Pau Rullan Ferragut, nel tuo messaggio dicevi: Is there something plugged? No, nothing. How are the USB in your kernel config? I have them built-in, but in module-way-of-life should not be any problem either. I have them builtin. Maybe it's something bluetooth module related, I think

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-21 Thread Colin Leroy
On 21 Nov 2004 at 11h11, Benjamin Herrenschmidt wrote: Hi, Arrgh! I think it's time for me to bite the bullet and learn Gnus. In the meantime: A while ago, I used mutt in addition to my normal mailer just to send patches :) However, I have no problem with evolution lately, but then,

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Benjamin Herrenschmidt
On Sat, 2004-11-20 at 02:18 +0100, Vincent Hanquez wrote: Firewire isn't a friend of sleep, though some of that has been fixed, there may still be some issues. It seems the patch works only when I forget all modules on boot (no /lib/modules/2.6.9/ directory) I can manually insmod

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Domingo Fiesta Segura
On Fri, 19 Nov 2004 22:01:31 +0100 Pau Rul·lan Ferragut [EMAIL PROTECTED] wrote: If you prefer, you could try the configurations I use. You can find them in this folder: http://bulma.net/~paurullan/ibook-g4/ Bingo! That was the problem. Your config works prefectlly. Now I would like to know

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Domingo Fiesta Segura
On Sat, 20 Nov 2004 11:53:39 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: Make sure you have APM emulation in your kernel and that /dev/apm_bios exists, it's the mecanism used by the kernel to notify X of the suspend/resume cycle. I had the APM emulation but not the /dev/apm_bios

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Pau Rul·lan Ferragut
On Saturday 20 November 2004 13:57, Domingo Fiesta Segura wrote: On Sat, 20 Nov 2004 11:53:39 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: Make sure you have APM emulation in your kernel and that /dev/apm_bios exists, it's the mecanism used by the kernel to notify X of the

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Jack Malmostoso
Ciao Pau Rullan Ferragut, nel tuo messaggio dicevi: Well, I have to say I do not have pmud installed, just pbbuttonsd. Have you tried the pbbuttonsd.conf I have on bulma.net? My machine sleeps when I close the lid (or press the button). If I use your pbbuttonsd.conf, the machine goes to

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Pau Rullan Ferragut
On Saturday 20 November 2004 13:39, Domingo Fiesta Segura wrote: On Fri, 19 Nov 2004 22:01:31 +0100 Pau Rul·lan Ferragut paurullan at bulma.net wrote: If you prefer, you could try the configurations I use. You can find them in this folder: http://bulma.net/~paurullan/ibook-g4/ Bingo! That

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Pau Rullan Ferragut
On Saturday 20 November 2004 15:43, Jack Malmostoso wrote: Ciao Pau Rullan Ferragut, nel tuo messaggio dicevi: Well, I have to say I do not have pmud installed, just pbbuttonsd. Have you tried the pbbuttonsd.conf I have on bulma.net? My machine sleeps when I close the lid (or press the

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Jack Malmostoso
Ciao Pau Rullan Ferragut, nel tuo messaggio dicevi: Was not already this your normal behaivour before the patch? It should have been. No: it turned off, brutally, when close the lid. Bad XF86Config. I will double check it with yours then :) Have you tried to sleep it by hand? ( echo -n

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Domingo Fiesta Segura
On Sat, 20 Nov 2004 20:12:26 +0100 Pau Rul·lan Ferragut [EMAIL PROTECTED] wrote: Tell us more news when you have them! :) As far as I've tested, it seems that if you comment the line of the driver section: Option AGPMode 4 And run the X server, then put the machine into sleep; it will sleep

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Benjamin Herrenschmidt
On Fri, 2004-11-19 at 19:20 +1100, Benjamin Herrenschmidt wrote: On Fri, 2004-11-19 at 17:56 +1100, Benjamin Herrenschmidt wrote: So here's the new patch, it replaces the previous one for Aluminium PowerBooks, and is still against 2.6.9. I'll do something against 2.6.10 when that one is out

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread John Steele Scott
On Sun, 21 Nov 2004 10:33 am, Benjamin Herrenschmidt wrote: Grrr . . . you'd think. Actually in KMail it's necessary to turn off word-wrap every time you want to paste in a patch. But worse, there is a bug in Qt 3.3.3 which caused KMail to break the previous message behind my back:

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-20 Thread Benjamin Herrenschmidt
On Sun, 2004-11-21 at 11:08 +1030, John Steele Scott wrote: On Sun, 21 Nov 2004 10:33 am, Benjamin Herrenschmidt wrote: Grrr . . . you'd think. Actually in KMail it's necessary to turn off word-wrap every time you want to paste in a patch. But worse, there is a bug in Qt 3.3.3

TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Benjamin Herrenschmidt
(Message cross-posted to several lists, please do _NOT_ reply to all of them). NOTE: Owners of _OTHER_ Apple laptops that could already sleep, like earlier iBooks, or Titanium PowerBooks, please test this patch as well for regression. More specifically, test if sleep still works, X/DRI, and

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Benjamin Herrenschmidt
On Fri, 2004-11-19 at 17:56 +1100, Benjamin Herrenschmidt wrote: So here's the new patch, it replaces the previous one for Aluminium PowerBooks, and is still against 2.6.9. I'll do something against 2.6.10 when that one is out (it's a bit late to get that merged with Linus, 2.6.10 is in freeze

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Colin Leroy
On 19 Nov 2004 at 19h11, Benjamin Herrenschmidt wrote: Hi, Ok, I already found a bug, occasional lockups on boot and when setting the backlight. I uploaded a new version at: http://gate.crashing.org/~benh/albook-ibookg4-sleep-2.diff For those of you who have already patched and recompiled

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Benjamin Herrenschmidt
On Fri, 2004-11-19 at 09:13 +0100, Colin Leroy wrote: On 19 Nov 2004 at 17h11, Benjamin Herrenschmidt wrote: Hi, http://gate.crashing.org/~benh/albook-ibookg4-sleep.diff gcc spits a warning on arch/ppc/syslib/prom_init.c:708, where we have /* copy the holding pattern code to

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Colin Leroy
On 19 Nov 2004 at 21h11, Benjamin Herrenschmidt wrote: Hi, What is the actual warning ? Null argument where non-null required - approx, the log message scrolled out of buffer before I could copy it. This code is run within the OF environment where memory is mapped 1:1, and whith the kernel

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Colin Leroy
On 19 Nov 2004 at 11h11, Colin Leroy wrote: Hi, What is the actual warning ? Null argument where non-null required - approx, the log message scrolled out of buffer before I could copy it. (Gcc 3.4.something) -- Colin

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Joan Valduvieco
Hi, I've tried the patch with success on my albook. :) Good job! Some info: bender:~# cat /proc/cpuinfo processor : 0 cpu : 7447/7457, altivec supported clock : 765MHz revision: 1.1 (pvr 8002 0101) bogomips: 508.92 machine : PowerBook5,2

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Nivox
Alle 09:20, venerdì 19 novembre 2004, Benjamin Herrenschmidt ha scritto: [CUT] Ok, I already found a bug, occasional lockups on boot and when setting the backlight. I uploaded a new version at: http://gate.crashing.org/~benh/albook-ibookg4-sleep-2.diff I tried the patch. Everything goes fine.

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Laurent Fousse
Hi, * Nivox [Fri, Nov 19, 2004 at 12:25:32PM +0100]: Alle 09:20, venerdì 19 novembre 2004, Benjamin Herrenschmidt ha scritto: [CUT] Ok, I already found a bug, occasional lockups on boot and when setting the backlight. I uploaded a new version at:

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Pablo Guerrero
El Viernes, 19 de Noviembre de 2004 13:30, Laurent Fousse escribió: Hi, * Nivox [Fri, Nov 19, 2004 at 12:25:32PM +0100]: Alle 09:20, venerdì 19 novembre 2004, Benjamin Herrenschmidt ha scritto: [CUT] Ok, I already found a bug, occasional lockups on boot and when setting the

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Colin Leroy
On 19 Nov 2004 at 17h11, Benjamin Herrenschmidt wrote: Hi, NOTE2: This is still quite experimental, be careful if something goes wrong (like lots of oopses or crashes on wakeup), you'd rather hard-restart the machine right away than let corrupted memory buffers be written back to your disk

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread wrobell
On Fri, Nov 19, 2004 at 05:56:50PM +1100, Benjamin Herrenschmidt wrote: [...] NOTE: Owners of _OTHER_ Apple laptops that could already sleep, like earlier iBooks, or Titanium PowerBooks, please test this patch as well for regression. More specifically, test if sleep still works, X/DRI, and

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Julien PERVILLE
my system : ibook g4 12' 800 running gentoo. experience against gentoo-dev-sources 2.6.9-r4 patch applied fine (no rejects) after i symlinked /usr/src/linux-2.6.9-gentoo-r4 to /usr/src/linux-2.6.9 there was a stale directory created from the patch /usr/src/linux-2.6.9-sleep containing

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Vincent Hanquez
On Fri, Nov 19, 2004 at 07:20:22PM +1100, Benjamin Herrenschmidt wrote: Ok, I already found a bug, occasional lockups on boot and when setting the backlight. I uploaded a new version at: http://gate.crashing.org/~benh/albook-ibookg4-sleep-2.diff Hi, after resume the XV output (xine/mplayer)

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Colin Leroy
On 19 Nov 2004 at 14h11, Colin Leroy wrote: Hi, - After wakeup, hard drive access seems to crash stuff hard (tested while in X, everything goes fine until I tried to open a second gnome-terminal: window appeared then it froze). Did another test while in console, sleeping, wakeing, running

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Guido Guenther
On Fri, Nov 19, 2004 at 12:25:32PM +0100, Nivox wrote: Alle 09:20, venerdì 19 novembre 2004, Benjamin Herrenschmidt ha scritto: [CUT] Ok, I already found a bug, occasional lockups on boot and when setting the backlight. I uploaded a new version at:

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Domingo Fiesta Segura
On Fri, 19 Nov 2004 19:20:22 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: http://gate.crashing.org/~benh/albook-ibookg4-sleep-2.diff Hi, my laptop is iBook G4 (PowerBook6,5 Radeon Mobility 9200 M9+). Here are some first tests: Backlight control works very well in all cases. Sleep to

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Nivox
Alle 16:43, venerdì 19 novembre 2004, Domingo Fiesta Segura ha scritto: [CUT] Sleep to RAM in console only works well in most cases, except if you change the USB state (by plugging or unplugging devices, for example the USB mouse) while sleeping it won't wake up. I tried that too and I had the

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Arne Caspari
Benjamin Herrenschmidt wrote: On Fri, 2004-11-19 at 17:56 +1100, Benjamin Herrenschmidt wrote: So here's the new patch, it replaces the previous one for Aluminium PowerBooks, and is still against 2.6.9. I'll do something against 2.6.10 when that one is out (it's a bit late to get that

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread John Steele Scott
Excellent! Thanks heaps to Ben, Paul and Rob. Here are some notes from testing on my 12 iBook G4 1GHz. Some of it just confirms what others have already written. DRI and backlight work fine. On-board ethernet is fine, and can be unplugged/plugged-in during sleep with no problems. I confirm

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Arne Caspari
Arne Caspari wrote: I applied the patch, recompiled and rebooted. But if I close the lid, the iBook does not sleep. 'echo ram /sys/power/state' also does nothing. Am I missing something? Thanks, -Arne Ah, pressing the power button sleeps the computer. How can I configure it to sleep

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Nivox
Alle 19:22, venerdì 19 novembre 2004, Arne Caspari ha scritto: [CUT] How can I configure it to sleep when I close the lid? ( I guess it will be somewhere in pbbuttons.conf - I will have a look ) Use powerprefs to configure pbbuttons. [CUT] /Arne Cheers Andrea -- Nivox Linux Registered User

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Jack Malmostoso
Ciao Benjamin Herrenschmidt, nel tuo messaggio dicevi: Get it at: http://gate.crashing.org/~benh/albook-ibookg4-sleep.diff What can I say? PERFECT!!! Here (iBook G4 12) the only glitch I noticed is that if I press the power button, the iBook goes to sleep, pbbuttons shows the going to sleep

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Pau Rul·lan Ferragut
On Friday 19 November 2004 16:43, Domingo Fiesta Segura wrote: On Fri, 19 Nov 2004 19:20:22 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: http://gate.crashing.org/~benh/albook-ibookg4-sleep-2.diff Hi, my laptop is iBook G4 (PowerBook6,5 Radeon Mobility 9200 M9+). Here are some

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Guido Guenther
On Fri, Nov 19, 2004 at 04:26:08PM +0100, Guido Guenther wrote: On Fri, Nov 19, 2004 at 12:25:32PM +0100, Nivox wrote: Alle 09:20, venerdì 19 novembre 2004, Benjamin Herrenschmidt ha scritto: [CUT] Ok, I already found a bug, occasional lockups on boot and when setting the backlight. I

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Benjamin Herrenschmidt
On Fri, 2004-11-19 at 15:55 +0100, Vincent Hanquez wrote: On Fri, Nov 19, 2004 at 07:20:22PM +1100, Benjamin Herrenschmidt wrote: Ok, I already found a bug, occasional lockups on boot and when setting the backlight. I uploaded a new version at:

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Benjamin Herrenschmidt
I applied the patch, recompiled and rebooted. But if I close the lid, the iBook does not sleep. 'echo ram /sys/power/state' also does nothing. Am I missing something? pmud or pbbuttonsd set to pmud replacement mode ... Ben.

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Benjamin Herrenschmidt
On Sat, 2004-11-20 at 04:44 +1030, John Steele Scott wrote: I confirm the XV corruption, mplayer plays fine before sleep, but the screen is green when playing movies after a resume. If I tell mplayer to not use Xv, the movies are okay. Ok. Can somebody with an albook (M10) can test that too

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Benjamin Herrenschmidt
On Sat, 2004-11-20 at 04:44 +1030, John Steele Scott wrote: Also, this patch will stop the cpufreq: resume failed to assert current frequency is what timing core thinks it is complaint on 7447A based machines. Patch totally broken by your mailer unfortunately ... You must have an option

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Sylvain Joyeux
I have the same problems I'll add that it seems the 'brighter screen' when turning the backlight back on is just a blank screen which disappears Since I had xserver-xfree86-dri-trunk (2004-02-28-2) installed, I decided to go back to the Debian unstable one an compare I had a few crashed with

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Michel Dänzer
On Fri, 2004-11-19 at 23:43 +0100, Sylvain Joyeux wrote: with dri-trunk, after doing: clean boot, startx, sleep, resume - xvideo is broken (restarting xfree fixes this) - quitting xfree, installing the official Debian server and doing startx brokes everything (noised screen, kernel stops

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Benjamin Herrenschmidt
On Fri, 2004-11-19 at 16:43 +0100, Domingo Fiesta Segura wrote: On Fri, 19 Nov 2004 19:20:22 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: http://gate.crashing.org/~benh/albook-ibookg4-sleep-2.diff Hi, my laptop is iBook G4 (PowerBook6,5 Radeon Mobility 9200 M9+). Here are some

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread Vincent Hanquez
On Sat, Nov 20, 2004 at 09:29:47AM +1100, Benjamin Herrenschmidt wrote: If you don't have any Xv output, go to sleep, resume, then display some Xv stuff, it happens too ? yes, after any resume (Xv output before or not) the Xv output is green garbage. The only way to clean the garbage seems to

Re: TEST: Sleep suppport for iBook G4 Aluminium PowerBooks (ATI based)

2004-11-19 Thread John Steele Scott
On Sat, 20 Nov 2004 09:04 am, benh wrote: On Sat, 2004-11-20 at 04:44 +1030, John Steele Scott wrote: I can confirm that if sleep is invoked by closing the lid, then opening the lid causes the machine to wake up and then immediately go back to sleep. But if sleep is invoked by using