You are not logged in.

Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Cybso

Trainee

  • "Cybso" started this thread

Posts: 65

Location: Norddeutschland

Occupation: Selbstständiger Softwareentwickler

  • Send private message

1

Monday, April 9th 2012, 11:50am

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".
Cybso has attached the following file:

cooljay032

Intermediate

Posts: 352

Location: Schwalbach "Rock-City"

Occupation: AWP

  • Send private message

2

Thursday, April 12th 2012, 5:49pm

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

Source code

1
2
3
4
5
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

Source code

1
2
3
4
5
6
7
8
9
10
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 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"

Cybso

Trainee

  • "Cybso" started this thread

Posts: 65

Location: Norddeutschland

Occupation: Selbstständiger Softwareentwickler

  • Send private message

3

Thursday, April 12th 2012, 5:57pm

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".