Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
segfault on sleep (ibook G3)
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
Deanalator
n00b
n00b


Joined: 27 Feb 2004
Posts: 8

PostPosted: Mon May 10, 2004 10:03 pm    Post subject: segfault on sleep (ibook G3) Reply with quote

Since the 2.6.4 kernel came out, from some reason every time I try to suspend my ibook (G3 600mhz 750FX), the kernel segfaults. I can just disable pbbuttonsd, but most of the time I am just booted into an old 2.6.3 kernel. Right now I have pbbuttonsd 0.5.11 installed, and I would like to get it working with the 2.6.6

I have compiled in power management for powerbooks, and apm emulation as a module. Also I have backlighting compiled in. When I close the lid and open it back up, the graphical screen is blanked and im back and the console and it tells me there was a segfault. If anyone has any ideas i would like to hear them.
_________________
[(CRAYON)]>
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Tue May 11, 2004 9:48 pm    Post subject: Reply with quote

There are a couple of other threads about this ... and they included a patch, not sure if it's relevant or not. Try searching this forum.

Also you can try updating to a newer kernel (2.6.6 is out and current as of this post).
Back to top
View user's profile Send private message
Deanalator
n00b
n00b


Joined: 27 Feb 2004
Posts: 8

PostPosted: Wed May 12, 2004 6:26 pm    Post subject: Reply with quote

Well, ive tried it with 3 kernel versions, 2.6.4-6, and the last three pbbuttonsd and multiple versions of gcc and binutils etc. I just tried deleteing my pbbuttonsd.conf and that didnt help at all, so I re-emerged it (under the 2.6.6 kernel) and still no luck. Since I have the error message up now I can try to copy it down as accurately as i can.

Code:
Oops: kernel access of bad area, sig:11 [#1]
(i dont want to copy the register dump)  Not tainted
TASK = e6a38a40 [10816] 'pbbuttonsd' THREAD: e569c000 Last syscall: 54
NIP [c00193f0] add_wait_queue_exclusive+0x28/0x38
LR [c01d3d5c] __down+0x54/0xe4

Call trace:
pmz_suspend+0x200/0x21c
macio_device_suspend+0x4c/0x54
device_suspend+64/0xd8
0xc02ce044
0xc02ce538             (there were addresses of the functions
0xc02cef40                 before each function call, but it was
sys_ioctl+0xdc/0x2fc          too much typing, so I ignored them)
ret_from_syscall+0x0/0x44


I hope that stuff helps. I cant imagine that Im the only one using ~ppc and trying to get my ibook to sleep with pbbuttonsd. Normally with bugs like this the next release fixes it. If anyone has any ideas about what I can do I would like to hear them because im running out :-)

Thats all that was on the screen except for the register dump and address of the function calls, so if you want those I would be glad to tell them.
_________________
[(CRAYON)]>
Back to top
View user's profile Send private message
BlueShift
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 114
Location: Belgium

PostPosted: Sat Jun 05, 2004 9:04 am    Post subject: Reply with quote

I'm havning more or less the same problem here. I have exactly the same hardware as you do. Everything worked fine with kernel 2.6.3-benh2 and pbbuttonsd-0.5.8.
Since I updated to 2.6.6 I can't put the Ibook to sleep but don't get any error messages, just a black screen with a cursor blinking in the upper left corner. A few weeks back I tried upgrading to 2.6.5 but this gave me the same problem so I just kept using 2.6.3 and hoped it would be fixed in the next kernel release.
Now I really want to upgrade to 2.6.6 because I'd like to try to get
openswan (ipsec) running again. They suggest using at least kernel 2.6.4
I'll see if I can find the posts genfoo was refering to.

Jan.
Back to top
View user's profile Send private message
Deanalator
n00b
n00b


Joined: 27 Feb 2004
Posts: 8

PostPosted: Mon Jun 14, 2004 2:15 am    Post subject: yay Reply with quote

i managed to figure out a pretty dirty hack to get through this. to get these later kernel versions to sleep properly (since 2.6.4) you need to comment out line 1837 of drivers/serial/pmac_zilog.c where it says ".suspend = pmz_suspend,". Then you can recompile your kernel and use all of those goodies that come with recent kernel versions.
_________________
[(CRAYON)]>
Back to top
View user's profile Send private message
Hydraulix
Guru
Guru


Joined: 12 Dec 2003
Posts: 447
Location: Baltimore, Maryland

PostPosted: Mon Jun 14, 2004 7:36 am    Post subject: Reply with quote

BlueShift wrote:
I'm havning more or less the same problem here. I have exactly the same hardware as you do. Everything worked fine with kernel 2.6.3-benh2 and pbbuttonsd-0.5.8.
Since I updated to 2.6.6 I can't put the Ibook to sleep but don't get any error messages, just a black screen with a cursor blinking in the upper left corner. A few weeks back I tried upgrading to 2.6.5 but this gave me the same problem so I just kept using 2.6.3 and hoped it would be fixed in the next kernel release.
Now I really want to upgrade to 2.6.6 because I'd like to try to get
openswan (ipsec) running again. They suggest using at least kernel 2.6.4
I'll see if I can find the posts genfoo was refering to.

Jan.



I'm having the exact same problem. :(
_________________
It is the fate of operating systems to become free.
- Neal Stephenson

If only You and Dead people can read hex, how many people can read hex?
Back to top
View user's profile Send private message
ralph
Advocate
Advocate


Joined: 02 Mar 2003
Posts: 2001
Location: Hamburg

PostPosted: Mon Jun 14, 2004 11:46 am    Post subject: Re: yay Reply with quote

Deanalator wrote:
i managed to figure out a pretty dirty hack to get through this. to get these later kernel versions to sleep properly (since 2.6.4) you need to comment out line 1837 of drivers/serial/pmac_zilog.c where it says ".suspend = pmz_suspend,". Then you can recompile your kernel and use all of those goodies that come with recent kernel versions.


I don't really know what I did when I followed your advice, but it seems to have worked.

At least my ibook goes to sleep now and comes back up. :D
_________________
The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows.
- Frank Zappa
Back to top
View user's profile Send private message
BlueShift
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 114
Location: Belgium

PostPosted: Thu Jun 17, 2004 12:30 pm    Post subject: Re: yay Reply with quote

Deanalator wrote:
i managed to figure out a pretty dirty hack to get through this. to get these later kernel versions to sleep properly (since 2.6.4) you need to comment out line 1837 of drivers/serial/pmac_zilog.c where it says ".suspend = pmz_suspend,". Then you can recompile your kernel and use all of those goodies that come with recent kernel versions.

Thanks!
I turned off CONFIG_SERIAL_PMACZILOG completely (I don't have any serial ports I know about). It's in Devices -> Character dev -> Serial drivers -> PowerMac z85c30 ESCC support.
Now I can put the Ibook to sleep, and it wakes up fine, but the fan keeps turning.... :( (well, not in sleep mode)

Jan.
Back to top
View user's profile Send private message
BlueShift
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 114
Location: Belgium

PostPosted: Thu Jun 17, 2004 1:28 pm    Post subject: Re: yay Reply with quote

BlueShift wrote:
... but the fan keeps turning.... :( (well, not in sleep mode)


Oops sorry, my fault. The fan is normal, it must have still been hot from compiling the kernel.
woohoo, shiny new 2.6.7 kernel!

Jan.
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