CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
楼主: cubieplayer

在Cubian上安装显卡加速的LXDE桌面环境

[复制链接]
发表于 2014-9-11 14:23:43 | 显示全部楼层
X.Org X Server 1.12.4
Release Date: 2012-08-27
[    47.505] X Protocol Version 11, Revision 0
[    47.505] Build Operating System: Linux 3.2.0-4-mx5 armv7l Debian
[    47.505] Current Operating System: Linux Cubian 3.4.79-sun7i #14 SMP PREEMPT Thu Jul 3 06:39:51 CST 2014 armv7l
[    47.506] Kernel command line: console=tty0 root=/dev/mmcblk0p1 rootwait loglevel=8 panic=10 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x800p60 panic=10 consoleblank=0 fb0_framebuffer_num=3 sunxi_fb_mem_reserve=16 sunxi_ve_mem_reserve=32
[    47.506] Build Date: 17 December 2013  08:51:06PM
[    47.506] xorg-server 2:1.12.4-6+deb7u2 (Julien Cristau <jcristau@debian.org>)
[    47.506] Current version of pixman: 0.26.0
[    47.506]         Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    47.506] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    47.507] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 11 06:15:26 2014
[    47.521] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    47.536] (==) ServerLayout "Default ServerLayout"
[    47.537] (**) |-->Screen "Default Screen" (0)
[    47.537] (**) |   |-->Monitor "Generic Monitor"
[    47.539] (**) |   |-->Device "Allwinner A10/A13 FBDEV"
[    47.539] (**) Option "BlankTime" "0"
[    47.540] (**) Option "StandbyTime" "0"
[    47.540] (**) Option "SuspendTime" "0"
[    47.540] (**) Option "OffTime" "0"
[    47.540] (==) Automatically adding devices
[    47.541] (==) Automatically enabling devices
[    47.567] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    47.568]         Entry deleted from font path.
[    47.568] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    47.568]         Entry deleted from font path.
[    47.568] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    47.568]         Entry deleted from font path.
[    47.569] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    47.578]         Entry deleted from font path.
[    47.578] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    47.578]         Entry deleted from font path.
[    47.578] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[    47.578]         Entry deleted from font path.
[    47.578] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[    47.579] (==) ModulePath set to "/usr/lib/xorg/modules"
[    47.579] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    47.579] (II) Loader magic: 0xb6fe0cf0
[    47.579] (II) Module ABI versions:
[    47.579]         X.Org ANSI C Emulation: 0.4
[    47.579]         X.Org Video Driver: 12.1
[    47.579]         X.Org XInput driver : 16.0
[    47.579]         X.Org Server Extension : 6.0
[    47.579] (II) LoadModule: "extmod"
[    47.663] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[    47.698] (II) Module extmod: vendor="X.Org Foundation"
[    47.698]         compiled for 1.12.4, module version = 1.0.0
[    47.698]         Module class: X.Org Server Extension
[    47.698]         ABI class: X.Org Server Extension, version 6.0
[    47.698] (II) Loading extension SELinux
[    47.699] (II) Loading extension MIT-SCREEN-SAVER
[    47.699] (II) Loading extension XFree86-VidModeExtension
[    47.699] (II) Loading extension XFree86-DGA
[    47.699] (II) Loading extension DPMS
[    47.699] (II) Loading extension XVideo
[    47.699] (II) Loading extension XVideo-MotionCompensation
[    47.699] (II) Loading extension X-Resource
[    47.699] (II) LoadModule: "dbe"
[    47.701] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[    47.707] (II) Module dbe: vendor="X.Org Foundation"
[    47.707]         compiled for 1.12.4, module version = 1.0.0
[    47.707]         Module class: X.Org Server Extension
[    47.707]         ABI class: X.Org Server Extension, version 6.0
[    47.707] (II) Loading extension DOUBLE-BUFFER
[    47.707] (II) LoadModule: "glx"
[    47.708] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    47.748] (II) Module glx: vendor="X.Org Foundation"
[    47.748]         compiled for 1.12.4, module version = 1.0.0
[    47.748]         ABI class: X.Org Server Extension, version 6.0
[    47.749] (==) AIGLX enabled
[    47.749] (II) Loading extension GLX
[    47.749] (II) LoadModule: "record"
[    47.751] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[    47.761] (II) Module record: vendor="X.Org Foundation"
[    47.762]         compiled for 1.12.4, module version = 1.13.0
[    47.762]         Module class: X.Org Server Extension
[    47.762]         ABI class: X.Org Server Extension, version 6.0
[    47.762] (II) Loading extension RECORD
[    47.762] (II) LoadModule: "dri"
[    47.771] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[    47.800] (II) Module dri: vendor="X.Org Foundation"
[    47.800]         compiled for 1.12.4, module version = 1.0.0
[    47.800]         ABI class: X.Org Server Extension, version 6.0
[    47.800] (II) Loading extension XFree86-DRI
[    47.800] (II) LoadModule: "dri2"
[    47.802] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[    47.821] (II) Module dri2: vendor="X.Org Foundation"
[    47.822]         compiled for 1.12.4, module version = 1.2.0
[    47.822]         ABI class: X.Org Server Extension, version 6.0
[    47.822] (II) Loading extension DRI2
[    47.822] (II) LoadModule: "fbturbo"
[    47.823] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[    47.865] (II) Module fbturbo: vendor="X.Org Foundation"
[    47.865]         compiled for 1.12.4, module version = 0.5.1
[    47.866]         Module class: X.Org Video Driver
[    47.877]         ABI class: X.Org Video Driver, version 12.1
[    47.877] (II) FBTURBO: driver for framebuffer: fbturbo
[    47.878] (++) using VT number 7

