
04-10-2006, 03:45 PM
|
|
Senior Member
|
|
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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...
|
|

04-10-2006, 04:40 PM
|
 |
Super Moderator
|
|
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

04-10-2006, 06:11 PM
|
|
Senior Member
|
|
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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:
|
|

04-10-2006, 06:29 PM
|
|
Senior Member
|
|
Join Date: May 2005
Location: Sesimbra-Portugal- EU
Posts: 1,617
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|

04-10-2006, 06:50 PM
|
 |
Super Moderator
|
|
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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
|
|

04-10-2006, 06:56 PM
|
 |
Super Moderator
|
|
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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
|
|

04-10-2006, 07:01 PM
|
|
Senior Member
|
|
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

04-10-2006, 07:17 PM
|
 |
Super Moderator
|
|
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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
|
|

04-11-2006, 01:07 PM
|
|
Senior Member
|
|
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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.
|
|

04-30-2006, 03:07 PM
|
|
Senior Member
|
|
Join Date: Jun 2005
Location: Netherlands
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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?
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 06:23 PM.
|
|