Camera controls for Linux
It's a standalone Python CLI and GUI (GTK, TK) to set the Camera controls in Linux. It can set the V4L2 controls and it is extendable with the non standard controls. Currently it has a Logitech extension (Led mode, led frequency), Kiyo Pro extension (HDR, HDR mode, FoV, AF mode, Save), Systemd extension (Save and restore controls with Systemd path+service).
The CLI.
Clone the repo
git clone https://github.com/soyersoyer/cameractrls.git
Run the cameractrls
cd cameractrls
./cameractrls.py
usage: ./cameractrls.py [--help] [-d DEVICE] [--list] [-c CONTROLS]
optional arguments:
-h, --help show this help message and exit
-d DEVICE use DEVICE, default /dev/video0
-l, --list list the controls and values
-L, --list-devices list capture devices
-c CONTROLS set CONTROLS (eg.: hdr=on,fov=wide)
example:
./cameractrls.py -c brightness=128,kiyo_pro_hdr=on,kiyo_pro_fov=wide
GTK GUI for the Camera controls
Clone the repo
git clone https://github.com/soyersoyer/cameractrls.git
Add the desktop file to the launcher
cd cameractrls
desktop-file-install --dir="$HOME/.local/share/applications" \
--set-icon="$PWD/images/icon_256.png" \
--set-key=Exec --set-value="$PWD/cameractrlsgtk.py" \
--set-key=Path --set-value="$PWD" \
cameractrls.desktop
Run from the launcher or from the shell
./cameractrlsgtk.py
TKinter GUI for the Camera controls
If you like the old user interfaces.
Install the tkinter GUI framework
sudo apt install python3-tk
Clone the repo
git clone https://github.com/soyersoyer/cameractrls.git
Add the desktop file to the launcher
cd cameractrls
desktop-file-install --dir="$HOME/.local/share/applications" \
--set-icon="$PWD/images/icon_256.png" \
--set-key=Exec --set-value="$PWD/cameractrlstk.py" \
--set-key=Path --set-value="$PWD" \
cameractrls.desktop
Run from the launcher or from the shell
./cameractrlstk.py
cd cameractrls
git pull
Disable, stop and delete the systemd paths, services:
cd ~/.config/systemd/user
systemctl --user disable --now cameractrls-*
rm cameractrls-*
Remove the launcher shortcut
rm ~/.local/share/applications/cameractrls.desktop
Delete the cameractrls:
rm -rf cameractrls