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
    Apr 10 21:56:36 localhost vdr: [19056] suspendoutput: output resumed by user action
    Apr 10 21:56:36 localhost vdr: [19056] [xine..put] 	-> Clear
    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]
    Apr 10 21:56:36 localhost runvdr: restarting VDR
    Apr 10 21:56:38 localhost vdr: [19530] VDR version 1.7.26 started


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

    Asus H170 PRO GAMING, Intel Core i7-6700T, 16GB RAM, GeForce GTX 1050 2GB, Samsung SSD 860 EVO 1TB 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".

Jetzt mitmachen!

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