LinHES Forums
http://forums.linhes.org/

Encoder Status LEDs for KnoppMyth
http://forums.linhes.org/viewtopic.php?f=6&t=12786
Page 2 of 2

Author:  bruce_s01 [ Wed Dec 13, 2006 6:29 am ]
Post subject: 

Quote:
root@mythtv:/etc# ls rc*/rec*
ls: rc*/rec*: No such file or directory


That shows that a file starting with rec in not present under rc* which it might not be, try:

Code:
root@mythtv:/etc# ls rc*/S*rec*

and
Code:
root@mythtv:/etc# ls init.d/rec*


The first one is to check if the Start level is being set up and the second, if the recstart file is present in the /etc/init.d directory.

Bruce S.

Author:  soundoff [ Thu Dec 14, 2006 6:22 am ]
Post subject: 

Thanks Bruce.

root@mythtv:~# cd /etc
root@mythtv:/etc# ls rc*/S*rec*
rc2.d/S20recstat rc3.d/S20recstat rc4.d/S20recstat rc5.d/S20recstat
root@mythtv:/etc#


And..

root@mythtv:/etc# ls init.d/rec*
init.d/recstat
root@mythtv:/etc#



What does tell you?

Author:  bruce_s01 [ Thu Dec 14, 2006 7:10 am ]
Post subject: 

Quote:
What does tell you?


It tells us that the recstart script is present and has been set up correctly to autostart. Right we need to check if they are capable of running, so:
Code:
root@mythtv:/etc# ls -l /etc/init.d/rec*

and
Code:
root@mythtv:/etc# ls -l /usr/bin/rec*


Bruce S.

Author:  cecil [ Thu Dec 14, 2006 10:53 pm ]
Post subject: 

Code:
update-rc.d -f recstat remove
update-rc.d recstat defaults 90

Author:  soundoff [ Fri Dec 15, 2006 6:22 am ]
Post subject: 

Cecil: that fixed it - thanks!!

Bruce - thanks also for you help.

I will update the instcutions on page one. Cecil can you explain what the 90 on the end did for me?

Author:  khrusher [ Fri Dec 15, 2006 8:14 am ]
Post subject: 

if you do this ls command again, you wil see the '90'

Code:
root@mythtv:~# cd /etc
root@mythtv:/etc# ls rc*/S*rec*


The startup scripts are run in numeric order. the 90 moved it later in the startup process.

Author:  cecil [ Fri Dec 15, 2006 9:23 am ]
Post subject: 

The '90' means it will start later in the boot process.

Author:  soundoff [ Fri Dec 15, 2006 8:29 pm ]
Post subject: 

thanks guys

Author:  jimdoc [ Wed Oct 01, 2008 6:04 pm ]
Post subject: 

I've modified recstat.py to accommodate the additional "virtual" tuners when using multirec.

The script works perfectly, but won't start at boot.
I originally started and stopped the script via webmin, but I did not modify the startup script.

I've also re-run
Code:
update-rc.d -f recstat remove
update-rc.d recstat defaults 90

as recommended above, but it still won't start at boot.
I can manually launch it.
Any ideas why it won't start at boot?
Prior to editing recstat.py, it did work at boot.

Author:  joyboy [ Sat Oct 11, 2008 3:22 pm ]
Post subject: 

I don't have a direct answer to your question, but as I remarked earlier I was looking at a blinking keyboard solution. I haven't even thought about it in months, but when I picked up my solution on re-reading this it was not working.

I was looking at using wackyd http://www.joedog.org/JoeDog/Wackyd to blink the lights. The original notification daemon I may have on an old hard drive somewhere but the script in the original post could easily be modified to work.

Unfortunately wackyd is segfaulting on my current system and I don't have time to figure out why.

Maybe someone else has time to look at this solution, or even just another keyboard blinker solution, however.

Author:  joyboy [ Sat Oct 11, 2008 3:32 pm ]
Post subject: 

an alternative method would be setleds

setleds -L +num -caps +scroll < /dev/tty1

would light the num and scroll lock indicators, for example.

Author:  jimdoc [ Sat Oct 11, 2008 7:06 pm ]
Post subject: 

I was able to get it running. But not in the "normal" way.
I had to start recstat via the apps file.
Since recstat is now started by user mythtv, I had to chmod the "pid" file to allow it to be updated by user mythtv.

Anyway, I love this script and love the LED's. Now I've got it working with multirec.

Author:  jimdoc [ Sun Jan 31, 2010 1:57 pm ]
Post subject: 

Now that I've updated to R6 (clean install).
How do I get this running under R6?

Where do I put "recstat" in order to get add_service.sh to recognize it?
I could not get pyserial to install, so I added perl-device-serialport via pacman. Is this the correct package to use for serial port?

Any help would be appreciated.

Page 2 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/