| View previous topic :: View next topic |
| Author |
Message |
mounty1 Guru

Joined: 06 Jul 2006 Posts: 405 Location: Australia
|
Posted: Sun May 30, 2010 3:57 am Post subject: G5 fails to power off [SOLVED] |
|
|
If I shut down from the KDE menu, it goes all the way to the end, finishing with remounting root read-only, but then it just stops there and after a minute or so the fans start to roar. If I choose restart, it does restart, but shutdown does not power off. How can I make it do so ? .config: http://www.pastebin.org/291513 and emerge --info: http://www.pastebin.org/291516. _________________ Michael Mounteney
Last edited by mounty1 on Wed Jun 09, 2010 7:05 am; edited 1 time in total |
|
| Back to top |
|
 |
blob999 n00b


Joined: 07 Jun 2009 Posts: 55 Location: Athinai, Hellas
|
|
| Back to top |
|
 |
blob999 n00b


Joined: 07 Jun 2009 Posts: 55 Location: Athinai, Hellas
|
Posted: Fri Jun 04, 2010 2:56 pm Post subject: |
|
|
mmh.. the same it happens with 2.6.33.5 _________________ Μολών λαβέ |
|
| Back to top |
|
 |
bmaass n00b

Joined: 15 Mar 2008 Posts: 25
|
Posted: Sun Jun 06, 2010 7:03 pm Post subject: |
|
|
| Try turning off CONFIG_HIBERNATION in kernel. |
|
| Back to top |
|
 |
mounty1 Guru

Joined: 06 Jul 2006 Posts: 405 Location: Australia
|
Posted: Sun Jun 06, 2010 10:11 pm Post subject: done |
|
|
CONFIG_HIBERATION=N in my kernel. Thanks for the suggestion though. _________________ Michael Mounteney |
|
| Back to top |
|
 |
blob999 n00b


Joined: 07 Jun 2009 Posts: 55 Location: Athinai, Hellas
|
Posted: Tue Jun 08, 2010 6:37 pm Post subject: |
|
|
| bmaass wrote: | | Try turning off CONFIG_HIBERNATION in kernel. |
| Code: |
root@powermacG5:~# cat /boot/config-2.6.33.5 |grep HIBERNATION
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
# CONFIG_HIBERNATION is not set |
it's disabled but it doesn't poweroff properly _________________ Μολών λαβέ |
|
| Back to top |
|
 |
mounty1 Guru

Joined: 06 Jul 2006 Posts: 405 Location: Australia
|
Posted: Tue Jun 08, 2010 10:54 pm Post subject: slippery eel |
|
|
| Code: | | CONFIG_ARCH_HIBERNATION_POSSIBLE=y | Try turning it off ! Nothing in make menuconfig. If you do it manually, then make turns it back on before building! Really ! It rewrites .config before proceeding.
Later: hacked the Kconfig file to force it off. No difference; it still won't power off.
Solution: downgrade to 2.6.32-r7. It works. _________________ Michael Mounteney |
|
| Back to top |
|
 |
blob999 n00b


Joined: 07 Jun 2009 Posts: 55 Location: Athinai, Hellas
|
Posted: Sat Jun 12, 2010 2:40 pm Post subject: |
|
|
well, lurking from #ppc64 i got the right hint! You need:
| Code: | | # CONFIG_SPARSE_IRQ is not set |
now my CRUX PPC shutdown properly thus i suppose your GentooPPC 'll do the same. _________________ Μολών λαβέ |
|
| Back to top |
|
 |
mounty1 Guru

Joined: 06 Jul 2006 Posts: 405 Location: Australia
|
Posted: Sun Jun 13, 2010 12:21 pm Post subject: that's it ! |
|
|
Thank you ! That works. If only I could get DRM working on 2.6.34, I could upgrade. _________________ Michael Mounteney |
|
| Back to top |
|
 |
bmaass n00b

Joined: 15 Mar 2008 Posts: 25
|
Posted: Sun Jun 13, 2010 1:31 pm Post subject: |
|
|
| blob999 wrote: | well, lurking from #ppc64 i got the right hint! You need:
| Code: | | # CONFIG_SPARSE_IRQ is not set |
now my CRUX PPC shutdown properly thus i suppose your GentooPPC 'll do the same. | My G5 has sparse IRQ numbering, and powers off just fine. Do you know the reason it shouldn't work? Because it kinda does here... |
|
| Back to top |
|
 |
blob999 n00b


Joined: 07 Jun 2009 Posts: 55 Location: Athinai, Hellas
|
|
| Back to top |
|
 |
mounty1 Guru

Joined: 06 Jul 2006 Posts: 405 Location: Australia
|
Posted: Sun Jun 13, 2010 11:04 pm Post subject: patch the patch |
|
|
I rewrote the patch as | Code: | ...
if (!desc || desc->status & IRQ_PER_CPU)
... | but that's a minor quibble. _________________ Michael Mounteney |
|
| Back to top |
|
 |
groomsi n00b

Joined: 28 Jul 2010 Posts: 20 Location: New York
|
Posted: Sat Jul 31, 2010 6:38 pm Post subject: |
|
|
| I have the exact same problem, so I expect that the solution here will work for me too. Unfortunately I didn't completely follow the discussion above. Should I downgrade the kernel? Rebuild my kernel with different options? Manually adjust the .config file? I appreciate your patience. |
|
| Back to top |
|
 |
mounty1 Guru

Joined: 06 Jul 2006 Posts: 405 Location: Australia
|
Posted: Sat Jul 31, 2010 11:52 pm Post subject: No need to downgrade |
|
|
No need to downgrade. All you have to do, in /usr/src/linux/arch/powerpc/kernel/irq.c at around line 297, is replace | Code: | | if (desc && desc->status & IRQ_PER_CPU) | with | Code: | | if (!desc || desc->status & IRQ_PER_CPU) | then recompile and install your kernel as usual. Presumably, hopefully, eventually, this fix will be incorporated into the official source, but until then you have to remember to re-apply the patch whenever you re-emerge the kernel source. _________________ Michael Mounteney |
|
| Back to top |
|
 |
groomsi n00b

Joined: 28 Jul 2010 Posts: 20 Location: New York
|
Posted: Sun Aug 01, 2010 2:53 am Post subject: no need to downgrade |
|
|
| It worked, thanks! |
|
| Back to top |
|
 |
|