[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2016-04-22 Thread Bill Filler
** Changed in: canonical-devices-system-image
Milestone: 11 => backlog

** Tags added: system-apps

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  In Progress
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2016-03-15 Thread Bill Filler
** Changed in: canonical-devices-system-image
Milestone: ww08-2016 => 11

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  In Progress
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2016-02-03 Thread Alan Pope 
For what it's worth I have a selfie device which I picked up at SCaLE.
It's not a stick but just a bluetooth button on a keyring.

Kinda like this thing:- http://shopping.rediff.com/product/bluetooth-
remote-shutter-portable-selfie-clicker-for-iphone-ipad-android-
sa/12547946

You'll note it has two buttons.

Using xev on my desktop I discovered that the "iOS" button presses Vol+.
The "Android" button presses Enter.

Android button press:-

KeyPress event, serial 39, synthetic NO, window 0x481,
root 0xc4, subw 0x0, time 695348996, (867,621), root:(916,673),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
"   XmbLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

KeyRelease event, serial 39, synthetic NO, window 0x481,
root 0xc4, subw 0x0, time 695349027, (867,621), root:(916,673),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

iOS button press:-

KeyPress event, serial 40, synthetic NO, window 0x481,
root 0xc4, subw 0x0, time 695365945, (867,621), root:(916,673),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
"   XmbLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x481,
root 0xc4, subw 0x0, time 695366065, (867,621), root:(916,673),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

FocusOut event, serial 40, synthetic NO, window 0x481,
mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 40, synthetic NO, window 0x481,
mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   8   
   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 40, synthetic NO, window 0x481,
root 0xc4, subw 0x0, time 695367625, (867,621), root:(916,673),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), 
same_screen YES,
XLookupString gives 0 bytes: 
XFilterEvent returns: False

MappingNotify event, serial 40, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 40, synthetic NO, window 0x481,
root 0xc4, subw 0x0, time 695373503, (666,490), root:(715,542),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes: 
XmbLookupString gives 0 bytes: 
XFilterEvent returns: False

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  In Progress
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2016-01-13 Thread Jean-Baptiste Lallement
** Changed in: canonical-devices-system-image
Milestone: ww02-2016 => ww08-2016

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  In Progress
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2016-01-04 Thread Ken VanDine
I tried #TheSelfie on my arale, it increases the volume.  I didn't look
to see what keycode is being generated, but what ever it is raises
notify-osd showing the volume increase.

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  In Progress
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


