XBMC issues on Ubuntu 8.10
#1
Hi i got some issues with XBMC on ubuntu 8.10

System info:
- GIGABYTE GA-EG45M-DS2H (motherboard)
- 3Ghz INTEL Core 2 Duo E8400
- 4GB RAM
- Ubuntu 8.10 32bit (with all the latest updates, as of today)
- Intel Graphics 2.4.2 from debian unstable.
- Running latest XBMC from the intrepid source.

This HTPC is hooked up to a 42" Toshiba full-hd LCD TV trough HDMI. Resolution is fine (full HD). Sound working trough sp/dif.

Problem1:
- PAPlayer will not play MP3 files (dvdplayer works)

From logfile:
Code:
17:26:30 T:3067025200 M:1247555584    INFO: PAP Player: Playing musicdb://2/724/1377/16624.mp3
17:26:30 T:3067025200 M:1247555584   ERROR: CreateStream - pcm_open, alsa error: Device or resource busy

I fixed this issue by compiling XBMC-SVN with mplayer support (insted of PAPlayer), and setting that as the default music player. Today I tested the new intrepid build on the intrepid source, and Im back to haveing the problem again. I hope there is another solution than to change the sourcecode.
Is there anyway of setting DVDPlayer as the default music player in a configfile or something, instead of in the sourcecode?

Problem2:
- The music visualization does'nt work anymore.

I was using XAA as a hardware acceleration because of an bug in X with the G45 chipset, but that is fixed now and Im back on EXA. But that broke the visualization (all of them) in xbmc.

Problem3:
- When I start xbmc, it always starts in the "program" section instead of the main menu. A small problem, but yet a problem.

Configfiles:
xorg.conf file:
Code:
Section "Monitor"
       Identifier      "Toshiba42"
       VendorName      "Toshiba"
       ModelName       "42X3000PG"
       Option          "IgnoreEDID"
       VertRefresh     23-61
       HorizSync       15-68
       ModeLine           "1080p" 148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync
       ModeLine        "720p" 27.00  720 732 796 864  576 581 586 625 -hsync -vsync
       ModeLine           "480p" 25.20  640 656 752 800  480 490 492 525 -hsync -vsync
       Option          "PreferredMode" "1080p"
       #DisplaySize    320 180
       DisplaySize     487.68 274.32
EndSection

#Modeline "1920x1080"x0.0  148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz)
#Modeline "720x576"x0.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz)
#Modeline "640x480"x0.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)

Section "Device"
       Identifier      "Intel GMA X4500HD"
       Driver          "intel"
       VendorName      "Intel"
       BoardName       "G45 [Intel GMA X4500HD]"
       BusID           "PCI:0:2:0"
      
       #Option          "NoAccel" "false" #temp fix for 45g problemer.
       #Disable or enable acceleration.  Default: acceleration is enabled.

       #Option "AccelMethod" "XAA" #skal være EXA
       Option "AccelMethod" "EXA"
       #Choose  acceleration architecture, either "XAA" or "EXA".  XAA is the old XFree86 based acceleration architecture.  EXA is
       #a newer and simpler acceleration architecture designed to better accelerate the X Render extension.  Default: "EXA".

       Option "ModeDebug" "true"
       #Enable printing of additional debugging information about modesetting to the server log.
EndSection

Section "Module"
       Load "glx"
       Load "dri"
       Load "GLcore" # addon fra forum
       Load "v4l"    # addon fra forum
EndSection

Section "DRI"
       Mode 0666
EndSection

Section "Screen"
    Identifier    "LCDTV"
    Monitor        "Toshiba42"
    Device        "Intel GMA X4500HD"
          DefaultDepth    24
        DefaultFbBpp    32
    SubSection "Display"
                Depth           24
                FbBpp           32
        EndSubSection
EndSection

