UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. ikoz
    3. Best
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 1
    • Posts 94
    • Groups 0

    Posts

    Recent Best Controversial
    • Battery saving tip

      Battery life is usually less than expected due to unoptimized software and processors clocking too high. On my devices, I set the CPU governor to 'powersave', which reduces power usage but also performance.
      There are multiple scaling governor settings which might not be available on all devices (depends on kernel configuration)

      • performance : high frequency; slightly increased performance and battery consumption
      • powersave : low frequency; reduced performance and superior batter life
      • schedutil : changes according to the scheduler (default on my device)

      This command list the available governors to set for each core (should be more than those I listed above)
      sudo cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
      Report which governors are currently selected for each core:
      sudo cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
      Set the scaling governor to powersave to every core:
      echo "powersave" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

      The commands above do not need mounting root as read-write, any change is reverted on reboot.
      I tried to make an app for configuring these (a while ago) but I had trouble with sudo.

      posted in OS battery
      ikozI
      ikoz
    • RE: Is it possible to USB-Network ssh access ?

      @ds2k5 You can enable the SSH server from UT tweak tool.

      posted in Support
      ikozI
      ikoz
    • RE: Access UT system copy and move files

      @Salah I believe it should work fine, as these icons neither large (to fill the partition) nor a dependency to something.
      I had modified lomiri's qml by editing some files, and there wasn't any issue.
      You can try, and if it fails reflash.

      posted in Google Pixel 3a/3a XL
      ikozI
      ikoz
    • RE: Backup wifi networks and passwords

      @mihael In the same directory normal Debian-based distros with NetworkManager do:
      /etc/NetworkManager/system-connections/WIFI_SSID.nmconnection

      posted in General
      ikozI
      ikoz
    • RE: Customizing Icons

      @wally Just ported the app to 20.04, changing icons works!
      This is the new repository: https://gitlab.com/ikozyris/custom-phablet-tools,
      I plan to publish it to the open store if it works for others as well.
      Took me ~2 hours.
      I might add a way to add custom icons, currently they are downloaded from https://framagit.org/ubuntouch-fr-dev/custom-phablet-tools/raw/media/icons/[APP-NAME.EXTENSION].

      posted in Google Pixel 3a/3a XL
      ikozI
      ikoz
    • RE: Customizing Icons

      @Salah I'm currently rewriting the backend to not require remounting as read-write. Currently this arm64 focal .click works. Screenshot:

      Screenshot from 2024-10-11 22-16-01.png

      posted in Google Pixel 3a/3a XL
      ikozI
      ikoz
    • RE: Customizing Icons

      @Salah said in Customizing Icons:

      If you go to icons folder, you well see several icon folder with icons including the main one which if officially used (suru) and they are not used.

      These are available if you click on the top-left icon. Select one from the list

      Salah said in Customizing Icons:

      have installed it, which apparently not available in Open Store

      I submitted the app to the OpenStore, but I was suggested to rewrite the scripts so they don't require remounting the rootfs as read-write. I have made some progress, and the icon names had to be renamed. So the old versions don't work, unless it fetches the icons from a snapshot of a previous version. I can easily fix the hacky version temporary to work fully, but better way for the newer, cleaner method, which is WIP.

      Salah said in Customizing Icons:

      Is there any way I can Add my icons to this app !!

      Yes, you have to rename your icons to match the names of those in the repo. Put them in a folder. Then write that path (absolute path and the last /) in the text box below

      posted in Google Pixel 3a/3a XL
      ikozI
      ikoz
    • RE: Customizing Icons

      @Enrico13011978 But I have changed the backend to not require remounting root as read-write or sudo. I now call it Icon Changer, as I removed the wallpapers.

      posted in Google Pixel 3a/3a XL
      ikozI
      ikoz
    • RE: Possibility of malicious apps in OpenStore

      @kugiigi That is what Fdroid does, if I remember correctly. You submit an app via a pull request, a bot checks the source code and if everything is fine a person reviews the app and it is built on theirs servers from the git repo.

      posted in Off topic
      ikozI
      ikoz
    • RE: Ubuntu on SFOS kernel

      @pepijndevos I think with "Gallium" you mean Halium, which is indeed an abstraction layer between the android hardware drivers (blobs), not just LineageOS, and a normal Linux distro.

      Although I don't know much about Sailfish OS, their stack seems close to ours, so you should be able to use most of their kernel code. It wouldn't be as simple as flashing a generic system image.

      The rootfs is supposed to be generic, but from my experience every device needs different tweaks (so you can't just flash the rootfs), that is why the overlay method exists, which all new ports use.

      You can try adapting the kernel sources to Ubuntu Touch, and then the rootfs probably from scratch. I couldn't find any port source code from Sailfish OS, as Ubuntu Touch has, which is of course necessary.

      posted in General
      ikozI
      ikoz
    • RE: Access UT system copy and move files

      @Salah What are you trying to do is not recommended as it may break updates.
      This error is because the filesystem on Ubuntu touch is read-only, you need to remount as read-write:

      sudo mount -o remount,rw /
      
      posted in Google Pixel 3a/3a XL
      ikozI
      ikoz
    • RE: Trying ubuntu-touch on an unsupported device

      @reikred There is project Treble (made partitioning more standard with A/B partitions) which somewhat fixes those issues, which enabled for an Ubuntu Touch GSI to be developed. However its development has stopped as it was a dead end to create fully functional devices.

      posted in Support
      ikozI
      ikoz
    • RE: ut-sysbench-qt-gui: Compare CPU performance of different devices

      OnePlus Nord 2:

      sysbench --test=cpu --num-threads=2 --cpu-max-prime=20000 run
      2392 events per second

      sysbench --test=cpu --num-threads=8 --cpu-max-prime=20000 run
      4593 events per second

      sysbench --test=memory --num-threads=4 run
      Operations performed: 104857600 (3975633.77 ops/sec)
      102400.00 MB transferred (3882.45 MB/sec)

      sysbench --test=mutex --num-threads=64 run
      total time: 0.7016s

      sysbench --test=cpu --num-threads=2 --cpu-max-prime=20000 run
      2379 events per second

      sysbench --test=cpu --num-threads=8 --cpu-max-prime=20000 run
      4026 events per second

      sysbench --test=memory --num-threads=4 run
      Operations performed: 104857600 (3805878.96 ops/sec)
      102400.00 MB transferred (3716.68 MB/sec)

      sysbench --test=mutex --num-threads=64 run
      total time: 0.6906s

      posted in App Development
      ikozI
      ikoz
    • RE: Access UT system copy and move files

      @Salah I had remounted as RW, then edited the files in-place (in your case replace the images) and reboot. Preferably keep a backup of the old files.
      If you want to be able to change the images without remounting, you can try bind mounting the path somewhere in the home directory, or create symbolic links.
      Ubuntu touch is still Ubuntu so the same commands you ran on Mate should work here too.

      posted in Google Pixel 3a/3a XL
      ikozI
      ikoz
    • RE: Trying ubuntu-touch on an unsupported device

      @reikred Treble (by Google) hasn't stopped, all new devices with android 9+ have it. The Ubuntu Touch GSI isn't developed anymore.

      posted in Support
      ikozI
      ikoz
    • RE: ut-sysbench-qt-gui: Compare CPU performance of different devices

      Updated benchmarks for Nord 2 on 20.04
      sysbench --test=cpu --num-threads=2 --cpu-max-prime=20000 run
      2492 events per second

      sysbench --test=cpu --num-threads=8 --cpu-max-prime=20000 run
      4681 events per second

      sysbench --test=memory --num-threads=4 run
      Total operations: 104857600 (13066576.75 per second)
      102400.00 MiB transferred (12760.33 MiB/sec)

      sysbench --test=mutex --num-threads=64 run
      total time: 2.6850s

      The noteworthy changes were that memory bandwidth has increased 4x, while mutex test decreased 2x, no significant change in cpu benchmarks.

      However, because there is always room for improvement, I changed the governor, ajusted niceness and increased threads (although the phone has 8 cores sysbench didn't seem to use them all), and these were the results:
      2643 for 2 threads,
      4833 for 8 threads,
      5634 for 12 threads,
      and.... 6172 for 16 threads

      Maybe the latter benchmarks are not considered valid. I also have to note that benchmarks varied a little (±100) with these changes.

      posted in App Development
      ikozI
      ikoz
    • RE: Customizing Icons

      @Salah There are dozens of icon packs, inherited from the old app and renamed to adapt to changes as it hasn't been maintained for 4 years.

      posted in Google Pixel 3a/3a XL
      ikozI
      ikoz
    • RE: adjustable playback speed

      It should be relatively easy with a script using ffmpeg, either in Libertine or bundled in an app.
      The following command should work:

      ffmpeg -i input.mp3 -filter:a "atempo=1.5" output.mp3
      
      posted in Support
      ikozI
      ikoz
    • RE: How to retrieve and select available audio outputs

      @gwado Ubuntu Touch uses PulseAudio, commands are the same as on other "normal" Linux distros.
      To list available outputs (sinks):

      pactl list sinks
      

      As the commands are the same as on Ubuntu desktop, you can search for how to do that in Ubuntu, e.g.: change default audio device, and change PulseAudio I/O output

      posted in App Development
      ikozI
      ikoz
    • RE: OnePlus Nord 2 5G

      I have this device as well and tried improving the 20.04 port but no avail.
      The IMEI is not lost, it is just that ofono crashes and SIM relates functionality does not work.
      When you install 16.04 it works again, in fact I used it as a daily driver for more than a year.

      For me the first install went butter smooth.
      OnePlus devices are easy to work with in general, easy unlock, BROM mode for hard brick recovery (mediatek only), etc.
      For some reason hard brick was in warranty and had free service after messing with the preloader.

      posted in Oneplus
      ikozI
      ikoz