DietPi-Software | XU4 + Kodi. Black screen.

Created on 21 Apr 2017  路  12Comments  路  Source: MichaIng/DietPi

All 12 comments

My reference code: ca4267a7-4228-41ef-8c23-c4b3ba165aa2-0

Unable to replicate on test system. Will check bug report.

[  4971.619] (WW) xf86CloseConsole: VT_GETMODE failed: Input/output error
[  4971.619] (EE) 
Fatal server error:
[  4971.619] (EE) xf86CloseConsole: VT_ACTIVATE failed: Input/output error

@mims92

Kodi starts but I have a black screen. I can 'hear' Kodi menu when pressing arrow keys.

Lets try EDID display modes, in /DietPi/dietpi.txt, change existing entry setenv videoconfig to line below

 setenv videoconfig "video=HDMI-A-1:1920x1080@60" 

And force HDMI plugged in:

setenv HPD "false"

Still a black screen.

Here is the log of /var/log/Xorg.0.log

502.776]
X.Org X Server 1.16.4
Release Date: 2014-12-20
[   502.785] X Protocol Version 11, Revision 0
[   502.788] Build Operating System: Linux 3.16.0-0.bpo.4-armmp-lpae armv7l Debian
[   502.791] Current Operating System: Linux mims-droid 3.10.104+ #1 SMP PREEMPT Tue Feb 21 14:20:54 CET 2017 armv7l
[   502.791] Kernel command line: console=tty1 root=/dev/mmcblk0p2 rootwait ro fsck.repair=yes drm_kms_helper.edid_firmware=edid/1920x1080.bin smsc95xx.macaddr=00:1e:06:61:7a:72 governor=performance hdmi_tx_amp_lvl=31 hdmi_tx_lvl_ch0=3 hdmi_tx_lvl_ch1=3 hdmi_tx_lvl_ch2=3 hdmi_tx_emp_lvl=6 hdmi_clk_amp_lvl=31 hdmi_tx_res=0 HPD=true vout=hdmi
[   502.801] Build Date: 11 February 2015  01:18:06AM
[   502.804] xorg-server 2:1.16.4-1 (http://www.debian.org/support)
[   502.807] Current version of pixman: 0.32.6
[   502.814]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   502.814] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   502.827] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Apr 23 01:08:57 2017
[   502.830] (==) Using config file: "/etc/X11/xorg.conf"
[   502.833] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   502.834] (==) No Layout section.  Using the first Screen section.
[   502.834] (**) |-->Screen "Default Screen" (0)
[   502.834] (**) |   |-->Monitor "<default monitor>"
[   502.834] (**) |   |-->Device "Mali-Fbdev"
[   502.834] (==) No monitor specified for screen "Default Screen".
        Using a default monitor configuration.
[   502.834] (**) Option "NoTrapSignals" "true"
[   502.835] (**) Option "DontZap" "false"
[   502.835] (**) Option "BlankTime" "0"
[   502.835] (**) Option "StandbyTime" "0"
[   502.835] (**) Option "SuspendTime" "0"
[   502.835] (**) Option "OffTime" "0"
[   502.835] (==) Automatically adding devices
[   502.835] (==) Automatically enabling devices
[   502.835] (==) Automatically adding GPU devices
[   502.835] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   502.835]    Entry deleted from font path.
[   502.835] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   502.835]    Entry deleted from font path.
[   502.835] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.[   502.835]    Entry deleted from font path.
[   502.836] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[   502.836]    Entry deleted from font path.
[   502.836] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.[   502.836]    Entry deleted from font path.
[   502.836] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   502.836]    Entry deleted from font path.
[   502.836] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        built-ins
[   502.836] (==) ModulePath set to "/usr/lib/xorg/modules"
[   502.836] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[   502.836] (II) Loader magic: 0xb6fb4f18
[   502.836] (II) Module ABI versions:
[   502.836]    X.Org ANSI C Emulation: 0.4
[   502.836]    X.Org Video Driver: 18.0
[   502.836]    X.Org XInput driver : 21.0
[   502.836]    X.Org Server Extension : 8.0
[   502.837] (II) xfree86: Adding drm device (/dev/dri/card0)
[   502.838] (II) no primary bus or device found
[   502.838]    falling back to /sys/devices/platform/exynos-drm/drm/card0
[   502.838] (II) LoadModule: "glx"
[   502.838] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   502.845] (II) Module glx: vendor="X.Org Foundation"
[   502.845]    compiled for 1.16.4, module version = 1.0.0
[   502.845]    ABI class: X.Org Server Extension, version 8.0
[   502.845] (==) AIGLX enabled
[   502.845] (II) LoadModule: "armsoc"
[   502.846] (II) Loading /usr/lib/xorg/modules/drivers/armsoc_drv.so
[   502.846] (II) Module armsoc: vendor="X.Org Foundation"
[   502.846]    compiled for 1.16.4, module version = 1.1.0
[   502.846]    Module class: X.Org Video Driver
[   502.846]    ABI class: X.Org Video Driver, version 18.0
[   502.846] (II) ARMSOC: Driver for ARM Mali compatible chipsets
[   502.847] (--) using VT number 2

