[SOLVED-Doing executable the script]Can I build a macro executed by pressing 3 keys (example stop+9+stop) in yaVDR 0.5?

  • Hi.


    In yaVDR 0.4 and in yaVDR 0.3 I had a macro for restarting sxfe when sometimes it hanged up.


    I had the file StopNineStopKeys with this content:

    Code
    begin
        prog = irexec
        button = KEY_STOP
        button = KEY_9
        button = KEY_STOP
        config = /usr/bin/killall vdr-sxfe -9 | /usr/bin/logger
        end


    When yaVDR 0.4 started, it was executed this line:


    Code
    /usr/bin/irexec -d /path_To_StopNineStopKeys/StopNineStopKeys &


    So, when the graphical interface of sxfe hanged, I pressed stop+9+stop and it was restarted and working again.


    Can I do something similar in yaVDR 0.5, I tried to do the same but it does not work.


    Regards.
    jbjbjb

    VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT − DDR4 || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || easyVdr 3.0
    VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6
    VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844

    Einmal editiert, zuletzt von jbjbjb ()

  • Why don't you use /etc/lirc/lircrc to configure irexec? Is irexec running?

    Code
    status irexec

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Why don't you use /etc/lirc/lircrc to configure irexec? Is irexec running?

    Code
    status irexec


    Well, I do not use "/etc/lirc/lircrc" because I dont know how to do it, and it worked fine doing that I said in the previous post.


    Code
    status irexec


    returns:

    Code
    irexec start/running, process 1012


    Regards.
    jbjbjb

    VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT − DDR4 || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || easyVdr 3.0
    VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6
    VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844

  • Just include your existing code into this file, irexec should use it after a restart.

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Just include your existing code into this file, irexec should use it after a restart.


    Sorry, what file?


    Regards.
    jbjbjb

    VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT − DDR4 || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || easyVdr 3.0
    VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6
    VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844

  • /etc/lirc/lircrc - have a look at the upstart job configuration file /etc/init/irexec.conf :)

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Just use softhddevice and you won't need the restart of vdr-sxfe. ;) SoftHDDevice works for me without any freezes (about month).

    ASUS M4A78LT-M GL | AMD Athlon II X2 250 | 2GB RAM | Asus ENGT430 | Digital Devices OctopusNet mit 2 x Digital Devices DuoFlex S2 | PS3Remote | yaVDR 0.6.1

  • Just use softhddevice and you won't need the restart of vdr-sxfe. ;) SoftHDDevice works for me without any freezes (about month).


    Well, if no freezes, my wife will be very happy... and so will I.


    I will use softhdevice then, but for playing avi, mp3 and jpf files, I used to play them with the menú option "osd/video/media" that only appears with sxfe(xineliboutput) and not appears with softhdevice.


    How can I play avi and mp3 files with softhdevice without enter in xbmc? Is there any way to do it?


    Regards.
    jbjbjb

    VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT − DDR4 || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || easyVdr 3.0
    VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6
    VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844

  • /etc/lirc/lircrc - have a look at the upstart job configuration file /etc/init/irexec.conf :)


    Sorry seahawk1986, I realized that the script that lauch


    Code
    /usr/bin/irexec -d /path_To_StopNineStopKeys/StopNineStopKeys &


    was not executable. When I did it executable. it worked perfectly.


    Thanks a lot.
    Regards.
    jbjbjb

    VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT − DDR4 || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || easyVdr 3.0
    VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6
    VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844

  • Why are you doing this? We start irexec already, there is no need to start it a second time. Simply put you code in the file mentioned by seahawk1986.


    Gerald


    HP Proliant MicroServer Gen8, Xeon E3-1230, 12 GB RAM, 3xWD red 2TB im RAID 5, 2xSundtek MediaTV Home DVB-C/T, L4M TWIN-C/T, Ubuntu Server 14.04.1, Plex Media Server
    Samsung UE55H6470

  • Why are you doing this? We start irexec already, there is no need to start it a second time. Simply put you code in the file mentioned by seahawk1986.


    Gerald


    Well, this is what I do:


    1.- I build the file "StopNineStopKeys" with this content:

    Code
    begin
        prog = irexec
        button = KEY_STOP
        button = KEY_9
        button = KEY_STOP
        config = /usr/bin/killall vdr-sxfe -9 | /usr/bin/logger
        end


    2.- I build the file "launch_irexec" with this content:

    Bash
    #!/bin/sh
    /usr/bin/irexec -d /home/javier/00_scripts/StopNineStopKeys &
    exit 0


    3.- I copy "launch_irexec" in /etc/init.d/
    4.- I do executable (that was the problem I had)

    Code
    sudo chmod +x /etc/init.d/launch_irexec


    5.- The file should be executed when computer starts:

    Code
    #sudo ln -s /etc/init.d/lanza_irexec.sh /etc/rc2.d/S99StopNineStop
        #sudo ln -s /etc/init.d/lanza_irexec.sh /etc/rc3.d/S99StopNineStop
        #sudo ln -s /etc/init.d/lanza_irexec.sh /etc/rc4.d/S99StopNineStop
        #sudo ln -s /etc/init.d/lanza_irexec.sh /etc/rc5.d/S99StopNineStop


    6.- I reboot, and when xineliboutput interface freezes I press Stop+9+Stop keys and it restart and work again.


    I have a couple of macros more, one for restarting vdr and another for restarting computer.


    Is it not necessary? well, it could be, but when I am outside home, it is an esay way for my wife to solve an eventual issue.


    Regards.
    jbjbjb

    VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT − DDR4 || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || easyVdr 3.0
    VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6
    VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844

    2 Mal editiert, zuletzt von jbjbjb ()

  • Just add the content of StopNineStopKeys into /etc/lirc/lircrc and you are done. Nothing more needed. Really. Anyway - your installation - your rules - so you are free to make your life as difficult as you want it to be :P

    VDR User: 87 - LaScala LC14B - LG/Phillipps 6,4" VGA Display | Asrock H61/U3S3 | G630T | 1x 16GB Mobi Mtron 3035 1x WD 750GB 2,5" |1x L4m DVB-S2 Version 5.4

  • Just add the content of StopNineStopKeys into /etc/lirc/lircrc and you are done. Nothing more needed. Really. Anyway - your installation - your rules - so you are free to make your life as difficult as you want it to be :P


    :] , je, je, thankyou, I will try your solution, I do not want to do things harder than needed.


    Regards.
    jbjbjb

    VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT − DDR4 || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || easyVdr 3.0
    VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6
    VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844

  • Just use softhddevice and you won't need the restart of vdr-sxfe. ;) SoftHDDevice works for me without any freezes (about month).


    Well I have just opposite. Xineliboutput without any problems, but softhddevice freezes all the time. (some alsa broken pipe error)

    yaVDR 0.5
    GA-E7AUM-DS2H (GF9400), 2GB, E5200, 1TB+0.5TB, PCTV nanoStick T2 290e, WinTV-Nova-T 500, WinTV-HVR-1200, DVD+/-RW

  • /etc/lirc/lircrc


    Done, it works perfectly.


    Thanks again.
    Regards.
    jbjbjb

    VDR 1: Intel NUC6i5SYK || SSD 128Gb M.2 2242 ADATA PREMIER || External HD: W.D. Elements 5 Tb || RAM: 4 Gb KINGSTON HYPERX IMPACT − DDR4 || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || easyVdr 3.0
    VDR 2: Xtreamer Ultra || HD 2 Tb || RAM: 4 Gb || Remote compatible Microsoft Media Center || 3 tuners pctv nanoStick || yaVdr 0.6
    VDR 3: Siemens Gigaset M740 AV + HD Western Digital "My Book Essential-2, 1Tb" (6 partitions ext2) || VDR-NG-EM 0.6 Pro - Rev 844

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!