Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be adjusted

Previous development branch now released as 1.36
Locked
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be adjusted

Post 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
Screenshot from 2020-11-02 21-49-34.png (180 KiB) Viewed 1687 times
No error logs indicated pertaining to this problem
Last edited by bkjaya1952 on Sat Nov 14, 2020 6:05 am, edited 1 time in total.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted

Post 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.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted

Post by bkjaya1952 »

knight-of-ni wrote: Mon Nov 02, 2020 6:50 pm 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.
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
Screenshot from 2020-11-03 11-46-15.png (237.76 KiB) Viewed 1642 times

For the code at second link
log file is below
Screenshot from 2020-11-03 11-42-02.png
Screenshot from 2020-11-03 11-42-02.png (288.06 KiB) Viewed 1642 times
The brightness settings didn't work for both occasions
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted

Post 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.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted

Post 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));
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Zoneminder master 1.35.12~20201101103027-focal usb camera monitor brightness settings can't be ajusted

Post 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
Screenshot from 2020-11-03 21-48-28.png (291.3 KiB) Viewed 1602 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/
Locked