NetBSD 6.1.2: apm and admd not found


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 1  
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?
# 2  
Quote:
Originally Posted by bsdx
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 03:49 PM..
This User Gave Thanks to alister For This Post:
# 3  
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
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

10 More Discussions You Might Find Interesting

1. BSD

Netbsd root device not found

Hello there. I installed NetBSD yesterday on an older system to try it out. Everytime I boot, I have to enter in the root device (disk) manually wd0 which then proceeds into asking to define the dump device: is the default then, the sbin/init My question is where am I supposed to... (1 Reply)
Discussion started by: septima.pars
1 Replies

2. Virtualization and Cloud Computing

NetBSD on VirtualBox

Hello, guys! I use Ubuntu 9.04 as desktop operating system and I want to make some tests on NetBSD. I tried to install as a virtual sistem on VirtualBox but it doesn't want to install. You can see the error in the attached file. Do you guys have any clue about what the problem could be? (3 Replies)
Discussion started by: Sergiu-IT
3 Replies

3. UNIX for Dummies Questions & Answers

netbsd

which better freebsd and netbsd for server unix (0 Replies)
Discussion started by: salehudinayubi
0 Replies

4. BSD

netbsd

i have install netbsd but don't have gui?what happen?i want to a mount external usb hard drive but failure?what should i do? (5 Replies)
Discussion started by: ibnusina202003
5 Replies

5. UNIX for Dummies Questions & Answers

Warning: cannot connect to APM

After installation of SCO Openserver 5.0.7 following warning messegae show at the time of Loading Kernel hd(40) unix.bss warring: cannot connect to APM, error 0x0008 system loaded press <return> to start can any one please help me to solve this issue thanks and best regards hafeez (0 Replies)
Discussion started by: hafizurr
0 Replies

6. BSD

NetBSD Ports

They put NetBSD on a Dreamcast. Thats just awesome. What can't they put it on!? (1 Reply)
Discussion started by: Phobos
1 Replies

7. UNIX for Dummies Questions & Answers

apm...??

I have a HP pavillion laptop and gnu\linux feodra core 2 2.6.8-1.521 version of red hat.. and it does not support apm.. when I enter apm on the command line it gives prompt... "kernel does not support apm".. also there is an acpi for the battery which controls the suspend and standby also the... (10 Replies)
Discussion started by: moxxx68
10 Replies

8. UNIX for Dummies Questions & Answers

bash in netbsd

i recently downloaded and installed bash on my netbsd box (1.5.2) and set my shell and my root shell using user mod to change the shell, command executed under root. bash is installed from my user home directory (home/joe) and i moved the bash executable to /bin/ and everything is fine, except i... (6 Replies)
Discussion started by: norsk hedensk
6 Replies

9. UNIX Desktop Questions & Answers

Starting X in NetBSD

Hi I have NetBSD and i am having a trouble Starting X. It keeps asking me for the config file and I run the text confing file but it messes up. I really want to be able to run the Graphical Setup. I read about the Graphical setup from a book but they didn't tell how to start it. help please!? (9 Replies)
Discussion started by: vertigo
9 Replies

10. UNIX Desktop Questions & Answers

NetBSD Troubles

HI, I just installed NetBSD i386 v. latest. I am having a few problems: For some reason X just won't start!? Another is I can't access My CDROM or Floppy. Thanks in advance! (3 Replies)
Discussion started by: vertigo
3 Replies

Featured Tech Videos