Using a digital camera ( Canon) as webcam – Ask Ubuntu

Source: Using a digital camera ( Canon) as webcam – Ask Ubuntu

Few additions to the original article (I used the beta of Ubuntu 20.04, but it should work on older versions):
– after installing sudo apt install gphoto2 v4l2loopback-utils when your camera mounts, unmount it (in your normal Ubuntu setup you can unmount the camera using right mouse button in file explorer Nautilus when clicking on the camera in the bar on the left)
– after sudo modprobe v4l2loopback you create a video device with the camera, but when you don’t have another active cam (like the internal webcam of your laptop) you have to set the device to /video0 instead of /video1 or /video2:
gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin3 name=dec ! queue ! videoconvert ! v4l2sink device=/dev/video1

When you want to use the camera for tethering in applications like Darktable, you should be able to use the camera without any of the additional applications as shown above, but you must make sure your camera is unmounted as well!

Make sure you use the right setting, like the active camera view or the video setting on the camera. Toy around with those settings on the camera when it doesn’t work.

Prevent automatic change of audio device – Ubuntu – Daniel Gibbs

Source: Prevent automatic change of audio device – Ubuntu – Daniel Gibbs

Since I updated tot Ubuntu 19.10 my Dell sound bar gets deselected as the main audio device all the time. Apparently there is a fix for that (Thanks Daniel Gibbs for pointing it out, see the source).

Edit (using the terminal, using Nano editor: CTRL-O to save, CTRL-X to exit, for more commands, check the Nano Basics Guide):

sudo nano /etc/pulse/default.pa

Find and comment out the following line (commenting out, use the ‘#’ sign in front of a line, without the quotes):

load-module module-switch-on-port-available

Restart Pulseaudio (or log off and log on again)

pulseaudio -k