 |
 |
 |
 |
| Hardware & Laptops Help with your hardware, including laptop issues |

29th May 2007, 07:53 AM
|
|
Registered User
|
|
Join Date: May 2007
Posts: 217

|
|
|
How can I set the volumn of soundcard
I can use amixer to set the volumn to each soundcard. But how can I know which soundcard is for record or which one is for play?
|

29th May 2007, 09:11 AM
|
 |
Registered User
|
|
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637

|
|
I suppose, you can set that using kmix...
__________________
The software required «Windows 98 or better», so I installed Linux.
|

29th May 2007, 09:13 AM
|
|
Registered User
|
|
Join Date: May 2007
Posts: 217

|
|
|
But I don't have kmix command in my system.
|

29th May 2007, 09:16 AM
|
 |
Registered User
|
|
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637

|
|
well, I would install it, very nice tool... 
as root:
Code:
yum -y install kmix
__________________
The software required «Windows 98 or better», so I installed Linux.
|

29th May 2007, 09:17 AM
|
|
Registered User
|
|
Join Date: May 2007
Posts: 217

|
|
|
But I don't want to install any other tools. Can I use the basic linux command to do that?
|

29th May 2007, 09:32 AM
|
 |
Registered User
|
|
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637

|
|
ok! 
then try at the prompt:
Code:
alsamixer -c 0
alsamixer -c 1
0 and 1 is the card number or identification.. that way you must be able to set you cards as you want!
__________________
The software required «Windows 98 or better», so I installed Linux.
|

29th May 2007, 09:44 AM
|
|
Registered User
|
|
Join Date: May 2007
Posts: 217

|
|
|
But this command will show an UI. I want to get a return string by executing a command to identify each device.
|

29th May 2007, 03:09 PM
|
 |
Registered User
|
|
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637

|
|
I never did that before but in your case I would use amixer, e.g.
Code:
amixer -c 1 set PCM 2dB+
amixer -c 2 unmute cap
or something like that...
__________________
The software required «Windows 98 or better», so I installed Linux.
|

30th May 2007, 02:05 AM
|
|
Registered User
|
|
Join Date: May 2007
Posts: 217

|
|
|
What does 2dB+ mean?
But how can I know PCM is volume soundcard?
|

30th May 2007, 08:33 AM
|
 |
Registered User
|
|
Join Date: Dec 2005
Location: EU
Age: 36
Posts: 637

|
|
sorry, but I said, I never did it that way, so I would recommend to read the manual for amixer.
__________________
The software required «Windows 98 or better», so I installed Linux.
|

31st May 2007, 12:17 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 35

|
|
|
You should specify which version of Fedora you're using, on mine, Fedora Core 6, I have a tool called:
system-config-soundcard
that allows you to see any and all soundcards installed. It also is available from the Fedora start menu under:
System -> Administration -> Soundcard detection.
you can also use the terminal application to run the program
alsamixer
and it should remember the volume settings. You need to know which one is which though, but you could test and see, if you have two cards, as someone mentioned you need to use
alsamixer -c 1
or
alsamixer -c 0
for each card. The UI tool should help you sort this out though.
~Phil
|

31st May 2007, 01:46 AM
|
|
Registered User
|
|
Join Date: May 2007
Posts: 217

|
|
|
I use Fedora 3, 6.2.9.
Must I test and see each volume setting to know each setting function? I am writing a program to control the volume, so I need to know this by running a command which can be run in the program without any human interfere.
And alsamixer is also UI command. It is for human to read, not for a program to know.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 02:26 (Saturday, 25-05-2013)
|
|
 |
 |
 |
 |
|
|