← Back to team overview

desktop-packages team mailing list archive

[Bug 1397142] Re: Sony SRS-BTM8 play/pause key not fully effective in Rhythmbox or Banshee

 

I think I have the same problem with Sony SBH20, Ubuntu 15.04, kernel
4.0.4

Device is paired and bluetooth buttons detectable in "System Setings" ->
"Keyboard" -> "Shortcuts" -> "Sound and Media"

* Previous Track detected as "Audio previous" and working as expected in all apps
* Next track detectable as "Audio next"   and working as expected in all apps

* Play (or play/pause) detectable as "Audio play", but does not stop
resume playback in all apps

Working apps:
1. Totem Movie Player
2. Spotify, but only if you click twice

Not working apps:
1. Pithos (pandora app for linux)
2. Chrome or FireFox (this is maybe app specific problem)
3. Rhythmbox


I would like to add that all apps (except chrome and firefox) are working with the keyboard pause/resume media key.
Question: who knows the flow of key events, please suggest how to debug this problem?


Here is output from "xev" for bluetooth pause/resume key

KeyPress event, serial 47, synthetic NO, window 0x5000001,
    root 0xaf, subw 0x0, time 73921661, (212,2196), root:(1500,2856),
    state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x5000001,
    root 0xaf, subw 0x0, time 73921858, (212,2196), root:(1500,2856),
    state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 48, synthetic NO, window 0x5000001,
    root 0xaf, subw 0x0, time 73928594, (212,2196), root:(1500,2856),
    state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XKeysymToKeycode returns keycode: 172
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x5000001,
    root 0xaf, subw 0x0, time 73928618, (212,2196), root:(1500,2856),
    state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XKeysymToKeycode returns keycode: 172
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 48, synthetic NO, window 0x5000001,
    root 0xaf, subw 0x0, time 73965210, (212,2196), root:(1500,2856),
    state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x5000001,
    root 0xaf, subw 0x0, time 73965728, (212,2196), root:(1500,2856),
    state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 48, synthetic NO, window 0x5000001,
    root 0xaf, subw 0x0, time 73971740, (212,2196), root:(1500,2856),
    state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XKeysymToKeycode returns keycode: 172
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x5000001,
    root 0xaf, subw 0x0, time 73971763, (212,2196), root:(1500,2856),
    state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XKeysymToKeycode returns keycode: 172
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False





Here is output from "xev" for keyboard pause/resume key:

FocusOut event, serial 37, synthetic NO, window 0x5a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 37, synthetic NO, window 0x5a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   16  0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 37, synthetic NO, window 0x5a00001,
    root 0xaf, subw 0x0, time 75455595, (570,1286), root:(1912,2523),
    state 0x0, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 37, synthetic NO, window 0x5a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 37, synthetic NO, window 0x5a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   16  0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 37, synthetic NO, window 0x5a00001,
    root 0xaf, subw 0x0, time 75474244, (570,1286), root:(1912,2523),
    state 0x0, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 37, synthetic NO, window 0x5a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 37, synthetic NO, window 0x5a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   16  0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 37, synthetic NO, window 0x5a00001,
    root 0xaf, subw 0x0, time 75495964, (570,1286), root:(1912,2523),
    state 0x0, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 37, synthetic NO, window 0x5a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 37, synthetic NO, window 0x5a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 37, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   16  0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 37, synthetic NO, window 0x5a00001,
    root 0xaf, subw 0x0, time 75497224, (570,1286), root:(1912,2523),
    state 0x0, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

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

Title:
  Sony SRS-BTM8 play/pause key not fully effective in Rhythmbox or
  Banshee

Status in unity-settings-daemon package in Ubuntu:
  Confirmed

Bug description:
  I have a Sony SRS-BTM8 Bluetooth speaker, and its audio side works
  fairly well with Ubuntu.  It also has a play/pause button and that
  doesn't work so well.  I think the problem lies in unity-settings-
  daemon.

  To demonstrate that the Bluetooth side is working, if I switch to a
  text console and run "evtest /dev/input/event9", then when pressing
  the button I get events for KEY_PLAYCD if the speaker is not playing
  anything, and alternating KEY_PAUSECD and KEY_PLAYCD if it is playing
  something.

  However, within the Unity desktop I find that if I'm running Banshee
  or Rhythmbox then pressing the button successfully pauses the music,
  but doesn't start it playing again.  If I run "xev" and give it the
  keyboard focus while testing this (so xev sees all ungrabbed
  keystrokes) then it sees only a KeyRelease event for XF86AudioPause,
  but both KeyPress and KeyRelease events for XF86AudioPlay.  I've
  attached the full output from xev.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: unity-settings-daemon 14.04.0+14.04.20140606-0ubuntu1
  ProcVersionSignature: Ubuntu 3.16.0-25.33~14.04.2-generic 3.16.7
  Uname: Linux 3.16.0-25-generic i686
  ApportVersion: 2.14.1-0ubuntu3.5
  Architecture: i386
  CurrentDesktop: Unity
  Date: Thu Nov 27 23:43:01 2014
  DistributionChannelDescriptor:
   # This is a distribution channel descriptor
   # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-motts-20100121-3
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2010-06-09 (1632 days ago)
  InstallationMedia: Ubuntu GNU/Linux 9.10 "Karmic" - Build i386 LIVE Binary 20100121-21:52
  SourcePackage: unity-settings-daemon
  UpgradeStatus: Upgraded to trusty on 2014-08-15 (104 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1397142/+subscriptions


References