glxinfo output:
Code:
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGIS_multisample,
    GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_swap_control,
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_visual_select_group
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) G45/G43 20061102 x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.2
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,
    GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader,
    GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_point_parameters,
    GL_ARB_point_sprite, GL_ARB_shader_objects, GL_ARB_shading_language_100,
    GL_ARB_shading_language_120, GL_ARB_shadow, GL_ARB_texture_border_clamp,
    GL_ARB_texture_compression, GL_ARB_texture_cube_map,
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
    GL_ARB_texture_rectangle, GL_ARB_transpose_matrix,
    GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader,
    GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_clip_volume_hint, GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array,
    GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
    GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,
    GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset,
    GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
    GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D,
    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
    GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_texture_sRGB,
    GL_EXT_vertex_array, GL_3DFX_texture_compression_FXT1,
    GL_APPLE_client_storage, GL_APPLE_packed_pixels,
    GL_ATI_blend_equation_separate, GL_ATI_separate_stencil,
    GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
    GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
    GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent,
    GL_NV_point_sprite, GL_NV_texture_rectangle, GL_NV_texgen_reflection,
    GL_NV_vertex_program, GL_NV_vertex_program1_1, GL_OES_read_format,
    GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
    GL_SUN_multi_draw_arrays


Anyone got any solution/suggestions for my problems?

Every answer helps! Thanks! Smile

P.S I still got the tearing problem when playing videofiles, but I am waiting for a fix in the intel driver (currently not fixed in 2.5.0). Temporary fix is to enable vertical sync (increases cpu load, but does the job). If there is a fix I doesnt know about, please tell me. Smile
Reply
#2
Uhm, isn't vertical sync's only reason for existence to avoid tearing? That is what I thought. Ie. I would expect tearing without it is completely normal. There is really no way you would ever want to run a media player on anything other than vsync.
Reply
#3
There is a bug in the intel driver that is to blame about the tearing.. atleast the tearing im talking about. If you are interested read here.


Here is the release notes of the 2.5 intel driver, still not fixed the tearing.. even if it was one of the goals of that release.

Quote:Well, here it is (finally!). Lots of changes in this release (see below for
the shortlog & download URLs). We planned several things for this release:
1) usable EXA support
2) support for GEM (if supported by the currently running kernel)
3) support for kernel mode setting (again, if the underlying kernel supports
it)
4) no more video tearing with textured video & XvMC
5) Bug fixing
6) removal of XAA code

