Webcam Lights Off WRT32X

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Webcam Lights Off WRT32X

Post 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/

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Webcam Lights Off WRT32X

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Re: Webcam Lights Off WRT32X

Post 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.

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Webcam Lights Off WRT32X

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Re: Webcam Lights Off WRT32X

Post 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?

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Webcam Lights Off WRT32X

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply