View previous topic :: View next topic |
Author |
Message |
woolsherpahat Guru
Joined: 09 Mar 2004 Posts: 347
|
Posted: Tue Jan 25, 2005 11:26 pm Post subject: |
|
|
luke Gee wrote: | hi 10k1, have you merged pbbuttonsd and configured it? |
Nope, is that necessary for sleep to function? _________________ The Real OTW
"Blue skies and high fives" |
|
Back to top |
|
|
luke Gee n00b
Joined: 13 Jun 2004 Posts: 10
|
Posted: Wed Jan 26, 2005 8:36 pm Post subject: |
|
|
Well I know that pbbuttonsd offers some power management features including sleep features.
check the homepage out...
http://pbbuttons.sourceforge.net/ |
|
Back to top |
|
|
HighOnBonsai Apprentice
Joined: 05 Jan 2004 Posts: 260
|
Posted: Wed Jan 26, 2005 8:46 pm Post subject: |
|
|
Still no go on my PB 15" - screen goes black on 2.6.10 (patch applies cleanly). Does anybody if the patch will be merged into the 2.6.11 sources? I hope so... the sleep function is very nifty!
Christopher _________________ Are YOU high - on bonsai? |
|
Back to top |
|
|
nakan n00b
Joined: 06 Jan 2005 Posts: 40 Location: Cugy - Vaud - Switzerland
|
Posted: Wed Jan 26, 2005 9:05 pm Post subject: |
|
|
I'm a noob Gentoo Linux on PPC user. I have got an iBook G4 and would like to be able to suspend it.
I had read all the posts of this topic but I'm not able to get the patch apply cleanly.
I have a linux-2.6.10-gentoo-r6 kernel. Does anybody can help me to patch my kernel to get sleep working ? Thanks in advence. _________________ - iBook G4 12" 1.2Ghz 512Mb 60Go / Gentoo
- Custom PC P4 2.6 HT 1024Mb / RAID 160Go SATA / Gentoo |
|
Back to top |
|
|
tomasino Apprentice
Joined: 11 Feb 2004 Posts: 154 Location: Italy, Bologna
|
Posted: Wed Jan 26, 2005 10:56 pm Post subject: |
|
|
HighOnBonsai wrote: | Does anybody if the patch will be merged into the 2.6.11 sources? I hope so... the sleep function is very nifty!
|
afaik the sleep patch is still considerated unstable, probably will be merged in 2.6.12 |
|
Back to top |
|
|
primero.gentoo Guru
Joined: 23 Dec 2003 Posts: 402
|
Posted: Sat Feb 12, 2005 6:18 pm Post subject: |
|
|
here on my ibbok 1Ghz 12" the patch is working almost perfect on gentoo-dev-sources-2.6.10-r6 ... my only problem is that when i wake the ibook up the USB mouse stops working , even the red light of mouse does not turn it on...
here is dmesg output:
Code: |
Feb 12 20:15:21 PowerTux pbbuttonsd: INFO: Script '/etc/power/pmcs-pbbuttonsd suspend ac ram' launched and exited normally
Feb 12 20:15:22 PowerTux eth0: suspending, WakeOnLan disabled
Feb 12 20:15:23 PowerTux radeonfb (0000:00:10.0): suspending to state: 3...
Feb 12 20:15:23 PowerTux HID1, before: 80018c80
Feb 12 20:15:23 PowerTux radeonfb (0000:00:10.0): resuming from state: 3...
Feb 12 20:15:23 PowerTux PCI: Enabling device 0000:00:10.0 (0000 -> 0003)
Feb 12 20:15:23 PowerTux HID1, after: 80018c80
Feb 12 20:15:23 PowerTux Apple USB OHCI 0001:10:18.0 disabled by firmware
Feb 12 20:15:23 PowerTux Apple USB OHCI 0001:10:19.0 disabled by firmware
Feb 12 20:15:23 PowerTux ehci_hcd 0001:10:1b.2: USB 2.0 restarted, EHCI 1.00, driver 26 Oct 2004
Feb 12 20:15:23 PowerTux usb 4-1: USB disconnect, address 2
Feb 12 20:15:24 PowerTux eth0: resuming
Feb 12 20:15:24 PowerTux PHY ID: 4061e4, addr: 0
Feb 12 20:15:37 PowerTux hda: Enabling Ultra DMA 5
Feb 12 20:15:37 PowerTux hdc: MDMA, cycleTime: 120, accessTime: 90, recTime: 30
Feb 12 20:15:37 PowerTux hdc: Set MDMA timing for mode 2, reg: 0x00011d26
Feb 12 20:15:37 PowerTux hdc: Enabling MultiWord DMA 2
Feb 12 20:15:37 PowerTux adb: starting probe task...
Feb 12 20:15:37 PowerTux adb devices: [2]: 2 c3 [3]: 3 1 [7]: 7 1f
Feb 12 20:15:37 PowerTux ADB keyboard at 2, handler 1
Feb 12 20:15:37 PowerTux ADB mouse at 3, handler set to 4 (trackpad)
Feb 12 20:15:37 PowerTux adb: finished probe task...
Feb 12 20:15:37 PowerTux agpgart: Putting AGP V2 device at 0000:00:0b.0 into 4x mode
Feb 12 20:15:37 PowerTux agpgart: Putting AGP V2 device at 0000:00:10.0 into 4x mode
Feb 12 20:15:37 PowerTux [drm] Loading R200 Microcode
Feb 12 20:15:37 PowerTux pbbuttonsd: INFO: Script '/etc/power/pmcs-pbbuttonsd resume ac ram' launched and exited normally
Feb 12 20:15:38 PowerTux eth0: Link is up at 100 Mbps, full-duplex.
Feb 12 20:15:38 PowerTux eth0: Pause is disabled
|
Does anyone can help ? _________________ "Linux, the choice of a GNU generation"
==Micro$oft - just say NO==
(L#USER 353039) |
|
Back to top |
|
|
aronchi Tux's lil' helper
Joined: 23 Nov 2004 Posts: 94
|
Posted: Sun Feb 13, 2005 12:32 am Post subject: |
|
|
I have the same problem. Also my LCD brightness is not the same on resume that was before sleep, and I must turn it down and then up again to see something in my screen. It would be useful a new kernel patch, maybe in the future stable vanilla 2.6.11 kernel. It's very important for a lot of people. _________________ Alessandro Ronchi Home Page
SOASI: Sviluppo Software e Sistemi Open Source Forlì |
|
Back to top |
|
|
Motomouse n00b
Joined: 28 Nov 2003 Posts: 56
|
Posted: Mon Feb 28, 2005 9:47 pm Post subject: |
|
|
Just an info for my fellow gentoo ibookers:
After upgrading to xorg 6.8.2 my ibook does not wake up when i have dri/glx enabled in xorg.conf.
It wakes up again when I use my xinerama xorg.conf (dri/glx disabled, vga out enabled)
Many Thanks to AlessandroRonchi for the xinerama infos !
Have fun |
|
Back to top |
|
|
aronchi Tux's lil' helper
Joined: 23 Nov 2004 Posts: 94
|
|
Back to top |
|
|
Hippi@Bacarni n00b
Joined: 08 Mar 2004 Posts: 53 Location: Hannover, DE
|
Posted: Tue Mar 01, 2005 6:38 pm Post subject: |
|
|
aronchi wrote: | kernel 2.6.11-rc5 is a great one, and solves all my 2.6.10 problems. It doesn't need any sleep patch.
Good work Benh! |
full ack. No Problems. Just changed from 2.6.10 to .11 and everything works fine
*happy* |
|
Back to top |
|
|
xavier10 Guru
Joined: 19 Jan 2004 Posts: 485 Location: Paris, France
|
Posted: Tue Mar 01, 2005 9:18 pm Post subject: |
|
|
I would be very interested in getting sleep to work on my powerbook 15".
What should I expect ? I mean: suspend to RAM ? suspend to disk ? HD shutdown (so as to protect it and be able to move the laptop safely) and suspend to RAM ?
I currently run a 2.6.9 kernel. What kernel should I use ? development-sources ? gentoo-dev-sources ? gentoo-sources ?
This would really be great |
|
Back to top |
|
|
theefer n00b
Joined: 12 Jul 2003 Posts: 32
|
Posted: Wed Mar 02, 2005 4:45 pm Post subject: |
|
|
primero.gentoo wrote: | my only problem is that when i wake the ibook up the USB mouse stops working , even the red light of mouse does not turn it on... |
Same problem here, with 2.6.10-r6 and 2.6.11_rc5. All USB looks broken after my AlBook 15" 1GHz wakes up. Did anyone solve this issue or heard of a solution?
I also have another problem: the light sensors seem to have stopped working for a few months (they still work under MacOS X, of course), probably after I upgraded something (pbbuttonsd I think, but maybe also the kernel). So now the light is no longer automatically detected and the screen brightness and keyboard backlight is not automatically adjusted. Any idea on this one as well? It *used* to work perfectly fine, but I haven't managed to get it working again
Xavier10, AFAIK powerbooks only support suspend-to-RAM, which is what is activated with the sleep patch discussed here (and included in 2.6.11). _________________ Theefer |
|
Back to top |
|
|
gnomeza Tux's lil' helper
Joined: 31 Dec 2003 Posts: 97
|
Posted: Wed Mar 02, 2005 5:23 pm Post subject: |
|
|
Just switched to 2.6.11-rc5 (development-sources) from 2.6.9-rc3 with sleep patch #7.
A few things I encountered:
Suspend and resume work well enough.
The external USB ports don't wake up (no power to my usb flash drive) although as far as I know the USB sleep support is currently being worked on.
pbbuttonsd related:
When on AC power, with pbbuttonsd 0.6.6 running and a 60second onAC_DimTime, the LCD "whites-out" with a rather strange pattern.
Also with "onAC_CoverAction = blankscreen" on 2.6.9, closing the lid would turn the backlight off. Now the backlight remains on.
With both 2.6.11-rc5 and my earlier 2.6.9 kernel keyboard backlight does not work. This worked when I was running 2.6.8 (I think).
So:
- suspend/resume works
- no USB after resume
- strange "white out" when dimming screen
- no backlight off on lid close
- no keyboard backlight |
|
Back to top |
|
|
Hippi@Bacarni n00b
Joined: 08 Mar 2004 Posts: 53 Location: Hannover, DE
|
Posted: Wed Mar 02, 2005 6:02 pm Post subject: |
|
|
gnomeza wrote: |
- suspend/resume works
- no USB after resume
- strange "white out" when dimming screen
- no backlight off on lid close
- no keyboard backlight |
- no USB after resume -> for me it works once in a while Sometimes when I resume the usbmouse doesn't work, but the red light is on. And the log says:
Code: |
ohci_hcd 0001:10:1a.0: Unlink after no-IRQ? Controller is probably using the wrong IRQ.
|
After another sleep the mouse works again. Sometimes I have to sleep the Pb twice to get it work.
- strange "white out" when dimming screen -> I never dim the screen, so I turned it on to see. I have the same "white out" when the screen dims.
- no backlight off on lid close -> my backlight goes off. The apple symbol on the lid also goes off. Tested in a dark room
- no keyboard backlight -> Keyboard backlight works here also. Also tested in a dark room.
The sensor works also for the auto adjustement off Keyboard/Display. |
|
Back to top |
|
|
theefer n00b
Joined: 12 Jul 2003 Posts: 32
|
Posted: Thu Mar 03, 2005 1:48 am Post subject: |
|
|
Ok it gets interesting. I seem to have the same results as gnomeza, including the "white out" screen pattern (although I think the backlight goes off here, but I'm back on my patched 2.6.9 so I cannot test to be sure). However, I'd like to point out that the USB works fine after my 2.6.9 wakes up, it only seems broken with 2.6.10 and 2.6.11.
Hippi@Bacarni, do you say your USB works after sleep on a 2.6.{10,11}? I'll have to try the double-sleep to see if it helps. And do you also say backlight still works with new kernels? What exact powerbook model do you have?
I'd really appreciate if other people could give their own experience about USB-after-sleep and light-sensor/keyboard-backlight with the various kernel versions! _________________ Theefer |
|
Back to top |
|
|
gnomeza Tux's lil' helper
Joined: 31 Dec 2003 Posts: 97
|
Posted: Thu Mar 03, 2005 11:14 am Post subject: |
|
|
After testing a few more things on 2.6.11-rc5:
USB seems to revive itself after a second sleep as Hippi@Bacarni reported.
The "white-out" patterns are what happens when LCD power is turned off. They're only visible because the backlight is still on.
From normal working state:
Code: | pbbcmd config LCDBRIGHTNESS 0 | turns the LCD off, but not the backlight (hence the white-out patterns).
Code: | pbbcmd config LCDBRIGHTNESS 1 | has no effect on the backlight, it just sets the LCD to brightness level 1, which is the correct behaviour.
However executing one after the other
Code: | pbbcmd config LCDBRIGHTNESS 0 ; pbbcmd config LCDBRIGHTNESS 1 |
turns the LCD off (white-out), then turns the backlight off and turns the LCD back on (to brightness 1)
Weird. |
|
Back to top |
|
|
gnomeza Tux's lil' helper
Joined: 31 Dec 2003 Posts: 97
|
Posted: Thu Mar 03, 2005 11:59 am Post subject: |
|
|
Heh.
Disabling UseFBBlank in pbbuttonsd.conf fixed the "white-out" patterns and behaviour of the backlight.
Code: | UseFBBlank = no
DimFullyDark = yes |
Looking at my previous post, I don't think I know what I'm talking about concerning power to LCD and Backlight being separate.
So now:
Code: | pbbcmd config LCDBRIGHTNESS 0 |
blanks the screen and turns off the backlight (no white-out patterns visible) as expected.
I guess there were probably a number of changes to the framebuffer between 2.6.9 and 2.6.11...
EDIT: After looking at the pbbuttonsd (v0.6.6) code this evening, I noticed that it only looks for the ambient light sensor on devices i2c-4 upwards.
After editing it to look at i2c-1, it found my hardware and my keyboard backlight problems were solved.
I should mention I'm using a 1.25GHz G4 15" alubook, I suppose. |
|
Back to top |
|
|
theefer n00b
Joined: 12 Jul 2003 Posts: 32
|
Posted: Fri Mar 04, 2005 5:20 pm Post subject: |
|
|
Okay thanks for the FB tip, it works indeed!
The double-sleep seems to work as well. A bit of a hassle, but at least there is a workaround.
However, your pbbuttons modif doesn't seem to fix the sensor problem here (AlBook 15" 1GHz). I had a look at my pbbuttonsd (0.6.7) and tried to edit the for loop in lmu_find_bus (module_pmac.c) from:
Code: | for(n=4; n < 260; n++) { |
to
Code: | for(n=1; n < 260; n++) { |
But it did not help. Actually in both cases, i2c-1 is not recognized as the valid sensor device and i2c-0 is chosen instead (when 256 is reached). Is there a simple way to check which device is bound to the sensor (I have /dev/i2c-{0,1,2}), and whether it actually works or not? Could the fact that I use udev be linked to the problem (since the device is read from /dev) ?
One thing I just noticed is that the (read-only) TAG_AMBIENTLIGHT variable is set to 0 when I query it with pbbcmd, which probably means that the ambient light detection is disabled. Could you confirmed that you variable is set to 1 when it works?
Hope we can find a general solution to this problem as it seems like I'm not the only one having it _________________ Theefer |
|
Back to top |
|
|
Hippi@Bacarni n00b
Joined: 08 Mar 2004 Posts: 53 Location: Hannover, DE
|
Posted: Sat Mar 05, 2005 9:56 am Post subject: |
|
|
theefer wrote: | What exact powerbook model do you have?
|
Well I have a Aluminum PB 15" 1.5Ghz.
Code: |
UseFBBlank = no
DimFullyDark = yes
|
Works also for me |
|
Back to top |
|
|
aronchi Tux's lil' helper
Joined: 23 Nov 2004 Posts: 94
|
|
Back to top |
|
|
aronchi Tux's lil' helper
Joined: 23 Nov 2004 Posts: 94
|
|
Back to top |
|
|
silian87 Advocate
Joined: 06 Oct 2003 Posts: 2318 Location: Treviso, Italy
|
|
Back to top |
|
|
gnomeza Tux's lil' helper
Joined: 31 Dec 2003 Posts: 97
|
Posted: Sun Mar 13, 2005 11:24 pm Post subject: |
|
|
theefer:
Quote: | However, your pbbuttons modif doesn't seem to fix the sensor problem here (AlBook 15" 1GHz). |
When detecting the sensor device, pbbuttonsd checks devices /dev/i2c-4../dev/i2c-255 then /dev/i2c-0../dev/i2c-3
BUT once it has found the correct device number, the index is returned in the range [4, 259] instead of [0, 255].
It's a very simple fix so I mailed a bug report and a patch to pbbuttons author Matthias Grimm and it has been included for the next pbbuttons release.
The one-line patch below (against pbbuttonsd-0.6.7a) fixes the ambient light sensor on my 15" 1.25GHz Powerbook5,4.
Code: | --- pbbuttonsd-0.6.7a.orig/src/module_pmac.c 2004-12-11
17:43:11.000000000 +0000
+++ pbbuttonsd-0.6.7a/src/module_pmac.c 2005-03-04 15:15:18.000000000 +0000
@@ -1012,7 +1012,7 @@
if (ioctl (fd, I2C_SLAVE, LMU_ADDR) >= 0 ) {
if (read (fd, buf, 4) == 4 ) {
close (fd);
- rc = n;
+ rc = (n & 255);
break;
}
} |
|
|
Back to top |
|
|
theefer n00b
Joined: 12 Jul 2003 Posts: 32
|
Posted: Sun Mar 13, 2005 11:48 pm Post subject: |
|
|
Your fix works perfectly, the sensors work again! Thanks a lot! _________________ Theefer |
|
Back to top |
|
|
xavier10 Guru
Joined: 19 Jan 2004 Posts: 485 Location: Paris, France
|
Posted: Tue Apr 12, 2005 4:41 pm Post subject: Compilation of the kernel ??? |
|
|
I am trying to upgrade to gentoo-sources-2.6.11 and get compilation failures.
Has anyone else experienced that ? If yes, what version of the kernel to choose ?
I am a little tired with trying all the version in the portage...
Code: |
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
mm/built-in.o(.rodata.cst4+0x0): relocation truncated to fit: R_PPC_ADDR32 empty_zero_page+40000000
|
I am sure there is an option to avoid this but do not see which one... |
|
Back to top |
|
|
|