2019-12-29, 19:54
Hi,
I changed the behaviour of the chassis power button to suspend Kodi via Configfiles/logind.conf.d:
However, the power menu comes up before the kodi suspends. After kodi wakes up, the power menu is still there and needs to be dismissed.
I found a way to hide it when when I click the POWER menu option , via DialogButtonMenu.xml and LoginScreen.xml with the changes below, but these changes have no effect when the physical button is pressed:
DialogButtonMenu.xml
LoginScreen.xml
Is there an option to remove the power menu popup at silvo, when pressing the physical power button?
Thank you in advance.
I changed the behaviour of the chassis power button to suspend Kodi via Configfiles/logind.conf.d:
Code:
[Login]
HandlePowerKey=suspend
However, the power menu comes up before the kodi suspends. After kodi wakes up, the power menu is still there and needs to be dismissed.
I found a way to hide it when when I click the POWER menu option , via DialogButtonMenu.xml and LoginScreen.xml with the changes below, but these changes have no effect when the physical button is pressed:
DialogButtonMenu.xml
xml:<control type="button" id="3">
<visible>no</visible>
<!--<visible>System.CanPowerDown</visible> -->
</control>
<control type="button" id="4">
<!--<visible>!System.HasAlarm(shutdowntimer)</visible>
<visible>System.CanPowerDown | System.CanSuspend | System.CanHibernate</visible>-->
<visible>no</visible>
</control>
LoginScreen.xml
xml:<control type="button" id="20">
<!--<onclick>ActivateWindow(ShutdownMenu)</onclick> -->
</control>
Is there an option to remove the power menu popup at silvo, when pressing the physical power button?
Thank you in advance.