Commit Graph

8 Commits

Author SHA1 Message Date
Isaac Connor
f4a7c1d42b fix: remove file_exists() gate on /dev/video in settings modal
Debian Forky's stock apache2 systemd unit sets PrivateDevices=yes,
giving Apache its own /dev namespace without video devices. This
caused file_exists('/dev/video0') to return false even though the
device exists and www-data is in the video group.

Remove the file_exists() pre-check and just attempt v4l2-ctl directly.
When it fails, provide targeted diagnostics: missing v4l2-ctl, systemd
PrivateDevices detected, or generic permission error with the running
username.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 15:38:07 -05:00
Isaac Connor
748bd20b2c Improve logging and protect shell argument. 2025-09-27 12:14:14 -04:00
Isaac Connor
7933bd4852 Add some logging of invalid mid 2024-11-22 16:28:08 -05:00
Isaac Connor
5a498878b8 Protect mid with validCardinal. Return early if it is invalid or monitor is not found 2024-01-24 19:28:59 -05:00
Isaac Connor
6609c154f2 Pretty up the v4l field names 2021-11-07 11:28:34 -05:00
Isaac Connor
d960f9b6af Fix settings being blank due to missing v4l2-ctl 2021-10-16 13:19:19 -04:00
Isaac Connor
94cd3a6e69 Use v4l2-ctrl to list the available controls and display all of them. Use range sliders where appropriate. 2021-10-05 19:49:42 -04:00
Andrew Bauer
1643fb686b convert settings popup to modal 2020-10-03 16:51:25 -05:00