suspendoutput: enable shutdown code

  • When suspendoutput is enabled, VDR (at least a yaVDR installation) will not shutdown after MinUserInactivity minutes passed. I tried to contact the developer but he didn't answer. In the plugin's code there was a snippet that seems to do the job but it was disabled.


    The attached patch enables this code and adds a menu item to activate or deactivate it. Furthermore, it corrects the indention in this section. It is written against vdr-plugin-suspendoutput-1.0.1.


    This is not tested very much, but for two days until now it "works for me".

  • thanks for the patch, but with this installed i have problem now with imon-plugin...permanent segfaulting ?(


    Code
    1. Apr 10 21:56:36 localhost vdr: [19056] suspendoutput: output resumed by user action
    2. Apr 10 21:56:36 localhost vdr: [19056] [xine..put] -> Clear
    3. Apr 10 21:56:36 localhost kernel: [51180.507687] iMonLCD: watch [19076]: segfault at 28 ip 00007f6f8e7e687b sp 00007f6f85f3bd80 error 4 in libvdr-imonlcd.so.1.7.26[7f6f8e7d8000+14000]
    4. Apr 10 21:56:36 localhost runvdr: restarting VDR
    5. Apr 10 21:56:38 localhost vdr: [19530] VDR version 1.7.26 started


    Code
    1. Apr 12 12:55:46 localhost vdr: [1131] suspendoutput: trying to shutdown ...
    2. Apr 12 12:55:46 localhost vdr: [1101] Power button pressed
    3. Apr 12 12:55:46 localhost vdr: [1101] confirm: Taste drücken, um Ausschalten abzubrechen
    4. Apr 12 12:55:46 localhost vdr: [1101] warning: Taste drücken, um Ausschalten abzubrechen
    5. Apr 12 12:55:46 localhost vdr: [1101] suspendoutput: output resumed by user action
    6. Apr 12 12:55:46 localhost vdr: [1101] [xine..put] -> Clear
    7. Apr 12 12:55:46 localhost kernel: [37213.442770] iMonLCD: watch [1128]: segfault at 28 ip 00007feb7ac7d87b s
    8. p 00007feb6e369d80 error 4 in libvdr-imonlcd.so.1.7.26[7feb7ac6f000+14000]
    9. Apr 12 12:55:46 localhost runvdr: restarting VDR
    10. Apr 12 12:55:48 localhost vdr: [18107] VDR version 1.7.26 started

    Asus M3N78-EM, AMD Athlon II X2 240e, 4GB DDR21066GeilGreen, Crucial M4 SSD+3TB WD Red, Mystique SaTiX-S2 Dual, Archlinux -> VDR4Arch


    "Freunde sind Menschen, die dich mögen obwohl sie dich kennen"

  • Petri Hintukainen (the author of suspendoutput) wrote me today that this code part has been disabled because it "does not work with recent vdr versions". Well, it works for me, but maybe you found what he meant. He also suggests that "updating it
    from some recent vdr.c might work".