Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DOH! more sleep problems with G4 iBook & 2.6.12-r6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Wed Jul 20, 2005 12:57 am    Post subject: DOH! more sleep problems with G4 iBook & 2.6.12-r6 Reply with quote

When I put my iBook to sleep with the "stable" 0.6.6 version of pbbuttonsd, everything seems ok. But when i wake the system, pbbutonsd starts hogging 99% CPU.

/etc/init.d/pbbuttonsd restart

gets it working normally again.

I tried the ~ppc version of pbbuttonsd (0.7.0) and the ibook sometimes won't go to sleep at all. No errors, just nothing happens when I close the case. Right now, I'm sticking with 0.6.6

Sleep was pretty much %100 working in 2.6.12-r1 so I did not change anything in the .config, I just copied it and made oldconfig.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jul 20, 2005 4:26 am    Post subject: Reply with quote

If you're referring to gentoo-sources-2.6.12-r1, there shouldn't have been any changes that would affect sleep since then. Do you have USB devices plugged in? Are there any messages from pbbuttonsd in console when it's pegging at 99%?

Sorry, this isn't much help.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 419
Location: London, U.K. & Lisbon, Portugal

PostPosted: Wed Jul 20, 2005 10:39 pm    Post subject: Re: DOH! more sleep problems with G4 iBook & 2.6.12-r6 Reply with quote

DrZoidberg wrote:
I tried the ~ppc version of pbbuttonsd (0.7.0) and the ibook sometimes won't go to sleep at all. No errors, just nothing happens when I close the case. Right now, I'm sticking with 0.6.6

Sleep was pretty much %100 working in 2.6.12-r1 so I did not change anything in the .config, I just copied it and made oldconfig.

With pbbuttonsd < 0.7.0 and gentoo-sources-2.6.12 < r6 I had no problems, but now I'm experiencing the same thing. I don't know if this is a pbbuttonsd or a kernel problem, but I'll take a look at it in the morning. I just wanted to tell you that you are not alone.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 21, 2005 12:33 am    Post subject: Reply with quote

Does the new version of pbbuttonsd help at all? Can you give any more details?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Thu Jul 21, 2005 1:15 am    Post subject: Reply with quote

i tried running pbbuttonsd from the command line in an X term (after stopping it with /etc/init.d/pbbuttonsd stop) and nothing unusual appears when I suspend and resume. pbbuttonsd goes crazy every time i wake the computer. Nevertheless, sleep seems reliable enough if a bit annoying.

INFO: saving of config enabled to /etc/pbbuttonsd.conf.
pbbuttonsd 0.6.6: iBook/G3 PB Pismo/G4 PB Titanium (PMU version: 12)
INFO: Script '/etc/power/pmcs-pbbuttonsd performance ac ' launched and exited normally

INFO: Script '/etc/power/pmcs-pbbuttonsd suspend ac ram' launched and exited normally
INFO: Script '/etc/power/pmcs-pbbuttonsd resume ac ram' launched and exited normally
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 21, 2005 1:45 am    Post subject: Reply with quote

Can you run an strace on it to see what it's doing while it's pegged?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Thu Jul 21, 2005 2:08 am    Post subject: Reply with quote

Here's what strace says

select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
select(10, [3 4 5 6 9], NULL, NULL, {0, 10000}) = 1 (in [5], left {0, 10000})
read(5, 0x7ffdb560, 16) = -1 ENODEV (No such device)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 21, 2005 2:51 am    Post subject: Reply with quote

Okay, that's a little more helpful. It says it's trying to read from a file descriptor that no longer exists. Now we have to figure out what it's supposed to be. :)

Can you log the whole strace and link to it from here? (Please don't paste it in)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Fri Jul 22, 2005 1:46 am    Post subject: Reply with quote

I emerged pbbuttonsd 0.7.1 and now it almost works right. No more hogging CPU. But I have to restart pbbuttonsd for sleep to work a second time.

When I try to sleep after having resumed at least once, here is what happens:
Code:

$ pbbcmd sleep
Server didn't send an answer and timed out.
 

I have the strace of pbbuttonsd during suspend, resume, unsuccessful attempt to suspend a second time.

I haven't got anyplace to put the file. Would you like me to send it to you in a pm? Or email?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jul 22, 2005 2:45 am    Post subject: Reply with quote

Please email it to josejx@g.o please. (where g.o is gentoo.org)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Mon Jul 25, 2005 1:17 pm    Post subject: Re: DOH! more sleep problems with G4 iBook & 2.6.12-r6 Reply with quote

DrZoidberg wrote:
When I put my iBook to sleep with the "stable" 0.6.6 version of pbbuttonsd, everything seems ok. But when i wake the system, pbbutonsd starts hogging 99% CPU.

/etc/init.d/pbbuttonsd restart

gets it working normally again.

I tried the ~ppc version of pbbuttonsd (0.7.0) and the ibook sometimes won't go to sleep at all. No errors, just nothing happens when I close the case. Right now, I'm sticking with 0.6.6

Sleep was pretty much %100 working in 2.6.12-r1 so I did not change anything in the .config, I just copied it and made oldconfig.


Exactly the same for me with a post feb powerbook 1.67 15", except it doesn't seem to hog memory, just doesn't respond to a sleep request.

Using pbbuttonsd (0.7.1), 2.6.12-r6

Powerbutton sleep doesn't work either.

Otherwise its good, auto backlit keyboard is especially impressive!
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Sun Aug 14, 2005 1:38 am    Post subject: Reply with quote

Has this been solved? Or are people with affected systems just living with having to restart pbbuttonsd?
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sun Aug 14, 2005 10:50 am    Post subject: Reply with quote

DrZoidberg wrote:
Has this been solved? Or are people with affected systems just living with having to restart pbbuttonsd?


I'm doing the latter ... restarting when things start acting wierd :roll:
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
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
Page 1 of 1

 
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