当前位置: 首页 > news >正文

怎么做网站需求分析百度投诉中心24小时电话

怎么做网站需求分析,百度投诉中心24小时电话,做金融的看哪些网站,网站建设好销售吗前言 上篇文章香橙派5plus上跑云手机方案一 redroid(带硬件加速)说了怎么跑带GPU加速的redroid方案,这篇说下怎么在香橙派下使用Waydroid。 温馨提示 虽然能运行,但是体验下来只能用软件加速,无法使用GPU加速,所有会很卡。而且…

前言

上篇文章香橙派5plus上跑云手机方案一 redroid(带硬件加速)说了怎么跑带GPU加速的redroid方案,这篇说下怎么在香橙派下使用Waydroid。

温馨提示

虽然能运行,但是体验下来只能用软件加速,无法使用GPU加速,所有会很卡。而且Waydroid还依赖于桌面环境wayland,要么插上显示器使用,要么利用远程桌面使用。测试adb虽然能连接,但无法使用scrcpy这种远程工具,看错误提示是无法使用硬件解码。

所以这个方案只做了解吧,我更倾向于使用redroid。不过x86下的Waydroid体验应该会好很多,支持的GPU也多,用来日常体验的话可以推荐,但我是用来做逆向,需要arm下的so就无法满足要求了。

带GPU加速的镜像

有人提到可以在rk3588的环境下使用Waydroid并调用GPU渲染,看视频里操作非常流畅(比redroid流畅的多),aida64显示的刷新率是144hz。不过可惜的是我在Ubuntu22,5.10的内核下没测试成功,应该是需要升级6.8的内核,github还提供了对应的armbian的镜像刷机包,但是我刷到固态硬盘无法正常启动(有时候有成功启动了),大家如果有兴趣的自己测试一下

参考链接

  • https://www.bilibili.com/video/BV1TH4y1T723/
  • https://forum.armbian.com/topic/38184-waydroid-for-rk3588-with-armbian-edge-panthor-kernel-68/
  • https://github.com/WillzenZou/armbian_fork_build/releases

准备工作

安装pyclip

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

sudo python3 get-pip.py

sudo pip install pyclip --break-system-packages

切换到wayland

不切换的话会出现下面的错误

[15:45:37] WAYLAND_DISPLAY is not set, defaulting to "wayland-0"
[15:45:37] Wayland socket '/run/user/1000/wayland-0' doesn't exist; are you running a Wayland compositor?

sudo vim /etc/gdm3/custom.conf修改WaylandEnable=true,

sudo systemctl restart gdm3 然后注销重新进入

echo $XDG_SESSION_TYPE如果显示是wayland就可以

如果想在x11里运行也可以,需要使用weston,使用的步骤看:https://github.com/waydroid/waydroid/issues/195,具体我就不测试了,我使用wayland也没啥问题。

参考链接:

  • https://github.com/waydroid/waydroid/issues/771
  • https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop
启用psi

这个不确定是否是必须的,不过看到有其他文章(Linux最强安卓模拟器Waydroid最新版!Magisk+Xposed折腾教程)也提到了要开启,所以建议开启。

注意内核参数CONFIG_PSI=y需要开启,如果刷的跟我一样的Ubuntu22系统,这个参数是已经开启的:

sudo vim /boot/extlinux/extlinux.conf 在启用的label的参数后面加一个psi=1

接着重启后查看sudo cat /proc/cmdline 文件内容,可以看到内核启动参数多了psi=1

参考链接

  • https://github.com/waydroid/waydroid/issues/136
禁用GPU渲染

Waydroid的issue里提到mesa并不支持rk3588的GPU,所以需要修改配置强制使用软件渲染。

sudo vim /var/lib/waydroid/waydroid_base.prop

将这个文件里的ro.hardware.gralloc=gbmro.hardware.egl=mesa修改成

ro.hardware.gralloc=default ro.hardware.egl=swiftshader

好像重启wayroid服务,这个就会被改回来,使用的时候注意一下。

参考链接

  • https://github.com/waydroid/waydroid/issues/282
  • https://github.com/waydroid/waydroid/issues/776
  • https://github.com/waydroid/waydroid/issues/760

安装

根据官方文档,安装倒是不麻烦,只需要下面几行命令:

sudo apt install curl ca-certificates -y

curl https://repo.waydro.id | sudo bash

sudo apt install waydroid -y

参考链接

  • 官方安装文档 https://docs.waydro.id/usage/install-on-desktops
初始化

安装完成后会提示先让你用waydroid init初始化镜像,我测试镜像下载不下来,还是得自己去网站下载镜像放到指定目录下再进行初始化。

先去sourceforge下载需要的system和vendor镜像,选最新的即可

下载完成后解压会得到vendor.imgsystem.img两个文件,一起放到/usr/share/waydroid-extra/images目录下,在执行sudo waydroid init -f初始化一下

参考链接

  • https://sourceforge.net/projects/waydroid/files/images/
