Reply
Thread Tools
Posts: 5 | Thanked: 27 times | Joined on Aug 2011
#21
Originally Posted by shuraizo View Post
Is there anyway to turn it on and off using part of your code?
I'm trying to figure out if this is a hardware or software problem...
You can test it with it:

Code:
# Left speaker On, Right speaker Off
amixer -D hw:0 set PCM 100%,0

# Left speaker Off, Right speaker On
amixer -D hw:0 set PCM 0%,100%
Also you can run alsamixer -c0 and change volume on 'PCM' for each speaker independent with shortcuts:
Q,Z - left speaker volume
W,X - both volume (same as arrows keypad)
E,C - right speaker volume
 

The Following User Says Thank You to SABROG For This Useful Post:
Posts: 136 | Thanked: 14 times | Joined on Feb 2011
#22
Originally Posted by SABROG View Post
You can test it with it:

Code:
# Left speaker On, Right speaker Off
amixer -D hw:0 set PCM 100%,0

# Left speaker Off, Right speaker On
amixer -D hw:0 set PCM 0%,100%
Also you can run alsamixer -c0 and change volume on 'PCM' for each speaker independent with shortcuts:
Q,Z - left speaker volume
W,X - both volume (same as arrows keypad)
E,C - right speaker volume
Thanks,
just as i thought, when i use

amixer -D hw:0 set PCM 0%,100%

And play a song, no sound is coming out at all..
Using the of first code there's sound coming from the left speaker
I guess this is s a hardware issue?
 
Posts: 5 | Thanked: 27 times | Joined on Aug 2011
#23
Originally Posted by shuraizo View Post
I guess this is s a hardware issue?
Yes, i guess. All mixer settings resetting when reboot device, so if no sound from right speaker after reboot i think is it hardware problem.
 

The Following User Says Thank You to SABROG For This Useful Post:
Posts: 51 | Thanked: 32 times | Joined on Dec 2010
#24
i bought new cabel and still donīt work. when i play someting normaly on N900 everithing work just fine but when i try play from PC (I tried 2 PC and a mobile phone) it plays only form one speaker (left speaker) I also try amixer -D hw:0 set PCM 0%,100% and no sound at all. So what's wrong?
 
Posts: 5 | Thanked: 27 times | Joined on Aug 2011
#25
Originally Posted by P4d0uch View Post
i bought new cabel and still donīt work. when i play someting normaly on N900 everithing work just fine but when i try play from PC (I tried 2 PC and a mobile phone) it plays only form one speaker (left speaker) I also try amixer -D hw:0 set PCM 0%,100% and no sound at all. So what's wrong?
try to pull out the plug a little
 
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#26
I reckon this uses the mic in and outputs to both speakers, so that is why the jack has to be partially pluged (so that the mic in of N900 touches both audio outs of the stereo cable) Is there a way to make the N900 have stereo in? (switch the audio out contacts to audio in ones - can be done on some laptops) apart from the nokia n-gage I still can't find a device that can record in stereo.
 
Posts: 291 | Thanked: 435 times | Joined on Apr 2011 @ RO
#27
Originally Posted by SABROG View Post
At work i don't have speakers on my desktop, but i have headphone out. So i found two out Jack Plug


and connect it to headphone port in n900 and soundcard on desktop pc. But don't plug it on full size in n900, and disconnect USB cable (electrical interference). Then just run this script:

Speaker ON
Code:
#!/bin/sh
amixer -c0 set PCM 100%
amixer -c0 set 'Right PGA Bypass Mixer HP Switc' on
amixer -c0 set 'Left PGA Bypass Mixer HP' on
amixer -c0 set 'Left PGA Mixer Line1L' on
amixer -c0 set 'Left PGA Mixer Line2L' on
amixer -c0 set 'HP PGA Bypass' 100%
amixer -c0 set 'Speaker Function' On
echo "Speaker is ON"
Speaker OFF

Code:
#!/bin/sh
amixer -c0 set PCM 100%
amixer -c0 set 'Right PGA Bypass Mixer HP Switc' off
amixer -c0 set 'Left PGA Bypass Mixer HP' off
amixer -c0 set 'Left PGA Mixer Line1L' off
amixer -c0 set 'Left PGA Mixer Line2L' off
amixer -c0 set 'HP PGA Bypass' 0%
echo "Speaker is OFF"
I think is better solution to buy 2 cheap speakers.
 
Posts: 110 | Thanked: 127 times | Joined on May 2010
#28
Yeah, because the N900 only has a mono audio input on its headphone port.

Enjoyed/appreciated the amixer commands, but you can't overcome hardware. The number of phones/PDAs with builtin stereo recording on its input jack are vanishingly small.
 
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#29
Originally Posted by wumpwoast View Post
Yeah, because the N900 only has a mono audio input on its headphone port.
That is interesting.
Is the FM transmitter stereo?

Edit:
I read too fast & missed that you were referring to the input only.

For anyone who wants to check, here is an .mp3 with a low tone in the left channel for 5 seconds, then a higher tone in the right channel for 5 seconds, then 10 seconds of the separated tones simultaneously.

It's on Sendspace, since Maemo.org is probably keeping out of trouble by not allowing .mp3's as attachments.

http://www.sendspace.com/file/ng0uz5

Last edited by rotoflex; 2011-08-07 at 04:13.
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:54.