Re: TEST: Sleep patch #4

2004-11-24 Thread Michel Dänzer
On Wed, 2004-11-24 at 08:38 +0100, Colin Leroy wrote: > On 24 Nov 2004 at 10h11, Benjamin Herrenschmidt wrote: > > > There are issues with USB, just avoid doing that for now. > > I remember that in 2002, with a G3 Lombard and 2.4.18, I once > plugged an usb-storage device while sleeping and it cr

Re: TEST: Sleep patch #4

2004-11-24 Thread Jesus Climent
On Wed, Nov 24, 2004 at 08:38:46AM +0100, Colin Leroy wrote: > > > There are issues with USB, just avoid doing that for now. > > I remember that in 2002, with a G3 Lombard and 2.4.18, I once > plugged an usb-storage device while sleeping and it crashed on > resume, so these problems aren't really

Re: TEST: Sleep patch #4

2004-11-24 Thread Michael Schmitz
> > There are issues with USB, just avoid doing that for now. > > I remember that in 2002, with a G3 Lombard and 2.4.18, I once > plugged an usb-storage device while sleeping and it crashed on > resume, so these problems aren't really new. I think plugging/unplugging USB mice was fine. Anyway, hav

Re: TEST: Sleep patch #4

2004-11-24 Thread Colin Leroy
On 24 Nov 2004 at 10h11, Benjamin Herrenschmidt wrote: Hi, > There are issues with USB, just avoid doing that for now. I remember that in 2002, with a G3 Lombard and 2.4.18, I once plugged an usb-storage device while sleeping and it crashed on resume, so these problems aren't really new. I'm fi

Re: TEST: Sleep patch #4

2004-11-23 Thread Benjamin Herrenschmidt
> I have still some problems with #4. > When i unplug or plug in an USB-Mouse while in sleep the iBook crashes > on resume. The sleep-led turns off, but the display remains dark and i > can't ping the iBook (with #2 one time after resume the display remained > blank too, but the sound (xmms and

Re: TEST: Sleep patch #4

2004-11-23 Thread Benjamin Herrenschmidt
> Looking at radeon_base.c:radeon_screen_blank() (line 1045) we have: > > val &= ~(LVDS_BL_MOD_EN); > udelay(100); > val &= ~(LVDS_ON | LVDS_EN); > OUTREG(LVDS_GEN_CNTL, val); > > > Is there an OUTRE

Re: TEST: Sleep patch #4

2004-11-23 Thread Benjamin Herrenschmidt
On Tue, 2004-11-23 at 08:27 +, Sean Neakums wrote: > On resume this morning, though, the display was behaving oddly, both > in X and on the console: it was sort of shimmering, split and repeated > about 1/5 of the screen's width to the right in what looked like > 8-pixel horizontal stripes. R

Re: TEST: Sleep patch #4

2004-11-23 Thread Sascha Herrmann
Benjamin Herrenschmidt wrote: first thank you for this nice work. Mostly it works great for me on my iBook G4 933 (first generation). I have still some problems with #4. When i unplug or plug in an USB-Mouse while in sleep the iBook crashes on resume. The sleep-led turns off, but the display re

Re: TEST: Sleep patch #4, USB swap during sleep kills system

2004-11-23 Thread Michel Dänzer
On Tue, 2004-11-23 at 10:53 +0100, Julien PERVILLE wrote: > Hello Ben, and thanks again for your great sleep patch. > > I have been running at home without any problem for a few days now, but > when going to work this morning, I found a good, reproducible kernel > panic. > > System is an Ibook G4

pbbuttonsd problem (Was: Re: TEST: Sleep patch #4)

2004-11-23 Thread Jesus Climent
On Tue, Nov 23, 2004 at 03:41:17PM +0100, Jesus Climent wrote: > On Mon, Nov 22, 2004 at 11:32:58AM +1100, Benjamin Herrenschmidt wrote: > > > > http://gate.crashing.org/~benh/albook-ibookg4-sleep-4.diff > > Testing the patch above. iBook G4 1GHz. More findings: I have noticed that when setting

Re: TEST: Sleep patch #4

2004-11-23 Thread Jose A. Ortega Ruiz
thanks. that worked. i've tried the patch a little bit on a new ibook g4 12' and it's working so far. jao "Michael Clemens" <[EMAIL PROTECTED]> writes: > The file is located in /usr/src/linux-2.6.9-sleep (or something like > that). > Just copy it into the right place... > > Am 23.11.2004 schri

Re: TEST: Sleep patch #4

2004-11-23 Thread Jesus Climent
On Mon, Nov 22, 2004 at 11:32:58AM +1100, Benjamin Herrenschmidt wrote: > > http://gate.crashing.org/~benh/albook-ibookg4-sleep-4.diff Testing the patch above. iBook G4 1GHz. The problem i found is after a long sleep, it woke up and suddenly it looked like without battery. Even it would not reac

Re: TEST: Sleep patch #4

2004-11-23 Thread Colin Leroy
On 23 Nov 2004 at 12h11, Michael Clemens wrote: Hi, > The file is located in /usr/src/linux-2.6.9-sleep (or something like > that). > Just copy it into the right place... Better, apply patches in linux' root (/usr/src/linux-2.6.9) with -p1 instead of -p0, that'll take care of it transparently.

Re: TEST: Sleep patch #4

2004-11-23 Thread Michael Schmitz
> It reads them from OF at boot. What do you mean by "freak out" ? the > usual problem with those models where the display gets all fuzzy ? I'm > not completely sure what's up, I tend to blame the panel power sequence > nowadays ... Just got a garbled display when waking up from sleep. That seems

Re: TEST: Sleep patch #4

2004-11-23 Thread Michael Clemens
The file is located in /usr/src/linux-2.6.9-sleep (or something like that). Just copy it into the right place... Am 23.11.2004 schrieb "Jose A. Ortega Ruiz" <[EMAIL PROTECTED]>: > >Hi... surely i'm making some stupid mistake, but when i try to compile >(via kernel-package) my patched kernel (obt

Re: TEST: Sleep patch #4

2004-11-23 Thread Jose A. Ortega Ruiz
Hi... surely i'm making some stupid mistake, but when i try to compile (via kernel-package) my patched kernel (obtained by applying the sleep patch to a kernel tree got from debian's kernel-source package), the compiler complains about a missing target (pmac_cache.o; there's no corresponding pmac_

Re: TEST: Sleep patch #4, USB swap during sleep kills system

2004-11-23 Thread wrobell
On Tue, Nov 23, 2004 at 10:53:25AM +0100, Julien PERVILLE wrote: [...] > I have been running at home without any problem for a few days now, but > when going to work this morning, I found a good, reproducible kernel > panic. > [..] > how to do it : > > * have USB mouse unplugged > * sleep > * plu

Re: TEST: Sleep patch #4, USB swap during sleep kills system

2004-11-23 Thread Michael Clemens
Yes, I had exactly the same problem. >Hello Ben, and thanks again for your great sleep patch. > >I have been running at home without any problem for a few days now, but >when going to work this morning, I found a good, reproducible kernel >panic. > >System is an Ibook G4 12' 800Mhz running gentoo

Re: TEST: Sleep patch #4, USB swap during sleep kills system

2004-11-23 Thread Julien PERVILLE
Hello Ben, and thanks again for your great sleep patch. I have been running at home without any problem for a few days now, but when going to work this morning, I found a good, reproducible kernel panic. System is an Ibook G4 12' 800Mhz running gentoo, kernel 2.6.9-r4 + your 4th sleep patch how

Re: TEST: Sleep patch #4

2004-11-23 Thread Sean Neakums
Guido Guenther <[EMAIL PROTECTED]> writes: > On Mon, Nov 22, 2004 at 06:36:02PM +, Sean Neakums wrote: >> Keith Conger <[EMAIL PROTECTED]> writes: >> >> > Works great here also (15" 1GHz PB). One issue which may be unrelated >> > I have some sound issues. For instance one a sound is played it

Re: TEST: Sleep patch #4

2004-11-23 Thread Sean Neakums
Benjamin Herrenschmidt <[EMAIL PROTECTED]> writes: > On Mon, 2004-11-22 at 18:36 +, Sean Neakums wrote: >> Keith Conger <[EMAIL PROTECTED]> writes: >> >> > Works great here also (15" 1GHz PB). One issue which may be unrelated >> > I have some sound issues. For instance one a sound is played i

Re: TEST: Sleep patch #4

2004-11-23 Thread Michael Schmitz
> > > http://gate.crashing.org/~benh/albook-ibookg4-sleep-4.diff > > > > Sorry for coming late to the party ... the current code works nicely on > > the 17" PB. On the first boot with that code, I had the PLL freak out (or > > so it looked like) but I couldn't reproduce that. Needless to say, the >

Re: TEST: Sleep patch #4

2004-11-23 Thread Guido Guenther
On Mon, Nov 22, 2004 at 06:36:02PM +, Sean Neakums wrote: > Keith Conger <[EMAIL PROTECTED]> writes: > > > Works great here also (15" 1GHz PB). One issue which may be unrelated > > I have some sound issues. For instance one a sound is played it sounds > > fine but if a sound is played right af

Re: TEST: Sleep patch #4

2004-11-22 Thread Benjamin Herrenschmidt
On Mon, 2004-11-22 at 18:36 +, Sean Neakums wrote: > Keith Conger <[EMAIL PROTECTED]> writes: > > > Works great here also (15" 1GHz PB). One issue which may be unrelated > > I have some sound issues. For instance one a sound is played it sounds > > fine but if a sound is played right after its

Re: TEST: Sleep patch #4

2004-11-22 Thread Benjamin Herrenschmidt
On Mon, 2004-11-22 at 18:04 +0100, Michael Schmitz wrote: > > Ok, here's the 4th iteration of the patch. It includes John Steele Scott > > fixes for > > cpufreq and the sound driver and fixes a problem where memory refresh > > wouldn't properly > > be re-enabled on the video chip upon wakeup. I a

Re: TEST: Sleep patch #4

2004-11-22 Thread Benjamin Herrenschmidt
On Mon, 2004-11-22 at 11:58 -0500, Keith Conger wrote: > Hi, > > Two things I forgot to include, the sound problem happens with or > without going to sleep. Also here is something that apears in my > dmesg: > Oops: kernel access of bad area, sig: 11 [#3] > PREEMPT > > .../... Alsa bugs (as well).

Re: TEST: Sleep patch #4

2004-11-22 Thread Benjamin Herrenschmidt
On Mon, 2004-11-22 at 11:38 -0500, Keith Conger wrote: > Hi, > > Works great here also (15" 1GHz PB). One issue which may be unrelated > I have some sound issues. For instance one a sound is played it sounds > fine but if a sound is played right after its volume is extremely low. > But with headph

Re: TEST: Sleep patch #4

2004-11-22 Thread Michel Dänzer
On Mon, 2004-11-22 at 11:38 -0500, Keith Conger wrote: > > Works great here also (15" 1GHz PB). One issue which may be unrelated > I have some sound issues. For instance one a sound is played it sounds > fine but if a sound is played right after its volume is extremely low. > But with headphones t

Re: TEST: Sleep patch #4

2004-11-22 Thread Sean Neakums
Benjamin Herrenschmidt <[EMAIL PROTECTED]> writes: > Ok, here's the 4th iteration of the patch. It includes John Steele > Scott fixes for cpufreq and the sound driver and fixes a problem > where memory refresh wouldn't properly be re-enabled on the video > chip upon wakeup. I also cleaned a bit mo

Re: TEST: Sleep patch #4

2004-11-22 Thread Keith Conger
Hi, Works great here also (15" 1GHz PB). One issue which may be unrelated I have some sound issues. For instance one a sound is played it sounds fine but if a sound is played right after its volume is extremely low. But with headphones this doesn't occur. Thanks again for your hard work. Keith

Re: TEST: Sleep patch #4

2004-11-22 Thread Oriol Pellicer i Sabrià
A Dilluns 22 Novembre 2004 01:32, Benjamin Herrenschmidt va escriure: > Ok, here's the 4th iteration of the patch. It includes John Steele Scott > fixes for cpufreq and the sound driver and fixes a problem where memory > refresh wouldn't properly be re-enabled on the video chip upon wakeup. I > als

Re: TEST: Sleep patch #4

2004-11-22 Thread Keith Conger
Hi, Two things I forgot to include, the sound problem happens with or without going to sleep. Also here is something that apears in my dmesg: Oops: kernel access of bad area, sig: 11 [#3] PREEMPT NIP: D22FB074 LR: D22FB8C0 SP: C548FDB0 REGS: c548fd00 TRAP: 0300 Not taintedMSR: 9032 EE: 1 PR

Re: TEST: Sleep patch #4

2004-11-22 Thread Michael Schmitz
> Ok, here's the 4th iteration of the patch. It includes John Steele Scott > fixes for > cpufreq and the sound driver and fixes a problem where memory refresh > wouldn't properly > be re-enabled on the video chip upon wakeup. I also cleaned a bit more the > MDLL reset > code for r300, plus a cou

Re: TEST: Sleep patch #4

2004-11-22 Thread Sean Neakums
Keith Conger <[EMAIL PROTECTED]> writes: > Works great here also (15" 1GHz PB). One issue which may be unrelated > I have some sound issues. For instance one a sound is played it sounds > fine but if a sound is played right after its volume is extremely low. > But with headphones this doesn't occu

TEST: Sleep patch #4

2004-11-21 Thread Benjamin Herrenschmidt
Ok, here's the 4th iteration of the patch. It includes John Steele Scott fixes for cpufreq and the sound driver and fixes a problem where memory refresh wouldn't properly be re-enabled on the video chip upon wakeup. I also cleaned a bit more the MDLL reset code for r300, plus a couple of other t