PDA

View Full Version : RF Tuner Hardware question



Smudger
21-11-2011, 09:40 PM
My RF output is not reconised at startup using E2. It once did in the past and I was able setup it worked after that, even though the option in setup stops appearing again.

It appearded after I had a sat tuner problem after recording so was able to setup and it worked ok until next install. No mater which E2 verson I use it's the same with the exception of the OFW where it works ok first time.

So can I rerun the command via telnet that looks for the tuner so I can setup or where are the settings stored some settings are in /etc/enigma2/settings

example:-
config.rfmod.enable=true
config.rfmod.channel=69

and some details are in /usr/lib/enigma2/python/Components RFmod.py

how could I run the RFmod.py script I assume its run from a higher level.
I always get -sh: RFmod.py: Permission denied
.

any help would be appreciated.

Smudger
27-11-2011, 10:06 PM
has anyone got a folder RFmod or RFout or something similar somwhere under /usr/lib/enigma2/python/ and could have a copy of it.

Thanks in advance.

jimmyjim11
27-11-2011, 10:46 PM
/usr/lib/enigma2/python/components/RFmod.py cant upload file :confused:

from config import config, ConfigSelection, ConfigSubsection, ConfigOnOff, ConfigSlider
from enigma import eRFmod
from Components.SystemInfo import SystemInfo

# CHECK ME.
RFMOD_CHANNEL_MIN = 21
RFMOD_CHANNEL_MAX = 69 + 1

class RFmod:
def __init__(self):
pass

def setFunction(self, value):
eRFmod.getInstance().setFunction( not value)
def setTestmode(self, value):
eRFmod.getInstance().setTestmode( value)
def setSoundFunction(self, value):
eRFmod.getInstance().setSoundFunc tion(not value)
def setSoundCarrier(self, value):
eRFmod.getInstance().setSoundCarr ier(value)
def setChannel(self, value):
eRFmod.getInstance().setChannel(v alue)
def setFinetune(self, value):
eRFmod.getInstance().setFinetune( value)

def InitRFmod():
detected = eRFmod.getInstance().detected()
SystemInfo["RfModulator"] = detected
if detected:
config.rfmod = ConfigSubsection()
config.rfmod.enable = ConfigOnOff(default=False)
config.rfmod.test = ConfigOnOff(default=False)
config.rfmod.sound = ConfigOnOff(default=True)
config.rfmod.soundcarrier = ConfigSelection(choices=[("4500","4.5 MHz"), ("5500", "5.5 MHz"), ("6000", "6.0 MHz"), ("6500", "6.5 MHz")], default="5500")
config.rfmod.channel = ConfigSelection(default = "36", choices = ["%d" % x for x in range(RFMOD_CHANNEL_MIN, RFMOD_CHANNEL_MAX)])
config.rfmod.finetune = ConfigSlider(default=5, limits=(1, 10))

iRFmod = RFmod()

def setFunction(configElement):
iRFmod.setFunction(configElement. value);
def setTestmode(configElement):
iRFmod.setTestmode(configElement. value);
def setSoundFunction(configElement):
iRFmod.setSoundFunction(configEle ment.value);
def setSoundCarrier(configElement):
iRFmod.setSoundCarrier(configElem ent.index);
def setChannel(configElement):
iRFmod.setChannel(int(configEleme nt.value));
def setFinetune(configElement):
iRFmod.setFinetune(configElement. value - 5);

# this will call the "setup-val" initial
config.rfmod.enable.addNotifier(s etFunction);
config.rfmod.test.addNotifier(set Testmode);
config.rfmod.sound.addNotifier(se tSoundFunction);
config.rfmod.soundcarrier.addNoti fier(setSoundCarrier);
config.rfmod.channel.addNotifier( setChannel);
config.rfmod.finetune.addNotifier (setFinetune);