want to hear youtube freeBSD

my youtube is now working visually, but there is no sound.

kv_bsd# uname -a
FreeBSD kv_bsd 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
kv_bsd#

i followed these instructions:

install www/firefox      
install print/acroread7      
install java/diablo-jdk15
install www/linux-flashplugin7      
kldload linux
echo "none            /compat/linux/proc      linprocfs       rw      0      
0" >> /etc/fstab
mount -a
echo "linux_enable=\"YES\"" >> /etc/rc.conf                      
nspluginwrapper -v -a -i


now i found a webpage:

http://www.erata.net/weblog/freebsd/2006/10/16/flash-plugin-on-freebsd/

and was doing those instructions when something funny happened:
kv_bsd# cd /usr/src
kv_bsd# patch -p0 < rtld_dlsym_hack.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- libexec/rtld-elf/rtld.c.orig       Fri Sep 24 08:04:52 2004
|+++ libexec/rtld-elf/rtld.c    Sun Oct 17 03:37:44 2004
--------------------------
File to patch:


not sure what to tell it about what File to patch
kayveyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kayveyAuthor Commented:
You have mail.
kv_bsd# cd /usr/src
kv_bsd# patch -p0 < rtld_dlsym_hack.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- libexec/rtld-elf/rtld.c.orig       Fri Sep 24 08:04:52 2004
|+++ libexec/rtld-elf/rtld.c    Sun Oct 17 03:37:44 2004
--------------------------
File to patch: +
No file found--skip this patch? [n]
File to patch: +++
No file found--skip this patch? [n]
File to patch: libexec/rtld-elf/rtld.c
No file found--skip this patch? [n] y
Skipping patch...
Hunk #1 ignored at 129.
Hunk #2 ignored at 178.
Hunk #3 ignored at 1738.
3 out of 3 hunks ignored--saving rejects to libexec/rtld-elf/rtld.c.rej
Can't create libexec/rtld-elf/rtld.c.rej, output is in /tmp//patchr61NAyV: No such file or directory
done
kv_bsd#
0
gheistCommented:
Is there any sound at all? Like KDE bell?

0
kayveyAuthor Commented:
yes
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

kayveyAuthor Commented:
remember, we tested my sound hardware a long time ago, it all works perfectly. i can use command
line to listen to natalie merchant.
0
gheistCommented:
Please post output of kldstat, so I know what your sound module is and make up parameters for it.
Do you run Gnome Or KDE? They take over sound hardware. We have two choices - make them silent and release sound hardware, or allow kernel to mix multiple attachments to sound card.
0
kayveyAuthor Commented:
kv_bsd# kldstat
Id Refs Address    Size     Name
 1   12 0xc0400000 6f6544   kernel
 2    1 0xc0af7000 5fa0     snd_ich.ko
 3    2 0xc0afd000 22b88    sound.ko
 4    1 0xc0b20000 59f20    acpi.ko
 5    1 0xc4f4c000 6000     linprocfs.ko
 6    1 0xc4f52000 16000    linux.ko
kv_bsd#


gnome
0
gheistCommented:
I see your kernel is able to play sound, including from linux emulation. We will be making this ability into reality.
Do you run KDE or GNOME or neither? Do you get sound out of one you use?
0
kayveyAuthor Commented:
i said gnome.  yes.
0
gheistCommented:
Prime up gnome terminal and inside it type either
esdwrapper firefox
or
esdwrapper linux-firefox
or
esdwrapper firefox-linux

i.e. the real firefox that has flash plugin working.

That will enable gnome's esd software to capture all sound playback requests and send it to soundcard it has locked.

Do you hear sound when firefox is launched this way?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kayveyAuthor Commented:
i can't find any such thing "esdwrapper"


kv_bsd# find / -name esdwrapper
kv_bsd#
0
gheistCommented:
Ooops - Gnomes audio wrapper is called esddsp - not esdwrapper.
Use esddsp to launch firefox
0
kayveyAuthor Commented:
hey!  i think that works!  heaven666.org works now!  is it possible to put this
in startup so i don't have to remember esddsp ?
0
gheistCommented:
It is impossible to put this in startup. You have to alter every shortcut starting silent application. Skype and Opera+Flash comes in mind.

Now let us try kernel virtual sound devices. If it works this way then adding at startup will be easy as pie.

As root: sysctl -w hw.pcm.snd0.vchans=4
As user - run firefox without esddsp

Do you hear?

If yes:
Make change permanent:
echo hw.pcm.snd0.vchans=4 >> /etc/sysctl.conf

There was a bug in at least 5.x when one closed down linux app while it plays sound it wasted kernel audio virtual channel. If you encounter this bug still take care to report to bugs list. (i.e if firefox again becomes silent after couple of launches and only esddsp is able to continue to play if you got lucky)

0
kayveyAuthor Commented:
something is wrong with vchans

