#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    4
    Rep Power
    0

    FreeBSD / KDE No Sound


    I recently installed FreeBSD and KDE onto a Dell Dimension Desktop. The sound card is listed as Creative Sound Blaster Audio PCI chip with 64-voice wavetable synthesis" on Dells web site.

    I get the following error on boot or when trying to get the sound:

    Error while initializing sound driver: /dev/dsp can't be opened (No such file or directory) The sound server will continue, using null output device.

    I am new to this and appreciate any help.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    Driver (aka kernel module) not loaded?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    4
    Rep Power
    0

    not sure


    That seems like the problem, any idea how i go about finding/installing what I need?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    How about reading The FreeBSD Handbook?
    "Chapter 16.2: Setting Up the Sound Card" sounds really interesting to me...
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    4
    Rep Power
    0
    I've been to this page, and read this chapter and don't find the instructions to be all together clear.. As far as I can tell all it wants me to do is add "device pcm" to the kernel config? What about dev/dsp how does that get there from adding a line to the kernel? I assume I need to download something?
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    What about dev/dsp how does that get there from adding a line to the kernel?
    2 ways:

    FreeBSD 5+: nothing to be done. /dev/dsp will appear magically once the module is installed. "devpts" is the name of this trick. A whole filesystem as interface to your kernel drivers.

    FreeBSD 4.?: the "mknod" command. This creates single pseudo-files as interface to your kernel drivers.

    Which one are you using?
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    Handbook:
    16.2.2 Creating and Testing the Device Nodes
  14. #8
  15. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    4
    Rep Power
    0
    I'm not entirely sure of the version. I just installed it, via FTP. I made the 2 floppies, and chose the distibution labeld "ALL" I would assume I have the most recent version. Again I am new to this. If you can detail some basic instructions even a fool could follow, I'd much appreciate it. Thanks -
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    The step by step instructions about how to compile your kernel are in chapter 9.3. How to get the /dev/dsp after installing the new kernel is explained step by step in chapter 9.5.

    Short summary:
    Code:
    -bash-2.05b# cd /usr/src/sys/i386/conf
    -bash-2.05b# cp GENERIC MYKERNEL
    - start text editor of your choice to edit "MYKERNEL" and add "device pcm" after the last line. Save and quit.
    - find out the OS version like this:
    Code:
    -bash-2.05b# uname -a
    FreeBSD enterprise.home 4.8-RELEASE FreeBSD 4.8-RELEASE #1: Sat May 10 22:58:13 CEST 2003
         root@enterprise.home:/usr/src/sys/compile/ENTERPRISE  i386
    You can see that I am running 4.8-RELEASE. (if you have a 5.X you need to read the manual now because everything is different from here on)
    Code:
    -bash-2.05b# /usr/sbin/config MYKERNEL
    cd ../compile/MYKERNEL
    -bash-2.05b# make depend
    -bash-2.05b# make
    -bash-2.05b# make install
    -bash-2.05b# reboot
    The "#" sign in the prompt says I am logged in as root. And never continue with the next step if you get any error messages.

IMN logo majestic logo threadwatch logo seochat tools logo