gkaindl / ambi-tv

a flexible ambilight clone for embedded linux
296 stars 85 forks source link

ambi-tv does not work when ran in background #75

Closed civic95man closed 9 years ago

civic95man commented 9 years ago

I really need some help trying to figure out why ambi-tv doesn't want to work in the background. For reference, I'm using the prebuilt SD image provided by ca0abinary. With no modifications (except to the config file) the program works fine. I can exit ambi-tv with control-c and return to the prompt. I can restart the program with ./ambi-tv and it works again. The problem I'm having is when I want to run it in the background by ./ambi-tv & in which case it's running according to ps xj but the LED strip remains off. I can terminate the program pkill ambi-tv and rerun in the foreground with ./ambi-tv and the LED strips works again.

I was wanting to have the ambi-tv program running in the background so that I can have other things going on without blocking the use of my 'pi. I also tried building the driver and executable on a fresh SD loaded with a stock wheezy 2013-7-26 copy of Raspbian, which compiled fine and modules loaded but I still had the above problem. Thank you

civic95man commented 9 years ago

I got it to work by modifying the program to run as a daemon