termux / termux-x11

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

Termux-x11 and Xserver not exit completely #398

Closed hansm629 closed 1 year ago

hansm629 commented 1 year ago

Currently Termux-API and Termux-Widget
Start/Exit Ubuntu with one click.

Screenshot_20230728_100747_One UI Home

스크린샷_2023-07-10_16-32-14

If you select the Ubuntu startup script in Termux-Widget, it runs Termux-x11 and the Ubuntu GUI is displayed correctly

Even if you run the shutdown script in Termux-Widget after Ubuntu logout It seems that Termux-x11 and X server are not exit. Screenshot_20230728_094707_TermuxX11

Screenshot_20230728_103817_TermuxX11

In that state, even if you select the Ubuntu startup script from Termux-Widget Ubuntu GUI is not displayed.

It seems that the X server on Termux-x11 is completely shut down when Termux is forced to stop from the application information.

Termux-Widget's exit script is as follows.

#!/bin/sh
killall -9 termux-x11 pulseaudio virgl_test_server_android
termux-wake-unlock; termux-toast "Stopping X11, virgl, etc."

If I made a mistake I was wondering if there is a correct way to exit Termux-x11 and X server completely.

ask9027 commented 1 year ago

use kill pidof app_process to stop termux-x11

hansm629 commented 1 year ago

use kill pidof app_process to stop termux-x11

May I know a simple example script?

twaik commented 1 year ago
#!/bin/sh
kill pidof app_process
hansm629 commented 1 year ago
#!/bin/sh
kill pidof app_process

Thank you! :)