Ryan Roth wrote:
> 
> Thanks
> 
> Duncan Webb wrote:
>> Ryan Roth wrote:
>>   
>>> Here are a set of diffs to add this feature.  It is kind of an ugly hack.
>>>     
>> Great but won't work when the main menu is longer than one page.
>>
>>   
>>> [EMAIL PROTECTED] wrote:
>>>     
>>>> Hi,
>>>> I have wrote this question to freevo feature tracker, but this is
>>>> probably
>>>> configuration question, than new feature, so I am posting it here.
>>>>
>>>> I don't know how to configure freevo to quit, when off button is
>>>> pressed on remote control. Using remote control is possible to go to
>>>> Main menu and there go to Quit and confirm it, but I don't know
>>>> straight way to do this by one button.
>>>>
>>>> Duncanwebb wrote this to my tracker item:
>>>> begin
>>>>     button = POWER
>>>>     prog   = freevo
>>>>     repeat = 3
>>>>     config = MENU
>>>> end
>>>>
>>>> This is my current setup, but it is not, what I want (it will go to
>>>> main menu,
>>>> but not quit freevo).
>>>>
>>>>       
>> Now that I understand what is wanted there may be other ways to do this.
>>
>> First, with irexec you can execute any system command you like: freevo
>> stop for example.
>>
>> >From the command line, a useful but little know option to freevo is
>> execute. For example you can type:
>> freevo execute /path/to/freevo/module.py
>>
>> If this module has been written with a __main__ section then it may do
>> something useful. It may be possible to call the shutdown module.
>>
>> Another approach is to add a SHUTDOWN event which then calls the
>> shutdown module.
>>
> Ok.   Try the one I made.  I wanted to call the shutdown item just like 
> the video items, but there was no way that I could find to do it.  That 
> would be the ideal way of doing it so that you still get prompted like 
> usual for a shutdown confirmation.  So I think the SHUTDOWN event would 
> be the way to go.  I have no idea how or where to add it though :)  If 
> you point me in the right direction, and possibly to a example, I could 
> probably hack that code up more.

The event it self need to be in event.py and I think the handler should
be in rc.py. Could be tricky to get right, as these is also autoshutdown.py.

Duncan




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to