yashsingh1/xdaforums huggingface dataset:
[Touch CDMA General] killerkhatiby009:
Thanks for the info, but I don't believe that it is the low signal that has been causing my battery to drain so fast, because up until about this month, my battery would last two days easy, it would be at 70% at the end of the first day, and then 30% at the end of the next day. But now it barley lasts 11 hours even though I havn't moved from my house or changed my habits greatly.

Also i don't have my phone set to check emails automatically or anything, so if i get a touch the battery should last at least two days, making about 2 5 minute calls, and maybe 2 texts, other than that no usage. Because that is what i do with my mogul right now, and it only lasts 11 hours, although before it was 2 days.

Since the battery life seems to be ok, can anyone comment on general usability of the touch? Things like how is it not having keyboard/wi fi, and how many soft resets generally, the speed of the device, and memory usage (although i don't think its a problem with the touch).

Thanks for the help.
[Touch CDMA General] EliteXen:
Well your battery could've been worn out due to overcharging or manufacturing defect. Either way get a touch I think it's a better phone anyways as long as you can live without physical keys.
[Touch CDMA General] killerkhatiby009:
yea i edited the post, asking about that and things like ram, using on screen keyboard, speed, gps, and soft resets. What do you think about those kind of things, I have been using spb full screen keyboard on my mogul to see if i don't mind having no physical keyboard, and while i prefer having the keys, the on screen one is usable. But as for soft resets and speed, that kind of stuff is what i can't test right now, so what do u guys think about using it.
[Touch CDMA General] killerkhatiby009:
Wow, that was a very informative post thanks a ton, ill keep the storage card corruption issue in mind, and install everything on to the main memory, seems like the touch is a pretty stable phone because of its large ram, battery life is good, and using the on screen keyboard seems to be tolerable. only things ill miss is wmwifirouter, and the flash on the camera.
[Touch CDMA General] EliteXen:
Oh yah the Camera is quite poor if the lighting isn't ideal luckily i rarely use it.

Lack of wifirouter is a bummer but if you're crafty you can connect the phone to a computer with wifi either through cable and bluetooth then set up an ad-hoc network for internet sharing between any number of computers. I prefer using the cable for all that cause bluetooth and constant data usage burns the battery.
[Touch CDMA General] TheChampJT:
Trust me, you will not regret getting the Touch. I've gone through quite a few phones, and this is the best! As mentioned above, the amount of memory is amazing! I have easily installed 25+ apps all on the main memory, which leaves my 8GB SD open for all music, movies, and files. Along with the storage memory, you have a bunch of RAM, with 6-7 heavy apps open, I still have at least 40MB open, which still tops majority of the phones with startup memory.

As for no wifi, if you have an unlimited data connection, then your not losing anything, and I think carriers have this cheaper because of this. I use Spb Full Screen Keyboard, and might get Resco Keyboard, since it's in a package, which is better then having to slide out the keyboard and messing with the screen rotation.

The flush screen definitely does help with the accessibility of the screen. It has bluetooth v2.0.

I think the only thing I don't like is there is no flash.
[Touch CDMA General] killerkhatiby009:
hmm so it is possible to use bluetooth for internet, is there a tutorial on how to do this with the touch, so that when I get mine, i can do it, still not as good as wifirouter, but it will work with some devices.
[Touch CDMA General] EliteXen:
Yes you can connect your phone to your computer over bluetooth (or USB) and then surf on your computer using your phones data plan. And if you really want you can create an ad-hoc wireless network to share internet to muliple computers over wifi.

Connecting your phone to your computer is easy. Just open up Internet Connection Sharing, then choose USB or Bluetooth, then press Connect. You if you get an error about registration or passwords use google to solve it. If using USB plug into your computer and the first time it'll log up the necessary drivers, if you've already installed Windows Mobile Device Center or the latest version of ActiveSync it'll have the necessary drivers. If using Bluetooth search for a new bluetooth device on your desktop, select your phone follow the prompts to connect. It should add it as a Bluetooth PAN device.

To setup the ad hoc wireless network varies greatly depending on OS, use google to find a good guide.
[Android General] Hentacler:
Unfortunately, this method doesn't give hardware 3d acceleration. Just very slow software emulation. It is much harder or even not possible to achieve true acceleration on android handhelds.
[Android General] LedBass:
Hi

What version of Sparkle did you use? I've tried this tutorial here but received an error of wayland-0 not found when I try to run my linux installation on my device

I've looked in the folder /data/data/com.sion.sparkle/files and this folder is empty

Thanks for the tutorial!
[Android General] MishaalRahman:
Got any images or a video you can share?
[Android General] NKS1608:
It works

I managed to use it, but with xfce KDE had a black screen, and I couldn't use the audio even though I made the alsa plugin, and it doesn't rotate the screen, but it's very good.
[Android General] Richard177:
I have One Plus 8 pro.

So my results with this software 3D acceleration are that the performance really suck but its amazing for now because you need this basic aceleration in almost everything i can now render videos on my phone in kdenlive and the phone has kinda good cpu performace so there is no problem basicly i can now run in this chroot everything that can be runned on raspi and i am also messing around with BOX86 which is a hardware translation of arm to x86 architectures so far i can run x86 apps for linux inside the chroot and now with this little tool i can maybe get wine x86 runnig which means windows apps support on android yeeey :D of course with this low performace of a gpu i could at best try games before year 2000 and maybe if they start up have some good fps but i highly doubt that because raspi has problem runnig (in twister os) even unreal tournament and raspi has 5 to 6 times higher performance than this software accel.

Benchmarks i did were glxgears i got anywere from 200 to 270 fps which is not really much :D

Also I used 2 desktop config started the one thats build in vnc from the app and then started sparkle connected to it and had second desktop start up using lxde on my phone on phone the screen really sucks to to work with so i used scrcpy to mirror the screen of phone to pc so basicaly a have full control remotly i hope that this will have future version development to improve on code so that we could get more performace out of this.

Image below.
[Android General] diejuse:
I am using LXDE with Sparkle. I would like a lower screen resolution, all things look so small. I can do that with XSDL, how in Sparkle?
[Android General] flunkyball:
[MENTION=8449426]HolyChickenGuy[/MENTION]

Thanks for the well done tutorial ! I followed it and it worked out of the box.

However, two issues I came accross to which I did not find the solution, yet:

1. Is there a way to rotate the screen ?

2. How can I bring the X-window to the second screen connected via USB->HDMI adapter ? I tried to set DISPLAY:1 but 1 was not found and :0 is the devices screen.

Cheers mate and keep up the good work.
[Android General] saad maqsood:
You can Also use Termux Desktop

Termux desktop is much faster and easier to use and you can experience a complete Linux GUI with termux, and it Is also lightwight.
[Android General] flunkyball:
The described way basically is using Termux the way you propose. However it adds the 3D acceleration by using sparkle which is definitely a plus.

---------- Post added at 09:49 PM ---------- Previous post was at 09:47 PM ----------

Okay, rotating the screen is done by rotating Termux BEFORE you start the windowmanager.

But - for bringing it up on the external monitor I haven't not found the trick, yet
[Android General] diejuse:
lower resolution in Sparkle app? relative mouse is possible?
[Android General] mr.knr:
but what if i want to install LXQt on my device

#!/bin/bash

set -e

sudo chmod 777 /sparkle

sudo chmod 777 /sparkle/wayland-0

XDG_RUNTIME_DIR=/sparkle Xwayland &

sleep 1

export DISPLAY=:0

startplasma-x11

what should i change in the script??????
[Android General] pierro78:
sorry for the probably dumb question but Xsdl seems to work work quite well in my use cases (like watching youtube videos in 360p on my Samsung Tab S5e) ...

... so I am wondering : what are the advantages of Sparkle/Wayland over Xsdl ?? ... will my youtube videos be smoother ??

... does Sparkle/Wayland has better touch support than Xsdl ?? ... for example can you scroll a web browser window by touching inside the window (not the scrollbar) with your finger ??
[Android General] zanfix:
you sure can get 1080 on a tab s5e with xsdl...

sparkle app is for sure more lightweight but in some situatons xsdl is better, at least with some games, at least with my experience

did you compile and use the android-shmem library?
[Android General] pierro78:
wow 1080 ! that would be awesome ! thanks for the info !!

actually 360p is not so smooth on my S5e without android-shmem library ...

if I understand correctly I just have to compile that in my chroot and then the shared memory feature is already supported in the Xserver xsdl that I installed from the playstore ??

thanks again !!
[Android General] zanfix:
android-shmem library can give you a performance boost if the application you are running can use the x server MIT-SHM extension

For video playback in a web browser, firefox-esr for example, the android-shm library will not give you any performance gain...

Since there is no hardware acceleration in xsdl, In order to put the minimum possible load on the cpu you should match the screen resolution of the xserver with the target max resolution of the videos you are planning to playback.

My tab s6 has 2560x1600 native resolution, i run the xserver at 1920x1200 so I keep the aspect ratio of the screen but match the clip (tube video) native resolution (so that no rescaling will happen)

I can get acceptable youtube video playback also on my old pixelc c, that has a quadcore a57
[Android General] pierro78:
well I don't know what I did wrong previously ... my youtube videos seem to play nice on 1080 in Xserver xsdl with arm64 vivaldi in my chroot (Tab S5e) with or without

env LD_PRELOAD="/home/pierro78/android-shmem/libandroid-shmem-aarch64.so" icewm&

now !

and I don't see any difference with or without LD_PRELOAD="/home/pierro78/android-shmem/libandroid-shmem-aarch64.so" in vivaldi although it may support x server MIT-SHM extension as you said ??

also I have errors when using /home/pierro78/android-shmem/libandroid-shmem-aarch64.so when I start icewm (same errors if regular user or root) :

root@localhost:/home/pierro78# icewm&

[1] 8527

root@localhost:/home/pierro78# Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined

shmget: key 0 size 4096 flags 01600 (flags are ignored)

shmget: bound UNIX socket /dev/shm/00002157

listening_thread: thread started

shmget: ID 0 shmid 21570001 FD 7 size 4096

shmat: shmid 21570001 shmaddr (nil) shmflg 0

shmat: mapped addr 0x735094b000 for FD 7 ID 0

shm_remove: deleting shmid 21570001

shm_remove: shmid 21570001 is still mapped to addr 0x735094b000, it will be deleted on shmdt() call

shmdt: unmapped addr 0x735094b000 for FD 7 ID 0 shmid 21570001

shmdt: deleting shmid 21570001

and when I start vivaldi as regular user :

shmctl: cmd 3 not implemented yet!

shmget: key 0 size 2946039 flags 01606 (flags are ignored)

shmget: cannot bind UNIX socket, bailing out

[7437:7437:0426/232122.758794:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: The message port closed before a response was received.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0)

shmget: key 0 size 112140 flags 01606 (flags are ignored)

shmget: cannot bind UNIX socket, bailing out

shmget: key 0 size 368460 flags 01606 (flags are ignored)

shmget: cannot bind UNIX socket, bailing out

or if I start vivaldi as root user :

shmctl: cmd 3 not implemented yet!

shmget: key 0 size 2831220 flags 01606 (flags are ignored)

shmget: bound UNIX socket /dev/shm/00001f6e

shmget: ID 0 shmid 1f6e0001 FD 36 size 2834432

shmat: shmid 1f6e0001 shmaddr (nil) shmflg 0

shmat: mapped addr 0x71b6582000 for FD 36 ID 0

shm_remove: deleting shmid 1f6e0001

shm_remove: shmid 1f6e0001 is still mapped to addr 0x71b6582000, it will be deleted on shmdt() call

shmdt: unmapped addr 0x71b6582000 for FD 36 ID 0 shmid 1f6e0001

shmdt: deleting shmid 1f6e0001

listening_thread: thread started

[7990:7990:0426/232440.532571:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: The message port closed before a response was received.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/browser.html (0)

I am not sure how to check if my libandroid-shmem-aarch64.so is working ??

I would expect some "files" in /dev/shm but there is nothing there ...
[Android General] pierro78:
PS : my bad : these error messages are coming from my xfce4-terminal, not icewm ...
[Android General] zanfix:
looks fine when run as root...

is /dev/shm mounted as tmpfs?

/dev/shm should then have 1777 permissions
[Android General] pierro78:
It looks like I am good :

pierro78@localhost:/dev$ mount

/dev/block/mmcblk0p57 on / type ext4 (rw,noatime,seclabel,discard,journal_checksum,noauto_da_alloc,resgid=1065,errors=panic,i_version,data=ordered)

proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)

sys on /sys type sysfs (rw,relatime,seclabel)

tmpfs on /dev type tmpfs (rw,nosuid,relatime,seclabel,size=2871960k,nr_inodes=717990,mode=755)

tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime,seclabel)

