09-16-2023, 06:53 PM
(This post was last modified: 09-16-2023, 08:02 PM by markwinger.)
I found the problem of 100% cpu. My fault. In the openap startup script I added code to reverse the gpio for the camera. I had the following:
DILE=/sys/class/gpio/gpio20/active_low
while [ ! -f $FILE ]
do
echo 1 > /sys/class/gpio/active_low
done
Not only is there a typo (DILE) but the logic is wrong. I changed it to this:
FILE=/sys/class/gpio/gpio20/active_low
while [ ! -f $FILE ]
do
sleep 1
done
echo 1 > /sys/class/gpio/active_low
Now the loop exits properly when OA opens the gpio and I don't see the 100% utilization any longer. But I still have the problem when when the backup camera is turned on, I get the media player stopping and sometimes resuming mutliple time but eventually stopping completely. This is only a minor problem. But each time the audio stops, the video stops as well making the backup camera delayed.
The volume controls appear work but dont change the volume level. Even OA slider volume controls do not change the volume. So far the only way I know of to get it to work again is to restart OA. For now I am disabling backup gpio so I must manually turn on the camera if I need it.
DILE=/sys/class/gpio/gpio20/active_low
while [ ! -f $FILE ]
do
echo 1 > /sys/class/gpio/active_low
done
Not only is there a typo (DILE) but the logic is wrong. I changed it to this:
FILE=/sys/class/gpio/gpio20/active_low
while [ ! -f $FILE ]
do
sleep 1
done
echo 1 > /sys/class/gpio/active_low
Now the loop exits properly when OA opens the gpio and I don't see the 100% utilization any longer. But I still have the problem when when the backup camera is turned on, I get the media player stopping and sometimes resuming mutliple time but eventually stopping completely. This is only a minor problem. But each time the audio stops, the video stops as well making the backup camera delayed.
The volume controls appear work but dont change the volume level. Even OA slider volume controls do not change the volume. So far the only way I know of to get it to work again is to restart OA. For now I am disabling backup gpio so I must manually turn on the camera if I need it.