termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
2.14k stars 314 forks source link

only showed the keyboard and the cursor. #375

Closed boatsky closed 1 year ago

boatsky commented 1 year ago

When I run termux-x11 and xfce4, termux-x11 shows only the keyboard and xfce4's cursor.But using vnc, it starts normally.

![Screenshot_2023_0718_000805](https://github.com/termux/termux-x11/assets/135578485/f1fea6c5-dc27-40a3-b05c-06c05a8fae35)

I used this to start:

termux-x11 :1 &
env DISPLAY=:1 dbus-launch --exit-with-session xfce4-session

Version:

twaik commented 1 year ago

Post logs.

twaik commented 1 year ago

Did you install loader from latest artifact? Or you are using loader from termux-x11-nightly?

boatsky commented 1 year ago

Screenshot_2023_0718_093659 I use latest build,all is new,and how to get .log? I use Android 9 on arm64.

twaik commented 1 year ago

According to the log everything is fine, try termux-x11 :1 -xstartup "xfce4-session"

boatsky commented 1 year ago

根据日志一切正常,请尝试termux-x11 :1 -xstartup "xfce4-session"

It still doesn't run xfce4 properly.

twaik commented 1 year ago

TERMUX_X11_DEBUG=1 termux-x11 :1 -xstartup "xfce4-session" > log, extract log file and post it. Do not post a screenshot.

boatsky commented 1 year ago

I got this: log.log

twaik commented 1 year ago

The log is incomplete. TERMUX_X11_DEBUG=1 termux-x11 :1 -xstartup "xfce4-session" > log 2>&1

boatsky commented 1 year ago

I run TERMUX_X11_DEBUG=1 termux-x11 :1 -xstartup "xfce4-session" > log 2>&1and kill it after 12 seconds log.log

twaik commented 1 year ago

According to the log everything seems to be fine.

boatsky commented 1 year ago

I ran it successfully once a few days ago, but it hasn't worked since the next day.

twaik commented 1 year ago

I have no idea why that can happen.

Aungthura31 commented 1 year ago

I also have the same problem bro.My device is also running in android 9.

ask9027 commented 1 year ago

if X replaced with cursor it means termux-x11 working properly.

Install latest build and update pkg in termux-app and install termux-x11 from pkg install termux-x11* you can try to remove .cache .config from termux-app or need to install xfce4 again

TomJo2000 commented 1 year ago

[...] you can try to remove .cache .config from termux-app [...]

Please be careful about removing the contents of .cache or .config directories in bulk. Most packages use those directories to store their configuration files and cache files respectively. You most likely would not want to remove your config files for most installed applications.

ask9027 commented 1 year ago

[...] you can try to remove .cache .config from termux-app [...]

Please be careful about removing the contents of .cache or .config directories in bulk. Most packages use those directories to store their configuration files and cache files respectively. You most likely would not want to remove your config files for most installed applications.

if these are importent then make backup first

boatsky commented 1 year ago

I did them, but I still couldn't access the xfce4 desktop through termux-x11.

ask9027 commented 1 year ago

I did them, but I still couldn't access the xfce4 desktop through termux-x11.

i will try it in Android 9. then will try to find out what is happening. did you tried with proot-distro? are you getting same problem with it?

boatsky commented 1 year ago

No,I install proot-distro debian,but I haven't used termux-11 in Debian in nearly half a year.

twaik commented 1 year ago

Try to run termux-x11 :10 -xstartup glxgears.

boatsky commented 1 year ago

How to do it? And then what?

twaik commented 1 year ago

termux-x11 :10 -xstartup glxgears is the exact command to run. After that switch to Termux:X11 activity. It should show glxgears window.

twaik commented 1 year ago

Any updates?

ask9027 commented 1 year ago

in Android 9 it is working properly here is neofetch

![Screenshot_2023-07-20-19-21-08-222_com termux x11_072254](https://github.com/termux/termux-x11/assets/61283438/090247c9-c667-497d-8b79-baeef65adb6c)
twaik commented 1 year ago

@boatsky any updates?

boatsky commented 1 year ago

I didn't find the best solution to the problem, and the first time this happened to my device was after an update to termux-x11.It was once stripped down and I couldn't boot my xfce4 for a long time.

twaik commented 1 year ago

Try to run termux-x11 :10 -xstartup glxgears. I am still waiting for your response on this.

boatsky commented 1 year ago
sh: 1: glxgears: not found

4947 exited, status=127
twaik commented 1 year ago

apt install mesa-demos and try again.

boatsky commented 1 year ago

apt install mesa-demos然后重试。

I ran it, then switched to termux-x11, which only showed a "x". The shell displays the following.

608 frames in 5.0 seconds = 121.407 FPS
731 frames in 5.0 seconds = 146.144 FPS
669 frames in 5.0 seconds = 133.641 FPS
918 frames in 5.0 seconds = 183.422 FPS
twaik commented 1 year ago

I am not sure why that happens. Try to uninstall termux app and install it again with the same environment.

boatsky commented 1 year ago

I reinstalled termux-app 5 hours ago.

twaik commented 1 year ago

You can try to use the brand new option I implemented today. Launch termux-x11 :0 -xstartup xfce4-session -legacy-drawing. -legacy-drawing makes drawing twice slower, but at least it works.

boatsky commented 1 year ago

您可以尝试使用我今天实现的全新选项。发射。 使绘图速度变慢两倍,但至少它可以工作。termux-x11 :0 -xstartup xfce4-session -legacy-drawing``-legacy-drawing

The problem has been solved, but why did it happen?

twaik commented 1 year ago

For some reason your device does not want to draw AHardwareBuffer based texture, but does not even report error.

boatsky commented 1 year ago

由于某种原因,您的设备不想绘制基于AHardwareBuffer的纹理,但甚至不报告错误。

But my device was working fine until I forced out of termux.

twaik commented 1 year ago

until I forced out of termux.

Explain

boatsky commented 1 year ago

I was using termux-x11 at the time, but I accidentally cleared the termux-app background in the phone menu.After that termux-x11 cannot work properly.

twaik commented 1 year ago

This should not affect the normal workflow of termux-x11. I do this all the time.