DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th November 2008
jaideep_jdof jaideep_jdof is offline
Port Guard
 
Join Date: Nov 2008
Posts: 45
Thanked 0 Times in 0 Posts
Default openbsd cpufreq

does openbsd 4.4 support cpufreq, and if yes how to enable it.
Reply With Quote
  #2   (View Single Post)  
Old 17th November 2008
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 781
Thanked 36 Times in 32 Posts
Default

Quote:
Originally Posted by jaideep_jdof View Post
does openbsd 4.4 support cpufreq, and if yes how to enable it.
man apmd
Reply With Quote
  #3   (View Single Post)  
Old 17th November 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Changing the processor speed manually can be done via the hw.setperf knob in sysctl(8). (On supported systems..)

But Oko is correct, apmd(8) is the way to do this automatically.. but unless you're using a laptop, it's not really necessary.
Reply With Quote
  #4   (View Single Post)  
Old 18th November 2008
jaideep_jdof jaideep_jdof is offline
Port Guard
 
Join Date: Nov 2008
Posts: 45
Thanked 0 Times in 0 Posts
Default

Is there a tutorial or a guide for this, is this daemon already running or do i have to enable this.
Reply With Quote
  #5   (View Single Post)  
Old 18th November 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,719
Thanked 214 Times in 189 Posts
Default

There is not an official tutorial or FAQ specific to apmd authored by the OpenBSD Project.

The apmd daemon is one of the many daemons that may be started automatically at boot time by the /etc/rc system, with variables controlled by /etc/rc.conf and /etc/rc.conf.local. If you look in /etc/rc.conf, you will see:
Code:
apmd_flags=NO        # for normal use: ""
Because the /etc/rc.conf file changes from release to release, the best practice is to put local settings in /etc/rc.conf.local. My laptop has this in /etc/rc.conf.local:
Code:
apmd_flags="-A"        # auto management by default on this system
For more information, see FAQ 10.3 and rc.conf(8).
Reply With Quote
  #6   (View Single Post)  
Old 18th November 2008
jaideep_jdof jaideep_jdof is offline
Port Guard
 
Join Date: Nov 2008
Posts: 45
Thanked 0 Times in 0 Posts
Default

which one is better apmd_flags="-A" or apmd_flags="-C", -C seems to have more features.
Reply With Quote
  #7   (View Single Post)  
Old 18th November 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,719
Thanked 214 Times in 189 Posts
Default

First, your system needs to be able to control CPU speed ... sysctl hw.setperf must exist on it.

Then, if you read the descriptions in the man page, you can pick what's best for your own situation. The main difference between the "automatic" and "cool running" settings is external power and battery management.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: FreeBSD CPU Scaling with cpufreq.ko vermaden Guides 10 27th October 2010 07:58 AM


All times are GMT. The time now is 06:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick