# /host/laph/etc/sysctl.conf # See Also /boot/loader.conf # Periodically manually do this: # cp /host/laph/etc/sysctl.conf \ # ~jhs/public_html/hardware/hp/pavilion/dm3-1155ea/sysctl.conf # 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 # debug.acpi.disabled=all # Variable not shown by sysctl -a. debug.bootverbose="1" # Variable shown by sysctl -a. debug.cpufreq.verbose="1" debug.hwpstate_verbose="1" dev.acpi_hp.0.verbose="1" # This does not set to 1. # dev.pcm.0.buffersize"65536" # Reduce number of sound generated interrupts to save power: # hint.pcm.0.buffersize=65536 unknown oid # I have no hint.pcm.0.buffersize # I have: # dev.pcm.0.buffersize: 16384 # sysctl -d dev.pcm.0.buffersize : allocated buffer size # dev.pcm.1.buffersize="65536" # hint.pcm.1.buffersize=65536 unknown oid # I have no hint.pcm.1.buffersiz # I have: # dev.pcm.1.buffersize: 16384 # hint.acpi.0.disabled="1" # Turn off whole of acpi # hw.acpi.disable_on_poweroff="0" # unknown oid # I got this from: # http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.html # 12.16.3.5 System Powers Up After Suspend or Shutdown # To prevent reboot after halt -p # Doesnt work. # sysctl -a hw.acpi | grep power # does not show it, # only shows: hw.acpi.power_button_state: S5 # sysctl -d hw.acpi.disable_on_poweroff # unknown oid 'hw.acpi.disable_on_poweroff' # sysctl -a | grep poweroff # kern.shutdown.poweroff_delay: 5000 hw.acpi.verbose="1" # Variable not shown by sysctl -a. # hw.pci.do_power_nodriver="3" # To save power, compile a kernel with no drivers for things I dont want # eg firewire, bluetooth, wlan, HDA modem. # hw.snd.verbose="1" # hw.snd.feeder_buffersize=65536 unknown oid # I have no hw.snd.feeder_buffersize but I have: # hw.snd.feeder_rate_quality: 1 # hw.snd.feeder_rate_round: 25 # hw.snd.feeder_rate_max: 2016000 # hw.snd.feeder_rate_min: 1 # hw.snd.feeder_rate_polyphase_max: 183040 # hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97 # hw.snd.feeder_eq_exact_rate: 0 # hw.snd.feeder_eq_presets: PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200, 96000,176400,192000 # hw.snd.latency="7" # default 5 kern.hz="100" # Was 1000 # http://wiki.freebsd.org/TuningPowerConsumption # Also, to drop/rise voltage on C3, CPU needs time # (57us for my system). It means that C3 state can't # be effectively used when system is waking up often. # To increase inactivity periods we should reduce # interrupt rate as much as possible by adding to loader.conf: # sysctl -a | grep powernow # dev.powernow.0.%desc: PowerNow! K8 # dev.powernow.0.%driver: powernow # dev.powernow.0.%parent: cpu0 # dev.powernow.0.freq_settings: 1592/100000 796/35457 # dev.powernow.1.%desc: PowerNow! K8 # dev.powernow.1.%driver: powernow # dev.powernow.1.%parent: cpu1 # dev.powernow.1.freq_settings: 1592/100000 796/35457 # Turn off unused usb # usbconfig (when nothing plugged in just internal mouse pad ) # ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE # ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE # ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE # ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE # ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE # ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON # Examples: # will enable automatic suspend of the USB device when no data traffic is pending. # usbconfig -d X.Y power_save # will disable USB power save for the given device. # usbconfig -d X.Y power_on