← Back to team overview

ubuntu-phone team mailing list archive

Re: Find out if running on a phone

 

> That said, there might be some rare cases where you need info on the
> currently connected input devices. We're working on an API for that [1]
> which I think Timo is already looking to add to the images, but it's not
> landed yet.

Thanks Michael! Is there any doc or header files I can look at? The silo doesn’t include an MR link.

> In any case, if you want to know if you are "on a phone or on a
> desktop", you are probably trying to walk the wrong direction.

This is for the thumbnailer. Depending on whether hardware codecs (phone) or software codecs (desktop) are installed, I need to change performance tuning parameters. The hardware and software codecs have very different timings, and, unfortunately, different semantics. For example, the hardware codecs cannot be run concurrently on the device because of a kernel/android bug:

https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1466273

Michi.

> 
> [1] https://requests.ci-train.ubuntu.com/#/ticket/763
> 
> Hope this helps,
> Michael
> 
> -- 
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp



Follow ups

References