devpts on /dev/pts type devpts (rw,relatime,seclabel,mode=600,ptmxmode=000)

pierro78@localhost:/dev$ ls -ld shm

drwxrwxrwt. 2 root root 40 Apr 26 23:59 shm

pierro78@localhost:/dev$
[Android General] loganj:
does it work only with rooted devices?
[Android General] diejuse:
I have tested sparkle in many ways. It is not usable and slow. Don't waste efforts, use X11 and XSDL Xserver Android app.
[Android General] Ragnos001:
Xserver XSDL is useless in terms of using OpenGL and Sparkle or Termux:X11 (based on Sparkle) works much better with them. Here is Darkest Dungeon running in Termux proot with basic GPU acceleration using Turnip with KGSL, zink and early version of box64. Not at full speed, but Turnip is missing extension required by Zink (Xserver XSDL is erroring out on try of launch).
[Android General] Aariz1792:
Woah, did you manage to run all this without root? I am guessing that's the case as you mentioned proot. Can you please explain the whole process? I would really appreciate it. By the way, where did you get Box64 early access? I would love to try it. Anyways, hoping to get a reply soon.

Thanks in advance, Aariz.
[Android General] Ragnos001:
I got access from ptitSeb as I'm helping to debug some games since box86 developement. About GPU acceleration, you need to have Termux and Termux:X11 packages compiled with same signature. Than you have to set up proot-distro and log in with --shared-tmp flag. Inside of proot export XDG_RUNTIME_DIR=/tmp/ and start Xwayland :0&. Compile and install mesa form this repo with flags from readme https://github.com/Grima04/mesa-turnip-kgsl Than you can export GALLIUM_DRIVER=zink and DISPLAY=:0 and you should have GPU acceleration.

