[SOLVED] Cant get out from XBMC

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[SOLVED] Cant get out from XBMC

Postby lsas » Mon Jul 15, 2013 4:22 pm

Hello everyone.

I've a xbmc running over my raspberry with archarm.

I'm having some trouble with the network interface, it seems not available from the network, so i cant login into ssh.
So i've tried to work directly on the pi to try to discover what are the network issues.

But XBMC is running as a deamon, so it automatically start at system boot.
When i try to exit from the XBMC menu, the console appear for just a couple of seconds, but then it start again automatically.
So, what i've to do?
First of all why xbmc is restarting automatically after an exit command? is there any kind of option to disable this behavior?
And then, most important, how i can get back my console to fix the system ??

Any suggestions?

Thanks to all
Last edited by lsas on Tue Jul 16, 2013 9:57 am, edited 1 time in total.
lsas
 
Posts: 13
Joined: Wed Dec 05, 2012 4:33 pm

Re: Cant get out from XBMC

Postby pepedog » Mon Jul 15, 2013 4:30 pm

Can you do Ctrl Alt F1
?
$this->bbcode_second_pass_code('', 'systemctl disable xbmc')
Network, disable what there is now
$this->bbcode_second_pass_code('', 'rm /etc/systemd/system/multi-user.target.wants/net*')
Enable this instead
$this->bbcode_second_pass_code('', 'systemctl enable dhcpcd@eth0')
You might be able to connect with alarmpi instead of ip address
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cant get out from XBMC

Postby lsas » Mon Jul 15, 2013 4:53 pm

unfortunately not.

From inside xbmc i cant reach the tty with CTRL+ALT+F1 or F2, the combination does not work.

When try exit to console, i've just 2maybe 3 seconds and i cant do the login..
lsas
 
Posts: 13
Joined: Wed Dec 05, 2012 4:33 pm

Re: Cant get out from XBMC

Postby pepedog » Mon Jul 15, 2013 5:37 pm

Can you mount on another Linux and delete rm /etc/systemd/system/multi-user.target.wants/xbmc.service
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cant get out from XBMC

Postby lsas » Mon Jul 15, 2013 6:40 pm

Thath was my last chance..

So i'll try that way.
But any suggestion on how to disable automatic restart of xbmc?
lsas
 
Posts: 13
Joined: Wed Dec 05, 2012 4:33 pm

Re: Cant get out from XBMC

Postby pepedog » Mon Jul 15, 2013 8:05 pm

If you delete the service and manually run xinit /usr/bin/xbmc it won't pop up again.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cant get out from XBMC

Postby lsas » Mon Jul 15, 2013 9:14 pm

but i'd like to keep the start at boot via systemd
i want to disable only th restart after exit...
lsas
 
Posts: 13
Joined: Wed Dec 05, 2012 4:33 pm

Re: Cant get out from XBMC

Postby pepedog » Tue Jul 16, 2013 8:24 am

As per https://wiki.archlinux.org/index.php/Systemd#Editing_provided_unit_files
$this->bbcode_second_pass_code('', 'mkdir /etc/systemd/system/xbmc.service.d/
nano /etc/systemd/system/xbmc.service.d/stoprestart.conf
# paste this in
[Service]
RestartSec=10000')
This will stop xbmc restarting for 10000 seconds

Another way is to edit /usr/lib/systemd/system/xbmc.service and remove obvious line, but an upgrade will delete the change
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cant get out from XBMC

Postby lsas » Tue Jul 16, 2013 9:57 am

Yeah i had already the same idea.
After the previous post i google systemd and found a complete documentation of how to write the .service file

So after looking inside the xbmc.service i've changed the Restart option from always to on-failure

Thanks by the way pepedog for your precious support.
lsas
 
Posts: 13
Joined: Wed Dec 05, 2012 4:33 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 5 guests