Results 1 to 3 of 3

Thread: HowTo: Fix /dev/dsp1

  1. #1
    Join Date
    Jan 2008
    Beans
    4,757

    HowTo: Fix /dev/dsp1

    Some games, and other proprietary software (To my knowledge, the ones that use OSS) have it hard-coded in them that the default soundcard, mixer and audio devices are located in the following locations:
    Code:
    /dev/audio
    /dev/dsp
    /dev/mixer
    Although, for a minor few, this isn't the case of their setup.

    If, your like me, and you use an external USB Soundcard, and your onboard soundcard is turned off in BIOS. Then your default soundcards may be pointing to these locations instead:
    Code:
    /dev/audio1
    /dev/dsp1
    /dev/mixer1
    To which brings up warning messages in the terminal before the game starts, and ultimately results in no sound ingame.

    FIX:
    Open up the udev rules for alsa. If you are running Jaunty, you'll need to copy the file over:
    Code:
    sudo cp /lib/udev/rules.d/85-alsa-utils.rules /etc/udev/rules.d/85-alsa.rules
    Code:
    gksudo gedit /etc/udev/rules.d/85-alsa.rules
    and add the following at the bottom:
    Code:
    KERNEL=="controlC[0-9]*", ACTION=="add", \
    	RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/alsa/bogus --startas /etc/init.d/alsa-utils -- start %n"
    KERNEL=="dsp1", SYMLINK+="dsp"
    KERNEL=="mixer1", SYMLINK+="mixer"
    KERNEL=="audio1", SYMLINK+="audio"
    Save, quit, and reboot your system.

    Now when you open up the terminal and type in ls /dev you'll now see the symlinks audio, dsp and mixer.

    And you'll finally get sound from that game you got too...

    Regards
    Iain
    Last edited by ibuclaw; August 22nd, 2009 at 09:57 PM.

  2. #2
    Join Date
    Jun 2008
    Location
    UK
    Beans
    369
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HowTo: Fix /dev/dsp1

    Dear Learned Guru

    Thank you for this brilliant advice.

    However, I am sorry to report that it has not improved my problem.

    I am in exactly the same position as you apepar to be, concerning USB audio. However, after adding the aforementioned lines of code to the alsa-rules file, I still do not get sound from my USB speakers, and VLC media player still directs all sound to the laptop's onboard speakers via the onboard soundcard.

    The output from "#ls /dev" includes the following:
    Code:
    dsp                 ptye7  ptyuc  rtc         ttyb2  ttyr7  ttyx8
    dsp1                ptye8  ptyud  rtc0        ttyb3  ttyr8  ttyx9
    What is wrong with my system? And how can it be corrected?

    Thank you for your time.

  3. #3
    Join Date
    Jun 2008
    Location
    UK
    Beans
    369
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HowTo: Fix /dev/dsp1

    I found a different solution that works. Ubuntu may be full of bugs, but at least VLC provides a workaround to this seemingly common problem.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •