XBMC : "Mode not supported"


13 posts
by Etienn_01 » Mon Aug 20, 2012 6:11 pm
Hi,
I cross-compiled XMBC. It runs well on RCA output, but not on HDMI.
TV's native resolution is 1440x900. When I start XBMC, screen goes black, then the TV displays "Mode not supported".

Here is the log : http://pastebin.com/vXnU0Hv1

At line 81 :
Code: Select all
19:56:15 T:1102909440  NOTICE: Found (1440x900@60.000000) at 28, setting to RES_DESKTOP at 16

The resolution is set at 1440x900, so it should be good !

Any idea ?
Thanks.
Posts: 7
Joined: Mon Aug 20, 2012 5:37 pm
by dom » Mon Aug 20, 2012 6:15 pm
What mode are you in before launching xbmc?
/opt/vc/bin/tvservice -s
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4013
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Etienn_01 » Mon Aug 20, 2012 6:22 pm
dom wrote:What mode are you in before launching xbmc?
/opt/vc/bin/tvservice -s

I tried to run this command, but I get
Code: Select all
root@rpi:~# /opt/vc/bin/tvservice -s
-bash: /opt/vc/bin/tvservice: No such file or directory

and
Code: Select all
root@rpi:~# ls -l /opt/vc/bin/
total 252
-rwxrwxrwx 1 root root 67370 Aug 20 16:20 edidparser
-rwxrwxrwx 1 root root 35428 Aug 20 16:20 tvservice
-rwxrwxrwx 1 root root 75634 Aug 20 16:20 vcdbg
-rwxrwxrwx 1 root root 14764 Aug 20 16:20 vcgencmd
-rwxrwxrwx 1 root root 55519 Aug 20 16:20 vchiq_test


My TV reports I'm using 1440x900@60Hz

EDIT:
After some Google search...

Code: Select all
root@rpi:~# /opt/vc/bin/tvservice -s
state: HPD high|HDMI mode|HDCP off|composite off (0x12001a), 1440x900 @ 60Hz, progressive
Posts: 7
Joined: Mon Aug 20, 2012 5:37 pm
by dom » Mon Aug 20, 2012 6:51 pm
Does adding:
hdmi_group=2
hdmi_mode=0x2f
hdmi_drive=2

to config.txt help?
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4013
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Etienn_01 » Mon Aug 20, 2012 7:02 pm
dom wrote:Does adding:
hdmi_group=2
hdmi_mode=0x2f
hdmi_drive=2

to config.txt help?

No, TV displays "Mode not supported" from start.
Posts: 7
Joined: Mon Aug 20, 2012 5:37 pm
by Etienn_01 » Mon Aug 20, 2012 7:36 pm
Before starting xbmc:
Code: Select all
state: HPD high|DVI mode|HDCP off|composite off (0x120016), 1440x900 @ 60Hz, progressive

And after xbmc start:
Code: Select all
state: HPD high|HDMI mode|HDCP off|composite off (0x12001a), 1440x900 @ 60Hz, progressive


XBMC is switching to HDMI mode and TV displays "Mode not supported".
If I force 1080i (1080p doesn't work) resolution in config.txt, XMBC is working (with HDMI mode and sound is OK), but display quality is lower.
Posts: 7
Joined: Mon Aug 20, 2012 5:37 pm
by dom » Mon Aug 20, 2012 7:36 pm
Etienn_01 wrote:No, TV displays "Mode not supported" from start.


How about:
hdmi_group=2
hdmi_mode=0x2e
hdmi_drive=2
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4013
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Etienn_01 » Mon Aug 20, 2012 7:44 pm
dom wrote:
Etienn_01 wrote:No, TV displays "Mode not supported" from start.


How about:
hdmi_group=2
hdmi_mode=0x2e
hdmi_drive=2


Boot in VGA:
Code: Select all
state: HPD high|HDMI mode|HDCP off|composite off (0x12001a), 640x480 @ 60Hz, progressive
Posts: 7
Joined: Mon Aug 20, 2012 5:37 pm
by dom » Mon Aug 20, 2012 7:55 pm
Etienn_01 wrote:When I start XBMC, screen goes black, then the TV displays "Mode not supported".


Can you confirm what you meant here?

Were you in a system with working HDMI output (like raspbian), and you lost the display when launching xbmc,
or are you booting straight into an xbmc distribution (e.g. openelec/raspbian) and there is no HDMI output at all?
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4013
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Etienn_01 » Mon Aug 20, 2012 8:00 pm
dom wrote:
Etienn_01 wrote:When I start XBMC, screen goes black, then the TV displays "Mode not supported".


Can you confirm what you meant here?

Were you in a system with working HDMI output (like raspbian), and you lost the display when launching xbmc,
or are you booting straight into an xbmc distribution (e.g. openelec/raspbian) and there is no HDMI output at all?

I'm booting into Raspbian. Display is working but in DVI mode. When I start XBMC (using xinit from tty1), the screen goes black, then the TV displays "Mode not supported".
Maybe you have not seen this post : viewtopic.php?p=154640#p154640
Posts: 7
Joined: Mon Aug 20, 2012 5:37 pm
by dom » Mon Aug 20, 2012 8:13 pm
Etienn_01 wrote:Maybe you have not seen this post : viewtopic.php?p=154640#p154640


Yes, that post is the important one.

Okay, your monitor doesn't seem to like HDMI mode, but does like DVI mode.
XBMC always chooses HDMI mode, as that is most useful (you can only get audio with HDMI mode).

XBMC should really allow choosing HDMI/DVI. But I think if there is only one mode available, xbmc doesn't change mode.

So I think this will be the mode you get by default, and may stop xbmc from choosing a different mode:
hdmi_group=2
hdmi_mode=0x2f
hdmi_drive=1

If not, then I think you need to look into guisettings.xml. Possibly changing the resolution to windowed would help?
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4013
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Etienn_01 » Mon Aug 20, 2012 8:21 pm
dom wrote:Yes, that post is the important one.

Okay, your monitor doesn't seem to like HDMI mode, but does like DVI mode.
XBMC always chooses HDMI mode, as that is most useful (you can only get audio with HDMI mode).

XBMC should really allow choosing HDMI/DVI. But I think if there is only one mode available, xbmc doesn't change mode.

So I think this will be the mode you get by default, and may stop xbmc from choosing a different mode:
hdmi_group=2
hdmi_mode=0x2f
hdmi_drive=1

If not, then I think you need to look into guisettings.xml. Possibly changing the resolution to windowed would help?


Same problem with these settings. I'll look at guisettings.xml.
Thank you for your help.
Posts: 7
Joined: Mon Aug 20, 2012 5:37 pm
by dom » Thu Aug 23, 2012 2:20 pm
You need this change:
https://github.com/huceke/xbmc/commit/d ... 6b0efb2bab

Then if the hdmi_mode/hdmi_group are set the hdmi mode will be left alone and you shouldn't lose the display.

You'll need to wait for a build that incorporates this change.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4013
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge