Turn off camera after release
Fixes https://source.puri.sm/Librem5/linux-next/-/issues/319 , although it might not be the cleanest place to do this.
Merge request reports
Activity
added camera label
I just saw the following after closing megapixels:
purism@pureos:~$ sudo ./cam_pm.sh ---- hi846 ----- auto suspended ---- samsung --- auto active ---------------- clko2 2 2 0 25000000 0 0 50000 Y purism@pureos:~$ megapixels Found config file at /usr/share/megapixels/config/purism,librem5r4.ini Adding camera big from config Adding camera selfie from config Found postprocessor script at /usr/share/megapixels/postprocess.sh MPDevice: MEDIA_IOC_SETUP_LINK error 25, Unpassender IOCTL (I/O-Control) für das Gerät format 3 47425247 MPCamera: VIDIOC_S_FMT error 16, Das Gerät oder die Ressource ist belegt ** (megapixels:4599): CRITICAL **: 08:02:52.043: mp_camera_start_capture: assertion 'camera->has_set_mode' failed MPCamera: VIDIOC_DQBUF error 22, Das Argument ist ungültig purism@pureos:~$
so the big cam stayed "on". is this what you're referring to here? thanks! I'll test later.
- Resolved by Martin Kepplinger
I'm not sure how the "active" is derived, as there is a power off callin between, but it might be that. The
s_fmt
error is definitely that.
mentioned in issue #311 (closed)