← Back to team overview

touch-packages team mailing list archive

[Bug 1351102] [NEW] No way to cancel a repeating VibratePattern call

 

Public bug reported:

Since VibratePattern calls can't be cancelled, clients that need to be
able to end a loop abruptly have to manage the loop on their own and
call VibratePattern with a repeat count of 1.

Use case: a wakeup alarm notification should be accompanied by haptic
feedback which should stop when the notification is dismissed.

Calling VibratePattern() with a count to repeat indefinitely would be
better for bus traffic, but is impossible because the repeating
vibration would continue after the user's dismissed the alarm.

** Affects: platform-api (Ubuntu)
     Importance: Low
         Status: New

** Affects: usensord (Ubuntu)
     Importance: Low
         Status: New

** Also affects: platform-api (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: platform-api (Ubuntu)
   Importance: Undecided => Low

** Description changed:

- There's currently no way to cancel a repeating VibratePattern calll, so
- clients that need to be able to end a loop abruptly have to manage the
- loop on their own and call VibratePattern with a repeat count of 1.
+ Since VibratePattern calls can't be cancelled, clients that need to be
+ able to end a loop abruptly have to manage the loop on their own and
+ call VibratePattern with a repeat count of 1.
  
- Use case: there should be haptic feedback when displaying a wakeup alarm
- to the user, but the vibrations should stop once the user dismisses the
- alarm. Calling VibratePattern() with a long repeat count would reduce
- bus traffic, but is impossible because the repeating vibration would
- continue even after the user dismissed the alarm.
+ Use case: a wakeup alarm notification should be accompanied by haptic
+ feedback which should stop when the notification is dismissed.
+ 
+ Calling VibratePattern() with a count to repeat indefinitely would be
+ better for bus traffic, but is impossible because the repeating
+ vibration would continue after the user's dismissed the alarm.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to usensord in Ubuntu.
https://bugs.launchpad.net/bugs/1351102

Title:
  No way to cancel a repeating VibratePattern call

Status in “platform-api” package in Ubuntu:
  New
Status in “usensord” package in Ubuntu:
  New

Bug description:
  Since VibratePattern calls can't be cancelled, clients that need to be
  able to end a loop abruptly have to manage the loop on their own and
  call VibratePattern with a repeat count of 1.

  Use case: a wakeup alarm notification should be accompanied by haptic
  feedback which should stop when the notification is dismissed.

  Calling VibratePattern() with a count to repeat indefinitely would be
  better for bus traffic, but is impossible because the repeating
  vibration would continue after the user's dismissed the alarm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/platform-api/+bug/1351102/+subscriptions


Follow ups

References