Ubuntu 触摸模拟器不工作

use*_*628 9 emulation ubuntu-touch

我决定尝试使用 Ubuntu Touch ubuntu-emulator,看看我是否喜欢它。最终我将使用它来制作和测试 Ubuntu 应用程序。

我运行这些命令来安装、创建和运行ubuntu-emulator

sudo apt-get install ubuntu-emulator
sudo ubuntu-emulator create myinstance
ubuntu-emulator run myinstance
Run Code Online (Sandbox Code Playgroud)

前两个工作正常,当我运行第三个时,出现了一个虚拟电话,但虚拟屏幕是空白的。我等了又等,但什么也没发生,屏幕保持空白/黑色(在虚拟电话上)。然后我注意到我必须登录终端。我输入 phablet 然后输入 phablet 并登录正常。

现在我已经登录了终端和电话的虚拟内核,但屏幕是空白的。如何启动图形?

另外,一旦我的屏幕可以工作,我可以减小窗口大小吗(它并不适合在一个桌面上)?

Rad*_*anu 4

首先,目前,Ubuntu Touch Emulator 仅适用于 Ubuntu 14.04 Trusty Tahr,因为sudo apt-get install ubuntu-emulator只有当您已经升级到 Ubuntu 14.04 时此命令才有效,这使得这个问题目前偏离主题。

Anyway, I will try an answer. One of the minimal requirements for the emulator is that the graphics card to has OpenGL support. To test if your graphics card has OpenGL support or not, you can use the glxinfo command as follow:

glxinfo | grep render
Run Code Online (Sandbox Code Playgroud)

You will understand from the output if your graphics card has OpenGL support or not.

Note: mesa-utils package must to be installed in order to use glxinfo.

Another two things from the minimal requirements:

  • 512MB of RAM dedicated for the emulator
  • 4GB of disk space

Now, if these minimal requirements are met, I'm sure that you can start using Ubuntu Touch emulator with success. Just wait some (maybe several) minutes to come up the graphics.

Sources:


小智 0

如果您使用 NVIDIA 显卡?检查您是否正在运行 X.Org X Server Nouveau 显示驱动程序。如果是这样,请从“软件和更新”安装专有的 NVIDIA 驱动程序,然后重新启动计算机。此后 ubuntu 模拟器应该可以正常运行。