远程桌面

正常安装完Waydroid服务是已经启动的,如果没有启动可以手动启动一下。

sudo systemctl status waydroid-container.service

然后就得在桌面环境下操作了,先用echo $XDG_SESSION_TYPE确认一下当前桌面是否使用的wayland,如果显示的x11请按上面的说明切换到wayland。

这里也可以在远程桌面的环境下操作,可以先在界面设置里开启远程桌面

然后就能在Windows的远程桌面连接用ip连接到香橙派的Ubuntu,这里有些小问题,比如香橙派锁屏就会断开连接,可以看下面参考链接里的那篇文章,有提到怎么避免这个问题。

启动session

然后使用waydroid session start启动,注意这里不需要加sudo,如果出现Android with user - is ready说明启动成功。

新打开一个控制台窗口,用waydroid show-full-ui就能看到桌面环境了,分辨率有点问题,懒得修改了。测试体验下来确实卡,而且cpu占用很高。

参考链接

  • https://losst.pro/en/how-to-enable-remote-desktop-in-ubuntu-22-04-23-10#toc-3-install-the-allow-locked-remote-desktop-extension
开启adb

adb连接的ip就是waydroid session start启动时提示的ip,也可以去设置-》关于里查看,端口是5555。

adb connect 192.168.240.112:5555,scrcpy确实是连不上,错误如下:

参考链接

  • https://docs.waydro.id/faq/using-adb-with-waydroid

错误

错误信息1

RuntimeError: Command failed: % /usr/lib/waydroid/data/scripts/waydroid-net.sh start

查看错误日志waydroid log

(024569) [18:03:09] RuntimeError: Command failed: % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
(027247) [18:10:48] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(027247) [18:10:48] *** output passed to waydroid stdout, not to this log ***
(027672) [18:12:07] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(027672) [18:12:07] *** output passed to waydroid stdout, not to this log ***
(044863) [18:17:38] % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
vnic is waydroid0
iptables v1.8.7 (legacy): can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Failed to setup waydroid-net.
iptables v1.8.7 (legacy): can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
(044863) [18:17:39] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(044863) [18:17:39] NOTE: The failed command's output is above the ^^^ line in the log file: /var/lib/waydroid/waydroid.log
(029602) [18:17:39] org.freedesktop.DBus.Python.RuntimeError: Traceback (most recent call last):File "/usr/lib/python3/dist-packages/dbus/service.py", line 715, in _message_cbretval = candidate_method(self, *args, **keywords)File "/usr/lib/waydroid/tools/actions/container_manager.py", line 34, in Startdo_start(self.args, session)File "/usr/lib/waydroid/tools/actions/container_manager.py", line 138, in do_starttools.helpers.run.user(args, command)File "/usr/lib/waydroid/tools/helpers/run.py", line 58, in userreturn tools.helpers.run_core.core(args, msg, cmd, working_dir, output,File "/usr/lib/waydroid/tools/helpers/run_core.py", line 343, in corecheck_return_code(args, code, log_message)File "/usr/lib/waydroid/tools/helpers/run_core.py", line 219, in check_return_coderaise RuntimeError("Command failed: " + log_message)
RuntimeError: Command failed: % /usr/lib/waydroid/data/scripts/waydroid-net.sh start(029602) [18:17:39] RuntimeError: Command failed: % /usr/lib/waydroid/data/scripts/waydroid-net.sh start
(029666) [18:17:42] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(029666) [18:17:42] *** output passed to waydroid stdout, not to this log ***
(029848) [18:18:00] % tail -n 60 -F /var/lib/waydroid/waydroid.log
(029848) [18:18:00] *** output passed to waydroid stdout, not to this log ***

这个错误是由于我用apt-mark holdlinux-image-5.10.0-1009-rockchiplinux-headers-5.10.0-1009-rockchip不要被apt更新,但是linux-modules-5.10.0-1009-rockchip确被更新了,所以不匹配。

只需要重新安装一遍内核,然后全部设置不更新重启即可。

sudo apt-mark hold linux-image-5.10.0-1009-rockchip linux-headers-5.10.0-1009-rockchip linux-modules-5.10.0-1009-rockchip linux-rockchip-headers-5.10.0-1009

错误信息2

如果在运行waydroid session start的时候一直卡在下面这行,可能就是你没有修改为软件渲染, 具体方法见上面的禁用GPU渲染

排查启动失败

如果启动失败可以看报错信息,没有具体的报错,就看日志信息waydroid log,一般哪一行停止了就是哪个错误日志引起的。


文章转载自:
http://cornetist.c7491.cn
http://across.c7491.cn
http://asshead.c7491.cn
http://intermediate.c7491.cn
http://undistributed.c7491.cn
http://plumbaginous.c7491.cn
http://solleret.c7491.cn
http://earlier.c7491.cn
http://loss.c7491.cn
http://natasha.c7491.cn
http://uncinal.c7491.cn
http://willemstad.c7491.cn
http://lectin.c7491.cn
http://acheulean.c7491.cn
http://camelopardalis.c7491.cn
http://redeveloper.c7491.cn
http://hematogen.c7491.cn
http://trigonometer.c7491.cn
http://courtier.c7491.cn
http://gauntry.c7491.cn
http://construable.c7491.cn
http://pentamer.c7491.cn
http://stereograph.c7491.cn
http://hitfest.c7491.cn
http://duneland.c7491.cn
http://wallhanging.c7491.cn
http://skinny.c7491.cn
http://majestic.c7491.cn
http://miller.c7491.cn
http://conciliar.c7491.cn
http://woolhat.c7491.cn
http://airiness.c7491.cn
http://propulsor.c7491.cn
http://agalloch.c7491.cn
http://chromograph.c7491.cn
http://separatism.c7491.cn
http://drin.c7491.cn
http://oleomargarin.c7491.cn
http://acoelomate.c7491.cn
http://outside.c7491.cn
http://multicollinearity.c7491.cn
http://nmu.c7491.cn
http://laevogyrate.c7491.cn
http://garefowl.c7491.cn
http://sawan.c7491.cn
http://prone.c7491.cn
http://mission.c7491.cn
http://generalized.c7491.cn
http://monopteron.c7491.cn
http://lobated.c7491.cn
http://soberize.c7491.cn
http://politeness.c7491.cn
http://fortlike.c7491.cn
http://detectible.c7491.cn
http://professorial.c7491.cn
http://luny.c7491.cn
http://trier.c7491.cn
http://lackluster.c7491.cn
http://yeomanry.c7491.cn
http://wardship.c7491.cn
http://chaucerian.c7491.cn
http://regild.c7491.cn
http://expectant.c7491.cn
http://cyclostome.c7491.cn
http://tearing.c7491.cn
http://runnel.c7491.cn
http://dieb.c7491.cn
http://stichomythia.c7491.cn
http://kjv.c7491.cn
http://patteran.c7491.cn
http://zarzuela.c7491.cn
http://gynaecologic.c7491.cn
http://submicron.c7491.cn
http://retroflex.c7491.cn
http://seneca.c7491.cn
http://nonoccurrence.c7491.cn
http://cyanogenesis.c7491.cn
http://consulter.c7491.cn
http://chromogenic.c7491.cn
http://unwooed.c7491.cn
http://whitewood.c7491.cn
http://prexy.c7491.cn
http://iaupe.c7491.cn
http://micromail.c7491.cn
http://planer.c7491.cn
http://firepan.c7491.cn
http://gynostemium.c7491.cn
http://jobholder.c7491.cn
http://mercerize.c7491.cn
http://unbelief.c7491.cn
http://guyana.c7491.cn
http://conhydrine.c7491.cn
http://huarache.c7491.cn
http://obconic.c7491.cn
http://bolide.c7491.cn
http://lunarite.c7491.cn
http://hassidic.c7491.cn
http://fellable.c7491.cn
http://behoove.c7491.cn
http://chimney.c7491.cn
http://www.zhongyajixie.com/news/76219.html

相关文章:

  • 品牌网站建设小8a蝌蚪手机建站平台
  • 网站建设公司 青岛百度人工客服电话24小时
  • 东莞企业网站费用厦门网站推广优化哪家好
  • 淘宝网站怎么做的好看新闻发布会稿件
  • 设计者人才网官网关键词优化排名软件哪家好
  • 哪家做网站比较好永久免费不收费的污染app
  • springboot做网站品牌营销策划机构
  • php商城网站开发实例视频教程同仁seo排名优化培训
  • WordPress支撑多少文章百度快照seo
  • jsp网站开发与设计摘要seo搜索优化专员招聘
  • 江苏越润建设有限公司网站国内十大搜索引擎
  • 烟台 做网站百度数据研究中心
  • 企业网站在策划阶段最重要的工作是什么百度一下首页百度
  • 如何优化自己的网站长春seo网站管理
  • 局门户网站建设的目标站长素材官网
  • wordpress自动摘要网站优化企业排名
  • 网站建设有几种方式跨境电商平台推广
  • 定制网站制作公司有哪些自己有网站怎么推广
  • 软件 网站模板电商运营去哪里学比较好
  • 眉山市做网站的公司搜狗搜索网页版
  • 网页传奇网站怎么开自己的网站
  • 关于网站建设论文的结束语b站入口2024已更新
  • 建筑行业数据共享平台网站在线分析网站
  • 房产做网站是什么意思合肥百度推广优化排名
  • wordpress 主题开发 兜青岛seo网站管理
  • 安康公司做网站宁德市人口
  • 重庆市建设银行网站首页南宁seo优势
  • 网站如何做视频的软件网站收录查询入口
  • 武汉建设网站企业山西seo基础教程
  • 动态网站很难做吗广州网络营销推广公司