Page 1 of 1

Webcam Lights Off WRT32X

Posted: Fri May 31, 2019 5:31 pm
by cobra98
I tried to do the same like with my old router

Old was
wget http://archive.openwrt.org/chaos_calmer ... ar71xx.ipk
wget http://archive.openwrt.org/chaos_calmer ... ar71xx.ipk
wget http://archive.openwrt.org/chaos_calmer ... ar71xx.ipk
wget http://archive.openwrt.org/chaos_calmer ... ar71xx.ipk
wget http://archive.openwrt.org/chaos_calmer ... ar71xx.ipk

opkg install libxml2_2.9.2-3_ar71xx.ipk ...


uvcdynctrl -i /usr/share/uvcdynctrl/data/046d/logitech.xml
v4l2-ctl -l
v4l2-ctl -c led1_mode=0

root@741nd:/etc/init.d# chmod 755 scriptName
root@741nd:/etc/init.d# ./scriptName

cd /etc/init.d/
. webcam_lights_off
-> Start script i added here /etc/rc.local

Testing
- /etc/init.d/webcam_lights_off

Version installed from
http://lantisproject.com/downloads/garg ... yisail.php
then i tried to find packages at
https://lantisproject.com/downloads/gar ... ages/mvebu
but without success, so i thought try from
https://archive.openwrt.org/chaos_calme ... /packages/
But did not work out ...
Installations work but not finding the installed applications
uvcdynctrl -i /usr/share/uvcdynctrl/data/046d/logitech.xml
-ash: uvcdynctrl: not found

From where do i have to take these packages instead?
Maybe from here? Openwrt 18.06.1
https://downloads.openwrt.org/releases/ ... /cortexa9/

Re: Webcam Lights Off WRT32X

Posted: Fri May 31, 2019 6:15 pm
by Lantis
Obviously chaos calmer packages from a different target aren’t going to work...

Did you try just installing the modules? “gpkg install xxx”
The firmware already includes all the required repositories. You shouldn’t need to manually get them.
And if you somehow managed to install packages from a different architecture that were built long before this router even existed, you should reset your router to prevent issues.

Re: Webcam Lights Off WRT32X

Posted: Mon Jun 03, 2019 6:35 pm
by cobra98
i tried first
uvcdynctrl -i /usr/share/uvcdynctrl/data/046d/logitech.xml
v4l2-ctl -l
v4l2-ctl -c led1_mode=0

but didn`t work.

Can i backup the configuration and restore it if reset?
Backup is not covering the installed packages i guess?
I once installed iperf and after Restoring a backup after reset
the package was not installed.

Re: Webcam Lights Off WRT32X

Posted: Mon Jun 03, 2019 11:34 pm
by Lantis
You can keep a backup, but if any of those packages generates a file in /etc/* (particularly /etc/config) you should delete them first.

I didn’t say the packages were included by default, only the repositories that they exist in.

Re: Webcam Lights Off WRT32X

Posted: Sun Jun 09, 2019 8:37 pm
by cobra98
thx finally got i working

i put
v4l2-ctl -c led1_mode=0
in a file, chmod 755 and added it in /etc/rc.local as a script run
after each reboot.

So opkg is not anymore to be used? gpkg is better? or the same?

Re: Webcam Lights Off WRT32X

Posted: Sun Jun 09, 2019 8:49 pm
by Lantis
gpkg is Gargoyle specific, and it replaces opkg. When you invoke "opkg", you're actually calling gpkg anyway as we link the two together.