Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2006, 03:45 PM
lazyilmaz lazyilmaz is offline
Senior Member
 
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lazyilmaz
Default Frequency scaling
Hi, can someone tell me how I enable Frequency scaling in PCBSD? I really need this feature because I installed PCBSD on my laptop and I don't want it run to @1.8GHz all the time. I have a laptop with an AMD Turion processor.

thanks...
Reply With Quote
  #2  
Old 04-10-2006, 04:40 PM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Frequency scaling
Originally Posted by lazyilmaz
Hi, can someone tell me how I enable Frequency scaling in PCBSD? I really need this feature because I installed PCBSD on my laptop and I don't want it run to @1.8GHz all the time. I have a laptop with an AMD Turion processor.

thanks...
/etc/rc.conf
Code:
powerd_enable="YES"
powerd_flags="-b adaptive -a max"
performance_cx_lowest="C2"      # Online CPU idle state
performance_cpu_freq="1393"     # Online CPU frequency
economy_cx_lowest="C3"          # Offline CPU idle state
economy_cpu_freq="NONE"         # Offline CPU frequency
/etc/sysctl.conf

Code:
kern.coredump=0
vfs.usermount=1
kern.timecounter.hardware=i8254
debug.acpi.do_powerstate=1
hw.acpi.lid_switch_state=S3
hw.acpi.standby_state=S1
hw.acpi.suspend_state=S3
hw.acpi.sleep_button_state=S3
vfs.usermount=1
hw.acpi.sleep_delay=3
hw.acpi.reset_video=0
or something like that...
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #3  
Old 04-10-2006, 06:11 PM
lazyilmaz lazyilmaz is offline
Senior Member
 
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lazyilmaz
Default
Thanks antik


Quote:
or something like that...
but are you sure those are the right values? because I don't want to reinstall PCBSD again :lol:
Reply With Quote
  #4  
Old 04-10-2006, 06:29 PM
pcbsdusr pcbsdusr is offline
Senior Member
 
Join Date: May 2005
Location: Sesimbra-Portugal- EU
Posts: 1,617
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Antik, i googled for it and this is what i came up with:

Code:
kldload cpufreq.ko

and

add 'powerd_enable="YES"' in /etc/rc.conf.
Any comments?
Reply With Quote
  #5  
Old 04-10-2006, 06:50 PM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by pcbsdusr
Antik, i googled for it and this is what i came up with:

Code:
kldload cpufreq.ko

and

add 'powerd_enable="YES"' in /etc/rc.conf.
Any comments?
powerd_enable="YES" in /etc/rc.conf and cpufreq_load="yes" in /boot/loader.conf.

EDIT: fixed typo.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #6  
Old 04-10-2006, 06:56 PM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by lazyilmaz
Thanks antik


Quote:
or something like that...
but are you sure those are the right values? because I don't want to reinstall PCBSD again :lol:
If you have Celeron M then forget about adaptive frequency- this works only with Pentium M and MobileAMD processors. I managed to change frequency on Celeron but after a couple of minutes system crashed and I got corrupted filesystem....

More information here.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #7  
Old 04-10-2006, 07:01 PM
lazyilmaz lazyilmaz is offline
Senior Member
 
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lazyilmaz
Default
Ok I did it like you said and ended up with a broken installation

now I reinstalled pcbsd again.

this is my rc.conf file

Code:
background_dhclient="YES"
hostname="PCBSD.localhost"
compat5x_enable="YES"

NIC="de em ixgb txp vx bfe bge dc fxp lge nge pcn re rl sf sis sk ste ti tl tx vge vr wb xl cs ed ex ep fe ie lnc sn xe an awi wi"

for i in $NIC; do
      eval ifconfig_${i}0="DHCP"
      eval ifconfig_${i}1="DHCP"
done

blanktime="180"
saver="logo"
sshd_enable="YES"
usbd_enable="YES"
moused_type="auto"
moused_enable="YES"

#Enable samba server
samba_enable="YES"

# Disable LPD 
lpd_enable="NO"

# Enable CUPS
cupsd_enable="YES"
background_cupsd="YES"
enable_linux="YES"

# FSCK Enhancements
fsck_y_enable="YES"
background_fsck="NO"
sysctl.conf

Code:
# $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0

# Disable coredump
kern.coredump=0

# Allow users to mount CD's
vfs.usermount=1

#Enable more Sound Channels
hw.snd.pcm0.vchans=4
hw.snd.maxautovchans=4
can you exactly tell me what to change?

oh is there any linux liveCD that can read/write pcbsd partitions? that way I can fix things easier.
Reply With Quote
  #8  
Old 04-10-2006, 07:17 PM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by lazyilmaz
Ok I did it like you said and ended up with a broken installation

now I reinstalled pcbsd again.

can you exactly tell me what to change?

oh is there any linux liveCD that can read/write pcbsd partitions? that way I can fix things easier.
Quote:
Powerd is used to give more power on demand, based upon cpu utilization. More performance is required, more the frequency will be high. As such, if there is a need to put the processor to full speed, powerd by itself won't down the frequency in order to cool the processor. This require though that the ACPI onto your system support thermal zones. There is no generic way to do it for now unfortunately.

Of course, when the system is mostly idle, using powerd will cool the processor, but this is only a side effect.
Try this:
/etc/rc.conf
Code:
# powerd: max speed while on AC power, adaptive while on battery power
powerd_enable="YES"
powerd_flags="-a max -b adaptive" # set CPU frequency
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #9  
Old 04-11-2006, 01:07 PM
lazyilmaz lazyilmaz is offline
Senior Member
 
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lazyilmaz
Default
Thanks a lot for your help Antik. But I gave up after online update broke my system. And besides the frequentie is not the only problem I have with pcbsd (no sound, wrong res) so I installed Kubuntu on my system. I will try PCBSD again when v1 comes out.
Reply With Quote
  #10  
Old 04-30-2006, 03:07 PM
lazyilmaz lazyilmaz is offline
Senior Member
 
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lazyilmaz
Default
Originally Posted by antik
Originally Posted by lazyilmaz
Try this:
/etc/rc.conf
Code:
# powerd: max speed while on AC power, adaptive while on battery power
powerd_enable="YES"
powerd_flags="-a max -b adaptive" # set CPU frequency
Hi, I did this with PCBSD 1 final but it didn't work. Do you have any other suggestions?
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
Change cpu frequency (IBM ThinkPad) antik Guides 6 05-29-2009 10:48 AM
cpu frecuency scaling CarlosOmar Laptops 5 07-18-2006 06:33 PM
Problem with monitor frequency paul Installing PC-BSD 6 03-20-2006 01:26 AM
Out of Range Frequency problem *tas Installing PC-BSD 3 11-15-2005 10:07 AM
Frequency and resolution tillda General Bug Reports 2 07-25-2005 07:40 PM


All times are GMT. The time now is 06:23 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.