Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x11 apps do not work while running Termux on Android subsystem for Chromebook #297

Open
JanuszChmiel opened this issue May 27, 2024 · 2 comments

Comments

@JanuszChmiel
Copy link

Problem description

It is impossible to use X11 apps on Android subsystem for Chromebook. Process always hang when some app is executed. Even if user uses Xvnc in Prooted Linux distribution.
I have executed The mate-session

proot info: vpid 5: sysenter start: openat(0xffffff9c, 0x7d042e6b46a0, 0x80000, 0x0, 0x7fff33011517, 0x0) = 0xffffffffffffffda [0x7fff33011468, 0]
proot info: vpid 5: translate("/" + "/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0")
proot info: vpid 5: -> "/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.5000.12"
proot info: vpid 5: sysenter end: openat(0xffffff9c, 0x7fff33011363, 0x80000, 0x0, 0x7fff33011517, 0x0) = 0xffffffffffffffda [0x7fff33011363, 0]
proot info: vpid 9: seccomp SIGSYS: epoll_wait(0x3, 0x7ffc488ca050, 0x40, 0xffffffff, 0x0, 0x0) = 0xe8 [0x7ffc488ca048, 0]
proot info: Setting result after SIGSYS to 0xffffffffffffffda

Steps to reproduce

termux-x11 :1 &
proot-distro login --user janusz debian --shared-tmp
export DISPLAY=:1
mate-session &
The screen contain many output related to The following error
warn] epoll_wait: Function not implemented
Expected behavior

Mate-session should start The mate desktop environment like while using it on standard Android devices.
Screen should contain output of which modules have been loaded and screen should contain The mate desktop.

Additional information

~ $ termux-info
Termux Variables:
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=21395
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
x86_64
Subscribed repositories:
# sources.list
deb https://md.mirrors.hacktegic.com/termux/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://packages-cf.termux.dev/apt/termux-x11/ x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.42.1
Android version:
11
Kernel build information:
Linux localhost 5.10.213-24493-g89d8d41804c3 #1 SMP PREEMPT Sat, 16 Mar 2024 18:41:57 +0000 x86_64 Android
Device manufacturer:
Google
Device model:
grunt
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.x11 versionCode:14
~ $

@JanuszChmiel
Copy link
Author

Here is full Proot output log when I have typed
proot-distro login --user janusz debian --shared-tmp
Debian_startup.log

And here is full long log generated when I have typed
mate-session &
Mate-session_startup.log
So I have done my best to fill out this issue profesionally.
If it will be necessary, I will do my best to cooperate when debugging Proot to solve this filled issue.

@JanuszChmiel
Copy link
Author

I have tried to enable thread hyperthreading enabled but it do not help.
Interesting fact is, that if I run X11 app from termux from The standalone Termux, everything work like A charm.

michalbednarski added a commit to termux/termux-packages that referenced this issue Jun 4, 2024
termux-pacman-bot added a commit to termux-pacman/termux-packages that referenced this issue Jun 4, 2024
Freed-Wu pushed a commit to Freed-Wu/termux-packages that referenced this issue Jun 6, 2024
bigbio2002 pushed a commit to bigbio2002/termux-packages that referenced this issue Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant