I want to turn my old Lenovo R61 into a timelapse camera. I have a series of scripts that used to work on my HP NC6220, may it rest in pices. I use a Microsoft home cinema HD camera.

But I'm experiencing USB issues, it seams to loose USB connection and not reconnect. I have tried a lot of things but none were successful. Maybe I'm doing it wrong. So now I'm asking for help. And I'll be debugging at the same time myself.

For starters I'm using uvccapture, but I'm using a version that should be better with this camera (http://dp.nonoo.hu/modified-uvccapture/). It was better on the HP pc, but both versions seam to be equally bad on the Lenovo PC.

My script does a lot of odd things to handle the problems I have seen over time.

In front of the script below I have a script with a loop calling it. It does nothing else at the moment.

I have not been able to find out where exactly this procedure craches. But I believe (from what I have seen in the terminal window) that the “path” to the webcam changes or becomes unavailable at some point (sometimes on the second picture) and this can only be helped by reconnecting the webcam.

This is not right. "New USB hub found" then "New USB device found, idVendor=045e, idProduct=075d" (I take it that's the camera). For some reason your system is losing sight of the USB bus and then rediscovering it, followed by rediscovering the camera. no wonder its device path is changing.

Of course, it may be the program you are running that triggers this behaviour, so you could try something different, like mjpg-streamer.

"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)