• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  1. Home
  2. HendriXXX
Offline
  • Profile
  • Following 0
  • Followers 1
  • Topics 6
  • Posts 46
  • Groups 0

HendriXXX

@HendriXXX

44
Reputation
431
Profile views
46
Posts
1
Followers
0
Following
Joined 19 Jun 2017, 02:38
Last Online 14 Feb 2021, 10:46
Location Finland

HendriXXX Unfollow Follow

Best posts made by HendriXXX

  • Series of my Ubuntu Touch related videos

    Hi!

    I have made a few Ubuntu Touch videos.
    There are simple videos about installing UT, installing apps, anbox etc..
    Today I finished a video about setting up development environment with clickable and Atom-editor.

    I hope this help someone new to Ubuntu Touch. ☺

    Here is playlist.
    Ubuntu Touch videos

    posted in Support app development ubuntu touch nexus 5 development video
    H
    HendriXXX
    15 Nov 2019, 09:05
  • [How-to] Changing default CPU governor.

    I will show how to change CPU governor in UT phone. Only tested with my N5, so your experience may vary. Phone is using interactive governor by default. I changed it to conservative. Conservative governor handles frequency a bit different way comparing to interactive governor.
    It helped to keep my phone more cool and it seems to be more battery friendly at least in my use case.

    Connect to your UT phone with cable or ssh.

    Check current governor

    $ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    interactive
    

    You can check how your current governor handles CPU frequency (leave it running on computer terminal and start using your phone, you should see frequency is changing)

    $ watch cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
    

    Change governor like this.

    $ sudo su
    $ echo conservative > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    $ exit
    

    Check new setting.

    $ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    conservative
    

    If you now run that "watch cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq" command again, you should see different cpu speed behavior.

    Conservative- governor has few paraneters which you can adjust.
    Kernel docs tells following story..

    2.5 Conservative
    The CPUfreq governor "conservative", much like the "ondemand" governor, sets the CPU depending on the current usage. It differs in behaviour in that it gracefully increases and decreases the CPU speed rather than jumping to max speed the moment there is any load on the CPU. This behaviour more suitable in a battery powered environment.
    The governor is tweaked in the same manner as the "ondemand" governor through sysfs with the addition of:
    freq_step: this describes what percentage steps the cpu freq should be increased and decreased smoothly by. By default the cpu frequency will increase in 5% chunks of your maximum cpu frequency. You can change this value to anywhere between 0 and 100 where '0' will effectively lock your CPU at a speed regardless of its load whilst '100' will, in theory, make it behave identically to the "ondemand" governor.
    down_threshold: same as the 'up_threshold' found for the "ondemand" governor but for the opposite direction. For example when set to its default value of '20' it means that if the CPU usage needs to be below 20% between samples to have the frequency decreased.
    sampling_down_factor: similar functionality as in "ondemand" governor. But in "conservative", it controls the rate at which the kernel makes a decision on when to decrease the frequency while running in any speed. Load for frequency increase is still evaluated every sampling rate.

    I only tweaked these two.. 20 and 80 are the default values.

    $ cat /sys/devices/system/cpu/cpufreq/conservative/down_threshold
    20
    $ cat /sys/devices/system/cpu/cpufreq/conservative/down_threshold
    80
    

    How to change. I change values to 40 and 90. You can use your own values which suits better for you.

    $ sudo su
    $ echo 40 > /sys/devices/system/cpu/cpufreq/conservative/down_threshold
    $ echo 90 > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
    $ exit
    

    If you check once again how governor handles cpu speed, it should be different now.

    These settings aren't permanent, so after reboot all of these are defaults again. I made simple script which I run after every reboot so I don't have to write all commands again and again. I reboot my phone about once in a two weeks so I don't have to do it very often.

    $ mkdir .scripts
    $ cd .scripts
    $ nano governor.sh
    
    #!/bin/sh
    sudo su <<EOF
    echo conservative > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    echo 40 > /sys/devices/system/cpu/cpufreq/conservative/down_threshold
    echo 90 > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
    EOF
    exit 0
    

    Save and exit.

    Set execution permission.

    $ chmod 755 governor.sh
    

    You can run it from phone by opening terminal and write ./.scripts/governor.sh

    It would be cool if we could change these settings straight from setting menu. Of course different phones may need different settings..

    posted in Support governor cpu battery howto
    H
    HendriXXX
    16 Jan 2018, 06:21
  • RE: Nexus5: 4g and mobile data broken after OT3 update

    Known issue. Go to settings and switch channel to devel, install it and it should be okay then. After that you can change back to stable. I had same problem yesterday.

    posted in Support
    H
    HendriXXX
    23 Dec 2017, 10:20
  • Ad blocking

    Hi!

    I'm very annoyed about website ads. All kind of flashing and flickering ads make me angry and slows down my phone when browsing internet. I didn't find a thread about this..

    It is possible to get simple adblocking to Ubuntu Touch.
    I have a android phone with AdAway installed. So I updated hosts-file first (with adaway app) and then I just opened android phone hosts-file and UT hosts-file in my desktop computer and merged all "127.0.0.1" starting lines to UT hosts file. Then copied modified UT hosts-file back to where it belongs. And no more ads.. 😎

    AdAway uses these lists, so you can also use these directly.
    https://github.com/AdAway/AdAway/wiki/hostssources

    Is it possible to make simple GUI for that. I don't know anything about coding, but I think it could be useful to everyone. It isn't too hard to do way like I did, but it may be too difficult for beginners and it is also possible to broke the system.

    Maybe app could fetch these lists automagically and make system writable and then add those lists to the UT hosts-file. Then switch back to readonly system or reboot.

    posted in App Development adblock hosts ads blocking
    H
    HendriXXX
    25 Jun 2017, 05:25
  • RE: Series of my Ubuntu Touch related videos

    @AppLee said in Series of my Ubuntu Touch related videos:

    @HendriXXX

    On another topic, have you considered PeerTube ?
    https://forums.ubports.com/topic/3363/peertube-v2-released-today

    I have never heard of it. I will check that. Thanks!

    @lool_lauris said in Series of my Ubuntu Touch related videos:

    Thanks a lot HendriXXX for these videos, very good initiative!
    Which GNU/Linux distribution (the one we see in the videos) do you use?

    It is just basic Ubuntu 18.04 beneath, but I have LXDE desktop installed. My old laptop doesn't like Gnome very much, LXDE is much faster. 😎

    posted in Support
    H
    HendriXXX
    15 Nov 2019, 17:17
  • RE: Series of my Ubuntu Touch related videos

    @Marathon2422 said in Series of my Ubuntu Touch related videos:

    @HendriXXX
    subscribed :- a great idea, many will just look, but others will join up
    next one :- howto install on pinephone

    Thanks! 👍
    Yes, I hope those videos gain some interest, so new users may join the UT community.

    I will probably buy either Pinehone or Librem 5, so there will be video about that.
    I was thinking Mopidy (spotify) guide for next video. It is going to be a bit complicated and may be also long video, if I get it to work. I had it running for a long time when I last time used Ubuntu Touch as my daily driver.

    @lool_lauris said in Series of my Ubuntu Touch related videos:

    @HendriXXX :
    In your 6th video, you are showing installation of Anbox. You use an image dedicated to Nexus 5 (hammerhead).
    By my side, I'm using a Nexus 4 (mako). I didn't find any image for this device. Do you know a way to install Anbox on Nexus 4 ?

    Sadly, there are no Anbox image for Nexus 4. If I remember correct, did Nexus 4 have too old kernel which didn't support needed Anbox kernel modules. I may remember wrong..

    posted in Support
    H
    HendriXXX
    16 Nov 2019, 06:38
  • RE: Series of my Ubuntu Touch related videos

    New video of Anbox install.. Because of fixed "wifi killer bug", installation is much easier and faster. ☺
    https://youtu.be/dOfVTp1XtX4

    posted in Support
    H
    HendriXXX
    9 Dec 2019, 10:31
  • RE: [How-to] Changing default CPU governor.

    @guru said in [How-to] Changing default CPU governor.:

    @hendrixxx said in [How-to] Changing default CPU governor.:

    /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ...

    My BQ E4.5 says:

    phablet@ubuntu-phablet-bq:~$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    hotplug

    Oh, so there is differences between devices. Never heard of hotplug governor before, but this explain what it is..

    Hotplug Governor:
    The Hotplug governor performs very similarly to the OnDemand governor, with the added benefit of being more precise about how it steps down through the kernel's frequency table as the governor measures the user's CPU load. However, the Hotplug governor's defining feature is its ability to turn unused CPU cores off during periods of low CPU utilization. This is known as "hotplugging."

    Seems like cool feature if it really works like that.

    "scaling_available_governors" shows which are available in kernel.

    posted in Support
    H
    HendriXXX
    16 Jan 2018, 13:50
  • RE: Librem 5 Phone, progress reports

    Good news!
    https://puri.sm/posts/2018-devkits-are-shipping/

    Anyone here getting devkits? I am waiting how soon we see UT running on that dev board. 🙂

    posted in Off topic
    H
    HendriXXX
    19 Dec 2018, 13:02
  • RE: Ad blocking

    @Stefano file is located at /etc/hosts

    You have to mount your system writable first. "sudo mount -o remount,rw /", then do your modifications and reboot. System should be back to read only after reboot.

    posted in App Development
    H
    HendriXXX
    26 Jun 2017, 08:28

