Problem on ibook2 600 waking up

Architecture specific questions.

Problem on ibook2 600 waking up

Postby Uberhip_ » 07 Nov 2004, 10:50

Whenever I put my ibook to sleep it does not wake up, I had the same problem with ubuntu and found a script to solve the problem, does anyone have an idea of how to resolve this with YDL 4.0?
Uberhip_
 

Postby kamika » 07 Nov 2004, 11:54

what does the ubuntu script do?
User avatar
kamika
Site Admin
Site Admin
 
Posts: 234
Joined: 22 Jun 2004, 09:13
Location: Saarbruecken, Germany

Postby StarKnight83 » 07 Nov 2004, 21:14

Post the script if you can-Id like to take a look at it. If it just uses normaly system calls you might just be able to alter the path names in it and use it w/ YDL. Id like to take a look at it first though
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby Uberhip » 07 Nov 2004, 22:46

StarKnight83 wrote:Post the script if you can-Id like to take a look at it. If it just uses normaly system calls you might just be able to alter the path names in it and use it w/ YDL. Id like to take a look at it first though


this is what I used.

(1) Created the file /etc/apm/scripts.d/dbus-1:

#!/bin/sh
# hald prevents proper resume after sleep-wake cycle
# stopping dbus at suspend and restarting at resume
# fixes this

INIT="/etc/init.d/dbus-1"
[ -x "${INIT}" ] || exit 0

case "${1},${2}" in
(suspend,*)

"${INIT}" stop
echo "stopped dbus-1"
;;

(resume,suspend)

"${INIT}" start
echo "started dbus-1"
;;

esac

exit 0


(2) Made the new file executable:
sudo chmod 755 /etc/apm/scripts.d/dbus-1


(3) Created a symlink from /etc/apm/suspend.d/98dbus-1 to /etc/apm/scripts.d/dbus-1:
cd /etc/apm/suspend.d/
sudo ln -s /etc/apm/scripts.d/dbus-1 98dbus-1


(4) Created a symlink from /etc/apm/resume.d/01dbus-1 to /etc/apm/scripts.d/dbus-1:
cd /etc/apm/resume.d/
sudo ln -s /etc/apm/scripts.d/dbus-1 01dbus-1
Uberhip
ydl newbie
ydl newbie
 
Posts: 3
Joined: 07 Nov 2004, 10:47

Postby Scodiddly » 13 Nov 2004, 15:34

I'm having the same problem with waking up my iBook (G3, 500, dual USB) after a lid-close.

