Dominik Pusch wrote:
Hi,
after booting the kernel, the LED of my Philips PCVC740K is on. When I load
the pwc-module 'modprobe pwc leds=0,0', it stays on. When I start a v4l
Application like mplayer, it still stays on.
Firstly when I exit mplayer, the LED is turned off. When I start mplayer
again, it stays off (fine! That's what I want).
But I like to have LED status off directly after booting my system. Is there a
way to do this?
Thanks in advance and excuse my horrible english,
Dominik (from germany)
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
Guten tag
The driver doesn't seem to handle the led on some of the cameras. I
can't find the spot where the led gets turned on and off since it's
probably done by accident.
If you simply open the device and close it again the led will get turned
off (at least that works for me). Try this program I've just made:
/* Compile with:
gcc -o pwc-led-off pwc-led-off.c
*/
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc, char *argv[])
{
char file[255];
int num = 0;
if (argc > 1)
num = atoi(argv[1]);
sprintf(file, "/dev/video%d", num);
int fd = open(file, O_RDONLY);
close(fd);
return 0;
}
The first argument should be the minor number of the camera (defaults to
0 if not specified).
Put the program in your bootscript and you're ready to go.
Patrik Jakobsson
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|