You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

树莓派5上Ubuntu 23.10 arm64禁用Wayland后X11会话无法启动的求助

树莓派5上Ubuntu 23.10 arm64禁用Wayland后X11会话无法启动的求助

我在树莓派5上跑Ubuntu 23.10 arm64版本,Wayland环境用着一直挺顺手的。但Citrix的部分功能在Wayland里没法正常工作,所以我想切换到X11会话。之前在树莓派4的Ubuntu 22.04上,我只要在/etc/gdm3/custom.conf里设置WaylandEnable=false就能禁用Wayland,这次我也这么操作了,结果切换后X11会话根本启动不了,屏幕上就一个闪烁的光标。想请教下,在树莓派5的Ubuntu 23.10上启用X11还有其他需要做的步骤吗?

Update 1

我通过SSH在控制台运行了startx,输出如下:

jacob@jacob-raspi5:~$ startx

xauth:  file /home/jacob/.Xauthority does not exist

/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server

xinit: giving up

xinit: unable to connect to X server: Connection refused

xinit: server error

Couldn't get a file descriptor referring to the console.

下面是/var/log/Xorg.0.log的日志内容:

[    30.342] (--) Log file renamed from "/var/log/Xorg.pid-1178.log" to "/var/log/Xorg.0.log"

[    30.342]

X.Org X Server 1.21.1.7

X Protocol Version 11, Revision 0

[    30.342] Current Operating System: Linux jacob-raspi5 6.5.0-1005-raspi #7-Ubuntu SMP PREEMPT_DYNAMIC Sun Oct  8 08:06:18 UTC 2023 aarch64

[    30.342] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=D8:3A:DD:E9:CD:51 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  zswap.enabled=1 zswap.zpool=z3fold zswap.compressor=zstd multipath=off dwc_otg.lpm_enable=0 console=tty1 root=LABEL=writable rootfstype=ext4 rootwait fixrtc quiet splash

[    30.343] xorg-server 2:21.1.7-3ubuntu2 (For technical support please see http://www.ubuntu.com/support)

[    30.343] Current version of pixman: 0.42.2

[    30.343]    Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.

[    30.343] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.

[    30.343] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 31 22:53:21 2024

[    30.343] (==) Using system config directory "/usr/share/X11/xorg.conf.d"

[    30.343] (==) No Layout section.  Using the first Screen section.

[    30.343] (==) No screen section available. Using defaults.

[    30.343] (**) |-->Screen "Default Screen Section" (0)

[    30.343] (**) |   |-->Monitor "<default monitor>"

[    30.343] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.

[    30.343] (==) Automatically adding devices

[    30.343] (==) Automatically enabling devices

[    30.343] (==) Automatically adding GPU devices

[    30.343] (==) Automatically binding GPU devices

[    30.344] (==) Max clients allowed: 256, resource mask: 0x1fffff

[    30.344] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.

[    30.344]    Entry deleted from font path.

[    30.344] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.

[    30.344]    Entry deleted from font path.

[    30.344] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.

[    30.344]    Entry deleted from font path.

[    30.344] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.

[    30.344]    Entry deleted from font path.

[    30.344] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.

[    30.344]    Entry deleted from font path.

[    30.344] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins

[    30.344] (==) ModulePath set to "/usr/lib/xorg/modules"

[    30.344] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.

[    30.344] (II) Loader magic: 0xaaaac3560010

[    30.344] (II) Module ABI versions:

[    30.344]    X.Org ANSI C Emulation: 0.4

[    30.344]    X.Org Video Driver: 25.2

[    30.344]    X.Org XInput driver : 24.4

[    30.344]    X.Org Server Extension : 10.0

[    30.345] (++) using VT number 1

[    30.347] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c6

[    30.350] (II) xfree86: Adding drm device (/dev/dri/card0)

[    30.350] (II) Platform probe for /sys/devices/platform/axi/1002000000.v3d/drm/card0

[    30.351] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 14 paused 0

[    30.352] (II) xfree86: Adding drm device (/dev/dri/card1)

[    30.352] (II) Platform probe for /sys/devices/platform/axi/axi:gpu/drm/card1

[    30.353] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 15 paused 0

[    30.354] (II) no primary bus or device found

[    30.354]    falling back to /sys/devices/platform/axi/1002000000.v3d/drm/card0

[    30.354] (II) LoadModule: "glx"

[    30.354] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so

[    30.355] (II) Module glx: vendor="X.Org Foundation"

[    30.355]    compiled for 1.21.1.7, module version = 1.0.0

[    30.355]    ABI class: X.Org Server Extension, version 10.0

[    30.356] (==) Matched modesetting as autoconfigured driver 0

[    30.356] (==) Matched fbdev as autoconfigured driver 1

[    30.356] (==) Assigned the driver to the xf86ConfigLayout

[    30.356] (II) LoadModule: "modesetting"

[    30.356] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so

[    30.356] (II) Module modesetting: vendor="X.Org Foundation"

[    30.356]    compiled for 1.21.1.7, module version = 1.21.1

[    30.356]    Module class: X.Org Video Driver

[    30.356]    ABI class: X.Org Video Driver, version 25.2

[    30.356] (II) LoadModule: "fbdev"

[    30.356] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so

[    30.356] (II) Module fbdev: vendor="X.Org Foundation"

[    30.356]    compiled for 1.21.1.3, module version = 0.5.0

[    30.356]    Module class: X.Org Video Driver

[    30.356]    ABI class: X.Org Video Driver, version 25.2

[    30.356] (II) modesetting: Driver for Modesetting Kernel Drivers: kms

[    30.356] (II) FBDEV: driver for framebuffer: fbdev

[    30.357] (WW) Falling back to old probe method for modesetting

[    30.357] (WW) Falling back to old probe method for fbdev

[    30.357] (II) Loading sub module "fbdevhw"

[    30.357] (II) LoadModule: "fbdevhw"

[    30.357] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so

[    30.357] (II) Module fbdevhw: vendor="X.Org Foundation"

[    30.357]    compiled for 1.21.1.7, module version = 0.0.2

[    30.357]    ABI class: X.Org Video Driver, version 25.2

[    30.357] (II) FBDEV(0): using default device

[    30.357] (II) modeset(G0): using drv /dev/dri/card1

[    30.357] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support

[    30.357] (EE)
Fatal server error:
[    30.357] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices

[    30.357] (EE)

[    30.357] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.

[    30.357] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.

[    30.357] (EE)

[    30.370] (EE) Server terminated with error (1). Closing log file.

Update 2

运行sudo lshw -c display查看显示设备信息,输出如下:

jacob@jacob-raspi5:~$ sudo lshw -c display

*-graphics
product: vc4drmfb
physical id: a
logical name: /dev/fb0
capabilities: fb
configuration: depth=16 resolution=1920,1080

Update 3

尝试运行startx <>/dev/tty1 >&0 2>&0,但暂未获取到该命令的输出结果。


备注:内容来源于stack exchange,提问作者jbeard4

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 11:03:09