quarnster / boxeebox-xbmc

Aiming to get xbmc up and running on the boxee box
Other
118 stars 44 forks source link

black screen, how to reset resolution? #123

Closed maphew closed 10 years ago

maphew commented 10 years ago

this is a newbie issue.

I successfully installed xbmc for boxee+, configured a few things, and rebooted a few times. One of the settings changed was resolution and overscan; our TV is only 720p. Later one of my children changed something and now every time the Boxee boots, after the system Boxee and Dlink startup screens the display shuts off with "no signal". So I think the system has been set to a resolution the TV can't handle.

How can I reset the screen resolution without formatting the USB stick and installing from scratch?

I'm comfortable at the command prompt and know how to putty shell into the Boxee Box and get around a bit. I just have no idea what directories or config files to look at and try and change.

arturmaj commented 10 years ago

Go to USB stick (through samba share or plug it in your PC). Backup portable_data folder and delete it. This should reset all settings. Is it you Matt?

Artur Maj

On Sun, Apr 13, 2014 at 12:14 PM, matt wilkie notifications@github.comwrote:

this is a newbie issue.

I successfully installed xbmc for boxee+, configured a few things, and rebooted a few times. One of the settings changed was resolution and overscan; our TV is only 720p. Later one of my children changed something and now every time the Boxee boots, after the system Boxee and Dlink startup screens the display shuts off with "no signal". So I think the system has been set to a resolution the TV can't handle.

How can I reset the screen resolution without formatting the USB stick and installing from scratch?

I'm comfortable at the command prompt and know how to putty shell into the Boxee Box and get around a bit. I just have no idea what directories or config files to look at and try and change.

Reply to this email directly or view it on GitHubhttps://github.com/quarnster/boxeebox-xbmc/issues/123 .

maphew commented 10 years ago

thanks @arturmaj. I didn't know the usb device was open to samba; that makes things easier to explore! I removed that folder but there is not change in behavior.

Yah, it's Matt (I don't recognize your nick though, sorry. should I?).

arturmaj commented 10 years ago

There is another Matt Wilkie in BC Vancouver. I thought it was you.

On Sun, Apr 13, 2014 at 5:09 PM, matt wilkie notifications@github.comwrote:

thanks @arturmaj https://github.com/arturmaj. I didn't know the usb device was open to samba; that makes things easier to explore! I removed that folder but there is not change in behavior.

Yah, it's Matt (I don't recognize your nick though, sorry. should I?).

Reply to this email directly or view it on GitHubhttps://github.com/quarnster/boxeebox-xbmc/issues/123#issuecomment-40324544 .

devil-strike commented 10 years ago

Try to boot into boxee itself than change reso in boxee box software see if that helps.

maphew commented 10 years ago

I have it working now.

I hadn't spent much time building libraries or anything, so I ended up just removing everything from the usb drive and reinstalling from new. This time I used latest stable (Apr 11), previous was latest nightly, and also followed the manual install instructions (first time around I used the automated windows installer). One thing I noticed is before I removed everything is that the xbmc archive had a lot more files in it than the usb drive did; not sure if that's relevant or not.

So, for me everything is all good and as far as I'm concerned the issue is done. I'll close with the caveat that the initial question is still unanswered. It may become important to someone else at sometime.

How can I reset the screen resolution without formatting the USB stick and installing from scratch?

maphew commented 10 years ago

@devilstrike While xbmc was broken we continued to use boxee+hacks for a few days, by expedient of just removing the usb device xbmc, it "just worked".

maphew commented 10 years ago

It's happened again. :( I don't want to re-install from scratch this time as I've put in some add-on's and other configs. So I come back to my opening question:

Where are the resolution settings stored and/or initiated?

maphew commented 10 years ago

a comment in #5 sounds related, "SetNativeResolution and it allows me to change between 1920x1080p and 1920x1080i. I can change to other resolutions as well but then the screen just turns black but the tv does recognize the resolution change and the call to gdl returns success"

maphew commented 10 years ago

.../portable_data/userdata/guisettings.xml has some sections which look significant; not sure how they're to be used. For instance <videscreen> says resolution 15, but what is 15 and where defined? Further down in same file there is a resolution section, but it only has 12 entries. I tried changing it to 1 and 2 and rebooting after each, to no avail. (to correspond with the 2nd resolution reported being discovered in the log; not being sure if the count starts at 0 or 1.)

    <videoscreen>
        <blankdisplays default="true">true</blankdisplays>
        <fakefullscreen default="true">true</fakefullscreen>
        <limitedrange default="true">false</limitedrange>
        <preferedstereoscopicmode default="true">0</preferedstereoscopicmode>
        <resolution>15</resolution>
        <screen>-1</screen>
        <screenmode>WINDOW</screenmode>
        <stereoscopicmode default="true">0</stereoscopicmode>
        <vsync>2</vsync>
    </videoscreen>

in xbmc.log it looks like it's choosing 1920x1080 as the default resolution, which our TV doesn't support.

21:43:08 T:3060189408  NOTICE: InitWindowSystem: Using EGL Implementation: boxee
21:43:08 T:3060189408  NOTICE: Current resolution: 1920x1080 @ 59.94 - Full Screen
21:43:08 T:3060189408  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080i @ 60.000000 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 60.000000 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 24.000000 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 30.000000 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.939999 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.939999 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080i @ 59.939999 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 59.939999 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 29.969999 Hz
21:43:08 T:3060189408  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 23.980000 Hz
21:43:08 T:3060189408  NOTICE: Found (1920x1080@59.939999) at 22, setting to RES_DESKTOP at 16
21:43:08 T:3060189408  NOTICE: Checking resolution 15
21:43:08 T:3060189408  NOTICE: Setting resolution: Windowed
21:43:08 T:3060189408   DEBUG:      IntelSMDGlobals::DisableAudioOutput               - 1067
21:43:08 T:3060189408   ERROR: Could not set display mode for display 0
21:43:08 T:3060189408   DEBUG: CreateWindow: Created surface of size 1920x1080
21:43:08 T:3060189408  NOTICE: GL_VENDOR = Intel Corporation
21:43:08 T:3060189408  NOTICE: GL_RENDERER = Intel(R) GMA 500 based on PowerVR SGX 535
maphew commented 10 years ago

Think I finally found the offending line, as long as screenmode is set to DESKTOP in guisettings.xml everything seems to work.

        <screenmode default="true">DESKTOP</screenmode>

Now I just have to watch for whatever is changing this to something else, and not do that. ;-)

devil-strike commented 10 years ago

Next time use forum for this. more chance for help.

maphew commented 10 years ago

Ok. Which one? On 11 May 2014 22:51, "devil-strike" notifications@github.com wrote:

Next time use forum for this.

— Reply to this email directly or view it on GitHubhttps://github.com/quarnster/boxeebox-xbmc/issues/123#issuecomment-42798025 .

devil-strike commented 10 years ago

Oh lol, here you go: http://boxeed.in/forums/