Item (4) was the main thing we missed this time (Nanhai has been working
flat out to get MPEG2 offload working so we didn't get a chance to try
different approaches for vblank sync'ing). I think the real fix here will
be DRI2, which should allow us to run compositing managers in DRI mode,
with real vblank sync'ing for all their drawing. (...)

Anyhow.. thanks for your answer. Any toughts about the other issues?
Reply
#4
Ok, "solved" the sound issue. I removed .asoundrc from my home folder. Now everything works in XBMC.. but now I got no sound in Gnome. None of the other players works (i.e. songbird).

Sad
Reply
#5
disable pulseaudio?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#6
I got it working now. Maybe it was pulseaudio? I dont know.

I removed all of mye sound stuff, everything.. along with gnome and xbmc (purged all config files). Reinstalled alsa, gnome and xbmc. Suddenly everything with the sound works.

The only problems left is graphic related
Reply
#7
I installed XBMC on 8.10, and I can't get it to full screen. I already tried / and it opens in full screen and then reverts to a window. Any ideas?
Advice on Hardware
PC-LUXA2 CPU-AMD Phenom II X6 1100T RAM-12GB Video Card-AMD Radeon HD 6800
OS-Win7 32bit - Kodi - 14.0 Helix SKIN - Aeon MQ 5 Keyboard - DiNovo Mini

-Semper Fi
gyrene2083
Reply
#8
Compiz enabled? Also make sure there's no other app running docked in the gnome panel which will notify you about something (eg a musicplayer).
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#9
@abandonow, why do you use custom modelines and not EDID?

I'm having Intel DG45FC board and right now everything works with Ubuntu Intrepid. Only problem is when my LCD TV over HDMI is turned off then Xorg fails to start with something like "no usable screens found".

So do you turn off EDID for same reason or do you (can it) fight overscan with those modelines?
Reply
#10
Because I think it's showing 1080i, instead of 1080p, if I let it be automatic. And I know the modelines are correct for my tv, so it shouldnt be a problem.
Reply
#11
gbyte Wrote:@abandonow, why do you use custom modelines and not EDID?

I'm having Intel DG45FC board and right now everything works with Ubuntu Intrepid. Only problem is when my LCD TV over HDMI is turned off then Xorg fails to start with something like "no usable screens found".

So do you turn off EDID for same reason or do you (can it) fight overscan with those modelines?

I have the same issue with my Intel DG45FC so it may be driver related. I thought it was my crappy LCD Smile
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#12
Smile 
Topfs2 Wrote:I have the same issue with my Intel DG45FC so it may be driver related. I thought it was my crappy LCD Smile

If I don't boot up[ with my display "visible" to Ubuntu my X gets screwed up too:mad: I've got it looking at some EDID data and ignoring others I think. For now I jsutmake sure it can see the display when it boots and it works fine. If I could come up with a modeline that was for sure correct I'd kill off it reading EDID for sure.
Openelec Gotham, MCE remote(s), Intel i3 NUC, DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoded with Handbrake to x.264. Yamaha receiver(s)
Reply
#13
You guys might find this useful. I haven't tried it yet because I'm not at my TV, but the gist of it is a how to on setting up your own horizontal and vertical lines with this tool.
Advice on Hardware
PC-LUXA2 CPU-AMD Phenom II X6 1100T RAM-12GB Video Card-AMD Radeon HD 6800
OS-Win7 32bit - Kodi - 14.0 Helix SKIN - Aeon MQ 5 Keyboard - DiNovo Mini

-Semper Fi
gyrene2083
Reply
#14
We can see the correct modelines - at least I can. Looking at /var/log/Xorg.0.log I can see my LCD TV modelines, but the TV need to be on. If I manually define the modelines and the TV is off - Xorg just fail to start cuz it can't see any monitor.

What we need is to tell the driver not to auto-detect output port and that it need to output to HDMI-1 (in my case) manually. Me too just turn on the TV while Ubuntu is booting so it can see it.


@BLKMGK, I remember you use nVidia. You can dump your EDID data to a file and use it with special option in Xorg.conf when your TV is off too. Search here and ubuntu forums for details. You can also define output in Xorg.conf in Device section like this:
Code:
Option         "UseDisplayDevice" "DFP-0"

Replace DFP-0 with the port that Xorg is detecting when your TV is on - look on log.

Now if I only knew the equivalent for the Intel driver.
Reply
#15
Well I found where that mine is on DFP-1, but as far as mode lines I don't see that on my log file. What I see is what looks like hex lines and then it says nvidia is set to auto select.

Here is what I pulled out of that log file.

Code:
(II) NVIDIA dlloader X Driver  177.80  Wed Oct  1 14:50:00 PDT 2008
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"

(II) Loading /usr/lib/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
    compiled for 1.5.2, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"

(II) Loading /usr/lib/xorg/modules//libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
    compiled for 1.5.2, module version = 1.0.0
    ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(II) resource ranges after probing:
    [0] -1    0    0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1    0    0x00000000 - 0x00000000 (0x1) IX[b]
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Enabling RENDER acceleration
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(II) NVIDIA(0): NVIDIA GPU GeForce 9400 GT (G96) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 524288 kBytes
(--) NVIDIA(0): VideoBIOS: 62.94.4b.00.00
(II) NVIDIA(0): Detected PCI Express Link width: 16X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce 9400 GT at PCI:1:0:0:
(--) NVIDIA(0):     TSB-TV (DFP-1)
(--) NVIDIA(0): TSB-TV (DFP-1): 165.0 MHz maximum pixel clock
(--) NVIDIA(0): TSB-TV (DFP-1): Internal Single Link TMDS
(II) NVIDIA(0): Assigned Display Device: DFP-1
(==) NVIDIA(0):
(==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(==) NVIDIA(0):     will be used as the requested mode.
(==) NVIDIA(0):
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0):     "nvidia-auto-select"
(II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
(--) NVIDIA(0): DPI set to (24, 19); computed from "UseEdidDpi" X config
(--) NVIDIA(0):     option
(==) NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
    [0] -1    0    0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1    0    0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1    0    0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1    0    0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1    0    0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1    0    0x00000000 - 0x00000000 (0x1) IX[b]
(II) NVIDIA(0): Initialized GPU GART.
(II) NVIDIA(0): Setting mode "nvidia-auto-select"
(II) Loading extension NV-GLX
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) Option "dpms"
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(II) Initializing extension GLX
Advice on Hardware
PC-LUXA2 CPU-AMD Phenom II X6 1100T RAM-12GB Video Card-AMD Radeon HD 6800
OS-Win7 32bit - Kodi - 14.0 Helix SKIN - Aeon MQ 5 Keyboard - DiNovo Mini

-Semper Fi
gyrene2083
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC issues on Ubuntu 8.100