I'm not sure why armhf proot don't want to work this way so instead using Termux:X11 you can go for Xserver XSDL and start Xephyr on top of it. You can use box86 in proot this way, but most DX games will crash with Turnip at this moment. Some OpenGL games should work fine.

Also, camera movement using mouse is broken in both ways.
[Android General] Aariz1792:
Oh that makes sense, and for the GPU acceleration, I guess I have to build the Termux-x11 app. Is there a way to do that without using a PC? I would really appreciate it if you could help me with that. I tried using mesa-turnip-kgsl on Arch Linux ARM64 (proot-distro) and I got segmentation fault when running glxinfo or glxgears but I guess that was because I was using xserver xsdl.
[Android General] Ragnos001:
If you run Xephyr :2 in Xserver-XSDL and than run DISPLAY=:2 GALLIUM_DRIVER=zink glxglears it should start. In one of issues from Termux:X11 was link with build Termux and Termux:X11 apk's. You should be able to use them.
[Android General] Aariz1792:
So I installed Termux and Termux:x11 app from the GitHub issue and I tried everything from scratch on Arch Linux but it had a lot of dependency problems while building and in the end glxinfo and glxgears were both stuck on the "Segmentation fault" error. I tried using Ubuntu 20.04 and I got a different error when trying to start Xwayland. Here it is:-

