[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Xorg server on QEMU on Sid



I'm trying to run Xorg server on the git QEMU on the current Sid.
It fails on fb device setting

QEMU graphic related options:
-g 1200x800x24 -display gtk

fd console works. /dev/fb0/ device works
(i.e.   "cat /dev/urandom > /dev/fb0"  fills  "nubus-macfb"
with random dots :) )

My Xorg config:
/usr/share/X11/xorg.conf.d/99-fbdev.conf
===============
Section "Device"
  Identifier "MacFB"
  Driver "fbdev"
  Option "fbdev" "/dev/fb0"
  Option "ModeDebug" "true"
EndSection

Section "Screen"
 Identifier "FBScreen"
 Device "MacFB"
 Monitor "MacMonitor"
 DefaultDepth 24
 SubSection "Display"
   Depth 24
 EndSubSection
EndSection

Section "Monitor"
 Identifier "MacMonitor"
EndSection

Section "ServerLayout"
 Identifier "FBLayout"
 Screen "FBScreen"
EndSection
===============

Display blinks at start and Xorg recognizes fremebuffer but fails at
mode setting:
====
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.0-11-amd64 m68k Debian
Current Operating System: Linux quadra800 5.6.0-1-m68k #1 Debian
5.6.7-1 (2020-04-29) m68k
Kernel command line: console=ttyS0 root=/dev/sda2
Build Date: 31 March 2020  10:14:40AM
xorg-server 2:1.20.8-2 (https://www.debian.org/support)
Current version of pixman: 0.36.0
        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.0.log", Time: Mon May 18 03:13:57 2020
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(==) ServerLayout "FBLayout"
(**) |-->Screen "FBScreen" (0)
(**) |   |-->Monitor "MacMonitor"
(**) |   |-->Device "MacFB"
(==) Automatically adding devices
(==) Automatically enabling devices
(==) Automatically adding GPU devices
(==) Max clients allowed: 256, resource mask: 0x1fffff
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
        Entry deleted from font path.
(==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        /usr/share/fonts/X11/75dpi,
        built-ins
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable
AutoAddDevices.
(II) Loader magic: 0xd01f5468
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 24.1
        X.Org XInput driver : 24.1
        X.Org Server Extension : 10.0
(--) using VT number 7

(II) systemd-logind: logind integration requires -keeptty and -keeptty
was not provided, disabling logind integration
(II) no primary bus or device found
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
        compiled for 1.20.8, module version = 1.0.0
        ABI class: X.Org Server Extension, version 10.0
(II) LoadModule: "fbdev"
(II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
(II) Module fbdev: vendor="X.Org Foundation"
        compiled for 1.20.0, module version = 0.5.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 24.0
(II) FBDEV: driver for framebuffer: fbdev
(WW) Falling back to old probe method for fbdev
(II) Loading sub module "fbdevhw"
(II) LoadModule: "fbdevhw"
(II) Loading /usr/lib/xorg/modules/libfbdevhw.so
(II) Module fbdevhw: vendor="X.Org Foundation"
        compiled for 1.20.8, module version = 0.0.2
        ABI class: X.Org Video Driver, version 24.1
(II) FBDEV(0): using /dev/fb0
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(**) FBDEV(0): Depth 24, (--) framebuffer bpp 32
(==) FBDEV(0): RGB weight 888
(==) FBDEV(0): Default visual is TrueColor
(==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
(II) FBDEV(0): hardware: DAFB (video memory: 2812kB)
(DB) xf86MergeOutputClassOptions unsupported bus type 0
(**) FBDEV(0): Option "fbdev" "/dev/fb0"
(II) FBDEV(0): checking modes against framebuffer device...
(II) FBDEV(0): checking modes against monitor...
(II) FBDEV(0): Virtual size is 1200x800 (pitch 1200)
(**) FBDEV(0):  Built-in mode "current": 96.0 MHz, 63.2 kHz, 76.7 Hz
(II) FBDEV(0): Modeline "current"x0.0   96.01  1200 1232 1376 1520
800 804 808 824 -hsync -vsync -csync (63.2 kHz b)
(==) FBDEV(0): DPI set to (96, 96)
(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.20.8, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(**) FBDEV(0): using shadow framebuffer
(II) Loading sub module "shadow"
(II) LoadModule: "shadow"
(II) Loading /usr/lib/xorg/modules/libshadow.so
(II) Module shadow: vendor="X.Org Foundation"
        compiled for 1.20.8, module version = 1.1.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(EE) FBDEV(0): FBIOPUT_VSCREENINFO succeeded but modified mode
(EE) FBDEV(0): mode initialization failed
(EE)
Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for
additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
===============

There was a similar issue with FBIOPUT_VSCREENINFO but in 2009

https://lists.debian.org/debian-arm/2009/02/msg00065.html
https://www.mail-archive.com/xorg@lists.freedesktop.org/msg04115.html

filtered strace

openat(AT_FDCWD, "/dev/fb0", O_RDWR|O_LARGEFILE) = 11
ioctl(11, FBIOGET_FSCREENINFO, 0xd0233f4c) = 0
ioctl(11, FBIOGET_VSCREENINFO, 0xd0233f8c) = 0
ioctl(11, FBIOGET_VSCREENINFO, 0xd023402c) = 0
ioctl(11, FBIOPUT_VSCREENINFO, 0xefe9ea4c) = 0
ioctl(11, FBIOPUT_VSCREENINFO, 0xd023402c) = 0


Reply to: