Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th November 2010
Kuboaa Kuboaa is offline
New User
Join Date: Nov 2010
Posts: 2
Default sysctl.conf settings not loading on boot

Hello all

Recently installed FreeBSD 8.0 for the first time on my Toshiba Satellite A215 laptop. Everything seems to work fine except I need to run
#sysctl hw.snd.default_unit=1
to get my sound to come out of the headphones. I'd like to set that as the default, but it resets back to 0 when I reboot. Since this is a laptop, I end up shutting down fairly often and don't want to change it manually every time. I tried adding
to /etc/sysctl.conf but when I reboot, sysctl still resets to 0. Am I going about this the right way? I'm not sure why it won't load the new configuration on startup. Please let me know if any additional information would help.
Reply With Quote
  #2   (View Single Post)  
Old 17th November 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243

It's possible there's some /etc/rc.d/* script which sets this sysctl.

I'm at work and don't have a FreeBSD system availabe at the moment, but you can grep(1) /etc/ yourself (Tip: use -R).
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 18th November 2010
Kuboaa Kuboaa is offline
New User
Join Date: Nov 2010
Posts: 2

Crap... I put it in /boot/loader.conf and it works fine now.

Thanks for the advice though
Reply With Quote

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
Triple-boot BSD grub problem with loading FreeBSD Mr-Biscuit Off-Topic 1 21st June 2010 05:14 AM
/etc/ppp settings for Earthlink shep OpenBSD General 3 24th December 2009 04:17 AM
please help me understand wpa settings gosha OpenBSD General 1 14th July 2009 11:37 AM
sysctl and cpu information and temperature neurosis FreeBSD General 11 22nd October 2008 09:16 PM
Get sysctl value from a C program DNAeon FreeBSD Ports and Packages 3 29th September 2008 07:28 PM

All times are GMT. The time now is 12:11 PM.

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