Shutdown Menu Request
#1
I run LibreELEC from one of my systems from an SD Card, retaining the original Android OS on the NAND memory, so I can Dual-Boot.

It was just pointed out to me that there is a 'Reboot to Nand' option in the Shutdown menu of the LibreELEC Confluence Skin;
I had never noticed it because as soon as I install a new system, I switch to BGN Big Grin
That option just does not appear in BGN so I was oblivious to it.

I created a new image of LibreELEC and left it in the Confluence Skin and sure enough, it is right there as one of the options in the Shutdown menu.

It's not part of the BGN menu as-is, but obviously the capability is there within the LibreELEC OS:
How can I create a sub-menu command to utilize "Reboot to NAND" ?

It would really be most useful to have this.
This would be applicable for both BGN v5.x and v6.x
Reply
#2
FWIW I've added this to a submenu in xonfluence - the relevant entry in my settings.xml is:
<setting id="UserSubFive.7.Path" type="string">System.ExecWait(&quot;/usr/sbin/rebootfromnand&quotWink</setting>

I'd imagine it might be awkward to add to the shutdown menu (unless you're editing it yourself), as AFAIK it's only relevant on kszaq's amlogic libreelec builds.

Edit: no, I don't have a smiley in my settings.xml.
Reply
#3
Can you give any guidance here @Tgxcoporation?
Don't expect you to include this option universally, (unless you want to, of course Big Grin) but if you can suggest how I would go about how/where to add it myself, that would be great.
Reply
#4
Basically you have to add an item to the list of items in DialogButtonMenu.xml such as:

Code:
<item id="141">
   <visible>!Skin.HasSetting(QuitMenu_Hide_Reboot)</visible>
   <visible>System.CanReboot</visible>
   <visible>System.Platform.Android</visible>
   <onclick>dialog.close(all,true)</onclick>
   <onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
   <label>Reboot from Nand</label>
   <thumb>topbar/topbar_restart_nofocus.png</thumb>
   <icon>topbar/topbar_restart_focus.png</icon>
</item>

Or in a simplier way, use the Favourites feature described here:

http://forum.kodi.tv/showthread.php?tid=...pid2388757
Reply
#5
Thanks!
I had to delete the Android line and after that it worked!
That included it in the hidden toolbar menu ....

Then I created a custom submenu item under main menu quit
using Custom command - System.ExecWait("/usr/sbin/rebootfromnand")
Reply
#6
I just did this on Kodi 17 version (kszaq LibreElec Beta 8.0) -for BGN 6.x also

Similarly amend the DialogButtonMenu.xml

Code:
<item id="29">
        <label>Reboot from internal</label>
        <onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
        <visible>System.CanReboot</visible>
</item>
Reply
#7
hi, can we please explain how to do this to a neewbie like me..
where i need to put this string and how..
thank you in advance.. Smile
Reply
#8
..
Reply
#9
(2017-01-19, 19:49)DEcosse Wrote: I just did this on Kodi 17 version (kszaq LibreElec Beta 8.0) -for BGN 6.x also

Similarly amend the DialogButtonMenu.xml
Code:
<item id="29">
<label>Reboot from internal</label>
<onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
<visible>System.CanReboot</visible>
</item>
hello where to put this code? I cant find DialogButtonMenu.xml , i am using libreelec. thanks
Reply
#10
(2017-01-17, 16:23)Tgxcorporation Wrote: Basically you have to add an item to the list of items in DialogButtonMenu.xml such as:
Code:
<item id="141">
<visible>!Skin.HasSetting(QuitMenu_Hide_Reboot)</visible>
<visible>System.CanReboot</visible>
<visible>System.Platform.Android</visible>
<onclick>dialog.close(all,true)</onclick>
<onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
<label>Reboot from Nand</label>
<thumb>topbar/topbar_restart_nofocus.png</thumb>
<icon>topbar/topbar_restart_focus.png</icon>
</item>

Or in a simplier way, use the Favourites feature described here:

http://forum.kodi.tv/showthread.php?tid=...pid2388757 
url dont work can  you update url for favourites feature? thaks
Reply
#11
When you run CoreELEC on SD Card with the BGN skin it requires a slightly different technique - the command for Reboot and Switch to Android is already there in the Quit menu (you just have to enable it) 
However to action it, you must first click the Reboot to Android (it will appear to do nothing!) and THEN click the (general) Reboot - after you have clicked each sequentially, it will execute the reboot to Android system 

i.e. For CoreElec with such skins to boot to Android you need TWO actions / commands.
System.ExecWait("/usr/sbin/rebootfromnand")
Reset() or XBMC.Reboot() 

In order to create a direct single click short-cut to execute those two commands, I used this great tip (and take no credit for it - just passing along) - https://discourse.coreelec.org/t/command...ins/1937/5 - and can confirm it works on BGN skin with CoreELEC (or LibreELEC if you're using that) 
(that in itself was derived from this thread - https://forum.kodi.tv/showthread.php?tid...pid2500298 )

Created an “overrides.xml” file with this content:

<?xml version="1.0" encoding="UTF-8"?>
    <overrides>
        <override action="RebootToAndroid">
            <action>System.ExecWait("/usr/sbin/rebootfromnand")</action>
            <action>XBMC.Reboot()</action>
        </override>
</overrides>

Copy it within the “userdata” folder

Go “Skin Settings -> Home -> Miscellaneous -> Customize menu items and widgets;
Select the Quit Icon and then select Custonize sub-menu
add an item with the label “Reboot to Android” and this action (without the quotes): “RebootToAndroid”

Note that without doing anything, as indicated in the opening paragraph, you can enable 'reboot & switch to Android' from the Quit settings in the BGN Skin Settings - however when you go to action that, it does not work on its own - you first click that action  and then click the general reboot button (so one followed by the other) in order to execute; the script shown in the link enables a single click solution.

Similary, for the Hidden Menu in the Top Bar, add a line in dialongbuttonmenu.xml for item id =141 (should start at line 235)

<item id="141">
         <visible>Skin.HasSetting(QuitMenu_Hide_Reboot_Android)</visible>
         <visible>System.CanReboot</visible>
         <onclick>dialog.close(all,true)</onclick>
         <onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
         <onclick>XBMC.Reboot()</onclick>
         <label>Reboot To Android</label>
          <thumb>topbar/topbar_restart_nofocus.png</thumb>
          <icon>topbar/topbar_restart_focus.png</icon>
</item>
Reply

Logout Mark Read Team Forum Stats Members Help
Shutdown Menu Request0