DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th June 2008
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default Permanently Change Default sound device.

New FreeBSD 7 Amd64 install with an AMD SB600 Southbridge.

pciconf shows:
Code:
pcm1@pci0:0:20:2:	class=0x040300 card=0x10131019 chip=0x43831002 rev=0x00 hdr=0x00
    vendor     = 'ATI Technologies Inc'
    device     = 'IXP SB600 High Definition Audio Controller'
    class      = multimedia
Portions of dmesg"
Code:
pcm1: <ATI SB600 High Definition Audio Controller> mem 0xfe8f4000-0xfe8f7fff irq 16 at device 20.2 on pci0
pcm1: [ITHREAD]
Code:
acd0: DVDR <LITE-ON DVDRW LH-20A1S/9L03> at ata5-master SATA150
pcm0: <HDA Codec: Unknown Codec>
pcm0: <HDA Driver Revision: 20071129_0050>
pcm1: <HDA Codec: Realtek ALC883>
pcm1: <HDA Driver Revision: 20071129_0050>
SMP: AP CPU #1 Launched!
The default sound device is /dev/dsp which points to
Code:
$ sysctl hw.snd.default_unit
hw.snd.default_unit: 0
If I change hw.snd.default_unit to 1 all is good but I lose the change on the
next boot. How do I make this change permanent? ?/boot/device.hints?

Thanks in advance
Reply With Quote
  #2   (View Single Post)  
Old 14th June 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

/etc/sysctl.conf

Last edited by richardpl; 14th June 2008 at 01:15 AM.
Reply With Quote
  #3   (View Single Post)  
Old 14th June 2008
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Is that /etc/sysctl.conf?
What is the syntax for the entry?
I'm guessing
hint.hw.snd.default_unit=1

Thanks

Last edited by shep; 14th June 2008 at 12:46 AM. Reason: I'm quessing
Reply With Quote
  #4   (View Single Post)  
Old 14th June 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

That's correct.
Reply With Quote
  #5   (View Single Post)  
Old 14th June 2008
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

This is what ended up working in /etc/sysctl.conf

Code:
hw.snd.default_unit=1
Thanks for your help.
Reply With Quote
  #6   (View Single Post)  
Old 14th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

If your not sure about the syntax of a configuration file, you can usually find details in the manual

man conf_file_name (e.g. man sysctl.conf)

or a reference to the proper manual page in the programs own manual under the SEE ALSO section.

/usr/share/examples and /usr/local/share/examples if memory serves also has some nice things.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
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
Recording sound with external sound card backrow OpenBSD General 5 21st August 2009 08:17 PM
How do I edit my .profile to permanently have an ftp site to point to badguy OpenBSD Packages and Ports 12 19th July 2009 02:05 AM
change default font of the X rex FreeBSD General 2 26th October 2008 05:54 PM
identifying device associated with USB device? spiderpig OpenBSD General 2 7th July 2008 05:18 AM
VIA sound device fails on boot, works with kldload robbak FreeBSD General 0 16th June 2008 07:16 AM


All times are GMT. The time now is 03:01 PM.


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