DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default macmini audio

Hello everybody,
I'm running openbsd 4.3 on a macmini ppc, and I'm getting better and better with unix and openbsd thanks to all of you.
One of the issues I still haven't resolved with this macmini is audio control.
I have audio, but cannot control its volume. Luckily my loudspeakers are powered, so I can do it from there.
But it would be nice to be able to control volume through the softwares I'm using.
Any idea?
Reply With Quote
  #2   (View Single Post)  
Old 11th January 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by gosha View Post
But it would be nice to be able to control volume through the softwares I'm using.
You haven't stated what software you are using, so it is difficult to say what can/should be done at the application level, but fundamentally, volume control is defined by what is exposed by the driver. Section 13.1 of the FAQ will have more information of what can be done there:

http://openbsd.org/faq/faq13.html#confaudio

Note, however, that the developers writing drivers are at continuing odds with the seemingly nonstandard way in which various manufacturers do or do not expose controls which can be seen in recent misc@ discussion:

http://marc.info/?l=openbsd-misc&w=2&r=1&s=audio&q=b

In short, the answer depends upon what chip is used on your system. Poke about what features are exposed, but in the end, you may or may not have adequate control.
Reply With Quote
  #3   (View Single Post)  
Old 11th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

hello ocicat,
of course I'v tried what stated in the faq, but with no luck.
With any player I used it does not work (xmms, vlc, mplayer, xine, ogle, cdio, aucat...).
This is why I don't know what to do.
Reply With Quote
  #4   (View Single Post)  
Old 11th January 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

This was committed recently, not a software approach.. but perhaps related.

http://marc.info/?l=openbsd-cvs&m=123161063532146&w=2

Also, have you tried controlling the volume via mixerctl(8)? that's the preferred method.. and you can set a sane default in /etc/mixerctl.conf.

Good luck.
Reply With Quote
  #5   (View Single Post)  
Old 12th January 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by gosha View Post
of course I'v tried what stated in the faq, but with no luck.
What may not be clear from the Section 13.1 is that the output of mixerctl(1) can be saved as /etc/mixerctl.conf (mixerctl.conf(5)) such that the default settings of mixerctl can be modified & modified permanently. Locate what parameters are exposed, & alter them. If this gives the results you want, great. If not, as was noted earlier, sound can be problematic.
Reply With Quote
  #6   (View Single Post)  
Old 12th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

I remember I did try many different mixerctl settings but did not work.
Now, bsdfan666, here's my stupid question: how do I install the modified files stated in the link? That would be a good option if it works.
tks
Reply With Quote
  #7   (View Single Post)  
Old 12th January 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Quote:
Originally Posted by gosha View Post
I remember I did try many different mixerctl settings but did not work.
That is not very explanatory.. post the output of mixerctl here in [code][/code] blocks.

Quote:
Originally Posted by gosha View Post
Now, bsdfan666, here's my stupid question: how do I install the modified files stated in the link? That would be a good option if it works.
tks
Not stupid, just uninformed.. backporting those changes would not be supported, compiling -CURRENT or waiting for a snapshot that includes the changes would be the advisable point of action.
Reply With Quote
  #8   (View Single Post)  
Old 12th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

here's the mixerctl output, actually, if I try to modify it (for example: mixerctl outputs.master=200,200) it does not seem to accept changes, it goes back to 0:
Code:
# mixerctl outputs.master=200,200
outputs.master: 0,0 -> 0,0

Code:
$ mixerctl -a
outputs.select=headphones
outputs.master=0,0
record.source=
record.record=0,0
Reply With Quote
  #9   (View Single Post)  
Old 12th January 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by gosha View Post
here's the mixerctl output...
Code:
$ mixerctl -a
outputs.select=headphones
outputs.master=0,0
record.source=
record.record=0,0
If this is the entirety of what mixerctl(1) reports, this it does not appear that you have any control over the volume.
Quote:
if I try to modify it (for example: mixerctl outputs.master=200,200) it does not seem to accept changes, it goes back to 0:
Although it may be academic at this point, redirect the output of mixerctl(1) to /etc/mixerctl.conf, & modify the values in the .conf file followed by rebooting, but since nothing appears to be volume related, you may have to resign yourself to simply adjusting the volume at your speakers instead.

As stated before, many sound chips in use don't follow the standards recognized by OpenBSD's developers. Your system may have one of them.
Reply With Quote
Old 12th January 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I didn't notice that you were running 4.3; but if it's sticking at 0.. perhaps it was a bug? try upgrading to 4.4 or running -CURRENT.
Reply With Quote
Old 12th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

ok, thanks a lot
Reply With Quote
Old 12th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

Ok guys, sorry about wasting your time, I tried find by myself the audio driver in dmesg, checked the man page and, as you see here, it has no volume control, I checked the 4.4 man pages, and it is the same. At least we now all now what it's all about.

Code:
AOA(4)               OpenBSD Programmer's Manual (MacPPC)               AOA(4)

NAME
     aoa - Apple aoa audio device

SYNOPSIS
     aoa* at macobio?
     audio* at aoa?

DESCRIPTION
     The aoa driver provides support for the audio hardware found in some
     macppc machines.

HARDWARE
     Machines supported by the aoa driver include:

           -   PowerMac7,3
           -   PowerMac10,1
           -   PowerMac10,2

SEE ALSO
     audio(4), intro(4)

HISTORY
     The aoa driver first appeared in OpenBSD 3.9.

AUTHORS
     The aoa driver was written by Tsubai Masanari and ported to OpenBSD by
     Joris Vink.

BUGS
     This driver needs more testing.

     This manual page needs more precision and detail.

     Right now this driver does not support volume control.

OpenBSD 4.3                      May 31, 2007
Reply With Quote
Old 12th January 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Right, so.. your only option would be a software mixer, mplayer supports this via the -softvol argument.

Quote:
Originally Posted by mplayer
-softvol Force the use of the software mixer, instead of using the sound card mixer.

-softvol-max <10.0-10000.0> Set the maximum amplification level in percent (default: 110). A value of 200 will allow you to adjust the volume up to a maximum of double the current level. With values below 100 the initial volume (which is 100%) will be above the maximum, which e.g. the OSD cannot display correctly.
Hope it helps.
Reply With Quote
Old 13th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

it works, thank you!
What if I wanted to control sounds which are not mplayer related (e.g. beeps from pidgin etc)?
Reply With Quote
Old 13th January 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I don't know.. as I said, a sound mixer would do the trick.. AFAIK, pidgin directly manipulates the audio device unfortunately.

In 4.4-CURRENT, aucat(1) has turned into something quite similar to ESD/aRts/Jack, but it doesn't currently support emulated volume control.

Sorry..
Reply With Quote
Old 14th January 2009
gosha gosha is offline
Spam Deminer
 
Join Date: Jun 2008
Location: China
Posts: 256
Default

I can definitely live with this, thanks a lot
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
4.4 on macmini ppc xorg problem gosha OpenBSD Installation and Upgrading 27 14th February 2009 10:06 PM
Audio & Headphones JMJ_coder General Hardware 3 10th November 2008 05:21 PM
Linux: Pulse My Audio vermaden Off-Topic 5 8th October 2008 07:05 AM
Audio Chat for Solaris? whispersGhost Solaris 9 19th June 2008 12:09 AM
mplayer osd - set label of audio channel Grizzly FreeBSD General 0 7th June 2008 08:37 PM


All times are GMT. The time now is 02:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick