Moderator Control Panel ]

no TV signal after suspend to ram and resume

no TV signal after suspend to ram and resume

Postby marco » Sat Jun 11, 2011 8:42 pm

after suspendtoram and resume there is no TVsignal
When I reboot all works correct again.
I know this from other DVB Devices (KNC one TVcard)
With this card I had to reload some kernel modules by hand after resume
Which modules should I reload with my TBS6981?

found a script for vdr to identify the needed modules:

#!/bin/bash

# DVB-Module ermitteln; Pfad und Extension abtrennen; '-' in '_' umwandeln
modules=$(find /lib/modules/$(uname -r)/kernel/drivers/media -type f|sed "s/\([^/]*\/\)*\([^/]*\)\.ko/\2/g;s/-/_/g")

run=1
while [ $run -gt 0 ]; do
run=0
count=0
unload=""
loaded=""

# Module aus /proc/modules ermitteln
while read module size refcount rest; do
found=$(echo "$modules"|grep -e "$module" -w|wc -l)
if [ $found -gt 0 ]; then
# geladene DVB-Module, deren RefCount 0 ist, ermitteln
if [ $refcount -eq 0 ]; then
unload="$unload $module"
# Marker fuer weiteren Durchlauf setzen
run=1
else
loaded="$loaded $module"
let count=$count+1
fi
fi
done < /proc/modules

if [ $run -gt 0 ]; then
for mm in $unload; do
echo "rmmod $mm"
rmmod $mm
done
fi
done

if [ $count -gt 0 ]; then
echo "Couldn't unload:"
for mm in $loaded; do
echo " $mm"
done
fi

with this Ive got a error message:

rmmod cx23885
ERROR: Removing 'cx23885': Device or resource busy

Regards Marco
marco
 
Posts: 1
Joined: Sat Jun 11, 2011 8:29 pm

Re: no TV signal after suspend to ram and resume

Postby veehexx » Sun Jun 12, 2011 5:43 am

looks like your using VDR; so you'll need to close the part of VDR that uses the tuner card.
then you can 'modprobe -r cx23885'

when it comes out of suspend, you'll need to reload things in reverse, so cx23885, and then the VDR software.

it has something todo with the v4l framework and not specifically a TBS issue (apparently).

i call a suspend.sh and resume.sh script from /etc/sleep.d/.
hope that helps!
veehexx
 
Posts: 31
Joined: Mon Feb 28, 2011 10:03 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 17 guests