万博网页版登陆页派论坛

X11VNC无显示器模式连接后卡顿的问题

weicx 发表于 2019-4-9 12:40:07 | 显示全部楼层 |阅读模式
本帖最后由 weicx 于 2019-4-9 12:44 编辑

硬件:Raspberry Pi 3 B+
操作系统:Ubuntu MATE 18.04.2 (Bionic) 32Bit
镜像名称:ubuntu-mate-18.04.2-beta1-desktop-armhf+raspi-ext4.img

目前问题:
  新安装的系统,第一次安装使用HDMI显示器后安装了X11VNC和SSH,raspi-config只进行分辨率的更改以及
  目前X11VNC存在以下问题,通过VNC Viewer访问Ubuntu,X下画面很卡,偶而连接断开(排除网络连接不稳定的情况),正常接入显示器后一切正常,初步看日志应该是驱动加载问题看到有无法启用硬件鼠标和3D加速的信息,但是本人多方查阅无法修复,在此寻求各路大佬解决,万分感谢。

顺求各位使用Raspbian系统的大佬们默认VNC下xorg.conf配置信息。

附两个/var/log/Xorg.0.log文件,分别为默认和创建/etc/X11/xorg.conf后的log。

不创建/etc/X11/xorg.conf,默认V11VNC进行连接时的Xorg.0.log文件内容:
======================================================================================
[    15.608]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[    15.609] X Protocol Version 11, Revision 0
[    15.609] Build Operating System: Linux 4.4.0-138-generic armv7l Ubuntu
[    15.609] 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.609] 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.609] Build Date: 25 October 2018  04:12:38PM
[    15.609] xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see
http://www.ubuntu.com/support)
[    15.610] Current version of pixman: 0.34.0
[    15.610]  Before reporting problems, check
http://wiki.x.org
to make sure that you have the latest version.
[    15.610] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    15.610] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Apr  7 18:51:40 2019
[    15.621] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    15.640] (==) No Layout section.  Using the first Screen section.
[    15.640] (==) No screen section available. Using defaults.
[    15.640] (**) |-->Screen "Default Screen Section" (0)
[    15.640] (**) |   |-->Monitor "<default monitor>"
[    15.643] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[    15.643] (**) |   |-->Device "Allwinner A10/A13 FBDEV"
[    15.643] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[    15.643] (==) Automatically adding devices
[    15.643] (==) Automatically enabling devices
[    15.643] (==) Automatically adding GPU devices
[    15.643] (==) Automatically binding GPU devices
[    15.643] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    15.650] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    15.650]  Entry deleted from font path.
[    15.650] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    15.650]  Entry deleted from font path.
[    15.650] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    15.650]  Entry deleted from font path.
[    15.651] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    15.651]  Entry deleted from font path.
[    15.651] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    15.651]  Entry deleted from font path.
[    15.651] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[    15.651] (==) ModulePath set to "/usr/lib/xorg/modules"
[    15.651] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[    15.651] (II) Loader magic: 0x5b7008
[    15.651] (II) Module ABI versions:
[    15.651]  X.Org ANSI C Emulation: 0.4
[    15.651]  X.Org Video Driver: 23.0
[    15.652]  X.Org XInput driver : 24.1
[    15.652]  X.Org Server Extension : 10.0
[    15.655] (++) using VT number 7
[    15.655] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    15.656] (II) no primary bus or device found
[    15.656] (II) LoadModule: "glx"
[    15.667] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    15.735] (II) Module glx: vendor="X.Org Foundation"
[    15.735]  compiled for 1.19.6, module version = 1.0.0
[    15.735]  ABI class: X.Org Server Extension, version 10.0
[    15.735] (II) LoadModule: "fbturbo"
[    15.735] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[    15.745] (II) Module fbturbo: vendor="X.Org Foundation"
[    15.745]  compiled for 1.19.6, module version = 0.5.1
[    15.746]  Module class: X.Org Video Driver
[    15.746]  ABI class: X.Org Video Driver, version 23.0
[    15.746] (II) FBTURBO: driver for framebuffer: fbturbo
[    15.752] (WW) Falling back to old probe method for fbturbo
[    15.753] (II) Loading sub module "fbdevhw"
[    15.753] (II) LoadModule: "fbdevhw"
[    15.753] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    15.755] (II) Module fbdevhw: vendor="X.Org Foundation"
[    15.755]  compiled for 1.19.6, module version = 0.0.2
[    15.755]  ABI class: X.Org Video Driver, version 23.0
[    15.755] (II) FBTURBO(0): using /dev/fb0
[    15.755] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    15.755] (II) FBTURBO(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[    15.755] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32
[    15.755] (==) FBTURBO(0): RGB weight 888
[    15.755] (==) FBTURBO(0): Default visual is TrueColor
[    15.755] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[    15.755] (II) FBTURBO(0): hardware: BCM2708 FB (video memory: 3072kB)
[    15.755] (DB) xf86MergeOutputClassOptions unsupported bus type 0
[    15.755] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"
[    15.755] (**) FBTURBO(0): Option "SwapbuffersWait" "true"
[    15.756] (II) FBTURBO(0): processor: Unknown
[    15.756] (II) FBTURBO(0): checking modes against framebuffer device...
[    15.756] (II) FBTURBO(0): checking modes against monitor...
[    15.756] (--) FBTURBO(0): Virtual size is 1024x768 (pitch 1024)
[    15.756] (**) FBTURBO(0):  Built-in mode "current"
[    15.756] (==) FBTURBO(0): DPI set to (96, 96)
[    15.756] (II) Loading sub module "fb"
[    15.756] (II) LoadModule: "fb"
[    15.756] (II) Loading /usr/lib/xorg/modules/libfb.so
[    15.763] (II) Module fb: vendor="X.Org Foundation"
[    15.763]  compiled for 1.19.6, module version = 1.0.0
[    15.763]  ABI class: X.Org ANSI C Emulation, version 0.4
[    15.763] (==) Depth 24 pixmap format is 32 bpp
[    15.771] (II) FBTURBO(0): using backing store heuristics
[    15.781] (II) FBTURBO(0): can't load 'g2d_23' kernel module
[    15.781] (II) FBTURBO(0): failed to enable the use of sunxi display controller
[    15.782] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)
[    15.782] (II) FBTURBO(0): G2D hardware acceleration can't be enabled
[    15.782] (II) FBTURBO(0): enabled fbdev copyarea acceleration
[    15.782] (==) FBTURBO(0): Backing store enabled
[    15.790] (==) FBTURBO(0): DPMS enabled
[    15.790] (II) FBTURBO(0): failed to enable hardware cursor
[    15.790] (II) FBTURBO(0): no 3D acceleration because the driver has been compiled without libUMP
[    15.790] (II) FBTURBO(0): if this is wrong and needs to be fixed, please check ./configure log
[    15.790] (==) RandR enabled
[    15.808] (II) SELinux: Disabled on system
[    15.810] (II) AIGLX: Screen 0 is not DRI2 capable
[    15.810] (EE) AIGLX: reverting to software rendering
[    17.285] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    17.288] (II) IGLX: Loaded and initialized swrast
[    17.288] (II) GLX: Initialized DRISWRAST GL provider for screen 0

======================================================================================

因为发帖长度要求,二楼补充内容。

weicx  楼主| 发表于 2019-4-9 12:40:38 | 显示全部楼层
本帖最后由 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:
&#8226;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

======================================================================================
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版 | Archiver | 万博网页版登陆页派论坛 ( 粤ICP备15075382号-1 )