Hardware acceleration in Termux X11 - TURNIP ZINK VIRGL - Linux on Android - No Root - 2nd part

Поделиться
HTML-код
  • Опубликовано: 2 янв 2025

Комментарии • 66

  • @alanmonu12
    @alanmonu12 6 месяцев назад +2

    Hey, thanks for the tutorial! I tried it on my Galaxy Tab S9 Ultra and got a glmark2 score of 460!

  • @Romikan4ik
    @Romikan4ik Месяц назад +1

    I use arch, how do i install the turnip driver?

  • @komangadiar5278
    @komangadiar5278 9 месяцев назад +3

    is this possible when using x11 it just use auto hardware acceleration? like browsing internet and everything?

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад +1

      You can run the full desktop with hardware acceleration (modifying the startxfce script) but then if a program fails with hardware acceleration you need to modify how to launch it, I found better running programs individually

  • @victorkayne
    @victorkayne Месяц назад

    I tried to use MESA_LOADER_DRIVER_OVERRIDE=zink TU_DEBUG=noconform glmark2
    after install the drivers, but it uses LLVM anyway

  • @danielkotzer636
    @danielkotzer636 9 месяцев назад +1

    I got the startxfce4 running with hardware acceleration, but only virgl works on my Qualcomm Adreno 730, 900 MHz, it runs glmark2 with virgl but if I look at the GL_VERSION it says 2.1 mesa 24.0.4, so even though my mesa is the latest but my driver supports only openGL version 2.1 and you can't run a new version of blender unless you have openGL version 4.3 on blender 4 and blender 3.6 which is installed on my device needs at least openGL 3.3, how do I update the GPU driver?

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      This is out of my knowledge but I think you can compile your own mesa drivers on proot. There is some info on reddit about it but never tried myself

    • @danielkotzer636
      @danielkotzer636 9 месяцев назад

      @@LinuxDroidMaster please make a video on installing and running blender with hardware acceleration

  • @jeff8950
    @jeff8950 3 месяца назад

    So everytime i want to run a program i need to write that code with the filename? Do you have a tutorial to make a shortcut to that

    • @LinuxDroidMaster
      @LinuxDroidMaster  3 месяца назад

      Yes, you can add an alias to make it easier: www.tecmint.com/create-alias-in-linux/

  • @AgentJoke
    @AgentJoke 5 месяцев назад

    I have problem on kali linux termux x11 pulse audio not working but if i use RVNC viewer pulss ahdio working

    • @LinuxDroidMaster
      @LinuxDroidMaster  5 месяцев назад

      probably there is some error with the pulseaudio server when you launch it but it should be possible to make it work

    • @AgentJoke
      @AgentJoke 5 месяцев назад

      @@LinuxDroidMaster how If i use RVNC Viewer Pulse audio detected but if use Launcher To Run Kalilinux x11 Pulse audio is notdetevted

  • @enriquebn4853
    @enriquebn4853 9 месяцев назад

    I'm on a Galaxy S7 with Adreno 650. Only Virgl seems to work. Anything with Zink always comes up with failed at the end of the error. Turnip gives out a "Error: Couldn't get GL visual config!" "Main: Could not initialize canvas". Any idea?

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      That device is a bit old, I took a look online and it seems that the S7 has an Adreno 530 could it be that?

    • @hemednassor9334
      @hemednassor9334 9 месяцев назад

      I think he meant Tab s7, the one with sd 865 and Adreno 650

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      makes sense hahaha then it's weird he can't use turnip or zink

    • @enriquebn4853
      @enriquebn4853 8 месяцев назад

      @@LinuxDroidMaster I've been able to test a few games but with no sound. One Application says an other program is using the device. Any idea how to get past this. I've googled some solution that requires update of drivers. Would that be pulseaudio?

  • @Unizuka
    @Unizuka 2 месяца назад

    Hey man, first thank you for this amazing work, your channel is a gold mine.
    I have a bit of an off topic question, will chroot linux work fine for flutter development on a snapdragon 8 gen 3? I will only use it when commuting or traveling, mainly for extended battery life

    • @LinuxDroidMaster
      @LinuxDroidMaster  2 месяца назад

      If you are able to install it without dependencies problems then you will be fine. Just remember there is no systemd in Termux (no idea if you will need that for flutter)

  • @especialforcesmarins2332
    @especialforcesmarins2332 5 месяцев назад

    Um hey ,how about try with local ai models? , I am trying so hard about the running ollama in termux with a GPU but its always run on CPU

    • @LinuxDroidMaster
      @LinuxDroidMaster  5 месяцев назад +1

      I haven't tried AI models on Termux but it is something I would like to investigate

  • @AdanAndre-2090
    @AdanAndre-2090 9 месяцев назад

    Can Debian be installed with the Gnome graphical interface and with hardware acceleration?

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      I think so, not sure if some programs may fail but you can modify the start.... script and run it with hardware acceleration

  • @VV_Syzta
    @VV_Syzta 3 месяца назад

    I test virgl any hardware with my Mali-G72MP3 gpu,and webglaqua saying my computer doesnt support,but without hardware accelerate it work just fine,any way to fix?

    • @LinuxDroidMaster
      @LinuxDroidMaster  3 месяца назад

      Hardware acceleration is a bit of trial and error. Some programs work without a problem and others are not compatible, You should try to do as much testing as possible.

  • @danielkotzer636
    @danielkotzer636 9 месяцев назад

    before login I have to start the graphical server, there is one for zink and one for openGL can I do both and then decide which one to use? or do I have to choose before I login? and do I have to run termux-x11 :0 & befor running the graphical server, or is it replacing it?

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      I haven't tried it but you can do the test and see if both works at the same time

  • @danielkotzer636
    @danielkotzer636 9 месяцев назад

    Please make a video to show us how to make the whole distro graphic accelerated

  • @naj29
    @naj29 3 месяца назад

    Hey man... im still confused about what hardware acceleration is... but i wanna say an explanation and want to know if hardware acceleration would work for this. so, when i run my discord bot in proot or no root its always very slow, (300ms response time) even though i have a really good wifi. can hardware acceleration fix this? like make it faster?

    • @LinuxDroidMaster
      @LinuxDroidMaster  3 месяца назад

      Hardware acceleration is using the GPU to run programs instead of the CPU (for graphical needs). To run a discord bot you don't need it, the ping issue might be related to how termux handles networking but you can try asking in the official reddit

  • @VV_Syzta
    @VV_Syzta 3 месяца назад

    When run pkg install I got "E: Unable to locate package mesa-zink
    E: Unable to locate package virglrenderer-mesa-zink" any way to fix?

  • @CorridorDweller63
    @CorridorDweller63 9 месяцев назад

    I've seen you say in the comments that you need to edit the startxfce file to have hardware accelerating fully without running commands for each individual softwares. If so, do you know how to modify the startxfce script file?

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      you can just edit it like a normal file with "nano filename" and set the command to run a program with hardware acceleration before "startxfce4"

  • @abdallahabdoulouafi1260
    @abdallahabdoulouafi1260 8 месяцев назад

    Are those drivers compatible with exynos because i tried virgl and zink no one of them worked

    • @LinuxDroidMaster
      @LinuxDroidMaster  8 месяцев назад +1

      Most of the hardware acceleration stuff is made for Adreno only :(

  • @danielkotzer636
    @danielkotzer636 9 месяцев назад

    How do I run the full desktop with hatdware acceleration? And if I run ububtu as my distro, how do i run ubuntu desktop fully on hardware acceleration? I have problems running each program indeviduly, like blender, i can't run it in terminal because i get error: can't find shared ... but if i double click the file in user/bin it runs, i don't want to have to run each app in terminal

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад +1

      I will do a video about it, a lot of people is asking for it hahaha btw it just using the same command to run a command but to run startxfce4 in the startxfce4 script

    • @danielkotzer636
      @danielkotzer636 9 месяцев назад

      @@LinuxDroidMaster the script contains a set of commands, which one? Xfce4-session?

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад +1

      @@danielkotzer636 In the last line at the end of everything (there is only one line where it says "startxfce4" )

    • @MrSafin
      @MrSafin 7 месяцев назад

      ​@@LinuxDroidMasterwhere's the video mate😅? My phone's gpu currently having unemployment issues

  • @geelemo
    @geelemo 6 месяцев назад

    Can you help with running Chrome with webGPU enabled?

    • @LinuxDroidMaster
      @LinuxDroidMaster  6 месяцев назад

      Hi! I think you need to play with the different options to run the apps with hardware acceleration and try to check if you can force webgl on chromium (in firefox it is easier and I explain how to do it here: ruclips.net/video/OiLXkvFoUJQ/видео.htmlsi=n2R6rU9523chA6k1

  • @a98k
    @a98k 9 месяцев назад

    Termux says to me virgl and zink is not available to download
    Help please

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      When you try to install this packages? github.com/LinuxDroidMaster/Termux-Desktops/blob/main/Documentation/HardwareAcceleration.md

    • @a98k
      @a98k 9 месяцев назад +1

      @@LinuxDroidMaster i tried everything out, seems like it's working but 2 packages are still not installing for some reason namely mesa-zink and virglrenderer-mesa-zink

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      @@a98k could it be that your device has a Mali GPU instead of Adreno?

    • @a98k
      @a98k 9 месяцев назад

      @@LinuxDroidMaster yeahh i think that's it

  • @Goobermas
    @Goobermas 9 месяцев назад

    Theoretically would you be able to play steam games using this?

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      Theoretically yes, the problem is that most of the games are for x64 architecture so you need something like Wine or box64 to translate it to ARM

    • @LukiRudaka
      @LukiRudaka 8 месяцев назад

      @@LinuxDroidMasterFat chance, with how much spaghetti code there is, Steam's UI has zero chance of ever working under Android & PRoot with Box64. Trust me, I already tried, and reached a Segfault barrier. I spent hours upon hours trying. Don't repeat my mistake.

    • @LinuxDroidMaster
      @LinuxDroidMaster  8 месяцев назад

      @@LukiRudaka It is mees easier to run steam with mobox (I got it once with the x64 version but I have been told that the 32bits version that you can choose when installing mobox can run steam better)

  • @concuw
    @concuw 5 месяцев назад

    I cant install turnip driver. It says are you rooted? How to fix this

    • @LinuxDroidMaster
      @LinuxDroidMaster  5 месяцев назад

      Check if you are running the command in Termux native and not inside proot

    • @concuw
      @concuw 5 месяцев назад

      @@LinuxDroidMaster I try many times but it always say No superuser binary detected. Are you rooted?

    • @LinuxDroidMaster
      @LinuxDroidMaster  5 месяцев назад

      @@concuw You can't install this on Termux native which proot distro are you using?

  • @smichaelyt
    @smichaelyt 9 месяцев назад +1

    Work for mali gpu?

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      For Mali GPUs you only can use VirGL

    • @smichaelyt
      @smichaelyt 9 месяцев назад

      @@LinuxDroidMaster thx

  • @AbudallahAkram
    @AbudallahAkram 9 месяцев назад

    Would this work on blender 3d

    • @LinuxDroidMaster
      @LinuxDroidMaster  9 месяцев назад

      I think there is a problem with blender and it can be glitchy