termux / termux-x11

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

[Bug]: Can't move cursor in X11. #640

Closed sparklingtube222 closed 4 months ago

sparklingtube222 commented 4 months ago

Problem description

The phone is a note 4 snapdragon, armv7a, running android 9 havocos rooted using magisk. I installed termux and the X11 addon, followed the guide, after starting the x11 server, i noticed i only saw a cursor, i then changed the command to include -legacy-drawing, then I restarted, but noticed i couldnt move the cursor, i tried with scrcpy OTG, and OTG cable, nothing worked, when i tried it on my other phone, it did work.

What steps will reproduce the bug?

Owning a Note 4.

What is the expected behavior?

That I am able to move the cursor

ask9027 commented 4 months ago

why do you use --legacy-drawing since x11 working without it. btw which command you use to start xfce4 and where (termux or root)?

sparklingtube222 commented 4 months ago

It doesnt show the desktop without legacy drawing, I use termux-x11 --legacy-drawing -xstartup xterm or i use xfce4-session, with xterm i also cant move the cursor.

ask9027 commented 4 months ago

use TERMUX_X11_DEBUG=1 termux-x11 :0 -ac -xstartup xfce4-session then send log here you dont need to root device if you dont use chroot

sparklingtube222 commented 4 months ago

Sorry for the late response, I was doing something, is there a way to save the log in a file automatically or do I just post all the output here?

sparklingtube222 commented 4 months ago

image this is the x11 app after using your thing to start it and heres the log: https://pastebin.com/Xn5UmXsp

twaik commented 4 months ago

Disable SELinux.

setenforce 0
sparklingtube222 commented 4 months ago

still only cursor and still cant move the cursor

twaik commented 4 months ago

Disable SELinux and restart X server.

sparklingtube222 commented 4 months ago

i added legacy drawing now i can see the xfce but i still cant move the cursor and I did disable Selinux, do i need to restart my phone to get it to apply?

twaik commented 4 months ago

No. Restarting device will re-enable SELinux. Force-stop termux and termux-x11 apps. Disable selinux. Start termux and X server. After this switch to Termux:X11 activity.

sparklingtube222 commented 4 months ago

its spamming failed to load module cannot locate libgiognutls.so

sparklingtube222 commented 4 months ago

failed to get system bus too

sparklingtube222 commented 4 months ago

its lagging behind, its on 0.4 fps what the fuck

twaik commented 4 months ago

its spamming failed to load module cannot locate libgiognutls.so

failed to get system bus too

Not related to X server. Fix your environment. The issue is about mouse moves.

twaik commented 4 months ago

So the mouse works?

sparklingtube222 commented 4 months ago

nope its on 0.4 fps it said in the log

twaik commented 4 months ago

what the

Avoid using bad language please.

sparklingtube222 commented 4 months ago

sorry, is there any way to optimize it?

twaik commented 4 months ago

It reports average FPS. It will not show you high FPS if you do not output something to X server.

sparklingtube222 commented 4 months ago

so, its freezing, the time now is 41, the x11 shows 34...

twaik commented 4 months ago

Again. Does the mouse work? And what exactly do you check?

sparklingtube222 commented 4 months ago

i try to move the mouse its not moving because the whole x11 froze, the time is stuck

sparklingtube222 commented 4 months ago

so, if i exit the app and then go back in it updates the image but still cant move the mouse

twaik commented 4 months ago

The mouse will not move in the case if screen updating does not work. Mouse drawing is implemented exactly the same way as screen drawing. Start termux-x11 with something like glxgears to make sure screen is updating.

sparklingtube222 commented 4 months ago

how would i do that

twaik commented 4 months ago
pkg i mesa-demos
termux-x11 :1 -xstartup glxgears
sparklingtube222 commented 4 months ago

x in the middle cant move it

sparklingtube222 commented 4 months ago

with gears

twaik commented 4 months ago

Do gears move?

sparklingtube222 commented 4 months ago

nope

twaik commented 4 months ago

Termux:X11 is already doing everything possible to display images on the screen. However, there are devices whose firmware has been modified by the manufacturer in such a way that Termux:X11 cannot function properly. Therefore, I am informing you that your device is not supported. I apologize for any inconvenience.