Page 1 of 1
Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be adjusted
Posted: Mon Nov 02, 2020 4:31 pm
by bkjaya1952
In usb camera moniterZoneminder master 1.35.12~20201101103027-focal brightness settings can not be changed using the settings button .
This shortcoming is in zoneminder 1.34.22-focal1 also.
The brightness settings works correctly only in zoneminder old versions ( 1.32 etc)

- Screenshot from 2020-11-02 21-49-34.png (180 KiB) Viewed 2108 times
No error logs indicated pertaining to this problem
Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted
Posted: Mon Nov 02, 2020 6:50 pm
by knight-of-ni
I don't have any local usb cameras, so you will need to test for me.
Insert the following debug statement into line 42 of settings.php:
https://github.com/ZoneMinder/zoneminde ... gs.php#L42
Code: Select all
ZM\Warning('About to execute this command: '.$zmuCommand);
The add the following, after line 43:
https://github.com/ZoneMinder/zoneminde ... gs.php#L43
Code: Select all
ZM\Warning('The command result was: '.$zmuOutput);
Try to change a value in settings and then post what shows up in your logs.
Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted
Posted: Tue Nov 03, 2020 6:25 am
by bkjaya1952
Dear Sir
After editing the settings.php at /usr/share/zoneminder/www/includes/actions/settings.php
For the code at first link
log file is below

- Screenshot from 2020-11-03 11-46-15.png (237.76 KiB) Viewed 2063 times
For the code at second link
log file is below

- Screenshot from 2020-11-03 11-42-02.png (288.06 KiB) Viewed 2063 times
The brightness settings didn't work for both occasions
Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted
Posted: Tue Nov 03, 2020 1:40 pm
by knight-of-ni
At what point do the warnings appear in the first screenshot...when you first click the settings button, when you make a change to one of the parameters, when you click save, something else?
I don't see either of the warnings I had you insert into settings.php.
What I'm looking to see is what appeared in the log, immediately after clicking the save button.
Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted
Posted: Tue Nov 03, 2020 1:50 pm
by knight-of-ni
Oh, and it looks like $zmuOutput is an array so change the second warning to:
Code: Select all
ZM\Warning('The command result was: '.print_r($zmuOutput,true));
Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted
Posted: Tue Nov 03, 2020 4:23 pm
by bkjaya1952
knight-of-ni wrote: ↑Tue Nov 03, 2020 1:50 pm
Oh, and it looks like $zmuOutput is an array so change the second warning to:
Code: Select all
ZM\Warning('The command result was: '.print_r($zmuOutput,true));
Dear Sir
According to the first link there are no warnings in the log
For the second link when you change brightness and save there is an error indicated in the log as follows

- Screenshot from 2020-11-03 21-48-28.png (291.3 KiB) Viewed 2023 times
The brightness can't be adjusted in both cases
The page source of the monitor settings popup window is annexed below
https://www.dropbox.com/s/501emt14lurbt ... p.txt?dl=0
According to the above page source , the brightness setting file may not be the settings.php at /usr/share/zoneminder/www/includes/actions/