MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Flickering display in vertical mode MM2.5.0 (Pi3ModelB)



  • Hi

    Setup
    I installed the new MM 2.5.0 on a Pi 3 Model B.

    I try to run MM on a vertical mounted display. Therefor I changed my config as described here.
    I figured out that display_rotate only works together with the fake OpenGL driver. The rotation of the display didn’t worked for the “real” OpenGL driver.
    From my /boot/config.txt

    ...
    display_rotate=1
    avoid_warnings=1
    start_x=0
    
    dtoverlay=vc4-fkms-v3d
    

    Issue
    Now after 30 to 40 minutes the Display starts to flicker (like a distorted image overlay, see attached picture [1]).

    First I thought the reason is one of the modules I use. But the issue occurs also with the sample config of MM.

    What I found out so far:
    The temperature is 5-10 degrees Celsius higher than the “real” OpenGL driver.

    pi@raspberrypi:~ $ /opt/vc/bin/vcgencmd measure_temp
    temp=65.5'C
    

    And the CPU load is high.

    pi@raspberrypi:~ $ uptime
     21:14:25 up  2:28,  2 users,  load average: 3.98, 4.00, 3.99
    

    The issue doesn’t occur if I use the same OpenGL driver in horizontal orientation.

    Any hints or things to check?

    Kind regards

    Additional Info

    pi@raspberrypi:~ $ node -v && npm -v
    v9.11.2
    5.6.0
    
    pi@raspberrypi:~ $ dmesg -x -d -T
    kern  :info  : [Son Okt 28 18:45:36 2018 <    0.000000>] Booting Linux on physical CPU 0x0
    kern  :notice: [Son Okt 28 18:45:36 2018 <    0.000000>] Linux version 4.14.71-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1145 SMP Fri Sep 21 15:38:35 BST 2018
    kern  :info  : [Son Okt 28 18:45:36 2018 <    0.000000>] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
    ... //several logs without errors
    kern  :info  : [Son Okt 28 18:45:49 2018 <    3.364287>] fuse init (API version 7.26)
    kern  :err   : [Son Okt 28 18:46:07 2018 <   18.039560>] [drm:vc4_page_flip [vc4]] *ERROR* Async flips aren't allowed
    kern  :err   : [Son Okt 28 18:46:09 2018 <    1.987248>] [drm:vc4_page_flip [vc4]] *ERROR* Async flips aren't allowed
    ... //error repeats until
    kern  :err   : [Son Okt 28 18:46:20 2018 <    3.510086>] [drm:vc4_page_flip [vc4]] *ERROR* Async flips aren't allowed
    EOF
    
    pi@raspberrypi:~ $ sudo cat /var/log/Xorg.0.log
    [     7.558]
    X.Org X Server 1.19.2
    Release Date: 2017-03-02
    [     7.558] X Protocol Version 11, Revision 0
    [     7.558] Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
    [     7.558] Current Operating System: Linux raspberrypi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l
    [     7.558] Kernel command line: 8250.nr_uarts=0 cma=256M bcm2708_fb.fbwidth=1016 bcm2708_fb.fbheight=1856 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=efd34f8e-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
    [     7.559] Build Date: 18 October 2017  04:55:30PM
    [     7.559] xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
    [     7.559] Current version of pixman: 0.34.0
    [     7.559]    Before reporting problems, check http://wiki.x.org
            to make sure that you have the latest version.
    [     7.559] Markers: (--) probed, (**) from config file, (==) default setting,
            (++) from command line, (!!) notice, (II) informational,
            (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [     7.559] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Oct 28 18:45:35 2018
    [     7.571] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [     7.573] (==) No Layout section.  Using the first Screen section.
    [     7.573] (==) No screen section available. Using defaults.
    [     7.574] (**) |-->Screen "Default Screen Section" (0)
    [     7.574] (**) |   |-->Monitor ""
    [     7.581] (==) No monitor specified for screen "Default Screen Section".
            Using a default monitor configuration.
    [     7.581] (==) Automatically adding devices
    [     7.581] (==) Automatically enabling devices
    [     7.581] (==) Automatically adding GPU devices
    [     7.581] (==) Max clients allowed: 256, resource mask: 0x1fffff
    [     7.583] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
    [     7.583]    Entry deleted from font path.
    [     7.583] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
    [     7.583]    Entry deleted from font path.
    [     7.583] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
    [     7.583]    Entry deleted from font path.
    [     7.583] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
    [     7.583]    Entry deleted from font path.
    [     7.583] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
    [     7.583]    Entry deleted from font path.
    [     7.583] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
    [     7.583]    Entry deleted from font path.
    [     7.583] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
    [     7.583]    Entry deleted from font path.
    [     7.583] (==) FontPath set to:
            built-ins
    [     7.583] (==) ModulePath set to "/usr/lib/xorg/modules"
    [     7.583] (II) The server relies on udev to provide the list of input devices.
            If no devices become available, reconfigure udev or disable AutoAddDevices.
    [     7.591] (II) Loader magic: 0x1fbf40
    [     7.591] (II) Module ABI versions:
    [     7.591]    X.Org ANSI C Emulation: 0.4
    [     7.592]    X.Org Video Driver: 23.0
    [     7.592]    X.Org XInput driver : 24.1
    [     7.592]    X.Org Server Extension : 10.0
    [     7.596] (++) using VT number 7
    
    [     7.596] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
    [     7.600] (II) xfree86: Adding drm device (/dev/dri/card0)
    [     7.679] (II) no primary bus or device found
    [     7.679]    falling back to /sys/devices/platform/soc/soc:gpu/drm/card0
    [     7.685] (II) LoadModule: "glx"
    [     7.724] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [     7.848] (II) Module glx: vendor="X.Org Foundation"
    [     7.848]    compiled for 1.19.2, module version = 1.0.0
    [     7.848]    ABI class: X.Org Server Extension, version 10.0
    [     7.848] (==) Matched modesetting as autoconfigured driver 0
    [     7.848] (==) Matched fbdev as autoconfigured driver 1
    [     7.848] (==) Assigned the driver to the xf86ConfigLayout
    [     7.848] (II) LoadModule: "modesetting"
    [     7.849] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
    [     7.854] (II) Module modesetting: vendor="X.Org Foundation"
    [     7.854]    compiled for 1.19.2, module version = 1.19.2
    [     7.854]    Module class: X.Org Video Driver
    [     7.854]    ABI class: X.Org Video Driver, version 23.0
    [     7.854] (II) LoadModule: "fbdev"
    [     7.854] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
    [     7.856] (II) Module fbdev: vendor="X.Org Foundation"
    [     7.856]    compiled for 1.19.0, module version = 0.4.4
    [     7.857]    Module class: X.Org Video Driver
    [     7.857]    ABI class: X.Org Video Driver, version 23.0
    [     7.857] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
    [     7.857] (II) FBDEV: driver for framebuffer: fbdev
    [     8.028] (II) modeset(0): using drv /dev/dri/card0
    [     8.029] (WW) Falling back to old probe method for fbdev
    [     8.029] (II) Loading sub module "fbdevhw"
    [     8.029] (II) LoadModule: "fbdevhw"
    [     8.030] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
    [     8.037] (II) Module fbdevhw: vendor="X.Org Foundation"
    [     8.037]    compiled for 1.19.2, module version = 0.0.2
    [     8.037]    ABI class: X.Org Video Driver, version 23.0
    [     8.037] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
    [     8.038] (II) modeset(0): Creating default Display subsection in Screen section
            "Default Screen Section" for depth/fbbpp 24/32
    [     8.038] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
    [     8.038] (==) modeset(0): RGB weight 888
    [     8.038] (==) modeset(0): Default visual is TrueColor
    [     8.039] (II) Loading sub module "glamoregl"
    [     8.039] (II) LoadModule: "glamoregl"
    [     8.039] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
    [     8.106] (II) Module glamoregl: vendor="X.Org Foundation"
    [     8.106]    compiled for 1.19.2, module version = 1.0.0
    [     8.106]    ABI class: X.Org ANSI C Emulation, version 0.4
    [     8.106] (II) glamor: OpenGL accelerated X.org driver based.
    [     9.854] (II) glamor: EGL version 1.4 (DRI2):
    [     9.980] (II) modeset(0): glamor initialized
    [     9.998] (II) modeset(0): Output HDMI-1 has no monitor section
    [     9.998] (II) modeset(0): EDID for output HDMI-1
    [     9.998] (II) modeset(0): Printing probed modes for output HDMI-1
    [     9.999] (II) modeset(0): Modeline "1016x1856"x60.0  159.65  1016 1096 1200 1384  1856 1859 1869 1923 -hsync +vsync (115.4 kHz)
    [     9.999] (II) modeset(0): Output HDMI-1 connected
    [     9.999] (II) modeset(0): Using sloppy heuristic for initial modes
    [     9.999] (II) modeset(0): Output HDMI-1 using initial mode 1016x1856 +0+0
    [     9.999] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
    [     9.999] (==) modeset(0): DPI set to (96, 96)
    [     9.999] (II) Loading sub module "fb"
    [     9.999] (II) LoadModule: "fb"
    [     9.999] (II) Loading /usr/lib/xorg/modules/libfb.so
    [    10.023] (II) Module fb: vendor="X.Org Foundation"
    [    10.023]    compiled for 1.19.2, module version = 1.0.0
    [    10.023]    ABI class: X.Org ANSI C Emulation, version 0.4
    [    10.023] (II) UnloadModule: "fbdev"
    [    10.023] (II) Unloading fbdev
    [    10.023] (II) UnloadSubModule: "fbdevhw"
    [    10.024] (II) Unloading fbdevhw
    [    10.024] (==) Depth 24 pixmap format is 32 bpp
    [    10.477] (==) modeset(0): Backing store enabled
    [    10.477] (==) modeset(0): Silken mouse enabled
    [    10.486] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
    [    10.495] (==) modeset(0): DPMS enabled
    [    10.496] (II) modeset(0): [DRI2] Setup complete
    [    10.496] (II) modeset(0): [DRI2]   DRI driver: vc4
    [    10.496] (II) modeset(0): [DRI2]   VDPAU driver: vc4
    [    10.496] (--) RandR disabled
    [    10.535] (II) SELinux: Disabled on system
    [    10.544] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
    [    10.544] (II) AIGLX: enabled GLX_ARB_create_context
    [    10.544] (II) AIGLX: enabled GLX_ARB_create_context_profile
    [    10.544] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
    [    10.544] (II) AIGLX: enabled GLX_INTEL_swap_event
    [    10.544] (II) AIGLX: enabled GLX_SGI_swap_control
    [    10.544] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
    [    10.544] (II) AIGLX: enabled GLX_ARB_fbconfig_float
    [    10.544] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
    [    10.544] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
    [    10.547] (II) AIGLX: Loaded and initialized vc4
    [    10.547] (II) GLX: Initialized DRI2 GL provider for screen 0
    [    10.562] (II) modeset(0): Damage tracking initialized
    [    10.562] (II) modeset(0): Setting screen physical size to 268 x 491
    [    15.898] (II) modeset(0): Disabling kernel dirty updates, not required.
    [    31.646] (WW) modeset(0): flip queue failed: Invalid argument
    [    31.646] (WW) modeset(0): Page flip failed: Invalid argument
    [    31.646] (EE) modeset(0): present flip failed
    ... // now same errrors and warnings until
    [    40.933] (WW) modeset(0): flip queue failed: Invalid argument
    [    40.934] (WW) modeset(0): Page flip failed: Invalid argument
    [    40.934] (EE) modeset(0): present flip failed
    [    44.444] (WW) modeset(0): flip queue failed: Invalid argument
    [    44.444] (WW) modeset(0): Page flip failed: Invalid argument
    [    44.444] (EE) modeset(0): present flip failed
    EOF
    
    pi@raspberrypi:~ $ cat ~/.xsession-errors
    Xsession: X session started for pi at Son Okt 28 18:45:39 CET 2018
    dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
    dbus-update-activation-environment: setting DISPLAY=:0
    dbus-update-activation-environment: setting XAUTHORITY=/home/pi/.Xauthority
    localuser:pi being added to access control list
    libGL error: MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    OpenGL version: 2.
    dbus-update-activation-environment: setting INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10
    dbus-update-activation-environment: setting USER=pi
    dbus-update-activation-environment: setting LANGUAGE=de_CH.UTF-8
    dbus-update-activation-environment: setting INFINALITY_FT_FRINGE_FILTER_STRENGTH=0
    dbus-update-activation-environment: setting TEXTDOMAIN=Linux-PAM
    dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
    dbus-update-activation-environment: setting HOME=/home/pi
    dbus-update-activation-environment: setting DESKTOP_SESSION=lightdm-xsession
    dbus-update-activation-environment: setting INFINALITY_FT_CONTRAST=0
    dbus-update-activation-environment: setting XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
    dbus-update-activation-environment: setting INFINALITY_FT_USE_VARIOUS_TWEAKS=true
    dbus-update-activation-environment: setting INFINALITY_FT_GAMMA_CORRECTION=0 100
    dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
    dbus-update-activation-environment: setting INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=10
    dbus-update-activation-environment: setting INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=25
    dbus-update-activation-environment: setting LOGNAME=pi
    dbus-update-activation-environment: setting INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25
    dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
    dbus-update-activation-environment: setting XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
    dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000
    dbus-update-activation-environment: setting DISPLAY=:0
    dbus-update-activation-environment: setting INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0
    dbus-update-activation-environment: setting LANG=de_CH.UTF-8
    dbus-update-activation-environment: setting INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100
    dbus-update-activation-environment: setting INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=0
    dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=lightdm-xsession
    dbus-update-activation-environment: setting XAUTHORITY=/home/pi/.Xauthority
    dbus-update-activation-environment: setting INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0
    dbus-update-activation-environment: setting XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/pi
    dbus-update-activation-environment: setting SHELL=/bin/bash
    dbus-update-activation-environment: setting GDMSESSION=lightdm-xsession
    dbus-update-activation-environment: setting INFINALITY_FT_BRIGHTNESS=0
    dbus-update-activation-environment: setting INFINALITY_FT_STEM_FITTING_STRENGTH=25
    dbus-update-activation-environment: setting INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=40
    dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
    dbus-update-activation-environment: setting INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true
    dbus-update-activation-environment: setting INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0
    dbus-update-activation-environment: setting LC_ALL=de_CH.UTF-8
    dbus-update-activation-environment: setting PWD=/home/pi
    dbus-update-activation-environment: setting INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true
    dbus-update-activation-environment: setting INFINALITY_FT_FILTER_PARAMS=11 22 38 22 11
    dbus-update-activation-environment: setting INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=0
    dbus-update-activation-environment: setting INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0
    ** Message: main.vala:102: Session is LXDE-pi
    ** Message: main.vala:103: DE is LXDE
    ** Message: main.vala:134: log directory: /home/pi/.cache/lxsession/LXDE-pi
    ** Message: main.vala:135: log path: /home/pi/.cache/lxsession/LXDE-pi/run.log
    /usr/bin/unclutter: someone created a sub-window to my sub-window! giving up
    
    pi@raspberrypi:~ $ cat ~/.pm2/logs/mm-error.log
    libGL error: MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    libGL error: MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    MESA-LOADER: failed to retrieve device information
    

    [1]
    0_1540757340768_vlcsnap-2018-10-28-21h07m52s068.png