Kodi Community Forum
Solved Antix => POWER OFF SYSTEM won't work as expected - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Solved Antix => POWER OFF SYSTEM won't work as expected (/showthread.php?tid=376419)



Antix => POWER OFF SYSTEM won't work as expected - yoyoda - 2024-02-24

Hi here
Everything works fine on my system and on Kodi except.
When I choose the "power off system" option, my PC doesn't switch off.
Kodi just closes itself and I go back to the desktop as if I had chosen exit.
I can't figure out how to set the option to turn the computer off.
Regards


RE: Antix => POWER OFF SYSTEM won't work as expected - appas - 2024-02-25

Have a look at your skin's menu definition file and verify that it's set to call Kodi's internal Powerdown function. Eg. in the Estuary skin's /usr/share/kodi/addons/skin.estuary/xml/DialogButtonMenu.xml:
Code:
  
                                      <item>
                                                <label>$LOCALIZE[13016]</label>
                                                <onclick>Powerdown()</onclick>
                                                <visible>System.CanPowerDown</visible>
                                        </item>

If that's all right, then enable debugging and post logs. I am using a closely related system, MX Linux, and "Power off system" in the "Power Options" menu works for me.


RE: Antix => POWER OFF SYSTEM won't work as expected - wsnipex - 2024-02-25

it depends if the user kodi is running under has the needed permission.
check custom-actions.pkla from https://forum.kodi.tv/showthread.php?tid=231955
If that doesn't help, provide a Debug Log


RE: Antix => POWER OFF SYSTEM won't work as expected - izprtxqkft - 2024-02-25

(2024-02-25, 08:35)wsnipex Wrote: If that doesn't help, provide a Debug Log

perhaps the one posted 3 days ago is useful https://forum.kodi.tv/showthread.php?tid=376380&pid=3185188#pid3185188
https://paste.kodi.tv/ofocusiqox.kodi

all i know is it's Manjaro and seems to have an issue with CanStop on line 193 (which seems to be an indicator)
but couldn't say what needs to be done on Manjaro or even if it has to do with that


RE: Antix => POWER OFF SYSTEM won't work as expected - yoyoda - 2024-02-25

No that not on the same computer this one is under Manjaro. The one I'm talking about here is under AntiX.

My skin is AeonNox no directory here (/usr/share/kodi/addons/)

I created the custom-actions.pkla file but it didn't change anything.

Here for the logs : https://paste.kodi.tv/urasipuyim.kodi


RE: Antix => POWER OFF SYSTEM won't work as expected - wsnipex - 2024-02-25

something is missing.
maybe have a look here: https://linuxaudiofoundation.org/install-kodi-20-1-on-debian-11-12-bullseye-bookworm/


RE: Antix => POWER OFF SYSTEM won't work as expected - izprtxqkft - 2024-02-25

(2024-02-25, 10:25)yoyoda Wrote: My skin is AeonNox no directory here (/usr/share/kodi/addons/)

I created the custom-actions.pkla file but it didn't change anything.

it's not the skin

Quote:The name org.freedesktop.ConsoleKit was not provided by any .service files
The name org.freedesktop.UPower was not provided by any .service files

you need to install consolekit and upower for kodi to even attempt this
they need to be configured properly for kodi to perform it successfully


RE: Antix => POWER OFF SYSTEM won't work as expected - yoyoda - 2024-02-26

Nice, now everything work fine.
Thank you all


RE: Antix => POWER OFF SYSTEM won't work as expected - yoyoda - 2024-02-26

(2024-02-26, 23:20)yoyoda Wrote: works



Antix => POWER OFF SYSTEM won't work as expected - wsnipex - 2024-03-06

Thread marked solved.