KMix Broken

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: hannu, dev, cesium, kodachi

KMix Broken

Postby drache » Thu Mar 22, 2007 4:51 am

Hi there,

I'm using PC-BSD (FreeBSD 6.1 p11) with KDE

Good sound but it has broken my kmix. I'm using oss-freebsd-v4.0-1001-i386 and installed with pkg_add as per instructions. soundoff and soundon work OK. A kldstat returns
Code: Select all
Id Refs Address    Size     Name
1   22 0xc0400000 753dc8   kernel
2    3 0xc0b5d000 1af50    linux.ko
3    1 0xc0b78000 6d2b08   nvidia.ko
4    1 0xc124b000 58554    acpi.ko
5    1 0xc74e8000 5000     snd_ich.ko
6    1 0xc74f9000 1c000    sound.ko
7    1 0xc7558000 6000     linprocfs.ko
8    1 0xc75d5000 7000     aio.ko
9    1 0xc75e4000 1b000    kqemu.ko
10    1 0xc7601000 4000     logo_saver.ko
11    3 0xc76cc000 7d000    osscore.ko
12    1 0xc7752000 6000     ich.ko
13    1 0xc7758000 c000     vmix.ko


ossmix returns
Code: Select all
SNDCTL_MIX_NREXT: Device not configured


A dmesg|grep pcm0 returns
Code: Select all
pcm0: <nVidia> port 0xf000-0xf0ff,0xec00-0xecff mem 0xfe02d000-0xfe02dfff irq 23 at device 13.0 on pci0
pcm0: Avance Logic ALC850 AC97 Codec


ossctl returns
Code: Select all
ossctl
Mutex init failure: Invalid argument
Gtk-Qt theme engine warning:
  Could not open /proc/8457/cmdline
  This may cause problems for the GNOME window manager
Mutex init failure: Invalid argument
Mutex init failure: Invalid argument
Segmentation fault


and returns this in /var/log/messages
Code: Select all
kernel: pid 8457 (ossctl), uid 0: exited on signal 11


I've gone to the Sound System, disabled the Run with highest priority and on the hardware tab, set Threaded Open Sound System, 48,000 and 16 bit.

There is an error on boot,
Code: Select all
ln: /dev/dsp :  No such file or directory


A sysctl -a | grep snd returns
Code: Select all
hw.snd.report_soft_formats: 1
hw.snd.targetirqrate: 32
hw.snd.verbose: 1
hw.snd.maxautovchans: 4
hw.snd.unit: 0
hw.snd.pcm0.buffersize: 16384
hw.snd.pcm0.vchans: 4
hw.snd.pcm0.ac97rate: 48000


/boot/loader.conf has nothing loading that has anything to do with sound.

/dev/sndstat shows
Code: Select all
pcm0: <nVidia> at io 0xf000, 0xec00 irq 23 bufsz 16384 kld snd_ich (1p/1r/4v channels duplex default)


Exiting kmix and then starting as a user from the CLI starts it but returns
Code: Select all
QSettings::sync: filename is null/empty
and the kmix tray icon shows that it's broken.

If I do a pkg_delete and reboot, the mixer comes back fine.

I can't think of anything else to show you but am looking for some direction on what to do next. Like I said, the sound seems fine. Any ideas are welcome.
drache
New Member
 
Posts: 7
Joined: Thu Mar 22, 2007 1:21 am

Postby dev » Thu Mar 22, 2007 4:17 pm

Forget kmix, you need to use ossxmix - there are more controls in ossxmix than kmix.



regards
Dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby drache » Thu Mar 22, 2007 7:11 pm

dev wrote:Forget kmix, you need to use ossxmix - there are more controls in ossxmix than kmix.



regards
Dev




I see you must be the man Dev but as I posted above,
ossmix returns
Code: Select all
SNDCTL_MIX_NREXT: Device not configured



These two I didn't post but saw them on the next page when I printed it out...


ossinfo returns
Code: Select all
SNDCTL_SYSINFO: Device not configured


