LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 08-31-2004, 05:28 PM   #1
Lurker01
Member
 
Registered: Aug 2004
Location: Brooklyn, NY
Posts: 133

Rep: Reputation: 15
Help me with Sound and Video.


I want to make sound work now. I have got everything going. I even got quicktime and flash to work in mozilla. But now without its kinda boring. How do I go about configuring my sound card. I read somewhere that a kernel recompile is not required in Fbsd and instead it can be loaded on startup.

I have no idea where to start.

Also, I have a ati radeon 9200 installed. Do I have to install drivers for it? I mean X looks awesome, but if I ever plan to emulate using Cedega I imagine ill need the drivers to use the full potential of the card.

What do I do with that?
 
Old 08-31-2004, 05:39 PM   #2
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
Re: Help me with Sound and Video.

Quote:
Originally posted by Lurker01
I want to make sound work now. I have got everything going. I even got quicktime and flash to work in mozilla. But now without its kinda boring. How do I go about configuring my sound card. I read somewhere that a kernel recompile is not required in Fbsd and instead it can be loaded on startup.

I have no idea where to start.

Also, I have a ati radeon 9200 installed. Do I have to install drivers for it? I mean X looks awesome, but if I ever plan to emulate using Cedega I imagine ill need the drivers to use the full potential of the card.

What do I do with that?
http://www.freebsd.org/doc/en_US.ISO...und-setup.html

If your card is onboard just recompile the kernel with 'device pcm' added in the kernel config.
 
Old 08-31-2004, 05:45 PM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
If you are using 5.2.1 then you can even skip the rebuild.

Become root and load the module that is important to your card. Heck, just load the pcm one and it should detect the rest and load them as needed.

# kldload snd_pcm

To add this at boot you just edit /boot/loader.conf and add the line:
snd_pcm_load="YES"

You can play around with this and load exactly the drivers you need... and no compiling... YAY!

EDIT: You could probably do this in 4.x but I never did so I can't speak from experience. Give it a try no matter which version you are using. The names might be a little different so you need to look for the compiled modules and check (you can leave the .ko off the name when loading it).

Last edited by frob23; 08-31-2004 at 07:35 PM.
 
Old 08-31-2004, 07:23 PM   #4
Lurker01
Member
 
Registered: Aug 2004
Location: Brooklyn, NY
Posts: 133

Original Poster
Rep: Reputation: 15
OH MAN THIS WAS SOOO SIMPLE. No kernel recompile required. Im actually scared of doing one so anything to avoid it.

I just went to /boot/defaults/loader.conf and looked in the sound section. I found my card which is an ICH4 card and changed the "NO" to "YES". That didnt work on reboot so I read the handbook again and changed the "YES" back to "NO" then I went into /boot/loader.conf and it was an empty file so to the first line I added what I found in the other one "snd_ich_load="YES" ". Restarted the computer and checkout the preview of ray with sound in quicktime.

AND IT WORKED, I AM SO HAPPY.

I just want to know how I can control the sound volume now.
 
Old 08-31-2004, 07:31 PM   #5
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Type mixer on the command line.

My window currently spits out:
Code:
Mixer vol      is currently set to  35:35
Mixer pcm      is currently set to  66:66
Mixer speaker  is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer mic      is currently set to   0:0
Mixer cd       is currently set to  75:75
Mixer rec      is currently set to   0:0
Mixer ogain    is currently set to  50:50
Mixer line1    is currently set to  75:75
Mixer phin     is currently set to   0:0
Mixer phout    is currently set to   0:0
Mixer video    is currently set to  75:75
If you want to change the volume to 23... just type:
mixer vol 23

And it will change it... you can type mixer again without arguments to see the change.

This is the simplest way if you are usually at a command line (I am). But you might want to check out xmix or xmixer in the ports. They give you a graphical window with slider bars. There are other ports that also give you a graphical interface or allow you to dock the controls in your bar.
 
Old 08-31-2004, 07:38 PM   #6
Lurker01
Member
 
Registered: Aug 2004
Location: Brooklyn, NY
Posts: 133

Original Poster
Rep: Reputation: 15
I havent yet played around with dock icons. I imagin it is similar to those found on mac OS X or YZ dock for windows.

---

Slight move in topic.

How do I install fbsetbg, I want to make my backgrounds stay but FluxBG is not designed for that.

