Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspend broken since 2.6.18
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sun Dec 10, 2006 1:50 am    Post subject: Suspend broken since 2.6.18 Reply with quote

On iBook G3 the wake up after suspend mode seems broken since 2.6.18. Display turns light on but system is frozen. I also tried 2.6.19.

I tried these kernels:
  • linux-2.6.18-gentoo-r3
  • linux-2.6.19-gentoo-r1

On linux-2.6.17-gentoo-r8 suspend is still working. For making new kernels I used make oldconfig.

I'll try wth a minimal kernel..
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme


Last edited by Massimo B. on Mon May 14, 2007 7:24 pm; edited 2 times in total
Back to top
View user's profile Send private message
richfish
Apprentice
Apprentice


Joined: 03 Mar 2006
Posts: 202
Location: Phoenix, AZ

PostPosted: Sun Dec 10, 2006 3:41 am    Post subject: Reply with quote

I'd suggest trying suspend2-sources. They generally work much better for suspend and resume operations...even suspend-to-ram.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sun Dec 10, 2006 11:32 am    Post subject: Reply with quote

Also for ppc? That would be new to me.
They are all masked for ppc.
And anyway 2.6.17 is completely capable of suspend.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
richfish
Apprentice
Apprentice


Joined: 03 Mar 2006
Posts: 202
Location: Phoenix, AZ

PostPosted: Sun Dec 10, 2006 6:51 pm    Post subject: Reply with quote

Sigh. My Apologies. I have to learn to pay attention to which forum I am posting in. :oops:
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Dec 11, 2006 9:03 am    Post subject: Reply with quote

i´ve been using suspend2 on my powerbook (G4) since i have it running linux and it works almost fine ( expect minor annoyances from time to time ).
Didn´t tried >2.6.17 yet on it but even the features matrix on its web says ppc is supported ;)

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: Mon Dec 11, 2006 8:29 pm    Post subject: Reply with quote

Have you managed to narrow down the kernel version where this started yet paoleela?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Mon Dec 11, 2006 11:37 pm    Post subject: Reply with quote

As for the stable ppc versions I can say it broke from 2.6.17-r8 to 2.6.18-r3.
I didn't test the ~ between.

Sorry I didn't manage to break the config down to minimal driver support, restarting that machine takes time and I need it for working right now. I will let you know if the problems exists with ppc32 default conf.

JoseJX: Would you recommend these suspend2 sources they are talking about? These are all masked for us. And so far gentoo-sources did a good job for suspending.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Dec 12, 2006 1:56 am    Post subject: Reply with quote

No, I do not recommend them for ppc, they're not really needed unless you have devices which have been patched to sleep more reliably but those patches haven't made it to mainline. (Not likely). I guess, beyond the kernel itself, have you checked supporting programs like pbbuttonsd? Perhaps it's causing problems?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Tue Dec 12, 2006 7:15 am    Post subject: Reply with quote

Do I have to check pbbuttonsd eventhough it works with 2.6.17? ?
I would rather point to things like LED, that changed in 2.6.17.
Where can I see a Changelog of these kernels so I would have an idea what has changed?
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Tue Dec 12, 2006 8:20 am    Post subject: Reply with quote

JoseJX : do you mean that stock kernel suspend does work more or less reliably now ?
It didn´t last time i tried (around 2.6.15 ) and suspend2 did at least resume ...

Will upgrade to 2.6.19 and check.

thanks
_________________
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: Tue Dec 12, 2006 11:54 am    Post subject: Reply with quote

paoleela:
Just try the latest version of pbbuttonsd if you're not already. :p The changelog is available on kernel.org with each kernel release.

gringo:
It depends on your machine.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Wed Dec 13, 2006 8:09 pm    Post subject: Reply with quote

I tried with make pmac32_defconfig kernel .conf on sys-kernel/gentoo-sources-2.6.18-r3.
I did upgrade to app-laptop/pbbuttonsd-0.7.9.

But this machine still freezes instead of waking up from suspend. Can anyone else affirm that suspend is working on this iBook with that kernel?
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Dec 13, 2006 9:57 pm    Post subject: Reply with quote

Can you also try a "git bisect" and see if you can find the commit that broke it?

http://www.kernel.org/pub/software/scm/git/docs/howto/isolate-bugs-with-bisect.txt

It's very time consuming, but it'll help us figure out which commit broke it for you and will help a whole lot in figuring out exactly what the problem is.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Thu Dec 14, 2006 8:47 pm    Post subject: Reply with quote

Sounds easy, like the old half way approaching..
But I can't figure out how to start:
Code:
marialin linux # git bisect start
fatal: Not a git repository: '.git'

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Dec 15, 2006 3:09 am    Post subject: Reply with quote

You need to clone a git repository first.
Similar to this, but against the regular kernel tree instead of the sbcl git tree: http://boinkor.net/archives/2006/11/using_git_bisect_to_locate_bug_1.html

Since you said it was working with 2.6.17, perhaps start with the 2.6.18 stable tree:
http://kernel.org/git/?p=linux/kernel/git/stable/linux-2.6.18.y.git;a=summary
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Seneka
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2002
Posts: 83

PostPosted: Fri Dec 15, 2006 3:19 pm    Post subject: Reply with quote