[    48.387] (WW) Falling back to old probe method for fbturbo
[    48.511] (II) Loading sub module "fbdevhw"
[    48.511] (II) LoadModule: "fbdevhw"
[    48.513] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    48.518] (II) Module fbdevhw: vendor="X.Org Foundation"
[    48.519]         compiled for 1.12.4, module version = 0.0.2
[    48.519]         ABI class: X.Org Video Driver, version 12.1
[    48.519] (II) FBTURBO(0): using /dev/fb0
[    48.519] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    48.520] (II) FBTURBO(0): Creating default Display subsection in Screen section
        "Default Screen" for depth/fbbpp 24/32
[    48.520] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32
[    48.520] (==) FBTURBO(0): RGB weight 888
[    48.520] (==) FBTURBO(0): Default visual is TrueColor
[    48.520] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[    48.520] (II) FBTURBO(0): hardware:  (video memory: 6144kB)
[    48.521] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"
[    48.521] (**) FBTURBO(0): Option "HWCursor" "off"
[    48.521] (**) FBTURBO(0): Option "SwapbuffersWait" "true"
[    48.521] (**) FBTURBO(0): Option "AccelMethod" "G2D"
[    48.522] (II) FBTURBO(0): processor: ARM Cortex-A7
[    48.522] (II) FBTURBO(0): checking modes against framebuffer device...
[    48.523] (II) FBTURBO(0): checking modes against monitor...
[    48.523] (--) FBTURBO(0): Virtual size is 1024x768 (pitch 1024)
[    48.523] (**) FBTURBO(0):  Built-in mode "current": 65.2 MHz, 48.5 kHz, 60.2 Hz
[    48.523] (II) FBTURBO(0): Modeline "current"x0.0   65.25  1024 1048 1184 1344  768 772 778 806 -hsync -vsync -csync (48.5 kHz b)
[    48.523] (==) FBTURBO(0): DPI set to (96, 96)
[    48.523] (II) Loading sub module "fb"
[    48.523] (II) LoadModule: "fb"
[    48.524] (II) Loading /usr/lib/xorg/modules/libfb.so
[    48.547] (II) Module fb: vendor="X.Org Foundation"
[    48.547]         compiled for 1.12.4, module version = 1.0.0
[    48.547]         ABI class: X.Org ANSI C Emulation, version 0.4
[    48.548] (==) Depth 24 pixmap format is 32 bpp
[    48.563] (II) FBTURBO(0): using backing store heuristics
[    48.696] (II) FBTURBO(0): enabled G2D acceleration
[    48.696] (==) FBTURBO(0): Backing store disabled
[    48.698] (II) FBTURBO(0): SunxiVideo_Init: no scalable layer available for XV
[    49.202] (II) Loading sub module "dri2"
[    49.202] (II) LoadModule: "dri2"
[    49.204] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[    49.204] (II) Module dri2: vendor="X.Org Foundation"
[    49.204]         compiled for 1.12.4, module version = 1.2.0
[    49.204]         ABI class: X.Org Server Extension, version 6.0
[    49.204] drmOpenDevice: node name is /dev/dri/card0
[    49.205] drmOpenDevice: open result is 11, (OK)
[    49.205] drmOpenDevice: node name is /dev/dri/card0
[    49.205] drmOpenDevice: open result is 11, (OK)
[    49.205] drmOpenDevice: node name is /dev/dri/card0
[    49.205] drmOpenDevice: open result is 11, (OK)
[    49.206] drmGetBusid returned ''
[    49.252] (II) FBTURBO(0): tear-free zero-copy double buffering needs more video memory
[    49.253] (II) FBTURBO(0): please set fb0_framebuffer_num >= 3 in the fex file
[    49.253] (II) FBTURBO(0): and sunxi_fb_mem_reserve >= 9 in the kernel cmdline
[    49.253] (II) FBTURBO(0): enabled display controller hardware overlays for DRI2
[    49.253] (II) FBTURBO(0): Wait on SwapBuffers? enabled
[    49.253] (II) FBTURBO(0): [DRI2] Setup complete
[    49.253] (II) FBTURBO(0): [DRI2]   DRI driver: lima
[    49.254] (II) FBTURBO(0): [DRI2]   VDPAU driver: sunxi
[    49.254] (II) FBTURBO(0): using DRI2 integration for Mali GPU (UMP buffers)
[    49.254] (II) FBTURBO(0): Mali binary drivers can only accelerate EGL/GLES
[    49.254] (II) FBTURBO(0): so AIGLX/GLX is expected to fail or fallback to software
[    49.254] (==) RandR enabled

