本帖最后由 weicx 于 2019-4-9 12:43 编辑
根据Ubuntu MATE官方网站的说明
Enable and Disable X11
You can disable/enable the desktop environment using raspi-config.
If you only intended to run as a headless server then the official Ubuntu Server 18.04.2 images mightt be of interest:
•https://wiki.ubuntu.com/ARM/RaspberryPi
官方Wiki摘录以下内容
Accelerated X driver
An accelerated x.org video driver is available (fbturbo), though this is limited to hardware accelerated window moving/scrolling on the Raspberry Pi. Install the optional PPA above, then:
$ sudo apt-get install xserver-xorg-video-fbturbo
Then add this to /etc/X11/xorg.conf (create if it doesn't already exist):
Section "Device"
Identifier "Raspberry Pi FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection
根据官方说明创建/etc/X11/xorg.conf,V11VNC进行连接时的Xorg.0.log文件内容:
======================================================================================
[ 15.796]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[ 15.796] X Protocol Version 11, Revision 0
[ 15.796] Build Operating System: Linux 4.4.0-138-generic armv7l Ubuntu
[ 15.796] Current Operating System: Linux Raspberry-Pi-3 4.15.0-1033-raspi2 #35-Ubuntu SMP PREEMPT Fri Mar 15 15:56:29 UTC 2019 armv7l
[ 15.797] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1024 bcm2708_fb.fbheight=768 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 net.ifnames=0 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=cfq fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[ 15.797] Build Date: 25 October 2018 04:12:38PM
[ 15.797] xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support)
[ 15.797] Current version of pixman: 0.34.0
[ 15.797] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 15.797] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 15.798] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 9 12:34:46 2019
[ 15.810] (==) Using config file: "/etc/X11/xorg.conf"
[ 15.810] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 15.826] (==) No Layout section. Using the first Screen section.
[ 15.826] (==) No screen section available. Using defaults.
[ 15.826] (**) |-->Screen "Default Screen Section" (0)
[ 15.826] (**) | |-->Monitor "<default monitor>"
[ 15.829] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 15.829] (**) | |-->Device "Allwinner A10/A13 FBDEV"
[ 15.829] (**) | |-->GPUDevice "Raspberry Pi FBDEV"
[ 15.829] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 15.829] (==) Automatically adding devices
[ 15.829] (==) Automatically enabling devices
[ 15.829] (==) Automatically adding GPU devices
[ 15.829] (==) Automatically binding GPU devices
[ 15.829] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 15.834] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 15.835] Entry deleted from font path.
[ 15.835] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 15.835] Entry deleted from font path.
[ 15.835] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 15.835] Entry deleted from font path.
[ 15.836] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 15.836] Entry deleted from font path.
[ 15.836] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 15.836] Entry deleted from font path.
[ 15.836] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[ 15.836] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 15.836] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 15.836] (II) Loader magic: 0x5a9008
[ 15.836] (II) Module ABI versions:
[ 15.836] X.Org ANSI C Emulation: 0.4
[ 15.836] X.Org Video Driver: 23.0
[ 15.836] X.Org XInput driver : 24.1
[ 15.836] X.Org Server Extension : 10.0
[ 15.839] (++) using VT number 7
[ 15.840] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 15.840] (II) no primary bus or device found
[ 15.840] (II) LoadModule: "glx"
[ 15.843] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 15.898] (II) Module glx: vendor="X.Org Foundation"
[ 15.898] compiled for 1.19.6, module version = 1.0.0
[ 15.898] ABI class: X.Org Server Extension, version 10.0
[ 15.898] (II) LoadModule: "fbturbo"
[ 15.898] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[ 15.907] (II) Module fbturbo: vendor="X.Org Foundation"
[ 15.907] compiled for 1.19.6, module version = 0.5.1
[ 15.907] Module class: X.Org Video Driver
[ 15.907] ABI class: X.Org Video Driver, version 23.0
[ 15.907] (II) FBTURBO: driver for framebuffer: fbturbo
[ 15.917] (WW) Falling back to old probe method for fbturbo
[ 15.918] (II) Loading sub module "fbdevhw"
[ 15.918] (II) LoadModule: "fbdevhw"
[ 15.919] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 15.921] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 15.921] compiled for 1.19.6, module version = 0.0.2
[ 15.922] ABI class: X.Org Video Driver, version 23.0
[ 15.922] (II) FBTURBO(0): using /dev/fb0
[ 15.922] (II) FBTURBO(1): using /dev/fb0
[ 15.922] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 15.922] (EE) Screen 1 deleted because of no matching config section.
[ 15.922] (II) UnloadModule: "fbturbo"
[ 15.922] (II) UnloadSubModule: "fbdevhw"
[ 15.922] (II) FBTURBO(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 15.923] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32
[ 15.923] (==) FBTURBO(0): RGB weight 888
[ 15.923] (==) FBTURBO(0): Default visual is TrueColor
[ 15.923] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[ 15.923] (II) FBTURBO(0): hardware: BCM2708 FB (video memory: 3072kB)
[ 15.923] (DB) xf86MergeOutputClassOptions unsupported bus type 0
[ 15.923] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"
[ 15.923] (**) FBTURBO(0): Option "SwapbuffersWait" "true"
[ 15.923] (II) FBTURBO(0): processor: Unknown
[ 15.923] (II) FBTURBO(0): checking modes against framebuffer device...
[ 15.923] (II) FBTURBO(0): checking modes against monitor...
[ 15.923] (--) FBTURBO(0): Virtual size is 1024x768 (pitch 1024)
[ 15.923] (**) FBTURBO(0): Built-in mode "current"
[ 15.923] (==) FBTURBO(0): DPI set to (96, 96)
[ 15.923] (II) Loading sub module "fb"
[ 15.923] (II) LoadModule: "fb"
[ 15.924] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 15.930] (II) Module fb: vendor="X.Org Foundation"
[ 15.930] compiled for 1.19.6, module version = 1.0.0
[ 15.930] ABI class: X.Org ANSI C Emulation, version 0.4
[ 15.930] (==) Depth 24 pixmap format is 32 bpp
[ 15.936] (II) FBTURBO(0): using backing store heuristics
[ 15.941] (II) FBTURBO(0): can't load 'g2d_23' kernel module
[ 15.942] (II) FBTURBO(0): failed to enable the use of sunxi display controller
[ 15.942] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)
[ 15.942] (II) FBTURBO(0): G2D hardware acceleration can't be enabled
[ 15.942] (II) FBTURBO(0): enabled fbdev copyarea acceleration
[ 15.942] (==) FBTURBO(0): Backing store enabled
[ 15.949] (==) FBTURBO(0): DPMS enabled
[ 15.949] (II) FBTURBO(0): failed to enable hardware cursor
[ 15.949] (II) FBTURBO(0): no 3D acceleration because the driver has been compiled without libUMP
[ 15.949] (II) FBTURBO(0): if this is wrong and needs to be fixed, please check ./configure log
[ 15.949] (==) RandR enabled
[ 15.967] (II) SELinux: Disabled on system
[ 15.969] (II) AIGLX: Screen 0 is not DRI2 capable
[ 15.969] (EE) AIGLX: reverting to software rendering
[ 17.417] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[ 17.422] (II) IGLX: Loaded and initialized swrast
[ 17.423] (II) GLX: Initialized DRISWRAST GL provider for screen 0
======================================================================================