Re: [SHR unstable] Openmoko headset

2009-02-15 Thread Dylan Reilly
Yes, FSO and SHR both use frameworkd where headset switching is
automatic. There are rules in /etc/freesmartphone/oevents/rules.yaml
to handle this. You will see an event that calls something like the
aforementioned amixer sset 'DAPM Handset Spk' mute
. That will only toggle on and off the external speaker amp. You will
also see some other rules in there (e.g., when a phone call arrives)
that load audio scenarios. If one wished, he/she could follow those
examples and tailor the audio levels for the headset plug-in event as
well.

On Sat, Feb 14, 2009 at 1:54 PM, Johny Tenfinger seba.d...@gmail.com wrote:
 On Fri, Feb 13, 2009 at 15:09, Al Johnson openm...@mazikeen.demon.co.uk 
 wrote:
 Currently this doesn't seem to be automatic in any of the distros.

 It's automatic (or should be) on FSO-based distros.

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community




-- 
Dylan Maxwell Reilly

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR unstable] Openmoko headset

2009-02-14 Thread Johny Tenfinger
On Fri, Feb 13, 2009 at 15:09, Al Johnson openm...@mazikeen.demon.co.uk wrote:
 Currently this doesn't seem to be automatic in any of the distros.

It's automatic (or should be) on FSO-based distros.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


[SHR unstable] Openmoko headset

2009-02-13 Thread Tony Berth
Dear List,

how can I avoid to have the Openmoko headset AND the speaker working at the
same time? Where I plug-in the headset, people around me can listen to the
conversation from the speaker!

Also, how can I increase the volume in the headset cause the default one is
very low! You can hardly understand the person you are calling.

Thanks

Tony
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR unstable] Openmoko headset

2009-02-13 Thread kimaidou
I tried it too, and there was a HUGE buuz on the other side (I left a
message in my voice box). How can we check that
 the micro of the headset is used instead of the freerunner one ? Here are
the values of the gsmheadset.state this way :

- Control 48: microphone of the fr --0

- Control 4 : freerunner speaker --0

- Control 49: headset micro -- 3

- Control 3 : headset speaker -- 90



2009/2/13 Tony Berth tonybe...@googlemail.com

 Dear List,

 how can I avoid to have the Openmoko headset AND the speaker working at the
 same time? Where I plug-in the headset, people around me can listen to the
 conversation from the speaker!

 Also, how can I increase the volume in the headset cause the default one is
 very low! You can hardly understand the person you are calling.

 Thanks

 Tony

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR unstable] Openmoko headset

2009-02-13 Thread Al Johnson
On Friday 13 February 2009, Tony Berth wrote:
 Dear List,

 how can I avoid to have the Openmoko headset AND the speaker working at the
 same time? Where I plug-in the headset, people around me can listen to the
 conversation from the speaker!

 Also, how can I increase the volume in the headset cause the default one is
 very low! You can hardly understand the person you are calling.

Currently this doesn't seem to be automatic in any of the distros.

The generic answer is to activate gsmheadset.state, and adjust the volume 
settings in it to match your preference. The correct way to do this will vary 
depending on which distro you are using. The most generic is to use alsactl:

alsactl -f /usr/share/openmoko/scenarios/gsmheadset.state restore

FSO has a dbus interface for this, and a rules engine that may be able to 
handle the switching if the phone app doesn't. The dbus call can be made from 
the command line:

mdbus -s org.freesmartphone.odeviced /org/freesmartphone/Device/Audio 
org.freesmartphone.Device.Audio.PushScenario gsmheadset

Another option may be pymixer - see link at end of [1]

In either case you will need to run this after the start of the call as the 
phone app is likely to load gsmhandset.state when you pick up the call.

[1] http://wiki.openmoko.org/wiki/Neo_Freerunner_audio_subsystem

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR unstable] Openmoko headset

2009-02-13 Thread kimaidou
thank you very much for this explanation. Il will try it and report here

2009/2/13 Al Johnson openm...@mazikeen.demon.co.uk

 On Friday 13 February 2009, Tony Berth wrote:
  Dear List,
 
  how can I avoid to have the Openmoko headset AND the speaker working at
 the
  same time? Where I plug-in the headset, people around me can listen to
 the
  conversation from the speaker!
 
  Also, how can I increase the volume in the headset cause the default one
 is
  very low! You can hardly understand the person you are calling.

 Currently this doesn't seem to be automatic in any of the distros.

 The generic answer is to activate gsmheadset.state, and adjust the volume
 settings in it to match your preference. The correct way to do this will
 vary
 depending on which distro you are using. The most generic is to use
 alsactl:

 alsactl -f /usr/share/openmoko/scenarios/gsmheadset.state restore

 FSO has a dbus interface for this, and a rules engine that may be able to
 handle the switching if the phone app doesn't. The dbus call can be made
 from
 the command line:

 mdbus -s org.freesmartphone.odeviced /org/freesmartphone/Device/Audio
 org.freesmartphone.Device.Audio.PushScenario gsmheadset

 Another option may be pymixer - see link at end of [1]

 In either case you will need to run this after the start of the call as the
 phone app is likely to load gsmhandset.state when you pick up the call.

 [1] http://wiki.openmoko.org/wiki/Neo_Freerunner_audio_subsystem

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [SHR unstable] Openmoko headset

2009-02-13 Thread Rask Ingemann Lambertsen
On Fri, Feb 13, 2009 at 12:55:07PM +0100, Tony Berth wrote:
 Dear List,
 
 how can I avoid to have the Openmoko headset AND the speaker working at the
 same time? Where I plug-in the headset, people around me can listen to the
 conversation from the speaker!

$ amixer sset 'DAPM Handset Spk' mute

or perhaps better

$ /usr/sbin/alsactl restore -f /usr/share/openmoko/scenarios/gsmheadset.state

   But assuming you want this to be handled automatically, the file you're
after is /etc/freesmartphone/oevents/rules.yaml. Is there any documentation
for this file?

 Also, how can I increase the volume in the headset cause the default one is
 very low! You can hardly understand the person you are calling.

   Hopefully it is enough to adjust control 3 Headphone Playback Volume
and control 6 Bypass Playback Volume in the gsmheadset.state file.

-- 
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community