Last edited by Lurker01; 08-31-2004 at 07:40 PM.
 
Old 08-31-2004, 07:49 PM   #7
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
I wish I could help you with the fluxbox thing... but I have never run it.

The docking apps are different depending on the windowmanager. I don't use them although I know windowmaker (my current wm) has them. It is pretty easy to play around with them. But once you set the volume most applications will let you control the sound from them (it defaults to pcm on my system ... the 66:66 above).

Also, aren't the modules great. I love how easy it is to add support sometimes. Modules are only a bad idea if you are going to run in a raised security level, when you absolutelly need the support, and you fear they might not be loaded at boot. (After you raise the security level you can't add modules). But for most everyday applications they are perfect and save tons of time.
 
Old 08-31-2004, 07:56 PM   #8
Lurker01
Member
 
Registered: Aug 2004
Location: Brooklyn, NY
Posts: 133

Original Poster
Rep: Reputation: 15
I have used Fbsd before but not to this extent and I havent played with it more then a week and had it installed for over a month and never did anything with it. It was just something cool to show your friends. But I gotta tell you, these passed 2 weeks that I spent trieing to get it going and now finally succeeding is incredible. It works beutifully, everything install perfectly. The modules are just awesome. Who ever thought one simple line adds support for sound. I gotta say I am very very impressed with how BSD works and how it in some cases I have noticed is actually better then windows.

If I could just get fbsetbg I will be set. College starts the 2nd and I want everything to be up.

Edit: but the absolute best thing about Fbsd is the crowd of people that help you get it going. I would have not been able to get it running and learn everything I did if it were not for the people at linuxquestions.org in the *BSD section. You guys dont know how greatful I am.

Last edited by Lurker01; 08-31-2004 at 07:57 PM.
 
Old 08-31-2004, 10:42 PM   #9
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
Compile the eterm port and use Esetroot i find it works much nicer than fsetbg.

cd /usr/ports/x11/eterm && make install clean
Esetroot -s /path/to/bg.jpg
 
Old 09-01-2004, 10:21 AM   #10
Lurker01
Member
 
Registered: Aug 2004
Location: Brooklyn, NY
Posts: 133

Original Poster
Rep: Reputation: 15
How do I make my background come back after I reboot. I tried placing that command into my .xinitrc but I may be placing it in the wrong spot and it didnt work.
 
Old 09-01-2004, 03:37 PM   #11
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
How do you start X?

With xdm or startx? xdm uses .xsession not .xinitrc.
 
Old 09-01-2004, 10:27 PM   #12
Lurker01
Member
 
Registered: Aug 2004
Location: Brooklyn, NY
Posts: 133

Original Poster
Rep: Reputation: 15
I startx with "startx" which utilizes .xinitrc.
 
Old 09-01-2004, 10:41 PM   #13
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
What are the contents of the file? It is possible that the command is running too early and fluxbox overwrites the background with its default. Also, if you run it afer fluxbox, it will never run... it is one of those messed up things.
 
Old 09-02-2004, 01:15 AM   #14
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
Quote:
Originally posted by frob23
What are the contents of the file? It is possible that the command is running too early and fluxbox overwrites the background with its default. Also, if you run it afer fluxbox, it will never run... it is one of those messed up things.
I am pretty sure it will run after fluxbox is done running.

vi ~/.fluxbox/init
look for 'session.screen0.rootCommand:'
change it to session.screen0.rootCommand: Esetroot -s /path/to/image.jpg
 
Old 09-02-2004, 01:27 AM   #15
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Well, technically you are correct... but my point is that from a user's perspective it will never run. It would not run until after the user was done. X quits as soon as the .xinitrc script finishes. So as soon as the background has changed X would terminate. On many systems (mine included) this is too fast to even see.

As a side note: I see you knew how to solve the original problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Problems: CD works, no system/mp3/video sound tabnaka SUSE / openSUSE 5 01-13-2006 12:33 PM
Mplayer: No Video, Has Sound.....* RemusX2 Linux - Software 5 06-05-2005 01:10 PM
Video without sound; sound without video - in Debian, KDE with SB Live headisdead Linux - Hardware 0 06-20-2004 07:43 AM
volume of video sound doralsoral Linux - Software 2 02-23-2004 06:35 AM
help with sound a video on mandrake 9.1 radiomouse17 Linux - Hardware 26 11-22-2003 06:46 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 10:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration