CubieBoard中文论坛

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

用lunbuntu + A80 实现spice 客户端

[复制链接]
发表于 2015-3-25 10:12:30 | 显示全部楼层
lazypaul 发表于 2015-3-25 09:28
# X.Org X server configuration file.

Section "Device"

应该不是解的问题,而是如何拿到这个数据,然后显示的问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-3-25 11:26:41 | 显示全部楼层
费德勒 发表于 2015-3-25 10:12
应该不是解的问题,而是如何拿到这个数据,然后显示的问题。

这个是spice 里面的关于加速的一段话,好像没说明具体方法

Hardware Acceleration
The basic Spice client rendering is performed using Cairo, which is a cross-platform, deviceindependent
library. Cairo provides vector graphics primitives for 2-dimensional drawing.
Hardware acceleration is an additional rendering mode in which the rendering is performed on
hardware by the client GPU and not by software, using the client CPU. Hardware acceleration is
implemented using OpenGL (experimental) in Linux, and GDI in Windows. . Hardware
acceleration advantages are:
● High performance rendering - using OpenGL the Spice client is able to render much faster
than before. Heavy software operations such as stretching (used by video streaming) are
much faster when preformed by hardware than by software. Therefore, Spice achieves a
much smoother user experience.
● Reducing client CPU usage - the client enjoys more CPU time, which can be used for other
tasks like audio.
Unlike Cairo, which is an independent software library, OpenGL is a hardware library that depends
on the driver and hardware implementation. As a result, Spice might suffer from incorrect
rendering, heavy CPU usage, or client or host crash in the worst case. In addition, although
OpenGL is a global standard, the implementation of hardware and drivers changes dramatically
between vendors. Thus, on different GPUs, Spice might display different rendering output, and
different performance might be detected. In addition, there are devices which do not support
OpenGL at all.
The server also uses OpenGL for hardware acceleration, sharing the same code as the Linux client.
回复 支持 反对

使用道具 举报

发表于 2015-4-16 17:34:40 | 显示全部楼层
为什么我的效果这么差,使用lubuntu0.4版本本身的HDMI输出后,窗口感觉也很虚。
用spice连接的远程桌面后,拖动窗口就好像在看慢动作!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-4-17 14:56:52 | 显示全部楼层
jt6562 发表于 2015-4-16 17:34
为什么我的效果这么差,使用lubuntu0.4版本本身的HDMI输出后,窗口感觉也很虚。
用spice连接的远程桌面后, ...

你也是用CC-A80吗?   要手动启用那个GPU驱动的好象0.4
回复 支持 反对

使用道具 举报

发表于 2015-4-20 10:49:20 | 显示全部楼层
lazypaul 发表于 2015-4-17 14:56
你也是用CC-A80吗?   要手动启用那个GPU驱动的好象0.4

恩,我也是CC-A80
之前没有认真看你的xorg.conf文件,0.4默认使用fbturbo,而不是pvr
使用fbturbo的时候,在spice远程桌面里,拖动窗口就好像慢动作似的
回复 支持 反对

使用道具 举报

发表于 2015-4-20 14:07:54 | 显示全部楼层
jt6562 发表于 2015-4-20 10:49
恩,我也是CC-A80
之前没有认真看你的xorg.conf文件,0.4默认使用fbturbo,而不是pvr
使用fbturbo的时候 ...

v0.4 默认是2D-fbturbo 加速. 请修改 /etc/X11/xorg.conf 开启GPU。
回复 支持 反对

使用道具 举报

发表于 2015-4-20 14:48:38 | 显示全部楼层
sunbeyond 发表于 2015-4-20 14:07
v0.4 默认是2D-fbturbo 加速. 请修改 /etc/X11/xorg.conf 开启GPU。

能解释一下区别吗?
开启GPU,应该就可以使用2D加速了,那还有必要使用neon命令集的fbturbo驱动吗?
回复 支持 反对

使用道具 举报

发表于 2015-4-20 15:23:27 | 显示全部楼层
jt6562 发表于 2015-4-20 14:48
能解释一下区别吗?
开启GPU,应该就可以使用2D加速了,那还有必要使用neon命令集的fbturbo驱动吗? ...

现在2D加速没有通过 GPU。 上次全志是准备给一版新的GPU驱动的来跟2D对接的。后来由于一些特殊原因驱动被撤下来。
回复 支持 反对

使用道具 举报

发表于 2015-4-21 16:14:12 | 显示全部楼层
sunbeyond 发表于 2015-4-20 15:23
现在2D加速没有通过 GPU。 上次全志是准备给一版新的GPU驱动的来跟2D对接的。后来由于一些特殊原因驱动被 ...

这个非常有意义,如果SPICE能加速的话 CB将能产生很大的作用
回复 支持 反对

使用道具 举报

发表于 2015-4-21 16:49:08 | 显示全部楼层
aiminick 发表于 2015-4-21 16:14
这个非常有意义,如果SPICE能加速的话 CB将能产生很大的作用

恩。知道怎么修改/etc/X11/xorg.conf  直接开GPU?
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-16 22:30 , Processed in 0.025440 second(s), 13 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部