Focus in Camera (dev preview) app

Can you post the output of dpkg -l millipixels along with ls /etc/sudoers.d/?

Info from “dpkg -l millipixels:”

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±==============-===============-============-===========================================================
ii millipixels 0.18.0-1pureos2 arm64 GTK3 camera app for mobile using the V4L2 media request API

Info from “ls /etc/sudoers.d/:”

purism@librem5:~$ ls /etc/sudoers.d/
README
purism@librem5:~$

I don’t know what’s going on, but this might help:

sudo apt install --reinstall millipixels/byzantium

Just tried that, but I get the same functionality/lack of functionality as before. The focus slider doesn’t work if I launch the Camera app using the normal icon or from running millipixels in a fresh terminal. If I run a sudo command in a terminal and then immediately launch millipixels from that same terminal, the focus slider works (I assume because millipixels is able to use the “cached” sudo password or whatever sudo does with the password to not make you type it in every time within a certain time window).

Could you share your /var/log/dpkg.log ?

I tried just attaching that file, but it appears to not be a supported file to upload to this forum. Do you want ALL the contents of that file? It’s very large.

I think the last 100 lines will do:

tail -n 100 /var/log/dpkg.log

purism@librem5:~$ tail -n 100 /var/log/dpkg.log
2022-01-19 22:08:31 status half-installed python3-yoyo:all 7.3.1+dfsg1-1
2022-01-19 22:08:31 status config-files python3-yoyo:all 7.3.1+dfsg1-1
2022-01-19 22:08:31 status not-installed python3-yoyo:all
2022-01-19 22:08:31 status installed python3-sqlparse:all 0.4.1-1
2022-01-19 22:08:31 remove python3-sqlparse:all 0.4.1-1
2022-01-19 22:08:31 status half-configured python3-sqlparse:all 0.4.1-1
2022-01-19 22:08:31 status half-installed python3-sqlparse:all 0.4.1-1
2022-01-19 22:08:31 status config-files python3-sqlparse:all 0.4.1-1
2022-01-19 22:08:31 status not-installed python3-sqlparse:all
2022-01-19 22:08:31 status installed python3-tabulate:all 0.8.7-0.1
2022-01-19 22:08:31 remove python3-tabulate:all 0.8.7-0.1
2022-01-19 22:08:31 status half-configured python3-tabulate:all 0.8.7-0.1
2022-01-19 22:08:32 status half-installed python3-tabulate:all 0.8.7-0.1
2022-01-19 22:08:32 status config-files python3-tabulate:all 0.8.7-0.1
2022-01-19 22:08:32 status not-installed python3-tabulate:all
2022-01-19 22:08:32 status installed python3-typing-extensions:all 3.7.4.3-1
2022-01-19 22:08:32 remove python3-typing-extensions:all 3.7.4.3-1
2022-01-19 22:08:32 status half-configured python3-typing-extensions:all 3.7.4.3-1
2022-01-19 22:08:32 status half-installed python3-typing-extensions:all 3.7.4.3-1
2022-01-19 22:08:32 status config-files python3-typing-extensions:all 3.7.4.3-1
2022-01-19 22:08:32 status not-installed python3-typing-extensions:all
2022-01-19 22:08:33 startup packages configure
2022-01-19 22:08:33 trigproc hicolor-icon-theme:all 0.17-2
2022-01-19 22:08:33 status half-configured hicolor-icon-theme:all 0.17-2
2022-01-19 22:08:33 status installed hicolor-icon-theme:all 0.17-2
2022-01-19 22:08:33 trigproc libglib2.0-0:arm64 2.66.8-1pureos3
2022-01-19 22:08:33 status half-configured libglib2.0-0:arm64 2.66.8-1pureos3
2022-01-19 22:08:33 status installed libglib2.0-0:arm64 2.66.8-1pureos3
2022-01-19 22:08:33 trigproc libc-bin:arm64 2.31-13+deb11u2
2022-01-19 22:08:33 status half-configured libc-bin:arm64 2.31-13+deb11u2
2022-01-19 22:08:33 status installed libc-bin:arm64 2.31-13+deb11u2
2022-01-19 22:08:33 trigproc man-db:arm64 2.9.4-2
2022-01-19 22:08:33 status half-configured man-db:arm64 2.9.4-2
2022-01-19 22:08:34 status installed man-db:arm64 2.9.4-2
2022-01-19 22:08:34 trigproc mailcap:all 3.69
2022-01-19 22:08:34 status half-configured mailcap:all 3.69
2022-01-19 22:08:34 status installed mailcap:all 3.69
2022-01-19 22:08:35 trigproc desktop-file-utils:arm64 0.26-1
2022-01-19 22:08:35 status half-configured desktop-file-utils:arm64 0.26-1
2022-01-19 22:08:35 status installed desktop-file-utils:arm64 0.26-1
2022-01-19 22:08:35 startup packages purge
2022-01-19 22:08:35 purge javascript-common:all 11+nmu1
2022-01-19 22:08:35 status config-files javascript-common:all 11+nmu1
2022-01-19 22:08:35 status not-installed javascript-common:all
2022-01-19 22:08:35 purge graphicsmagick:arm64 1.4+really1.3.36+hg16481-2
2022-01-19 22:08:35 status config-files graphicsmagick:arm64 1.4+really1.3.36+hg16481-2
2022-01-19 22:08:35 status not-installed graphicsmagick:arm64
2022-01-19 22:08:35 purge libjs-jquery:all 3.5.1+dfsg+~3.5.5-7
2022-01-19 22:08:35 status config-files libjs-jquery:all 3.5.1+dfsg+~3.5.5-7
2022-01-19 22:08:35 status not-installed libjs-jquery:all
2022-01-19 22:08:36 startup packages configure
2022-01-20 10:00:25 startup archives unpack
2022-01-20 10:00:25 install gnome-dictionary:arm64 3.26.1-6
2022-01-20 10:00:25 status half-installed gnome-dictionary:arm64 3.26.1-6
2022-01-20 10:00:25 status triggers-pending mailcap:all 3.69
2022-01-20 10:00:25 status triggers-pending desktop-file-utils:arm64 0.26-1
2022-01-20 10:00:25 status triggers-pending libglib2.0-0:arm64 2.66.8-1pureos3
2022-01-20 10:00:26 status triggers-pending man-db:arm64 2.9.4-2
2022-01-20 10:00:26 status unpacked gnome-dictionary:arm64 3.26.1-6
2022-01-20 10:00:26 startup packages configure
2022-01-20 10:00:26 configure gnome-dictionary:arm64 3.26.1-6
2022-01-20 10:00:26 status unpacked gnome-dictionary:arm64 3.26.1-6
2022-01-20 10:00:26 status half-configured gnome-dictionary:arm64 3.26.1-6
2022-01-20 10:00:26 status triggers-awaited gnome-dictionary:arm64 3.26.1-6
2022-01-20 10:00:26 trigproc desktop-file-utils:arm64 0.26-1
2022-01-20 10:00:26 status half-configured desktop-file-utils:arm64 0.26-1
2022-01-20 10:00:26 status installed desktop-file-utils:arm64 0.26-1
2022-01-20 10:00:26 trigproc libglib2.0-0:arm64 2.66.8-1pureos3
2022-01-20 10:00:26 status half-configured libglib2.0-0:arm64 2.66.8-1pureos3
2022-01-20 10:00:26 status installed gnome-dictionary:arm64 3.26.1-6
2022-01-20 10:00:26 status installed libglib2.0-0:arm64 2.66.8-1pureos3
2022-01-20 10:00:26 trigproc man-db:arm64 2.9.4-2
2022-01-20 10:00:26 status half-configured man-db:arm64 2.9.4-2
2022-01-20 10:00:27 status installed man-db:arm64 2.9.4-2
2022-01-20 10:00:27 trigproc mailcap:all 3.69
2022-01-20 10:00:27 status half-configured mailcap:all 3.69
2022-01-20 10:00:28 status installed mailcap:all 3.69
2022-01-20 11:23:52 startup archives unpack
2022-01-20 11:23:52 upgrade millipixels:arm64 0.18.0-1pureos2 0.18.0-1pureos2
2022-01-20 11:23:52 status half-configured millipixels:arm64 0.18.0-1pureos2
2022-01-20 11:23:52 status unpacked millipixels:arm64 0.18.0-1pureos2
2022-01-20 11:23:52 status half-installed millipixels:arm64 0.18.0-1pureos2
2022-01-20 11:23:52 status triggers-pending mailcap:all 3.69
2022-01-20 11:23:52 status triggers-pending desktop-file-utils:arm64 0.26-1
2022-01-20 11:23:52 status triggers-pending hicolor-icon-theme:all 0.17-2
2022-01-20 11:23:52 status unpacked millipixels:arm64 0.18.0-1pureos2
2022-01-20 11:23:52 startup packages configure
2022-01-20 11:23:52 configure millipixels:arm64 0.18.0-1pureos2
2022-01-20 11:23:52 status unpacked millipixels:arm64 0.18.0-1pureos2
2022-01-20 11:23:52 status half-configured millipixels:arm64 0.18.0-1pureos2
2022-01-20 11:23:52 status installed millipixels:arm64 0.18.0-1pureos2
2022-01-20 11:23:52 trigproc desktop-file-utils:arm64 0.26-1
2022-01-20 11:23:52 status half-configured desktop-file-utils:arm64 0.26-1
2022-01-20 11:23:52 status installed desktop-file-utils:arm64 0.26-1
2022-01-20 11:23:52 trigproc hicolor-icon-theme:all 0.17-2
2022-01-20 11:23:52 status half-configured hicolor-icon-theme:all 0.17-2
2022-01-20 11:23:53 status installed hicolor-icon-theme:all 0.17-2
2022-01-20 11:23:53 trigproc mailcap:all 3.69
2022-01-20 11:23:53 status half-configured mailcap:all 3.69
2022-01-20 11:23:53 status installed mailcap:all 3.69
purism@librem5:~$

The package isn’t shipping the sudo rule, see https://source.puri.sm/Librem5/debs/megapixels/-/merge_requests/13 - updated package forthcoming.

4 Likes

Thanks for helping us solve this!

3 Likes

millipixels is updated and the focus slider is working when opening the camera app normally!

8 Likes

Hello, I come back to this thread as ùi try to install Calera dev but it crashes at strat. What is the good way to install it please ? (please be informed that my computing level is more or less sudo apt install).
Thank you !

Device info :
All kill switches on “ON” position
Privacy settings : camera enabled
OS : PureOS aarch64
Host : Purism Librem 5r4
kernel : 5.18.0-1-librem5
Desktop Environment : GNOME 3.38.6

I think all the switches being on disables the camera.

That makes no sense. Also, I just tested and confirmed the camera works with the 3 hardware switches on.

Sorry I read “on” as activated.

2 Likes

Yes, aside: Calling them “kill switches” fundamentally causes confusion about what being “on” means. Calling them “switches” avoids that confusion.

  1. Run “millipixels” from the terminal
  2. Send logs to https://source.puri.sm/Librem5/millipixels/-/issues/

Thank you for your reply : I have issued my logs as requested.

@prog-amateur
Are you tried installing: v4l-utils ?

1 Like

You are right !
Following @dcz suggestion in gitlab which was the same as yours, solved my issue. Thank you very much !

1 Like