Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is APM broke these days?
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
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Tue Mar 25, 2008 8:48 pm    Post subject: Is APM broke these days? Reply with quote

Hi gang.

I have a 1999 iBook that has APM hardware. I installed Gentoo with the APM USE flag in make.conf but when I try to put the iBook to sleep:
Code:
apm -s

I get:
Code:
apm: No such device

I'm aware of pbbuttonsd being able to suspend I'd like to though use /etc/apm/resume.d /etc/apm/suspend.d to put a few scripts in. Does it work for anyone else?
_________________
Helpful Linux Tidbits
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Tue Mar 25, 2008 11:19 pm    Post subject: Reply with quote

do you have proper apm support in your kernel?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 26, 2008 1:31 am    Post subject: Reply with quote

I'm not sure about apm, but how about just echoing "standby" to /sys/power/state? As far as I know, that's equivalent to what pbbuttonsd does.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Sat Apr 19, 2008 8:14 pm    Post subject: Reply with quote

Noing happening with APM, I think it's probably depracated. No pages are recent for what I could find and the only kernel options are these which I already have set:
Code:
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_APM_EMULATION=y
CONFIG_PMAC_APM_EMU=y
CONFIG_APM_POWER=y

It looks like hal did a change too. "/usr/libexec/hal-system-power-pmu" no longer exists and rather there's "/usr/libexec/hal-system-power-pm-is-supported" - not sure what this does. For the time being I have no way to suspend. I could install pbbuttonsd, but just think it's overkill. Oh yes setting "/sys/power/state" did put the iBook into hibernate/sleep, unfortunately there didn't seem to be any way out of it.
_________________
Helpful Linux Tidbits
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sat Apr 19, 2008 9:38 pm    Post subject: Reply with quote

is there a reason for your wish for apm?
acpi should fit all your powermanagement needs.
Back to top
View user's profile Send private message
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Sun Apr 20, 2008 8:01 am    Post subject: Reply with quote

alex.blackbit wrote:
is there a reason for your wish for apm?
acpi should fit all your powermanagement needs.


Nope. Having power management on a PPC requires apm. AcPI requires a bios.
_________________
Helpful Linux Tidbits
Back to top
View user's profile Send private message
Ato
n00b
n00b


Joined: 22 Dec 2007
Posts: 66
Location: Duisburg, Germany

PostPosted: Mon Apr 28, 2008 5:17 am    Post subject: Reply with quote

Dirk.R.Gently wrote:
alex.blackbit wrote:
is there a reason for your wish for apm?
acpi should fit all your powermanagement needs.


Nope. Having power management on a PPC requires apm. AcPI requires a bios.


Not entirely true. ACPI requires some tables which are commonly found in BIOSes, okay. But most PPCs require APM only because their BIOS/OpenFirmware does not support the OS with the necessary ACPI tables.

Cheers,
Thomas
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Apr 28, 2008 12:51 pm    Post subject: Reply with quote

I would just use pbbuttonsd. The battery portion of apm still seems to be working here, but I do not use apm to put the machine to sleep, so I can't comment on that. You can add scripts to /etc/power/[suspend|resume].d in pbbuttonsd, just like with apm. pbbuttonsd also adds support for your extra keyboard buttons, etc. Why do you consider it "overkill"?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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