View Full Version : [ubuntu] Problems in Karmic waking up from suspend/hibernate
rpras
November 10th, 2009, 10:50 PM
So my iBook G3 successfully suspends itself when I close the lid. However, upon opening the lid, the display gets completely messed up. I can see the login screen and the password prompt -- even be able to type my password in but it never fixes its display.
Have you been able to successfully wake up from a suspend/hibernate? Did you have to do anything special to get it to work?
linuxopjemac
November 11th, 2009, 04:57 AM
I recommend compiling pbbuttonsd.
http://pbbuttons.berlios.de/
rpras
November 11th, 2009, 10:44 PM
I recommend compiling pbbuttonsd.
http://pbbuttons.berlios.de/
Thanks for the pointer! I just checked -- pbbuttonsd 0.7.9-2ubuntu4 installed on my iBook. I'll give the latest version -- 0.8.1a -- a try.
linuxopjemac
November 12th, 2009, 05:09 AM
Is it in the Ubuntu repository ? I don't think so...
rpras
November 14th, 2009, 06:05 AM
Is it in the Ubuntu repository ? I don't think so...
0.7.9-2ubuntu4 is but not 0.8.1a. You have to compile it yourself. It compiled fine for me -- still testing.
Chauncellor
January 29th, 2010, 06:17 PM
Did you ever get it working? I'm in the same boat with my G3 iBook, though I don't even get a password prompt from it. It's just completely messed up.
Chauncellor
January 29th, 2010, 09:16 PM
I compiled pbbuttons myself and tried it out. Same thing is happening. Should I be able to use the following command to sleep my machine?
sudo pbbuttonsd sleep
It won't sleep if I use that command. This is the output:
INFO: Initialized: SysFS Backlight Driver
INFO: Initialized: OSS Mixer
pbbuttonsd 0.8.1a: iBook 2 rev. 2 (Nov 2002) - PMU version: 12
INFO: Script '/usr/local/etc/power/pmcs-pbbuttonsd performance ac ' launched and exited normally
ant2ne
February 6th, 2010, 12:58 AM
0.7.9-2ubuntu4 is but not 0.8.1a. You have to compile it yourself. It compiled fine for me -- still testing.hows the testing going? Hows about a little tut on how you compiled installed and set it up. I'm a few steps behind you on every thread. LOL
ant2ne
February 6th, 2010, 10:54 AM
ant2ne@bad-apple:~/bin/pbuttonsdinstall/pbbuttonsd-0.8.1a$ sudo make install
{bunch of stuff}
Compiling ibam_stub.cpp: [ERROR]
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../libpbbipc -I/usr/include/glib
-2.0 -I/usr/lib/glib-2.0/include -c -o ibam_stub.o ibam_stub.cpp
g++: No such file or directory
make[1]: *** [ibam_stub.o] Error 99
make: *** [install-recursive] Error 1
ant2ne@bad-apple:~/bin/pbuttonsdinstall/pbbuttonsd-0.8.1a$ :(
I can't find ibam_stub.cpp in synaptec. ](*,)
alexmurray
February 6th, 2010, 10:19 PM
ibam_stub.cpp is part of the source - you should try running:
./configure
make
sudo make install
Instead of just 'sudo make install' - ie. configure and compile it as a user, then just install using sudo.
Chauncellor
February 24th, 2010, 06:19 AM
I installed the 2.6.32-14-powerpc kernel from Lucid's repositories. Suspend works!
I have a strange issue, however. The first time I suspend the machine since power on, it will take two or so minutes to start up, after which my wireless card WILL NOT activate, no matter what command I use. The second time I suspend, however, resume is extremely quick and wireless works. WEIRD.
Also, I feel that I should mention this, but this is not what fixed things (as I kept testing per package update): I have also updated xorg, my radeon drivers, and pm-utils from the current lucid repositories.
Really! use that kernel!
Here's my pm-suspend.log:
Wed Feb 24 04:46:27 EST 2010: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:success.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend:Linux cornwall-laptop 2.6.32-14-powerpc #20-Ubuntu Sat Feb 20 08:48:08 UTC 2010 ppc GNU/Linux
Module Size Used by
binfmt_misc 8530 1
radeon 646812 2
ttm 48054 1 radeon
drm_kms_helper 29316 1 radeon
drm 184401 5 radeon,ttm,drm_kms_helper
ipt_REJECT 2528 1
uinput 8693 2
ipt_LOG 5054 1
xt_limit 1871 2
xt_tcpudp 2539 10
xt_state 1478 6
ipt_addrtype 2059 4
apm_emu 1468 0
apm_emulation 7311 2 apm_emu
ip6table_filter 2755 1
ip6_tables 15196 1 ip6table_filter
ipv6 299870 8
snd_powermac 68187 4
nf_nat_irc 1540 0
snd_aoa_i2sbus 20791 0
snd_pcm_oss 47872 0
nf_conntrack_irc 4040 1 nf_nat_irc
nf_nat_ftp 2432 0
nf_nat 18787 2 nf_nat_irc,nf_nat_ftp
snd_mixer_oss 19382 3 snd_pcm_oss
snd_pcm 87247 3 snd_powermac,snd_aoa_i2sbus,snd_pcm_oss
nf_conntrack_ipv4 13572 8 nf_nat
nf_defrag_ipv4 1469 1 nf_conntrack_ipv4
snd_seq_dummy 1766 0
nf_conntrack_ftp 6365 1 nf_nat_ftp
snd_seq_oss 36232 0
snd_seq_midi 6161 0
nf_conntrack 73510 7 xt_state,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf _nat,nf_conntrack_ipv4,nf_conntrack_ftp
nfsd 282982 2
snd_rawmidi 24746 1 snd_seq_midi
exportfs 4173 1 nfsd
iptable_filter 2675 1
nfs 325511 0
snd_seq_midi_event 7367 2 snd_seq_oss,snd_seq_midi
ip_tables 13860 1 iptable_filter
snd_seq 61897 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_mid i_event
lockd 78693 2 nfsd,nfs
x_tables 18288 8 ipt_REJECT,ipt_LOG,xt_limit,xt_tcpudp,xt_state,ipt _addrtype,ip6_tables,ip_tables
snd_timer 24515 2 snd_pcm,snd_seq
nfs_acl 3045 2 nfsd,nfs
snd_seq_device 7524 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi ,snd_seq
airport 3786 0
auth_rpcgss 42234 2 nfsd,nfs
snd 70628 14 snd_powermac,snd_aoa_i2sbus,snd_pcm_oss,snd_mixer_ oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_ti mer,snd_seq_device
orinoco 71822 1 airport
snd_aoa_soundbus 4916 1 snd_aoa_i2sbus
pmac_zilog 18110 0
soundcore 7534 3 snd
serial_core 23813 1 pmac_zilog
cfg80211 152758 1 orinoco
rfkill 20725 1 cfg80211
rtc_generic 1391 0
snd_page_alloc 7660 1 snd_pcm
evdev 10257 15
sunrpc 231952 6 nfsd,nfs,lockd,nfs_acl,auth_rpcgss
windfarm_core 10420 0
dm_mirror 15615 0
dm_region_hash 11764 1 dm_mirror
dm_log 11119 2 dm_mirror,dm_region_hash
dm_mod 82135 2 dm_mirror,dm_log
ohci1394 35584 0
sungem 32704 0
sungem_phy 12365 1 sungem
ieee1394 97418 1 ohci1394
uninorth_agp 8437 1
agpgart 39895 3 ttm,drm,uninorth_agp
total used free shared buffers cached
Mem: 251656 248716 2940 0 45832 90440
-/+ buffers/cache: 112444 139212
Swap: 739040 0 739040
success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend:success.
/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:success.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:success.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend:success.
/usr/lib/pm-utils/sleep.d/90clock suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend:stop: Unknown instance:
success.
/usr/lib/pm-utils/sleep.d/95led suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/96laptop-mode suspend suspend:success.
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler suspend suspend:/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/bios_version: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/bios_vendor: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/bios_date: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/sys_vendor: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/product_name: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/product_version: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/board_name: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/board_version: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/board_vendor: No such file or directory
success.
/usr/lib/pm-utils/sleep.d/99video suspend suspend:error: "kernel.acpi_video_flags" is an unknown key
vbetool not installed!
vbetool not installed!
vbetool not installed!
vbetool not installed!
success.
/etc/pm/sleep.d/action_wpa suspend suspend:success.
Wed Feb 24 04:46:31 EST 2010: performing suspend
Wed Feb 24 04:47:39 EST 2010: Awake.
Wed Feb 24 04:47:39 EST 2010: Running hooks for resume
/etc/pm/sleep.d/action_wpa resume suspend:success.
/usr/lib/pm-utils/sleep.d/99video resume suspend:vbetool not installed!
vbetool not installed!
vbetool not installed!
vbetool not installed!
success.
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler resume suspend:/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/bios_version: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/bios_vendor: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/bios_date: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/sys_vendor: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/product_name: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/product_version: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/board_name: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/board_version: No such file or directory
/usr/lib/pm-utils/sleep.d/98-video-quirk-db-handler: line 101: /sys/class/dmi/id/board_vendor: No such file or directory
success.
/usr/lib/pm-utils/sleep.d/96laptop-mode resume suspend:success.
/usr/lib/pm-utils/sleep.d/95led resume suspend:not applicable.
/usr/lib/pm-utils/sleep.d/95anacron resume suspend:success.
/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend:success.
/usr/lib/pm-utils/sleep.d/90clock resume suspend:not applicable.
/usr/lib/pm-utils/sleep.d/75modules resume suspend:success.
/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend:success.
/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend:not applicable.
/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:success.
/usr/lib/pm-utils/sleep.d/00powersave resume suspend:success.
/usr/lib/pm-utils/sleep.d/00logging resume suspend:success.
/usr/lib/pm-utils/sleep.d/000kernel-change resume suspend:success.
Wed Feb 24 04:47:40 EST 2010: Finished.
mvz
March 14th, 2010, 10:24 AM
I have suspend and resume working properly on my iBook with the standard Karmic kernel. I had to do two things to get this to work:
First, the wireless modules (airport and orinoco) need to be unloaded on suspend and reloaded on resume. I did this by adding a file /etc/pm/config.d/local-sleep-modules, containing the line:
SUSPEND_MODULES="ohci_hcd airport orinoco"
(Note: I already had the module ohci_hcd there before. I'm not sure unloading it is needed anymore.)
Second, the display needs to switch to a text terminal before suspending. I did this by adding a file /etc/pm/sleep.d/00-local-chvt, containing the following lines (adapted from /usr/lib/pm-utils/sleep.d/99video):
#!/bin/sh
. "${PM_FUNCTIONS}"
maybe_chvt()
{
fgconsole |savestate console
chvt 63
}
maybe_deallocvt()
{
state_exists console || return
chvt $(restorestate console)
deallocvt 63
}
case "$1" in
suspend) maybe_chvt ;;
hibernate) maybe_chvt ;;
resume) maybe_deallocvt;;
thaw) maybe_deallocvt ;;
help) help ;;
esac
This switching would happen automatically if the iBook's display driver did not have the 'no-chvt' quirk set (not sure why it's a quirk not to need to change the terminal).
ant2ne
March 15th, 2010, 01:06 AM
What about screen dimming on the same iBook G3 model? WPA, reliable hibernate and suspend, and screen dimming are the things that are keeping from ubuntu right now. (yeah I know I want it all) and for the most part I get it all with slackintosh. http://www.ant2ne.com/?p=173 I'd prefer ubuntu though.
Chauncellor
March 15th, 2010, 01:31 AM
Well, I'm glad that you have a good solution for this, but I can't use it as my ibook died on me :). The LCD died on me and it's not worth getting another.
Hope this helps someone else, though!
mvz
March 17th, 2010, 02:20 AM
The LCD died on me and it's not worth getting another.
Is that the infamous iBook backlight problem (http://schwarztech.us/articles/ibookcable)? If you're comfortable opening up laptops, you may be able to fix it. Let me know if you need details.
Chauncellor
March 17th, 2010, 02:40 AM
Huh. Didn't know about that problem.
I had completely dismanted the little piece of junk and I checked all the wires and connections: They all seemed to be intact. It's...erm...a little late for recovery at this point ;).
Thanks for the help, though :)
ant2ne
April 12th, 2010, 03:13 PM
I spent some time and I got ubuntu working on my 800Mhz iBook G3 to my satisfaction.
My requirements
1 Functional Linux OS with GUI
2 Ethernet, and wifi with WPA
3 Power management including screen dimming and quick and reliable suspend and hibernation.
4 Ability to easily install applications with apt-get
You can read all about it here (http://blog.computerant.com/2010/04/07/linux-on-the-ibook-varied-success-different-distributions/).
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.