[   502.865] (WW) Falling back to old probe method for armsoc
[   502.866] (II) No BusID or DriverName specified - opening /dev/dri/card0
[   502.866] (II) Got BusID platform:exynos-drm:00
[   502.868] (II) Opened DRM
[   502.869] (II)    DeviceName is [/dev/dri/card0]
[   502.869] (II)    bus_id is [platform:exynos-drm:00]
[   502.870] (II)    DriverName is [exynos]
[   502.870] (II)    version is [1.0.0]
[   502.871] (II) Screen:0,  CRTC:-1
[   502.872] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   502.872] (II) ARMSOC(0): Creating default Display subsection in Screen section
        "Default Screen" for depth/fbbpp 24/32
[   502.873] (**) ARMSOC(0): Depth 24, (--) framebuffer bpp 32
[   502.873] (==) ARMSOC(0): RGB weight 888
[   502.873] (==) ARMSOC(0): Using gamma correction (1.0, 1.0, 1.0)
[   502.874] (==) ARMSOC(0): Default visual is TrueColor
[   502.874] (II) No BusID or DriverName specified - opening /dev/dri/card0
[   502.875] (II) Got BusID platform:exynos-drm:00
[   502.877] (II) Opened DRM
[   502.877] (II)    DeviceName is [/dev/dri/card0]
[   502.877] (II)    bus_id is [platform:exynos-drm:00]
[   502.878] (II)    DriverName is [exynos]
[   502.878] (II)    version is [1.0.0]
[   502.878] (II) ARMSOC(0): Chipset: Mali
[   502.879] (**) ARMSOC(0): Option "Debug" "false"
[   502.880] (II) ARMSOC(0): Buffer Flipping is Enabled
[   502.880] (II) ARMSOC(0): umplock is Enabled
[   502.881] (II) ARMSOC(0): Setting the video modes ...
[   502.881] (II) ARMSOC(0): Adding all CRTCs
[   502.882] (II) ARMSOC(0): Got CRTC: 0 (id: 11)
[   502.882] (II) ARMSOC(0): Output HDMI-1 has no monitor section
[   502.882] (II) ARMSOC(0): EDID for output HDMI-1
[   502.882] (II) ARMSOC(0): Manufacturer: LNX  Model: 0  Serial#: 0
[   502.882] (II) ARMSOC(0): Year: 2012  Week: 5
[   502.882] (II) ARMSOC(0): EDID Version: 1.3
[   502.882] (II) ARMSOC(0): Analog Display Input,  Input Voltage Level: 0.700/0.700 V
[   502.882] (II) ARMSOC(0): Sync:  Separate  CompositeSerration on. V.Sync Pulse req. if CompSync or SyncOnGreen
[   502.882] (II) ARMSOC(0): Max Image Size [cm]: horiz.: 50  vert.: 28
[   502.883] (II) ARMSOC(0): Gamma: 2.20
[   502.883] (II) ARMSOC(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
[   502.883] (II) ARMSOC(0): First detailed timing is preferred mode
[   502.883] (II) ARMSOC(0): redX: 0.642 redY: 0.349   greenX: 0.292 greenY: 0.596
[   502.883] (II) ARMSOC(0): blueX: 0.147 blueY: 0.125   whiteX: 0.312 whiteY: 0.328
[   502.883] (II) ARMSOC(0): Manufacturer's mask: 0
[   502.883] (II) ARMSOC(0): Supported standard timings:
[   502.883] (II) ARMSOC(0): #0: hsize: 1920  vsize 1080  refresh: 60  vid: 49361
[   502.883] (II) ARMSOC(0): Supported detailed timing:
[   502.883] (II) ARMSOC(0): clock: 148.5 MHz   Image Size:  500 x 281 mm
[   502.883] (II) ARMSOC(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[   502.883] (II) ARMSOC(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[   502.883] (II) ARMSOC(0): Serial No: Linux #0
[   502.883] (II) ARMSOC(0): Ranges: V min: 59 V max: 61 Hz, H min: 66 H max: 68 kHz, PixClock max 155 MHz
[   502.883] (II) ARMSOC(0): Monitor name: Linux FHD
[   502.883] (II) ARMSOC(0): EDID (in hex):
[   502.883] (II) ARMSOC(0):    00ffffffffffff0031d8000000000000
[   502.883] (II) ARMSOC(0):    051601036d321c78ea5ec0a4594a9825
[   502.883] (II) ARMSOC(0):    205054000000d1c00101010101010101
[   502.884] (II) ARMSOC(0):    010101010101023a801871382d40582c
[   502.884] (II) ARMSOC(0):    4500f4191100001e000000ff004c696e
[   502.884] (II) ARMSOC(0):    75782023300a20202020000000fd003b
[   502.884] (II) ARMSOC(0):    3d42440f000a202020202020000000fc
[   502.884] (II) ARMSOC(0):    004c696e7578204648440a2020200005
[   502.884] (II) ARMSOC(0): EDID vendor "LNX", prod id 0
[   502.884] (II) ARMSOC(0): Using EDID range info for horizontal sync
[   502.884] (II) ARMSOC(0): Using EDID range info for vertical refresh
[   502.884] (II) ARMSOC(0): Printing DDC gathered Modelines:
[   502.884] (II) ARMSOC(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[   502.884] (II) ARMSOC(0): Modeline "1920x1080"x60.0  172.80  1920 2040 2248 2576  1080 1081 1084 1118 -hsync +vsync (67.1 kHz e)
[   502.884] (II) ARMSOC(0): Printing probed modes for output HDMI-1
[   502.884] (II) ARMSOC(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[   502.884] (II) ARMSOC(0): Output HDMI-1 connected
[   502.884] (II) ARMSOC(0): Using exact sizes for initial modes
[   502.884] (II) ARMSOC(0): Output HDMI-1 using initial mode 1920x1080
[   502.884] (II) ARMSOC(0): Got KMS resources
[   502.884] (**) ARMSOC(0): Display dimensions: (500, 280) mm
[   502.884] (**) ARMSOC(0): DPI set to (97, 97)
[   502.885] (II) Loading sub module "dri2"
[   502.885] (II) LoadModule: "dri2"
[   502.885] (II) Module "dri2" already built-in
[   502.885] (II) Loading sub module "exa"
[   502.885] (II) LoadModule: "exa"
[   502.885] (II) Loading /usr/lib/xorg/modules/libexa.so
[   502.886] (II) Module exa: vendor="X.Org Foundation"
[   502.886]    compiled for 1.16.4, module version = 2.6.0
[   502.886]    ABI class: X.Org Video Driver, version 18.0
[   502.886] (II) Loading sub module "fb"
[   502.886] (II) LoadModule: "fb"
[   502.886] (II) Loading /usr/lib/xorg/modules/libfb.so
[   502.886] (II) Module fb: vendor="X.Org Foundation"
[   502.886]    compiled for 1.16.4, module version = 1.0.0
[   502.887]    ABI class: X.Org ANSI C Emulation, version 0.4
[   502.887] (--) Depth 24 pixmap format is 32 bpp
[   502.898] (II) ARMSOC(0): Soft EXA mode
[   502.898] (II) EXA(0): Driver allocated offscreen pixmaps
[   502.898] (II) EXA(0): Driver registered support for the following operations:
[   502.898] (II)         Solid
[   502.898] (II)         Copy
[   502.898] (II)         Composite (RENDER acceleration)
[   502.898] (II) ARMSOC(0): Setting swap chain size: 2
[   502.898] (II) ARMSOC(0): [DRI2] Setup complete
[   502.898] (II) ARMSOC(0): [DRI2]   DRI driver: armsoc
[   502.898] (==) ARMSOC(0): Backing store enabled
[   502.898] (==) ARMSOC(0): Silken mouse enabled
[   502.898] (II) ARMSOC(0): HW cursor init()
[   502.899] (II) ARMSOC(0): HW cursor initialized
[   502.934] (II) ARMSOC(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   502.935] (--) RandR disabled
[   502.959] (II) SELinux: Disabled on system
[   502.962] (EE) AIGLX error: dlopen of /usr/lib/arm-linux-gnueabihf/dri/armsoc_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/armsoc_dri.so: cannot open shared object file: No such file or directory)
[   502.962] (EE) AIGLX: reverting to software rendering
[   502.962] (EE) AIGLX error: dlopen of /usr/lib/arm-linux-gnueabihf/dri/swrast_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[   502.962] (EE) GLX: could not load software renderer
[   502.963] (II) GLX: no usable GL providers found for screen 0
[   502.963] (II) ARMSOC(0): Setting screen physical size to 508 x 285
[   503.152] (II) config/udev: Adding input device gpio_keys.7 (/dev/input/event0)
[   503.152] (**) gpio_keys.7: Applying InputClass "evdev keyboard catchall"
[   503.152] (II) LoadModule: "evdev"
[   503.153] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[   503.154] (II) Module evdev: vendor="X.Org Foundation"
[   503.154]    compiled for 1.16.0, module version = 2.9.0
[   503.154]    Module class: X.Org XInput Driver
[   503.154]    ABI class: X.Org XInput driver, version 21.0
[   503.154] (II) Using input driver 'evdev' for 'gpio_keys.7'
[   503.154] (**) gpio_keys.7: always reports core events
[   503.155] (**) evdev: gpio_keys.7: Device: "/dev/input/event0"
[   503.155] (--) evdev: gpio_keys.7: Vendor 0x1 Product 0x1
[   503.155] (--) evdev: gpio_keys.7: Found keys
[   503.155] (II) evdev: gpio_keys.7: Configuring as keyboard
[   503.155] (**) Option "config_info" "udev:/sys/devices/gpio_keys.7/input/input0/event0"
[   503.155] (II) XINPUT: Adding extended input device "gpio_keys.7" (type: KEYBOARD, id 6)
[   503.155] (**) Option "xkb_rules" "evdev"
[   503.155] (**) Option "xkb_model" "trustda"
[   503.155] (**) Option "xkb_layout" "be"
[   505.083] (II) ARMSOC(0): EDID vendor "LNX", prod id 0
[   505.083] (II) ARMSOC(0): Using hsync ranges from config file
[   505.083] (II) ARMSOC(0): Using vrefresh ranges from config file
[   505.083] (II) ARMSOC(0): Printing DDC gathered Modelines:
[   505.083] (II) ARMSOC(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[   505.083] (II) ARMSOC(0): Modeline "1920x1080"x60.0  172.80  1920 2040 2248 2576  1080 1081 1084 1118 -hsync +vsync (67.1 kHz e)
[   505.083] (II) ARMSOC(0): EDID vendor "LNX", prod id 0
[   505.083] (II) ARMSOC(0): Using hsync ranges from config file
[   505.083] (II) ARMSOC(0): Using vrefresh ranges from config file
[   505.083] (II) ARMSOC(0): Printing DDC gathered Modelines:
[   505.083] (II) ARMSOC(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[   505.083] (II) ARMSOC(0): Modeline "1920x1080"x60.0  172.80  1920 2040 2248 2576  1080 1081 1084 1118 -hsync +vsync (67.1 kHz e)
[   507.306] (II) evdev: gpio_keys.7: Close
[   507.306] (II) UnloadModule: "evdev"
[   507.615] (EE) Server terminated successfully (0). Closing log file

@mims92

Thanks.

Lets check installed EGL, please paste results:

find /usr/lib -name libEGL*

It should match:

root@DietPi:~# find /usr/lib -name libEGL*
/usr/lib/libEGL.so.1.4
/usr/lib/arm-linux-gnueabihf/libEGL.so.1.4
/usr/lib/arm-linux-gnueabihf/libEGL.so.1
/usr/lib/arm-linux-gnueabihf/libEGL.so
/usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0
/usr/lib/libEGL.so.1
/usr/lib/libEGL.so

Also, try purging/reinstalling GPU drivers:

apt-get purge xf86-video-armsoc-odroid malit628-odroid
apt-get install xf86-video-armsoc-odroid malit628-odroid

@mims92

You also have some additional mesa packages:

libgles2-mesa:armhf
libglu1-mesa:armhf        

Try removing these:

apt-get purge libgles2-mesa libglu1-mesa

@fourdee

I ran find /usr/lib -name libEGL* and the output is the same.

Uninstalling

libgles2-mesa:armhf
libglu1-mesa:armhf

would remove Kodi.

Here is my Xorg.conf:

# X.Org X server configuration file for xfree86-video-mali

Section "Device"
        Identifier      "Mali-Fbdev"
        Driver          "armsoc"
        Option          "fbdev"                 "/dev/fb0"
        Option          "Debug"                 "false"
        Option          "DPMS"                  "false"
        Option          "Fimg2DExa"             "true"
        Option          "DRI2"                  "true"
        Option          "DRI2_PAGE_FLIP"        "false"
#       Option          "Fimg2DExaSolid"        "false"
#       Option          "Fimg2DExaCopy"         "false"
        Option          "Fimg2DExaComposite"    "true"
        Option          "SWcursorLCD"           "false"
EndSection

Section "Screen"
        Identifier   "Default Screen"
        Device       "Mali-Fbdev"
        DefaultDepth 24
EndSection

Section "DRI"
        Mode 0666
EndSection

@mims92

Here is my Xorg.conf:

Yep, thats fine:
https://github.com/Fourdee/DietPi/blob/master/dietpi/conf/xorg_xu4.conf

All your installed packages/settings appear to be in order. I believe this may be a simple case of incompatibly with your TV/XU4, as, I was unable to replicate this issue in our tests. Have you tried other images (eg: Official HK ubuntu / Meveric) in the past? If so, did they work?

We can assume Kodi is running "fine" (as you mentioned menu sounds are functional)

Few things you could try to debug:

  • Different HDMI cable
  • Lower resolution (720p)
  • Different TV
  • Fresh + test installation of DietPi + Kodi selected

I've an eMMc with Android installed on it it was fine. I can see the console on my TV as well.

I will try by lowering the resolution and maybe change some settings.

Reinstalling would take some times because of all the installed software (I'm lazy I know).

I will post my findings if any.

On my rapsberry pi (dietpi also), it is working.
Same cable, same tv

Hi @Fourdee,

I installed a fresh installation of dietpi + Kodi only, I don't have any error but still have a black screen.

I noticed a small square window with a message (maybe not important):

libEGL warning: DRI2: failed to authenticate

before having the black screen.

I also lowered the resolution from 1080 to 720 but no luck.

@mims92

Sorry to hear this is still an outstanding issue.
However, this is the only reported issue for XU4 Kodi + black screen from our users, and, we cant replicate it.

I've an eMMc with Android installed on it it was fine. I can see the console on my TV as well.

  • If it works on Android, it may be a feature compiled into the Android Kodi binary, that is lacking in the debian one.
  • As none of the known HDMI settings/tweaks worked (https://github.com/Fourdee/DietPi/issues/893#issuecomment-296372835), it could be the Android kernel is somehow more compatible with your TV.

It could be anything, however, being honest, i'am not sure what the cause is.

I installed a fresh installation of dietpi + Kodi only, I don't have any error but still have a black screen.

It may be worth testing various HDMI settings in boot.ini on this fresh install aswell:
https://github.com/Fourdee/DietPi/issues/893#issuecomment-296372835

Was this page helpful?
0 / 5 - 0 ratings