Worked fine with YDL 3, but 4.0 gives me a console text screen with some Airport and other messages. I end up having to hard-boot. :(
Scodiddly
 

Postby Scodiddly » 13 Nov 2004, 19:01

Here's what I get when my iBook tries to wake up:

(text-only screen, not a window)
Code: Select all
eth0: Airport entering sleep mode
eth1: suspending, WakeOnLan disabled
aty128fb: suspending...
cpufreq: resume failed to assert current frequency is what timing core thinks it is.
aty128fb: resumed!
enable_irq(27) unbalanced
eth1: resuming
PHY ID: 4061e4, addr: 0
usb 2-1 USB disconnect, address 2
eth0: Airport waking up
eth1: Linux is up at 100 Mbps, full-duplex
eth1: Pause is disabled


And I've just gone in and looked at /var/log/messages.
Code: Select all
Nov 13 12:48:02 ibbyl pbbuttonsd: INFO: Script '/etc/power/pmcs-pbbuttonsd suspend ac' launched and exited normally
Nov 13 12:48:02 ibbyl pmud[1688]: running /etc/power/pwrctl lid-closed ac
Nov 13 12:48:02 ibbyl pmud[1688]: /etc/power/pwrctl exited with code 99
Nov 13 12:48:02 ibbyl pmud[1688]: lid closed: request sleep
Nov 13 12:48:02 ibbyl pmud[1688]: running /etc/power/pwrctl sleep ac


Something else bothers me, the clock gets reset when I have to hardware boot out of this, and a couple times it's happened on reinstalls. Clock goes back to Jan 1, 1904, but with a random time of day.
Scodiddly
ydl newbie
ydl newbie
 
Posts: 17
Joined: 13 Nov 2004, 15:36

Postby Scodiddly » 13 Nov 2004, 19:04

Further data: I logged out, and shut the lid on the (graphical) login screen. It came back fine when I reopened the lid. Logged back in and tried it, and got the lockup again.
Scodiddly
ydl newbie
ydl newbie
 
Posts: 17
Joined: 13 Nov 2004, 15:36

Postby StarKnight83 » 14 Nov 2004, 01:05

Sounds almost like a problem w/ the kernel addressing the RTC; maybe user permissions-not sure, seems weird to me though I have problems w/ my ibook g4 waking from sleep as well. Ill go check my logs and see what they say.
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby Scodiddly » 14 Nov 2004, 15:31

So the iBook was able to wake up when root was logged in, but not my usual user account. I suspect that maybe some of my usual customization (Dvorak keyboard layout, habitual use of Konsole, etc) may have caused the problem. I closed all apps and tried, but still hung instead of waking up. Perhaps "Autorun" is starting something?

Reinstalling again to have a clean slate.


(time passes)

OK, with a fresh install I still get the above when trying to wake up from a lid-close. With root logged in, it works fine. With my user account "scott" it freezes up.
Scodiddly
ydl newbie
ydl newbie
 
Posts: 17
Joined: 13 Nov 2004, 15:36

system wake issue ydl 4.0

Postby geospine » 02 Dec 2004, 02:28

I am having a similar problem with my PowerBook g3, except I didn't install a GUI, and every time I put the system to sleep I have to hard boot. Here is some information I have gathered:

Code: Select all
/var/log/messages:
pbbuttonsd 0.6.1: 1999 G3 PowerBook Lombard (PMU version: 11)
pbbuttonsd startup succeeded

pmud[1406]: pmud [threshold = 420, margin = 15] started
pmud[1406]: PMU version: 11 1999 G3 Lombard
pmud[1406]: daemon stopped (parent exiting [note PID])
pmud: PMU version: 11 1999 G3 Lombard
pmud: pmud startup succeeded
pmud[1407]: running /etc/power/pwrctl maximum ac
pmud[1407]: /etc/power/pwrctl exited with code 99



I tried stopping the pbbuttonsd daemon then closed the lid, it didn't seem to change anything.

Snooze -f has the same result as closing the lid.


From: Yellow Dog Linux ™ Forum Index " General " system wake issue ydl 4.0

System: I have a Mac g3 lombard running YDL 4. I did a custom install without X.
Problem: System won't wake after going to sleep either from pressing the power button >or closing the lid. This function worked fine under YDL 3.
When the system goes into sleep mode the screen goes off and the power light blinks. >When I try to wake the system by pressing the power button the power light blinks >twice, hard drive spins up and it sounds like it is waking up but the screen doesn't come >back and it doesn't seem to accept keyboard input, although the capslock and numlock >keys light up.
The only way I have found to recover the system is to hard boot the system, by >removing the battery and power adaptor.

Any light you can shed on my problem would be much appreciated.
Geospine.



has anybody made headway on that script yet?
Last edited by geospine on 08 Dec 2004, 19:12, edited 1 time in total.
User avatar
geospine
ydl newbie
ydl newbie
 
Posts: 3
Joined: 24 Nov 2004, 23:30

Postby StarKnight83 » 02 Dec 2004, 14:24

I was looking at it and i know how to modify it to work on ydl (some of the location stuff is different) i have the next 2 days off so ill see about modifing it and posting the results
Til our paths cross again
User avatar
StarKnight83
Moderator
Moderator
 
Posts: 959
Joined: 12 Jul 2004, 16:26
Location: Ft. Wayne, IN; USA

Postby jaki » 03 Dec 2004, 20:45

Scodiddly wrote:I'm having the same problem with waking up my iBook (G3, 500, dual USB) after a lid-close.
:(


Same here, with the same kind of computer. Likewise, mine wakes up if I log out before putting it to sleep (I haven't tried it logged in as root). When I first installed Gnome Desktop (used KDE first), I could sleep and wake while logged in to that. But after a couple days the problem came back.
jaki
ydl newbie
ydl newbie
 
Posts: 7
Joined: 29 Nov 2004, 15:32

YDL4 + iBook sleep-of-death

Postby prezninja » 09 Dec 2004, 23:34

I have encountered this problem as well, and have been able to resolve it by killing magicdev.

Code: Select all
[prezninja@iBook prezninja]$ ps aux | grep magicdev
preznin   3568  0.9  2.8 24104 7228 ?        S    17:13   0:00 magicdev --sm-con fig-prefix /magicdev-ymTG91/ --sm-client-id 117f00000100011011162180000002540000 2 --screen 0
root      3703  0.0  0.2  3932  692 pts/0    S    17:14   0:00 grep magicdev
[root@iBook prezninja]# kill -9 3568


I don't know anything more about magicdev than I learned at http://www.ccs.neu.edu/home/bchafy/magicdev.html. It's a temporary solution for now, but at least it works.

I'm trying to learn how to incorporate this into the suspend.d and resume.d scripts, since I find magicdev useful.

Can someone else give that a shot and see if it solves the problem?
prezninja
 

Re: YDL4 + iBook sleep-of-death

Postby jaki » 10 Dec 2004, 04:11

prezninja wrote:I have encountered this problem as well, and have been able to resolve it by killing magicdev.

Can someone else give that a shot and see if it solves the problem?


I tried it -- it works for me too.
jaki
ydl newbie
ydl newbie
 
Posts: 7
Joined: 29 Nov 2004, 15:32

Postby afro » 13 Dec 2004, 09:10

Hey StarKnight83 & others, any update yet to temporary solve this sleep problem?
afro
ydl newbie
ydl newbie
 
Posts: 12
Joined: 11 Dec 2004, 05:13

Next

Return to iBooks and Powerbooks

Who is online

Users browsing this forum: No registered users and 2 guests