"glamor: 'wl_drm' not supported Missing Wayland requirements for glamor GBM backend Failed to initialize glamor, falling back to sw (EE) failed to read Wayland events: Broken pipe"

With this error, the Termux:x11 app crashes as well.
[Android General] Ragnos001:
What's your Android version? Also, what files do you see in /tmp/ before starting?
[Android General] Ragnos001:
Also, you can try just use Sparkle instead Termux:X11 and try to use Turnip with Zink in chroot/proot with Sparkle.
[Android General] gilius2k15:
Could somebody please send me the last available version of Sparkle APK before the project became abandoned? My address is gilius2k15@gmail.com or can post here.

I am trying to use ubuntukylin-desktop (ukui) with Linux Deploy, but the package manager (peony) won't display - missing the "sparkle" in it!

Any help would be appreciated - thanks in advance!
[Android General] sunarowicz:
Guys, could anyone with the OpenGL acceleration working on Adreno GPU confirm whether the OpenCL is available too?

Thank you.
[Android General] Danny7527:
Thanks For tutorial! now looks good, i test glxgears and i got 200fps in Snapdragon 665 (Xubuntu)
[Android General] Ssaikatsaha:
I am also waiting for it.. OpenCL working with termux but can't work with proot-distro, chroot-linux ..
[Android General] zanfix:
Hi all, trying this out with sparkle

what performance should i expect? in openarena windowed 1280x720 i am getting from 3 to 30 fps... depending on complexity of the scene

this is on a galaxy tab s6... (adreno 640)

glxgears does not seem that much accelerated... i get similar performance on xsdl with llvmpipe...

Will do more tests :cool:
[Android General] Hentacler:
Thanks for the guide! Both turnip and zink seem to work, but the performance is surprisingly bad.