kv_bsd# sysctl -w hw.pcm.snd0.vchans=4
sysctl: unknown oid 'hw.pcm.snd0.vchans'
kv_bsd# sysctl -w hw.pcm.snd0.vchan=4
sysctl: unknown oid 'hw.pcm.snd0.vchan'
kv_bsd#

in order to follow your instructions, i just created a user.  i have just been logging on as root all the
time up until now.

Lock out the account after creation? [no]:
Username   : kayve
Password   : *****
Full Name  : Kayven Riese
Uid        : 1001
Class      :
Groups     : wheel
Home       : /usr/home/kayve
Shell      : /usr/local/bin/bash
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (kayve) to the user database.
Add another user? (yes/no): no
Goodbye!
kv_bsd# su kayve
[kayve@kv_bsd /home/kayve/public_html]$ firefox
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(firefox-bin:2035): Gtk-WARNING **: cannot open display:  
[kayve@kv_bsd /home/kayve/public_html]$


that's weird.
0
kayveyAuthor Commented:
maybe it is because when i start up, gnome gives me login immediately.  i am in root window now.
0
gheistCommented:
X11 does not work over 'su'

Please post outputs of sysctl hw.pcm and sysctl dev.pcm and sysctl dev.pcm0
I do not have 6.2 at hand so I am guessing all out of RELENG_7
0
gheistCommented:
Running graphics as root is unsafe - one hack from bad website may backdoor or destroy your operating system.
0
gheistCommented:
"root window" is X11 window covering whole desktop. Did you mean that?
0
kayveyAuthor Commented:
one says "mplayer plugin stopped"

maybe i should learn to cvsup now  {:}  i will ask another question for that later.. for now

kv_bsd# dmesg | psm
psm: Command not found.
kv_bsd# sysctl hw.pcm
sysctl: unknown oid 'hw.pcm'
kv_bsd# sysctl dev.pcm
dev.pcm.0.%desc: Intel ICH4 (82801DB)
dev.pcm.0.%driver: pcm
dev.pcm.0.%location: slot=31 function=5 handle=\_SB_.PCI0.AUDI
dev.pcm.0.%pnpinfo: vendor=0x8086 device=0x24c5 subvendor=0x1043 subdevice=0x1713 class=0x040100
dev.pcm.0.%parent: pci0
kv_bsd# ssyctl dev.pcm0
ssyctl: Command not found.
kv_bsd# sysctl dev.pcm0
sysctl: unknown oid 'dev.pcm0'
kv_bsd#
0
kayveyAuthor Commented:
btw, i booted up again now i am using user kayve.  i haven't found any problems except mplayer
0
gheistCommented:
Lets use cannon to shoot the fly:
sysctl -a | egrep 'pcm.0|pcm0|vchan'
And post what is shown, i will post stsctl addition required

For mplayer - use console to run it. It displays lots of diagnostics and hints. As this is irrelevant to initial subject take this answer for side question as final and do a less-than-500pts question giving exactly what you need in subject and question and do not let anyone including you move away from initial subject. Thank you for understanding.
0
gheistCommented:
Since we have not yet enabled multiple audio virtual channels it is expected that 2nd application stays silent.
0
kayveyAuthor Commented:
%sysctl -a | egrep 'pcm.0|pcm0|vchan'
hw.snd.maxautovchans: 0
hw.snd.pcm0.buffersize: 16384
hw.snd.pcm0.vchans: 0
hw.snd.pcm0.ac97rate: 48000
dev.pcm.0.%desc: Intel ICH4 (82801DB)
dev.pcm.0.%driver: pcm
dev.pcm.0.%location: slot=31 function=5 handle=\_SB_.PCI0.AUDI
dev.pcm.0.%pnpinfo: vendor=0x8086 device=0x24c5 subvendor=0x1043 subdevice=0x1713 class=0x040100
dev.pcm.0.%parent: pci0
%
0
kayveyAuthor Commented:
ummm.. are we done?  do i give you points now?
0
gheistCommented:
hw.snd.maxautovchans=4
hw.snd.pcm0.vchans=4
into /etc/sysctl.conf
That should enable mplayer and flash alongside esd
0
kayveyAuthor Commented:
kv_bsd#cat /etc/sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
hw.snd.maxautovchans=4
hw.snd.pcm0.vchans=4
kv_bsd#
0
kayveyAuthor Commented:
i don't see errors.  should i give you points?

but my terminal sees errors

ERROR: ld.so: object '/usr/local/lib/libesd.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/local/lib/libesddsp.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/local/lib/libesd.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/local/lib/libesddsp.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/local/lib/libesd.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/local/lib/libesddsp.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/local/lib/libesd.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/local/lib/libesddsp.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/local/lib/libesd.so' from LD_PRELOAD cannot be preloaded: ignored.
0
gheistCommented:
Terminal you launch firefox? I doubt.
Some program is linked against different esd version. portupgrade -R that program.
0
gheistCommented:
Sound is working no further discussion, please.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.