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

    Posts

    Recent Best Controversial
    • bandwidth counter for mobile data connection

      Hello,
      I have a small bandwidth mobile phone contract so I need to control my usage of bandwith.
      I use vnstat (https://humdi.net/vnstat/)
      It is not sophisticated but it works.

      Example of result:

      phablet@ubuntu-phablet:~/Scripts$ ./consum.sh

                        rx      /      tx      /     total    /   estimated    
      

      ccmni0:
      jul '18 2,08 MiB / 289 KiB / 2,36 MiB / 0 KiB
      yesterday 0 KiB / 0 KiB / 0 KiB
      today 0 KiB / 0 KiB / 0 KiB / --

      I haven't found no ubuntu repo with vnstat compiled for our platform so I get it from debian.

      Here I get the version of debian depending on my version of ubuntu:

      https://askubuntu.com/questions/445487/what-debian-version-are-the-different-ubuntu-versions-based-on

      So I'll download for version 15:
      https://packages.debian.org/jessie/vnstat

      And for version 16 (Sorry Haven't tried it, still on 15!!!) should be
      https://packages.debian.org/stretch/vnstat

      Next I need to check my arquitecture so I open a console on my phone and

      dpkg --print-architecture
      In my case the answer is
      armf ( vegeta)
      So I download the correct version

      http://ftp.de.debian.org/debian/pool/main/v/vnstat/vnstat_1.12-2_armhf.deb for ubuntu 15.

      In order to dpkg a file the filesystem needs to be on read write mode.

      mount /dev/loop0 / -o remount,rw

      sudo dpkg <filename>

      My root filesystem is on readOnly mode most of the time. Vnstat needs to keep info and It can't be on base filesystem.

      I Edit the /etc/vnstat.conf and put the database dir inside the home.

      DatabaseDir "/home/phablet/.vnstat"
      and reboot the phone (I don't know if this is mandatory ).

      create dir /home/phablet/.vnstat

      First I need to tell vnstat to control the ccmni0 connection.

      vnstat —create -i ccmni0

      finally I have a script with this instructions:
      sudo vnstat -u
      sudo vnstat -i ccmni0 -d -s

      The first one updates vnstat internal counters and the next one gives the already shown result.

      PS: Feel free to move this post where it should be if it's not in the rigth place.
      Feel free to correct, change or update anything.
      Thanks to all active people that are making UBPORTS REAL.
      Salut!

      posted in OS
      U
      uri
    • Hammerhead vs VegetaHd

      Hello,
      I've recently changed from a vegetaHd to a refurbished Aliexpress Hammerhead.
      I've noticed some differences between them and I would like to now your opinion.

      Battery consumption:
      After 3 years using the vegetaHd battery still lasts 1 day. Hammerhead lasts less than 1 day. Is there any way to get the health info of the battery? May I change the HammerHead's 2013 battery? How muchs does you Hammerhead batt last?

      I've noticed more bandwidth usage on Hammerhead than Vegeta. Same list of apps on both phones. Any clue?

      Bluetooth: Both phones don't work on parrot ck3100 or mki9000 with phonecalls. I haven't tried music streaming on mki9000.
      Phonecalls doesn't work connected to a bluetooth speaker (Muzilli), but music streaming works well. Any luck making hammerhead work with bluetooth?

      And last. Video playback of my own videos taken with hammerhead, are not played. "The video format is not compatible".

      Any hints?
      Opinions?
      Thanks

      posted in Support
      U
      uri
    • RE: Garmin smart watch sync wit Ubuntu Touch

      Have you tried gols on desktop ? Garmin on linux sucks...
      https://medium.com/@euri10/gols-garmin-on-linux-sucks-f1f065f7529a
      It can upload activities and daily monitor, no download.

      Possibles issues:
      You have to mount your watch on the phone (I don't know how to)/send fit files over bluetooth (I'm stil trying to pair the phone with my car )...
      I'm pretty sure ubports can run python scripts ( as gols is)...
      Once you solve the issues you are done qith tracking info.
      But, I don't know nothing about notifications.

      Salut!

      posted in General
      U
      uri
    • RE: High CPU usage by kworker

      @bolly Same thing here.
      I noticed also high time+ usage of Unity8.

      posted in OS
      U
      uri
    • Port to bq aquaris e5 hd ub ed.

      Hello,
      I have a bq aquaris e5, and I wonder if I'll be able to upgrade to the new versions of touch once you release them.
      If not, what is needed in order to change it?

      I have no idea of mobile platforms so if anybody can point me to some tutorial/ info... Thanks.

      posted in General bq e5 hd
      U
      uri