Hello,
I'm running a Batocera 5.24 x64 on a laptop with an HDMI video output. At startup I can see the boot process simultaneously as dual display on the LVDS laptop's screen and the HDMI monitor. But after the "Batocera only cores that matter" splashscreen, I lost the video signal on the HDMI monitor. While EmulationStation starts on the LVDS laptop's screen.
In my Batocera's setup, the video output is properly set as HDMI-0. And with previous Batocera's releases, my HDMI output was working properly. I only updated my 5.23 release to the new 5.24 without changing any setting.
Before this upgrade, EmulationStation was able to switch automaticaly between HDMI/LVDS ouputs. If the HDMI cable was plugged to the monitor, Batocera appeared on the HDMI monitor. Otherwise, Batocera appeared on the LVDS laptop's screen. Now, with the 5.24 Batocera can only runs on the LVDS laptop's screen.
In the /userdata/system/.xinitrc, I force the video resolution with this command : xrandr -s 1280x720 -r 60 (like the Wiki explains).
Since I upgraded my Batocera to 5.24, if I use this commands lines :
# export DISPLAY=:0.0
# xrandr
I receive this error message :
Invalid MIT-MAGIC-COOKIE-1 keyCan't open display :0.0
In the Xorg0.log logfile, I can check this couple of resolution and framerate is supported by theses two video ouputs LVDS and HDMI.
[ 129.406] (II) RADEON(0): Printing probed modes for output LVDS
[ 129.407] (II) RADEON(0): Modeline "1366x768"x60.0 72.00 1366 1414 1446 1494 768 771 777 803 -hsync -vsync (48.2 kHz eP)
[ 129.407] (II) RADEON(0): Modeline "1280x720"x60.0 74.65 1280 1344 1472 1664 720 723 728 748 -hsync +vsync (44.9 kHz)
[ 129.407] (II) RADEON(0): Modeline "1152x768"x59.9 71.95 1152 1216 1328 1504 768 771 781 798 -hsync +vsync (47.8 kHz)
[ 129.407] (II) RADEON(0): Modeline "1024x768"x59.9 63.53 1024 1072 1176 1328 768 771 775 798 -hsync +vsync (47.8 kHz)
[ 129.407] (II) RADEON(0): Modeline "800x600"x60.0 38.31 800 832 912 1024 600 603 607 624 -hsync +vsync (37.4 kHz)
[ 129.407] (II) RADEON(0): Modeline "848x480"x59.9 31.65 848 872 952 1056 480 483 493 500 -hsync +vsync (30.0 kHz)
[ 129.407] (II) RADEON(0): Modeline "720x480"x59.9 26.85 720 744 808 896 480 483 493 500 -hsync +vsync (30.0 kHz)
[ 129.407] (II) RADEON(0): Modeline "640x480"x59.9 23.98 640 664 720 800 480 483 487 500 -hsync +vsync (30.0 kHz)
[ 129.486] (II) RADEON(0): Printing probed modes for output HDMI-0
[ 129.486] (II) RADEON(0): Modeline "1920x1080i"x60.0 74.25 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz eP)
[ 129.486] (II) RADEON(0): Modeline "1920x1080i"x50.0 74.25 1920 2448 2492 2640 1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz e)
[ 129.486] (II) RADEON(0): Modeline "1920x1080i"x59.9 74.18 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.7 kHz e)
[ 129.486] (II) RADEON(0): Modeline "1280x720"x60.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 129.486] (II) RADEON(0): Modeline "1280x720"x50.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz e)
[ 129.486] (II) RADEON(0): Modeline "1280x720"x59.9 74.18 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 129.486] (II) RADEON(0): Modeline "720x576"x50.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 129.487] (II) RADEON(0): Modeline "720x480"x60.0 27.03 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 129.487] (II) RADEON(0): Modeline "720x480"x59.9 27.00 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 129.487] (II) RADEON(0): Modeline "640x480"x60.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 129.487] (II) RADEON(0): Modeline "640x480"x60.0 25.18 640 648 744 800 480 482 484 525 -hsync -vsync (31.5 kHz e)
[ 129.487] (II) RADEON(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
Also, I can ckeck this two video ouputs LVDS and HDMI are porperly found by the video driver, and properly connected to a video device.
[ 129.487] (II) RADEON(0): Output LVDS connected
[ 129.487] (II) RADEON(0): Output VGA-0 disconnected
[ 129.487] (II) RADEON(0): Output HDMI-0 connected
I did new tests without the /userdata/system/.xinitrc file and with a fresh file copy from the /etc/X11/xinit/xinitrc. But EmulationStation doesn't want to switch to the HDMI monitor.
I think something is broken in EmulationStation. Because when it starts, I get some video glitches on the screen during 2 seconds. And I get them too, when I quit RetroArch for EmulationStation. Video display looks broken during 2 seconds to make the transition.
Here is my EmulationStation's traces when I start it manually through SSH command : /etc/init.d/S31emulationstation start
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.15.0-66-generic x86_64
Current Operating System: Linux CAPRI 5.2.16 #1 SMP Mon Nov 4 21:51:44 UTC 2019 x86_64
Kernel command line: BOOT_IMAGE=/boot/linux label=BATOCERA console=tty3 quiet loglevel=0 vt.global_cursor_default=0
Build Date: 04 November 2019 11:37:17PM
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Wed Dec 11 22:25:42 2019
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] Kernel modesetting enabled.
The XKEYBOARD keymap compiler (xkbcomp) reports:
Warning: Unsupported high keycode 372 for name <I372> ignored
X11 cannot support keycodes above 255.
This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
Warning: Unsupported high keycode 372 for name <I372> ignored
X11 cannot support keycodes above 255.
This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
#
#
xrandr: cannot find mode CEA 4 HDMI
Obt-Message: Failed to open an Input Method
Openbox-Message: Le serveur X ne supporte pas la localisation.
Openbox-Message: Impossible d'appliquer les modifications de localisation pour le serveur X.
lo IP Address 127.0.0.1
eth0 IP Address 192.168.1.13
Is it possible to set a simultaneous dual display on LVDS + HDMI-0 using the xrandr command in the .xinitrc file ?