That's weird, on my g3 ibook 500 suspend stopped working after 2.6.15 and kinda started working again with 2.6.18 - not quite though. Plus the firewire drivers (especially the eth1394) don't wake up correctly...
Anyone else noticed this reverse behaviour on their machines?
ps. and since 2.6.12 or so there is no sound on the speakers unless i plug in and plug out headphones... weirdess all around.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Fri Dec 15, 2006 6:09 pm    Post subject: Reply with quote

As for sound, there is a switch somewhere for auto mute, I think alsamixer has this? But I remember having that.
As for suspend, firewire is the first I will try to disable, there have been some changes on according changelog. I will try.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
sherbang
n00b
n00b


Joined: 03 Jan 2007
Posts: 1
Location: Massachusetts, USA

PostPosted: Wed Jan 03, 2007 8:48 pm    Post subject: Reply with quote

FYI:
Suspend2 is working for me. I'm using 2.6.18-gentoo-r3 and the suspend2-2.2.9-for-2.6.18.3 patch on my 12" Powerbook 1.5.

Sound doesn't work on resume so I have the hibernate script restart alsa.

I sometimes have had problems with my X display before suspend even starts (with SwitchToTextMode set to yes), so I added "OnSuspend 02 chvt 1" and "OnResume 02 chvt 7" to /etc/hibernate/common.conf. This seems to have fixed it so far.

I couldn't get the suspend in the stock 2.6.18 kernel to work properly.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Fri Feb 02, 2007 8:12 pm    Post subject: 2.6.19 has working suspend Reply with quote

To close this thread:
gentoo-sources-2.6.19-r4 has functional suspend again for me. I didn't succeed to find the mistake on 2.6.18, while configs are quite the same using oldconfig.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
john_doe
n00b
n00b


Joined: 17 Nov 2004
Posts: 27

PostPosted: Tue Feb 13, 2007 5:20 pm    Post subject: Reply with quote

To reopen the thread :-)

I have not got this working since linux-2.6.17-gentoo-r3. I now use linux-2.6.19-gentoo-r5 (I haven't tried r4). In device drivers -> macintosh device drivers I have:

[*] Apple Desktop Bus (ADB) support
[ ] Support for CUDA based Macs and PowerMacs
[*] Support for PMU based PowerMacs
[ ] Support for the Power/iBook front LED
<*> APM emulation
[ ] Support PowerBook hotswap media bay
[*] Backlight control for LCD screens
[*] Provide legacy ioctl's on /dev/pmu for the backlight
[ ] Include MacIO (CHRP) ADB driver
[*] Support for ADB input devices (keyboard, mice, ...)
[*] Support for mouse button 2+3 emulation
< > Support for thermal management on Windtunnel G4s
<M> Support for thermal mgmnt on laptops with ADT 746x chipset
<M> New PowerMac thermal control infrastructure

Can I see yours, please?
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Tue Feb 13, 2007 8:01 pm    Post subject: Reply with quote

Code:
[*] Apple Desktop Bus (ADB) support
[*] Support for CUDA based Macs and PowerMacs
[*] Support for PMU  based PowerMacs
[*]   Support for the Power/iBook front LED
[*]     Use front LED as IDE LED by default
<*> APM emulation
[ ] Support PowerBook hotswap media bay
[*] Backlight control for LCD screens
[*]   Provide legacy ioctl's on /dev/pmu for the backlight
[*] Include MacIO (CHRP) ADB driver
[*] Support for ADB input devices (keyboard, mice, ...)
[*]   Support for mouse button 2+3 emulation
< > Support for thermal management on Windtunnel G4s
<M> Support for thermal monitoring on ibook2
< > Support for thermal mgmnt on laptops with ADT 746x chipset
< > New PowerMac thermal control infrastructure
< > Support for ANS LCD display
Note: The iBook2 thermal monitoring is made by my own patch provided by Cedric. It's a 2.6.19-gentoo-r4 configuration.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 13, 2007 8:48 pm    Post subject: Reply with quote

john_doe:

It would be better to have you tell us what exactly isn't working for you. Suspend to RAM is enabled by default for all machines that support it, there's not a specific setting for it.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
john_doe
n00b
n00b


Joined: 17 Nov 2004
Posts: 27

PostPosted: Sat Feb 17, 2007 2:42 pm    Post subject: Reply with quote

My ibook 1.33 GHz will not suspend to ram nor can I get backlight control working with kernels newer than 2.6.17-gentoo-r8. I have read about the kernel issue in man pbbuttonsd but I can not see my configuration conflicts with this.

# pbbuttonsd --version
pbbuttonsd, version 0.7.9, (c) 2002-2005 Matthias Grimm

# gtkpbbuttons --version
gtkpbbuttons, version 0.6.9, (c) 2002-2005 Matthias Grimm

I have moved to Paris recently, and I don't have a decent internet access. I may be slow on replying, but just ask for more info if you need, and I will answer when possible.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Feb 17, 2007 4:53 pm    Post subject: Reply with quote

Okay, but what does it actually do? What happens when you try to suspend? Are there any messages in your kernel logs?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
john_doe
n00b
n00b


Joined: 17 Nov 2004
Posts: 27

PostPosted: Tue Apr 24, 2007 3:15 pm    Post subject: Reply with quote

I have had a lot of work to do so I sticked with the 2.6.17 kernel to avoid this issue. Now I upgraded to 2.6.20-gentoo-r5 and the problem disappeared. I guess it was a kernel bug...

Thanks for trying....
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  Next
Page 1 of 2

 
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