Latest posts made by HendriXXX

  • RE: How to use Spotify on Ubuntu Touch

    If I remember correct, you need to use newer python library with Mopidy. Xenial has too old..

    I installed Mopidy with Ubuntu Bionic 18.04 - chroot and it is working fine.

    posted in App Development
    H
    HendriXXX
    5 Apr 2020, 17:46
  • RE: Nexus 4 Anbox experiment gone wrong

    If I remember correct, there are no Anbox kernel for Nexus 4.
    However those old Nexus phones are really hard to brick.

    Can you access fastboot mode? Press simultaneously "power" and "volume down" buttons and release those when fastboot is shown.

    posted in Support
    H
    HendriXXX
    22 Jan 2020, 13:58
  • RE: support for led notifications

    I was a bit suprised about shining led couple days ago, when I charged my Nexus 5. And even more when it turned different color after charged full. Good job, whoever made it work! ☺👍

    posted in OS
    H
    HendriXXX
    7 Jan 2020, 18:42
  • RE: Series of my Ubuntu Touch related videos

    Couple of new videos added!
    Maybe I should translate those to english. My spoken english is quite bad so subtitles could be useful.. ☺

    posted in Support
    H
    HendriXXX
    4 Jan 2020, 16:52
  • RE: swipe to go back

    I once had in my android phone some swipe bar on bottom where I could do following..

    -swipe right I could get back
    -swipe left to access currently running apps
    -swipe up to get home screen

    I had bottom bar disabled and this tiny bar on very bottom of the screen. Worked beautifully.

    Maybe something like this could work UT also.

    posted in OS
    H
    HendriXXX
    4 Jan 2020, 15:04
  • RE: Nexus 5 Wifi problems with AnBox

    @ThrillSeeker Video guide.. https://youtu.be/dOfVTp1XtX4

    posted in Support
    H
    HendriXXX
    12 Dec 2019, 04:52
  • RE: Series of my Ubuntu Touch related videos

    New video of Anbox install.. Because of fixed "wifi killer bug", installation is much easier and faster. ☺
    https://youtu.be/dOfVTp1XtX4

    posted in Support
    H
    HendriXXX
    9 Dec 2019, 10:31
  • RE: Series of my Ubuntu Touch related videos

    @Marathon2422 said in Series of my Ubuntu Touch related videos:

    @HendriXXX
    subscribed :- a great idea, many will just look, but others will join up
    next one :- howto install on pinephone

    Thanks! 👍
    Yes, I hope those videos gain some interest, so new users may join the UT community.

    I will probably buy either Pinehone or Librem 5, so there will be video about that.
    I was thinking Mopidy (spotify) guide for next video. It is going to be a bit complicated and may be also long video, if I get it to work. I had it running for a long time when I last time used Ubuntu Touch as my daily driver.

    @lool_lauris said in Series of my Ubuntu Touch related videos:

    @HendriXXX :
    In your 6th video, you are showing installation of Anbox. You use an image dedicated to Nexus 5 (hammerhead).
    By my side, I'm using a Nexus 4 (mako). I didn't find any image for this device. Do you know a way to install Anbox on Nexus 4 ?

    Sadly, there are no Anbox image for Nexus 4. If I remember correct, did Nexus 4 have too old kernel which didn't support needed Anbox kernel modules. I may remember wrong..

    posted in Support
    H
    HendriXXX
    16 Nov 2019, 06:38
  • RE: Series of my Ubuntu Touch related videos

    @AppLee said in Series of my Ubuntu Touch related videos:

    @HendriXXX

    On another topic, have you considered PeerTube ?
    https://forums.ubports.com/topic/3363/peertube-v2-released-today

    I have never heard of it. I will check that. Thanks!

    @lool_lauris said in Series of my Ubuntu Touch related videos:

    Thanks a lot HendriXXX for these videos, very good initiative!
    Which GNU/Linux distribution (the one we see in the videos) do you use?

    It is just basic Ubuntu 18.04 beneath, but I have LXDE desktop installed. My old laptop doesn't like Gnome very much, LXDE is much faster. 😎

    posted in Support
    H
    HendriXXX
    15 Nov 2019, 17:17
  • Series of my Ubuntu Touch related videos

    Hi!

    I have made a few Ubuntu Touch videos.
    There are simple videos about installing UT, installing apps, anbox etc..
    Today I finished a video about setting up development environment with clickable and Atom-editor.

    I hope this help someone new to Ubuntu Touch. ☺

    Here is playlist.
    Ubuntu Touch videos

    posted in Support app development ubuntu touch nexus 5 development video
    H
    HendriXXX
    15 Nov 2019, 09:05