← Back to team overview

desktop-packages team mailing list archive

[Bug 1364647] Re: Can't hear clock alarm when headphones are plugged in but not in your ears

 

We can fix this in the network indicator to have it query the current
audio device and add the internal speaker if it is not current. This
should allow us to play the alarm tone on both. per diwic

1) pa_context_get_server_info and then pa_server_info->default_sink_name gives you the sink
2) then call pa_context_get_sink_info_by_name for that sink and see if pa_sink_info->active_port is set
3) if so use active_port->name (and active_port->description for a human-readable name)  
4) if not, just use sink->name and sink->description

change active port to  "output-speaker" for the card named
"droid_card.primary" Or to both if possible, there is also a "output-
speaker+wired_headphone" port

There is existing code that is similar for the dialer to set the port
and a QML wrapper

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/1364647

Title:
  Can't hear clock alarm when headphones are plugged in but not in your
  ears

Status in Canonical System Image:
  New
Status in Ubuntu Clock App:
  Invalid
Status in Ubuntu UX:
  Triaged
Status in indicator-datetime package in Ubuntu:
  Confirmed
Status in pulseaudio package in Ubuntu:
  Confirmed

Bug description:
  When a bluetooth or wired headset the phone embedded speakerphone
  should ring anyway as you probably won't wear an headset while
  sleeping, while you prefer keeping your headset connected all the
  times.

  -- SOLUTION --
  Alarms should *always* be played to the speaker phones, as well as in the wired/wireless headset.

  (The equivalent for the ringtone is bug 1364647.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1364647/+subscriptions