Btw: I have no /dev/vi* device at all, not in my BQ E4.5 running Canonical's UT, and not in the UBport's one.
I pluged today a cam into the latter and the result is the same:
phablet@ubuntu-phablet:~$ ls -l /dev/vi*
ls: cannot access /dev/vi*: No such file or directory
phablet@ubuntu-phablet:~$ ls -l /dev/usb*
crw-rw---- 1 root root 10, 20 Jan 26 07:59 /dev/usb_accessory
crw------- 1 root root 189, 0 Jan 26 07:59 /dev/usbdev1.1
(plugin)
an 26 08:03:28 ubuntu-phablet kernel: [ 222.669106][USBPHY]slew calibration:FM_OUT =329,x=4183,valu
e=4
Jan 26 08:03:29 ubuntu-phablet kernel: [ 223.247221]usb 1-1: new full-speed USB device number 2 usi
ng musb-hdrc
phablet@ubuntu-phablet:~$ ls -l /dev/usb*
crw-rw---- 1 root root 10, 20 Jan 26 07:59 /dev/usb_accessory
crw------- 1 root root 189, 0 Jan 26 07:59 /dev/usbdev1.1
crw------- 1 root root 189, 1 Jan 26 08:03 /dev/usbdev1.2
Over the night I got an answer in the old ubuntu-phone mailing list, her it is:
Date: Thu, 25 Jan 2018 20:36:33 +0100
From: Christoph Schulz <ch.schulz@joinout.de>
To: ubuntu-phone@lists.launchpad.net
Subject: Re: [Ubuntu-phone] connecting an USB video cam to the BQ E4.5 -- how to view the video stream?
...
Maybe QtMultimedia detects the webcam and you can use it from there?
$ cat >cameras.qml <<EOT
import QtQuick 2.4
import QtMultimedia 5.6
ListView {
model: QtMultimedia.availableCameras
delegate: Text {
text: "id: " + modelData.id + ", name: " + modelData.displayName
}
}
EOT
$ cat >$HOME/.local/share/applications/cameras.desktop <<EOT
[Desktop Entry]
Name=Camera List
Exec=qmlscene $HOME/cameras.qml
Type=Application
X-Ubuntu-Touch=true
EOT
Then refresh your app scope and start it from there and see if there
are more than the two default cameras (front/back).
My E4.5's output:
id: undefined, name: Camera 0 Back facing
id: undefined, name: Camera 1 Front facing
Hope this helps.
For the moment this is all. No 🙂
I followed the advice of Christoph, and it shows only the two mentioned cams (Back and Front).