Hello i have added the script oss.sh, however even when i rename the script to oss.sh.off the oss driver still seems to load apon boot. There is a file called [oss_rules=200] in the /usr/local/etc/rc.d directory I had the below added to etc/devfs.rules

but it did not seem to make any differance so i commented them out for now do i need both the file in /usr/local/etc/rc.d and the /etc/devfs.rules? or is the latter one just an example? i installed oss to /usr/local/lib is this correct seemed like the right place for bsd.

I cannot seem to get sound unless i am root and kdm will not let me login as root anymore which i probably a good thing. when i am a normal user i get errors like this.

Failed to open audio output. You may not have permission to open the sound device, or the sound server may not be running. Please select another audio output in the Multimedia Systems Selector.

and this

he volume control did not find any elements and/or devices to control. This means either that you don't have the right GStreamer plugins installed, or that you don't have a sound card configured.

You can remove the volume control from the panel by right-clicking the speaker icon on the panel and selecting "Remove From Panel" from the menu.

ps why does oss load even when i tell it not ie renaming the script file to oss.sh.off and comment out oss_enable="YES" in /etc/rc.conf as well as the stuff in /etc/devfs.rules

This unregistered version is FULLY FUNCTIONAL. You may use the unregistered
version for personal/non-commercial use only. All features of the registered
version are included in this package with the exception of technical support.

The easiest way to order OSS is using the 'Order permanent OSS license' option
of the soundconf program. Alternatively you can order the license from our
web site at: http://www.opensound.com/order.html

Open Sound System started OK.
devfs rule: ioctl DEVFSIO_SAPPLY: No such process
root@rachel#

Are you using the newest script that I posted a few days ago? Which version of FreeBSD are you using?

The old script would run no matter what you called it as long as it was in the /usr/local/etc/rc.d directory. Renaming scripts to *.off will not keep them from running no matter what they are. If you remove the executable flag from the file, then it will not run.

The new RCng script defaults to off, so you have to specifically enable it in /etc/rc.conf.

You should NOT have a file called [oss_rules=200] in /usr/local/etc/rc.d.

The reason you can only get sound as root is because the permission rules were not being applied.

It looks like the script is starting OSS...good.
The "devfs rule: ioctl DEVFSIO_SAPPLY: No such process" error is because you commented out the rules in /etc/devfs.rules and it cannot find the ruleset to use, so uncomment them and make sure they are correct. You can keep the rules in /etc/devfs.rules even if you don't want to use OSS at the moment...they are harmless and will only be applied if devfs is called (as it is in the script).

The old script would run no matter what you called it as long as it was in the /usr/local/etc/rc.d directory. Renaming scripts to *.off will not keep them from running no matter what they are. If you remove the executable flag from the file, then it will not run.

OK i have removed all the scripts except for one called oss.sh which is the one u posted to the sticky starts like this

#!/bin/sh

# 2006-02-10## PROVIDE: oss# REQUIRE: DAEMON# KEYWORD: FreeBSD#

The new RCng script defaults to off, so you have to specifically enable it in /etc/rc.conf.

You should NOT have a file called [oss_rules=200] in /usr/local/etc/rc.d.have deleted it too

The reason you can only get sound as root is because the permission rules were not being applied.

It looks like the script is starting OSS...good.The "devfs rule: ioctl DEVFSIO_SAPPLY: No such process" error is because you commented out the rules in /etc/devfs.rules and it cannot find the ruleset to use, so uncomment them and make sure they are correct.

Done they are correct

You can keep the rules in /etc/devfs.rules even if you don't want to use OSS at the moment...they are harmless and will only be applied if devfs is called (as it is in the script).

Still get no sound i know that mute is on by default and all i had to do as root was open ossxmix and i would have sound. But when i click on ossxmix as a regular user in gnome nothing happens. What is up with that if i try to run from a terminal i get this

rmvg wrote:I reset the entire computer does that reset devfs?because even after reboot no sound

Hi,

We found the cause for all of these permissions issue. It was that somewhere in the code we were creating all devices with the wrong permissions. Please
download the OSS 3.99.4a version or run ossupdate and let me know if this fixes the problems.

Yep there was a line in /etc/rc.local i removed it then i could turn sound on and off with the /etc/rc.conf file.

Nope there is no sound now not even for root anymore what the F(&k. osstest works ok as long as use ossxmix to turn off all the mute buttons and it never saves on reboot even if i use the osssave file.