Cannot shutdown or restart RPi2 from Kodi [FIXED]

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Cannot shutdown or restart RPi2 from Kodi [FIXED]

Postby maggie2 » Mon Mar 16, 2015 9:35 pm

When I go to the kodi power button icon, I only have the option to "exit" but I think I should be able to restart and shutdown the RPi2 from here. What am I missing? I have the upower package installed.

$this->bbcode_second_pass_code('', '$ id kodi
uid=997(kodi) gid=997(kodi) groups=997(kodi),6(disk),90(network),91(video),92(audio),93(optical),95(storage),98(power)
')
Last edited by maggie2 on Fri Mar 20, 2015 6:43 pm, edited 1 time in total.
maggie2
 
Posts: 22
Joined: Mon Mar 16, 2015 8:32 pm

Re: Cannot shutdown or restart RPi2 from Kodi

Postby graysky » Wed Mar 18, 2015 7:31 pm

Hmm... you shouldn't need the upower package as that just allows for displaying the battery level (non-existant on RPi hardware). So you hit that button and you ONLY see an option to exit? If that is true, there might be something wrong with the udev rule the devs are shipping with the package. Can anyone with a RPi2 confirm the behavior maggie reported (I only have a RPi classic and I can restart or shutdown from that menu).
graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Cannot shutdown or restart RPi2 from Kodi

Postby WarheadsSE » Wed Mar 18, 2015 7:38 pm

He should check loginctl for it having a proper seat.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot shutdown or restart RPi2 from Kodi

Postby maggie2 » Wed Mar 18, 2015 10:13 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'H')e should check loginctl for it having a proper seat.


The kodi user is not listed in the output of "loginctl" for some reason. I am starting the package provided service so is this a bug :?:
maggie2
 
Posts: 22
Joined: Mon Mar 16, 2015 8:32 pm

Re: Cannot shutdown or restart RPi2 from Kodi

Postby graysky » Wed Mar 18, 2015 10:48 pm

$this->bbcode_second_pass_quote('maggie2', 'T')he kodi user is not listed in the output of "loginctl" for some reason


On my RPi with kodi running, there isn't any mention of the kodi user yet I have the restart/shutdown option displayed.

@Warheads - Are you certain that the kodi user should show up?
graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Cannot shutdown or restart RPi2 from Kodi

Postby WarheadsSE » Thu Mar 19, 2015 1:49 pm

I don't use it, but it depends on who it is run as, and if they have machine rights to reboot.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot shutdown or restart RPi2 from Kodi

Postby graysky » Thu Mar 19, 2015 8:19 pm

Actually, with one of the most recent updates, I have lost the ability to restart or to shutdown my RPi from Kodi just as maggie has reported. This is not true on Arch x86_64; there the kodi user via the systemd service can. I will open a bug report.

EDIT: https://github.com/archlinuxarm/PKGBUILDs/issues/1138
graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Cannot shutdown or restart RPi2 from Kodi

Postby WarheadsSE » Thu Mar 19, 2015 10:02 pm

Please confirm that SOURCES aren't at fault.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot shutdown or restart RPi2 from Kodi

Postby graysky » Thu Mar 19, 2015 10:56 pm

@Warh - https://github.com/archlinuxarm/PKGBUILDs/issues/1140
@maggie2 - Please try my PR if you know how to do that and see if it works on your RPi2. Note that you will need to pull down some new deps.
graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Cannot shutdown or restart RPi2 from Kodi

Postby maggie2 » Thu Mar 19, 2015 11:31 pm

I tried the new service and installed the new deps and it does load kodi but I still can't restart or shutdown :o

Your changes do now register the kodi user in loginctl so that is a step forward!
$this->bbcode_second_pass_code('', '% loginctl
SESSION UID USER SEAT
c1 1000 maggie
c2 997 kodi seat0 ')
maggie2
 
Posts: 22
Joined: Mon Mar 16, 2015 8:32 pm

Next

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 9 guests