I've also checked upstream mesa repository (in case Grima04 broke something), but it is even worse. Same for GLES2 (checked es2gears app).

HW accel should give at least 500 fps in glxgears/es2gears even on 10 years old devices (I tried multiple times).
[Android General] Hentacler:
Did some good bare turnip testing today. It seems that turnip itself gives pretty good performance and it is actually zink that slows everything down to unacceptable values. But zink is under active development and things can change.

I had to do some very dirty and horrible hacks to make turnip work with sparkle. Still trying to find some better way (most likely it exists). Because of these "hacks" performance is just about 30-50% of nominal.

Still, even this way, even in pretty complex scenes, even with 1440x900 resolution, you can expect ~60 fps or 5-20 times better fps than you have with software rendering.
[Android General] Gribanov_Ivan:
Doesn't work for me, for some reason i getting "Invalid window SDL Error". Can help? Ubuntu proot
[Android General] Ragnos001:
Could it try to implement this changes to https://github.com/termux/termux-x11 ? It would allow more users to use raw Turnip (even if I still need to find time to got further with issue that crashes it on Oneplus 8 xd). As box86 supports dxvk (at least in theory) it would be much better than Zink. Also, you can use my fork of mesa with two line changed for better compatibility with this setup. https://github.com/Heasterian/mesa
[Android General] Ragnos001:
Did you use xlib to load Turnip instead or DRI3? (I know that llvmpipe and moded virgl can be loaded using it).
[Android General] Ragnos001:
I'm not really sure. Try to use Debian Bullseye instead. I was using this distro last time when I was playing Darkest Dungeon on phone.
[Android General] HyperFrame:
hellou there, i tried it now on my S10+ works greate with with unstable debian, any idea why it des ont want to work on arch? it says egl-device not supportet or soemthing like this. i havae all of the wayland xwayland packages :(
[Android General] Ragnos001:
We also are getting message about not supported egl, but it's just warning in debian so it's working anyway :/ I have no idea what arch is doing other way than Debian
[Android General] Grima04:
That is amazing, this could be a major breakthrough in getting DirectX Windows games to work on Android at playable speeds via box86, Wine and DXVK or ExaGear with Wine and DXVK.

Could you please share your modifications to the mesa source code to get Turnip to render without DRI3 (but xlib instead, I guess)?
[Android General] unknown1818:
when i run sparkle on hdmi connected device my mouse is on phone but sparkle run in external monitor how to change it?

everything works perfect smooth but my mouse is on phone and i cant control sparkle

i dont use desktop mode in lineageos

i use second screen app to change resolution 1920x1080 and to set landscape mode but sparkle force the copy of the screen and run on hdmi1 without copy screen

maybe something in cofigs in sparkle can change to display output in phone not external monitor where i can find some readme file?

if this gonna work that will be killer for samsung dex

lightweight lineageos on any phone plus full linux distribution on hdmi screen

Ok i figure it out best way is to install app easy dpi changer change to 1920x1080 later force to landscape and run everything then Connect HDMI display
[Android General] unknown1818:
omg this is so awesome!!!

kde-full is too heavy for this but on xfce4 works much better than xsdl i dont know about framebuffer but this is so cool glxgear test

1058 frames in 5.0 seconds = 211.454 FPS

1022 frames in 5.0 seconds = 203.752 FPS

1070 frames in 5.0 seconds = 213.946 FPS

this should be in linuxdeploy option not xsdl

1920x1080p and can watch youtube videos

the quality of the picture is like in native desktop not blurred like in samsung dex or ubuntu touch

its better i think then everything else

combo lineageos fast simple for android phone and this sparkle is better than ubuntu touch

we need only two times faster cpu in phones and will be perfect

tested on s10...
[Android General] viniavila:
I couldn't make this guide work im my device at all. It is a rooted Galaxy S6 Tab. Any Ideas?

EDIT: I could make it work (with not so good performance yet) using sparkle-testing.apk instead of sparkle-old.apk. I will try to improve performance following the tips here, then I will let you know.

$ sh sparkle.sh
libEGL warning: MESA-LOADER: failed to open msm_drm: /usr/lib/dri/msm_drm_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open msm_drm: /usr/lib/dri/msm_drm_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)

glamor: No eglstream capable devices found
missing XDG-WM-Base protocol
(EE)
Fatal server error:
(EE) Couldn't add screen
(EE)
$DISPLAY is not set or cannot connect to the X server.