Unix/Linux Go Back    


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

NetBSD 6.1.2: apm and admd not found

BSD


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-17-2014
bsdx bsdx is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 17 January 2014, 5:46 PM EST
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
NetBSD 6.1.2: apm and admd not found

I installed NetBSD 6.1.2 amd64 and can't find the apm utility. Is it not in the base system?

Is it necessary to recompile the default amd64 kernel to use apm?

Or is there a new method for power management and suspend/resume?
Sponsored Links
    #2  
Old Unix and Linux 01-17-2014
alister alister is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 11 June 2014, 8:40 PM EDT
Posts: 3,231
Thanks: 179
Thanked 976 Times in 790 Posts
Quote:
Originally Posted by bsdx View Post
I installed NetBSD 6.1.2 amd64 and can't find the apm utility. Is it not in the base system?

Is it necessary to recompile the default amd64 kernel to use apm?

Or is there a new method for power management and suspend/resume?
Are there even any amd64 systems that use apm? Aren't they all ACPI?

As you've noticed, apm isn't built on amd64. It's only supported and built on some architectures. An excerpt from the apm 6.1.2 Makefile:

Code:
.if (${MACHINE_ARCH} == "i386" || \
     ${MACHINE} == "hpcarm" || \
     ${MACHINE} == "hpcmips" || \
     ${MACHINE} == "hpcsh" || \
     ${MACHINE} == "macppc" || \
     ${MACHINE} == "sparc" || \
     ${MACHINE} == "zaurus") 
PROG=	apm
...
.fi

If you compare the i386 GENERIC kernel config file and the amd64 GENERIC kernel config file, you'll find that while the i386 kernel's ACPI supports an apm emulation layer, no such thing is present in amd64.

i386:

Code:
# ACPI devices
apm*		at acpi?		# ACPI apm emulation
acpiacad*	at acpi?		# ACPI AC Adapter
acpibat*	at acpi?		# ACPI Battery
acpibut*	at acpi?		# ACPI Button

amd64:

Code:
# ACPI devices
acpiacad*	at acpi?		# ACPI AC Adapter
acpibat*	at acpi?		# ACPI Battery
acpibut*	at acpi?		# ACPI Button

As for the power management daemon, for ACPI systems, apmd has been deprecated in favor of powerd(8).

Regards,
Alister

---------- Post updated at 02:40 PM ---------- Previous update was at 02:33 PM ----------

Also, have a look at the scripts in /etc/powerd/scripts. sleep_button, for example, will point you at some of the relevant sysctl knobs used for power management (and demonstrates a cascade from modern, native hardware to virtualization to legacy apm).

Regards,
Alister

Last edited by alister; 01-17-2014 at 02:49 PM..
The Following User Says Thank You to alister For This Useful Post:
bsdx (01-17-2014)
Sponsored Links
    #3  
Old Unix and Linux 01-17-2014
bsdx bsdx is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 17 January 2014, 5:46 PM EST
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Solved: NetBSD 6.1.2: apm and admd not found

Thank you for your elaborate answer!

I noticed than that powerd allready had been running. I could successfully config some properties with sysctl.

As expected with a nvidia gfx resuming the display did not work, but that is o.k.

Kind regards
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Netbsd root device not found septima.pars BSD 1 09-03-2009 07:10 PM
netbsd salehudinayubi UNIX for Dummies Questions & Answers 0 01-21-2008 11:17 PM
netbsd ibnusina202003 BSD 5 12-03-2007 04:32 AM
Warning: cannot connect to APM hafizurr UNIX for Dummies Questions & Answers 0 06-10-2006 07:32 AM
apm...?? moxxx68 UNIX for Dummies Questions & Answers 10 09-17-2004 05:23 PM



All times are GMT -4. The time now is 01:07 AM.