Continuity counter errors after suspend or hibernate
Added by Juan García over 8 years ago
Hi guys!
My tvheadend works perfect (hours and hours) fine when I boot my computer, my signal is good, I have both DVB-T and DVB-S/S2 sources on a hybrid tuner.
But, when I wakeup from sleep mode (tried on suspend and hibernate) it get me continuity counter errors when it was 3:00 minutes running (more or less). This happen in both DVB-T and DVB-S channels, and both open and encrypted channels.
My system is:
Lubuntu 14.04, kernel 4.2.0.35 32-bits (kodibuntu)
tvheadend 4.0.9-4
The only trick I have is to unload the modules of the tunner and stops tvheadend before suspend and reload it when it wakes up, but I tried it by hand (without suspend the computer) and don't have the continuity counter errors.
I don't remeber fine, but I think than with and older version of tvheadend (above version 4.X) this problem don't happen.
Is this a linux or tvheadend problem?
Replies (1)
RE: Continuity counter errors after suspend or hibernate - Added by Juan García over 8 years ago
For anyone who has this problem I solved it.
The problem seems to be that when I do the suspend or hibernate I excecute this code:
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo $wake_date > /sys/class/rtc/rtc0/wakealarm
I debug the hibernation process and when I don't execute the script the problem dissapear, so I try to do this when the system return from hibernation or suspend:
echo 0 > /sys/class/rtc/rtc0/wakealarm
And works perfert for me!!