回复 支持 反对

使用道具 举报

发表于 2014-9-11 14:24:57 | 显示全部楼层
期待你的答案,折腾了n 天了。

gear 我只有4x ,看来 加速的确没有起来。
回复 支持 反对

使用道具 举报

发表于 2014-9-11 14:27:32 | 显示全部楼层
提供完整的LOG, 盼望能帮忙搞定,谢谢。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复 支持 反对

使用道具 举报

发表于 2014-9-11 16:24:10 | 显示全部楼层
终于出现了彩色的三角, gear 的测试,也到150fps了。

主要改动是 增加了 在 http://linux-sunxi.org/Packages, 说的一个源

###
deb http://packages.linux-sunxi.org/ubuntu/ quantal main
deb-src http://packages.linux-sunxi.org/ubuntu/ quantal main
###

做了一个upgrade, 发现 libUMP 有更新。 按照了更新后的 libUMP, 后,彩色的三角出现了。

目前视频加速不成功。1080p 的测试无法播放, 求在cubian 的方案。

我用了 不少的发布版本,cubian  是我的最喜欢的。 概念非常好,需要保留了,直接写道NAND上。
回复 支持 反对

使用道具 举报

发表于 2014-9-11 18:06:28 | 显示全部楼层
竟然发现 HWCursor 的设置非常敏感,如果这个打开的,加速就失败了。

Identifier      "fbturbo device"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"
        Option          "HWCursor" "off"  <<== important
        Option          "SwapbuffersWait" "true"
        Option          "OffTime" "0"

回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-9-11 20:59:13 | 显示全部楼层
joyhope 发表于 2014-9-11 16:24
终于出现了彩色的三角, gear 的测试,也到150fps了。

主要改动是 增加了 在 http://linux-sunxi.org/Pack ...

硬解码可以参考ing2013发的帖子,xbmc支持硬解
回复 支持 反对

使用道具 举报

发表于 2014-9-11 21:08:35 | 显示全部楼层
我做了,没有成功。
回复 支持 反对

使用道具 举报

发表于 2014-9-17 10:58:22 | 显示全部楼层
版主,你这个方法可以用在 fedora 上面吗??   或者说,你有 fedora 的解决方法吗!十分感谢
回复 支持 反对

使用道具 举报

发表于 2014-9-17 11:16:03 | 显示全部楼层
要自己编译的,比较麻烦的。

我在其他lubuntu 上也能成功,不过加速效果明显没有在cubian上好,可能是 g2d 没有支持。
回复 支持 反对

使用道具 举报

发表于 2014-9-19 14:22:44 | 显示全部楼层
楼主,按你的方法安装了,能弹出来,但是显示的贞数只有60-80, 没有达到150FPS。
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-4-29 11:11 , Processed in 0.026443 second(s), 13 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部