Re: [Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2016-01-04 Thread Ugo Riboni
We can try to handle the media keycodes, I will update the patch in that
sense. Thanks for the research Michael.

However the volume keys are going to be more complicated: the app receieves
them just fine, but they are the same keys that are generated by the
hardware volume buttons on the phone (Qt.Key_VolumeDown, Qt.Key_VolumeUp).

The system intercepts them regardless of what the app does with them (I
tried to mark them as handled in Qt), and raises/lowers the volume.
I think it will be very confusing to shoot a picture AND raise/lower the
volume.

I guess we will have to live with the fact that some selfie sticks +
hardware combinations which generate volume keypresses won't be supported,
though that's going to be rather confusing for the user too.


On Mon, Jan 4, 2016 at 4:33 PM, Ken VanDine 
wrote:

> I tried #TheSelfie on my arale, it increases the volume.  I didn't look
> to see what keycode is being generated, but what ever it is raises
> notify-osd showing the volume increase.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1451724
>
> Title:
>   Selfie stick not supported
>
> Status in Canonical System Image:
>   In Progress
> Status in camera-app package in Ubuntu:
>   In Progress
>
> Bug description:
>   I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc
>
>   Working fine on iOS it didn't do anything on Ubuntu.  I had enough
>   time to check out what what keycode it sends when pressing the shutter
>   button: Qt.Key_MediaTogglePlayPause
>
>   So I guess all it takes is to add a Keys.onPressed handler to the
>   camera app and trigger the photo shutter or start/stop recording when
>   in video mode.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/canonical-devices-system-image/+bug/1451724/+subscriptions
>

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  In Progress
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2016-01-04 Thread Ugo Riboni
The patch has been updated to handle all keys listed my Michael, plus
XKB_KEY_XF86AudioLowerVolume and XKB_KEY_XF86AudioRaiseVolume, which
might be emitted by some sticks as Ken suggests, and are not used by our
system.

More testing welcome.

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  In Progress
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2015-12-23 Thread Michael Zanetti
Hey Ugo, Bill,

I have tested the linked branch. 2 issues:

* My BQ is running out of space and produces the "Low disk space"
warning when the camera app starts up. That seems to steal focus which
forces me to first swipe to the foto roll and back to the viewfinder in
order to fix the focus things.

* Second, don't ask me why, but that exact same selfie stick I tried
half a year ago, now seems to produce this keycode: 0x1008FF16 which
isn't listed in the Qt namespace. However, it is listed in xkbcommon-
keysyms.h and is mapped to XKB_KEY_XF86AudioPrev. To make things even
weirder, I have to add that this is on krillin. Last time I tested it on
flo. However, I retested it on flo right now and believe it or not, it's
XKB_KEY_XF86AudioMedia (0x1008FF32) now. I've also tested that same
stick on an iPhone, it will  increase the sound volume when the camera
app was not focused. So this means that the generated keycode depends on
the hardware drivers, in our case the Android HAL. Different devices and
versions of the Android image can change the produced keycode.

This makes me believe that we should just handle all common multimedia
keys in the camera app to trigger the shutter. If we add those keys, I
guess we should support most of the cases:

0x1008FF14 (XKB_KEY_XF86AudioPlay)
0x1008FF15 (XKB_KEY_XF86AudioStop)
0x1008FF16 (XKB_KEY_XF86AudioPrev)
0x1008FF17 (XKB_KEY_XF86AudioNext) 
0x1008FF31 (XKB_KEY_XF86AudioPause)
0x1008FF32 (XKB_KEY_XF86AudioMedia)

Qt::Key_MediaPlay   0x0180  
Qt::Key_MediaStop   0x0181
Qt::Key_MediaPrevious   0x0182   
Qt::Key_MediaNext   0x0183   
Qt::Key_MediaRecord 0x0184   
Qt::Key_MediaPause  0x185
Qt::Key_MediaTogglePlayPause0x186

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  In Progress
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2015-12-15 Thread Bill Filler
** Changed in: canonical-devices-system-image
   Status: Confirmed => In Progress

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  In Progress
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2015-12-15 Thread Ugo Riboni
Michael Zanetti said he would test the attached branch with an actual
selfie stick and report back next week.

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  Confirmed
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2015-12-14 Thread Ugo Riboni
** Changed in: camera-app (Ubuntu)
   Status: Confirmed => In Progress

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  Confirmed
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2015-12-14 Thread Launchpad Bug Tracker
** Branch linked: lp:~uriboni/camera-app/handle-selfie-key

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  Confirmed
Status in camera-app package in Ubuntu:
  In Progress

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1451724] Re: Selfie stick not supported

2015-11-30 Thread Bill Filler
** Also affects: canonical-devices-system-image
   Importance: Undecided
   Status: New

** Also affects: camera-app (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: camera-app (Ubuntu)
   Importance: Undecided => Medium

** Changed in: camera-app (Ubuntu)
 Assignee: (unassigned) => Ugo Riboni (uriboni)

** Changed in: camera-app (Ubuntu)
   Status: New => Confirmed

** Changed in: canonical-devices-system-image
Milestone: None => ww02-2016

** Changed in: canonical-devices-system-image
 Assignee: (unassigned) => Bill Filler (bfiller)

** Changed in: canonical-devices-system-image
   Importance: Undecided => Medium

** Changed in: canonical-devices-system-image
   Status: New => Confirmed

** No longer affects: camera-app

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

Title:
  Selfie stick not supported

Status in Canonical System Image:
  Confirmed
Status in camera-app package in Ubuntu:
  Confirmed

Bug description:
  I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc

  Working fine on iOS it didn't do anything on Ubuntu.  I had enough
  time to check out what what keycode it sends when pressing the shutter
  button: Qt.Key_MediaTogglePlayPause

  So I guess all it takes is to add a Keys.onPressed handler to the
  camera app and trigger the photo shutter or start/stop recording when
  in video mode.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp