ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
6.22k stars 1.99k forks source link

Installed desktop xfce via armbian-config on N1, tried to start the x but it says 'Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices' #2586

Closed skygunner closed 3 weeks ago

skygunner commented 1 month ago

Device Information | 设备信息

       .,+t***********z\<"             OS: Armbian bookworm OS aarch64
       ?******************;            Host: Phicomm N1
      '*n` .'`^,;;,^`'. ,cc.           Kernel: Linux 6.6.48-ophub
      -<.                .[l           Uptime: 6 hours, 33 mins
     //     ^^      ^^    \\           Packages: 1574 (dpkg)
     !^         ^^         ":          Shell: bash 5.2.15
    'tt}`     !~]rj_     ")t/.         Display (U2879G6): 3840x2160 @ 30 Hz in 28″ [External]
    Itttt?'   ~~]rr]   `{tttt,         Cursor: Adwaita
    \tttttt!""I_]r("""~tttttt1         Terminal: /dev/pts/0
  '_tttttttttttt)ftttttttttttti.       CPU: Cortex-A53*4 (4) @ 1.51 GHz
 \*ztttttttttttttttttttttttttf**[      GPU: Amlogic meson-gxl-mali [Integrated]
l**c)tttttttttttttttttttttttt(z**,     Memory: 325.35 MiB / 1.75 GiB (18%)
.z*x.`tttttttttttttttttttttttt.`u*n    Swap: 0 B / 896.03 MiB (0%)
>`   (tttttttttttttttttttttt]   "I     Disk (/): 2.31 GiB / 6.50 GiB (36%) - btrfs
     ,tttttttttttttttttttttt`          Disk (/var/log): 27.35 MiB / 46.84 MiB (58%) - ext4
     ./tttttfttttttttfttttt(           Local IP (eth0): 192.168.19.10/24
      'I)))(\()(tt))|\()({;'           Locale: en_US.UTF-8
        .~~~~~~~|)~~~~~~~<
        '[)))))1|()))))))?                                     
          ",,,"    ",,,^                                       
Section "Device"
    Identifier  "DRM Graphics Acclerated"

    ## Use modesetting and glamor
        Driver      "modesetting"
        Option      "AccelMethod"    "glamor"     ### "glamor" to enable 3D acceleration, "none" to disable.
        Option      "DRI"            "2"
        Option      "Dri2Vsync"      "true"
        Option      "TripleBuffer"   "True"
    ## End glamor configuration

    EndSection

    Section "Screen"
        Identifier "Default Screen"
            SubSection "Display"
                Depth 24
            EndSubSection
        EndSection

Armbian Version | 系统版本

Describe the bug | 问题描述

startx

xorg log file:

X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[ 23420.981] Current Operating System: Linux armbian 6.6.48-ophub #1 SMP Fri Aug 30 06:10:45 EDT 2024 aarch64
[ 23420.981] Kernel command line: root=UUID=20571c81-fcb0-42a2-8dde-291ed6af5ee2 rootflags=compress=zstd:6 rootfstype=btrfs console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 max_loop=128 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 mac=FC:7C:02:8B:27:1D
[ 23420.981] xorg-server 2:21.1.7-3+deb12u7 (https://www.debian.org/support) 
[ 23420.981] Current version of pixman: 0.42.2
[ 23420.981]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 23420.981] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 23420.982] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct  4 09:47:48 2024
[ 23420.982] (==) Using config file: "/etc/X11/xorg.conf"
[ 23420.983] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 23420.983] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 23420.983] (==) No Layout section.  Using the first Screen section.
[ 23420.983] (**) |-->Screen "Default Screen" (0)
[ 23420.984] (**) |   |-->Monitor "<default monitor>"
[ 23420.984] (==) No device specified for screen "Default Screen".
        Using the first device section listed.
[ 23420.984] (**) |   |-->Device "DRM Graphics Acclerated"
[ 23420.984] (==) No monitor specified for screen "Default Screen".
        Using a default monitor configuration.
[ 23420.984] (==) Automatically adding devices
[ 23420.984] (==) Automatically enabling devices
[ 23420.984] (==) Automatically adding GPU devices
[ 23420.984] (==) Automatically binding GPU devices
[ 23420.984] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 23420.985] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 23420.985]    Entry deleted from font path.
[ 23420.985] (==) 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
[ 23420.985] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 23420.985] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 23420.985] (II) Loader magic: 0x55717e0f00
[ 23420.985] (II) Module ABI versions:
[ 23420.985]    X.Org ANSI C Emulation: 0.4
[ 23420.985]    X.Org Video Driver: 25.2
[ 23420.985]    X.Org XInput driver : 24.4
[ 23420.985]    X.Org Server Extension : 10.0
[ 23420.987] (--) using VT number 7

[ 23420.988] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 23420.993] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 23420.993] (II) Platform probe for /sys/devices/platform/soc/d0000000.apb/d00c0000.gpu/drm/card1
[ 23420.995] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 23420.995] (II) Platform probe for /sys/devices/platform/soc/d0100000.vpu/drm/card0
[ 23421.025] (II) no primary bus or device found
[ 23421.025]    falling back to /sys/devices/platform/soc/d0000000.apb/d00c0000.gpu/drm/card1
[ 23421.025] (II) LoadModule: "glx"
[ 23421.026] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 23421.030] (II) Module glx: vendor="X.Org Foundation"
[ 23421.030]    compiled for 1.21.1.7, module version = 1.0.0
[ 23421.030]    ABI class: X.Org Server Extension, version 10.0
[ 23421.030] (II) LoadModule: "modesetting"
[ 23421.030] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 23421.031] (II) Module modesetting: vendor="X.Org Foundation"
[ 23421.031]    compiled for 1.21.1.7, module version = 1.21.1
[ 23421.031]    Module class: X.Org Video Driver
[ 23421.031]    ABI class: X.Org Video Driver, version 25.2
[ 23421.031] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 23421.109] (WW) Falling back to old probe method for modesetting
[ 23421.124] (II) modeset(0): using default device
[ 23421.158] (II) modeset(G0): using drv /dev/dri/card0
[ 23421.158] (EE) 
Fatal server error:
[ 23421.158] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[ 23421.158] (EE) 
[ 23421.158] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[ 23421.158] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 23421.158] (EE) 
[ 23421.377] (EE) Server terminated with error (1). Closing log file.

closing log file.

xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
lshw -c display
 *-graphics                
       product: mesondrmfb
       physical id: 5
       logical name: /dev/fb0
       capabilities: fb
       configuration: depth=32 resolution=1920,2160

X -configure

X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux armbian 6.6.48-ophub #1 SMP Fri Aug 30 06:10:45 EDT 2024 aarch64
Kernel command line: root=UUID=20571c81-fcb0-42a2-8dde-291ed6af5ee2 rootflags=compress=zstd:6 rootfstype=btrfs console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 max_loop=128 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 video=HDMI-A-1:1920x1080M@60D mac=FC:7C:02:8B:27:1D
xorg-server 2:21.1.7-3+deb12u7 (https://www.debian.org/support) 
Current version of pixman: 0.42.2
        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: Sun Oct  6 11:59:57 2024
List of video drivers:
        amdgpu
        ati
        nouveau
        radeon
        modesetting
        fbdev
        vesa
No devices to configure.  Configuration failed.
(EE) Server terminated with error (2). Closing log file.

Please provide a detailed description of the issue and, if necessary, attach a screenshot:

just reboot the system, the gui wont be started, manually type startx to start will report the above error. has the gpu driver been installed/enabled in the armbian os image?

skygunner commented 1 month ago

tried to run lspic but there's no information/output

skygunner commented 1 month ago

had a look of journal display-manager,

Oct 06 10:11:56 armbian lightdm[1239]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Oct 06 10:11:56 armbian lightdm[1239]: Could not enumerate user data directory /var/lib/lightdm/data: Error opening directory '/var/lib/lightdm/data': No such file or directory
Oct 06 10:11:56 armbian systemd[1]: Started lightdm.service - Light Display Manager.