ossxmix returns
Code: Select all
SNDCTL_SYSINFO: Device not configured


So I guess what I need to know is how to configure the device other than the Sound System in KDE's Control Center ;-)
drache
New Member
 
Posts: 7
Joined: Thu Mar 22, 2007 1:21 am

Postby dev » Thu Mar 22, 2007 7:36 pm

drache wrote:
dev wrote:Forget kmix, you need to use ossxmix - there are more controls in ossxmix than kmix.



regards
Dev




I see you must be the man Dev but as I posted above,
ossmix returns
Code: Select all
SNDCTL_MIX_NREXT: Device not configured



These two I didn't post but saw them on the next page when I printed it out...


ossinfo returns
Code: Select all
SNDCTL_SYSINFO: Device not configured


ossxmix returns
Code: Select all
SNDCTL_SYSINFO: Device not configured


So I guess what I need to know is how to configure the device other than the Sound System in KDE's Control Center ;-)

You MUST remove the FreeBSD ICH driver from the system before you can use OSS.

That is your problem

regards
Dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby drache » Thu Mar 22, 2007 7:42 pm

OK, thanks :D

I guess the install didn't detect my ich driver as it states in step 3 of the installation instructions for FreeBSD. I'll remove the OSS, uninstall the ich and then reinstall the OSS. Thank you again.
drache
New Member
 
Posts: 7
Joined: Thu Mar 22, 2007 1:21 am

Postby drache » Thu Mar 22, 2007 8:51 pm

OK...got it loaded, kmix is fixed and ossinfo returns everything fine, however when I run ossxmix, either as as user or root, it returns:
Code: Select all
Mutex init failure: Invalid argument
Gtk-Qt theme engine warning:
  Could not open /proc/2033/cmdline
  This may cause problems for the GNOME window manager
Mutex init failure: Invalid argument
Mutex init failure: Invalid argument
Segmentation fault


All my ports are up to date
Code: Select all
gtk-1.2.10_17                       =   up-to-date with port
gtk-2.10.11                         =   up-to-date with port
gtk-engines2-2.10.0                 =   up-to-date with port
gtk-qt-engine-0.7_5                 =   up-to-date with port
gtkglarea-1.2.3_1                   =   up-to-date with port
gtkglext-1.2.0                      =   up-to-date with port
gtkhtml3-3.14.0                     =   up-to-date with port
gtkspell-2.0.11_4                   =   up-to-date with port
linux-gtk2-2.6.10                   =   up-to-date with port
py24-gtk-2.10.4                     =   up-to-date with port
wxgtk2-2.6.3_2                      =   up-to-date with port
wxgtk2-common-2.6.3_2               =   up-to-date with port


Any more ideas?

Thanks again. I'm remote to my machine but look forward to getting home to listen ;-)
drache
New Member
 
Posts: 7
Joined: Thu Mar 22, 2007 1:21 am

Postby drache » Fri Mar 23, 2007 2:32 am

drache wrote:OK, thanks :D

I guess the install didn't detect my ich driver as it states in step 3 of the installation instructions for FreeBSD. I'll remove the OSS, uninstall the ich and then reinstall the OSS. Thank you again.


For PC-BSD users, 1.3+, there is a script in rc.local that needs to be commented out or it will load whatever card if finds. Here is how mine looks
Code: Select all
Custom rc.local file - PCBSD

# If no XF86Config file, try to create it
if [ ! -f /etc/X11/XF86Config ]; then
   echo "Creating XF86Config file..."
   /PCBSD/cardDetect/x_config.sh
fi

# Detect sound-card
#/PCBSD/cardDetect/sound_detect.sh

# Detect Drives
#echo "Detecting Disk Drives..."
/PCBSD/Scripts/startDetection.sh

# Enable Linux Procfs
kldload linprocfs
mount -t linprocfs linprocfs /usr/compat/linux/proc

# Start Online update check in 2 minutes
echo "Starting Online Update check"
( sleep 120 ; /PCBSD/Scripts/CheckUpdates.sh SILENT STARTUP ) &
drache
New Member
 
Posts: 7
Joined: Thu Mar 22, 2007 1:21 am

Postby dev » Fri Mar 23, 2007 2:52 am

drache wrote:
drache wrote:OK, thanks :D

I guess the install didn't detect my ich driver as it states in step 3 of the installation instructions for FreeBSD. I'll remove the OSS, uninstall the ich and then reinstall the OSS. Thank you again.


For PC-BSD users, 1.3+, there is a script in rc.local that needs to be commented out or it will load whatever card if finds. Here is how mine looks
Code: Select all
Custom rc.local file - PCBSD

# If no XF86Config file, try to create it
if [ ! -f /etc/X11/XF86Config ]; then
   echo "Creating XF86Config file..."
   /PCBSD/cardDetect/x_config.sh
fi

# Detect sound-card
#/PCBSD/cardDetect/sound_detect.sh

# Detect Drives
#echo "Detecting Disk Drives..."
/PCBSD/Scripts/startDetection.sh

# Enable Linux Procfs
kldload linprocfs
mount -t linprocfs linprocfs /usr/compat/linux/proc

# Start Online update check in 2 minutes
echo "Starting Online Update check"
( sleep 120 ; /PCBSD/Scripts/CheckUpdates.sh SILENT STARTUP ) &



Does ossmix work? I will check ossxmix on PCBSD. Did you install GTK+-2.0? You need the GTK 2 version - not 1.2.10


regards
Dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby drache » Fri Mar 23, 2007 5:35 pm

dev wrote:Does ossmix work? I will check ossxmix on PCBSD. Did you install GTK+-2.0? You need the GTK 2 version - not 1.2.10


regards
Dev


gtk-2.10.11 = up-to-date with port
gtk-engines2-2.10.0 = up-to-date with port


Not yet but then I'm in the middle of major recompile because of gettext problems explained in the current /etc/ports/UPDATING.

Once it is finished I'll post back. One thing I did notice is that sound doesn't work in games and more....cube, sauerbratten, nexuiz, actioncube. but they are reinstalling so it will be a while ;-)

And no, as of this morning, ossxmix would not run and gave the same error.
drache
New Member
 
Posts: 7
Joined: Thu Mar 22, 2007 1:21 am

Postby drache » Sat Mar 24, 2007 11:49 pm

OK, I'm back...all things are now new. I've compiled the latest ports for 2 days and every thing is up to date.

None of the games have sound. cube_client (and sauerbratten and acioncube) will give the error
Code: Select all
sound init failed (SDL_mixer): Couldn't set audio blocking mode

and then proceed to load and play fine without sound.

No errors occur in installing or deleting oss-freebsd-v4.0-1001-i386.tbz using pkg_add or pkg_delete. Once installed, every option works at the command line except ossxmix which again, gives the following error
Code: Select all
ossxmix
Mutex init failure: Invalid argument
Gtk-Qt theme engine warning:
  Could not open /proc/3298/cmdline
  This may cause problems for the GNOME window manager
Mutex init failure: Invalid argument
Mutex init failure: Invalid argument
Segmentation fault


This is on PC/FreeBSD 6.1 p11 as uname -a returns
Code: Select all
FreeBSD thisPOS
6.1-RELEASE-p11 FreeBSD 6.1-RELEASE-p11 #5: Wed Dec 20 18:29:42 PST 2006     root@PCBSD.localhost:/usr/obj/usr/src/sys/PCBSDv1.3-SMP  i386


I've since uninstalled and reinstalled sound.ko and snd_ich.ko so I can game with sounds.

I'm willing to try anything at all that you might suggest and let you know the outcome.

Thank you.
drache
New Member
 
Posts: 7
Joined: Thu Mar 22, 2007 1:21 am


Return to BSD

Who is online

Users browsing this forum: No registered users and 1 guest

cron