No display after exit xbmc

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

No display after exit xbmc

Postby angel6700 » Mon Mar 10, 2014 12:09 pm

Hello,

I'm not sure if this has been asked before. I have searched but didn't find anything.
I boot my raspberry pi to console. Then CTRL-ALT-F2. Login. Then I start xbmc with:
$this->bbcode_second_pass_code('', 'xbmc-standalone')

After ussing it, I select the turn-off icon in xbmc and select the option Exit. The problem is that the screen is black.
Even CTRL-ALT-F1, F2.... do nothing. I think I can do this to solve it:
$this->bbcode_second_pass_code('', 'fbset -xres 1280 -yres 720')

But typing without seeing what you type is not nice.

Am I the only one with this problem?

How could I fix it?

Thanks in advance.

Regards.
angel6700
 
Posts: 3
Joined: Thu Nov 28, 2013 10:07 pm

Re: No display after exit xbmc

Postby sdjf » Mon Mar 17, 2014 9:16 pm

This does not solve your ultimate problem, but is an idea that might help make it easier to enter your command when you have no display.

IF you are able to log in, then this will work. Put the command sequence in an alias in your .bashrc file, one that is very short and easy to type. Something like the following, assuming you know the command sequence does what you want:

alias resetfb="fbset -xres 1280 -yres 720"

Pick whatever name you want for your alias, that is not already a command on the system. Then it will be available after login. I have a bunch of aliases like that, which I use, when stuck without a display, that do various things for me.

Then all you have to do is type resetfb (or whatever else you called the alias) and your command sequence will be executed.

I have that sort of thing happen when my X crashes (I have not tried XBMC), and find what is easiest to do for me, is change to a different terminal, and sync and reboot. that restores the ability for me to issue startx, which is how I get a USB monitor seen in my setup.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm

Re: No display after exit xbmc

Postby angel6700 » Thu Mar 27, 2014 1:19 pm

Hello,
thanks a lot, sdjf. I have followed your advice, which is very good.
By the way... I've just discovered that, if just after first reboot/login, I perform the fbset command. Then if I start xbmc and later I exit, I still have the display doing a CTRL-ALT-F1.

Thank you again,

regards.
angel6700
 
Posts: 3
Joined: Thu Nov 28, 2013 10:07 pm

Re: No display after exit xbmc

Postby sdjf » Fri Mar 28, 2014 3:54 am

How cool, I am glad that helped. Another tip is that sometimes if one of the ttys is not working properly, I just log into a different one. Had to do that today when having to restart x, tty1 was not responding and I did not want to reboot. So just logged into a different tty and that worked.

Sometimes also my Pi reattaches my display on a different fb device number. I have learned that to get that to work with my config files, just to symlink from fb2 to fb1, just did that tonight when did not want to reboot in order to run startx.

ln -s /dev/fb2 /dev/fb1

It only holds until the next reboot, but then I won't need it, as the Pi will mount my monitor on /dev/fb1 after a reboot.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 10 guests