22.04 Ubuntu Desktop 5.15 kernel WITH GPU Acceleration & Audio install guide V.6 *UPDATE*

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

22.04 Ubuntu Desktop 5.15 kernel WITH GPU Acceleration & Audio install guide V.6 *UPDATE*

Post by Psiborg »

Hi all! Psiborg here with an easy guide to get your brand new Odroid N2+ up and running. We are talking Ubuntu WITH gpu acceleration and audio, no hassles! This is only made possible by the hard work of the amazing contributors here like tobetter and others, I mostly just recompiled the info and image into a nice list.

No more help packages, all newest updates :)
This update is about trying to simplify as much as I can.

http://docs.linuxfactory.or.kr/install/ ... image.html
Download the 22.04 image, going with Panfrost right now, works well!
Burn the downloaded image with Etcher, boot
Once again, this image is from tobetter

Step 1

login: odroid
password: odroid

Code: Select all

sudo passwd root
Make a new root password you can remember

Code: Select all

exit
Log out, log back in as root for the user name, use your new password

Code: Select all

usermod -l NEWNAME -d /home/NEWNAME -m odroid
changes the original odroid username and folder names to your choice, NEWNAME=whatever you like as login name

Code: Select all

passwd NEWNAME
Set a password for your main login identity

Code: Select all

usermod -aG sudo NEWNAME
Sets the new user as sudo

Code: Select all

exit
Lout out, log back in as NEWNAME

Step 1 done!

Step 2

Code: Select all

sudo apt update && sudo apt upgrade -y
The normal update and upgrade

Code: Select all

sudo apt-get install linux-headers-$(uname -r)

Code: Select all

sudo apt full-upgrade -y

Code: Select all

sudo reboot

Code: Select all

sudo apt-get install flex bison lm-sensors ninja-build cmake htop nano neofetch sysbench git

Code: Select all

sudo apt-get install mesa-utils ubuntu-gnome-desktop ubuntu-restricted-extras gnome-software dkms
This is a big download and long install. Watch a video, grab a drink or a smoke and wait :)

Code: Select all

sudo reboot
Step 2 "The big install" done. Nice!

Step 3
At this point login to Ubuntu

Let the Software Update program update and run. It will take a few.

Then it’s reboot time!

The main download and install sequence is over!!

Fix Network Manager

Code: Select all

sudo apt-get reinstall network-manager
sudo nano /etc/netplan/01-netcfg.yaml
change

Code: Select all

renderer: networkd
to

Code: Select all

renderer: NetworkManager
close and safe the file
For some reason this is required now

Overclocking

Code: Select all

sudo nano /etc/default/cpufrequtils
Open the config file
You will see this:

Code: Select all

GOVERNOR=performance
MIN_SPEED="1000MHZ"
MAX_SPEED="2210MHZ"
Change the last line to this if you have N2+ and a fan on the heatsink

Code: Select all

MAX_SPEED="2400MHZ"
Save and exit nano

Code: Select all

sudo reboot
(Note: in the Software store there is a program called Cpu Frequency Settings that will do this)

*GPU ACCELERATED FIREFOX UPDATE*
Thanks for the tip wallyz21
Open Firefox, go to Addons
Search for and install H264ify. I also add ublock, but to each their own.
I would also recommend changing your privacy settings while you are in there.

Edit the firefox.desktop file to set Wayland as default:

Code: Select all

sudo cp /usr/share/applications/firefox.desktop ~/.local/share/applications/firefox.desktop
sudo sed 's/Exec=firefox/Exec=env MOZ_ENABLE_WAYLAND=1 firefox/g' -i ~/.local/share/applications/firefox.desktop
Open Firefox, in the address bar type about:config, hit enter
Click ok if it warns you
in the search bar type layers.acceleration
layers.acceleration.force-enable, change to true by double clicking

I would say the H264ify addon makes the biggest difference on youtube playback, 1080p is flawless now with no dropped frames.

open settings>privacy>screen lock to set screen off time to 15 minutes, screen lock off
open settings>search turn OFF

Check your time zone info, mine changed during the update back to default GB

That is it, essentials installed, GOOD JOB!
Now to have fun and benchmark we need some more utilities. Don’t forget to browse the Software Store, so many good programs to grab.

Open terminal

Code: Select all

sudo apt-get install glmark2-es2-wayland
I also make sure to open Software and go to Addons, install any missing Gstreamer codecs the easy way

***STEP 3 COMPLETED!!!***

Ok, all done. Just to show acceleration is on, lets run glmark2
Open terminal

Code: Select all

glmark2-es2-wayland
Sit back and enjoy the show!

At the moment there is an error when it finishes mentioning core dumped. I generally click the “Remember this in the future” box and then Don’t Send. I have already sent plenty lol. Still unsure what is causing this but seems to have no adverse affect. Thoughts???

After it is done, write down your score. Now log out, log back in to Weston desktop
Run glmark2-es2-wayland again and be amazed at the speed boost!!

If you want to test your cpu with sysbench two of the many ways are:

Code: Select all

sysbench cpu run
Does single thread test

Code: Select all

sysbench cpu –threads=6 run
Uses all threads

Code: Select all

sysbench cpu --threads=6 --cpu-max-prime=20000 --events=10000 run
my personal favorite

Fun in the Sun 8-)

Ok so am asking any of those who wish to share their ideas about changes or additions to this list.
My goal was to give people the base gpu accelerated Ubuntu desktop and they can install all their favorite packages from there out. I am not the best at formatting posts to be readable but love advice!

I must stress I got almost all of my info from these forums, plus lots of rebuilding and note taking!

I average 950 score in Ubuntu desktop and 1150 in Weston, share your scores!!

THANK YOU ODROID AND COMMUNITY
Impossible without both


BONUS SECTION
A little comparison with my Ryzen 3600, which I have heavily tuned for gaming performance in the bios.
sysbenchryzen3600sixthread-max-prime-20000.png
sysbenchryzen3600sixthread-max-prime-20000.png (194.63 KiB) Viewed 15919 times
^Ryzen 3600 4.05 GHZ under all core load^
sysbenchodroidn2+sixthread-max-prime-20000.png
sysbenchodroidn2+sixthread-max-prime-20000.png (1.64 MiB) Viewed 15919 times
^ODROID N2+ Big.Cores@2.4 GHZ, Little.Cores@2.016 GHZ (I left transparency and psensor going, only a tiny performance hit)^
sysbenchryzen3600sixthread-SMT-OFF-max-prime-20000.png
sysbenchryzen3600sixthread-SMT-OFF-max-prime-20000.png (322.21 KiB) Viewed 15919 times
^The only way the Ryzen 3600 won was with SMT off in a fresh Ubuntu install with absolutely nothing else running. The cores hit 4.15 in that config. This is a 75 watt load too, vs. a 5 watt N2+ at full load...^
Last edited by Psiborg on Sun Sep 25, 2022 5:59 pm, edited 28 times in total.
These users thanked the author Psiborg for the post (total 2):
LostMyDroid (Sat Nov 21, 2020 10:12 am) • istanbulls (Thu Dec 03, 2020 6:16 am)

LostMyDroid
Posts: 72
Joined: Tue Jan 13, 2015 10:06 am
languages_spoken: english
ODROIDs: N-2
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by LostMyDroid »

Thanks for the guide. I used it and it seems to work fine except the screen colours are not right. I have green and pink colours dominating the icons and window frames as well as green tinged YouTube videos. I read on other threads that modifying the boot.ini file may correct the problem but I am unable to find that file. I looked in the boot and rootfs partitions(on emmc card). I have a quite old TV (Samsung LNT 3242 H connected by HDMI) connected to a Odroid N2. I don't have this issue with my CoreElec install but I may have found and modified the boot.ini file there, separate eMMC .


Is it likely that Kodi will become available with the Wayland desktop?


I average 860 score in Ubuntu desktop and 975 in Weston

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by Psiborg »

Huh, I have not had that issue you described yet. Maybe one of the others can shed some light on that. I believe there is a kodi-wayland install. Also, VLC is accellerated

LostMyDroid
Posts: 72
Joined: Tue Jan 13, 2015 10:06 am
languages_spoken: english
ODROIDs: N-2
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by LostMyDroid »

On a separate note. I used the command you detailed

Code: Select all

sudo nano /etc/default/cpufrequtils, edit max-freq to 2400
and the file had min and max speed not freq

Code: Select all

MAX_SPEED "1896MHZ"
I tried changing this to 2400MHZ but the change was not reported in the System Profile/Processor which reported 1908MHZ before and after the change

User avatar
tobetter
Posts: 12972
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 983 times
Been thanked: 2248 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by tobetter »

LostMyDroid wrote:
Tue Nov 24, 2020 2:03 am
On a separate note. I used the command you detailed

Code: Select all

sudo nano /etc/default/cpufrequtils, edit max-freq to 2400
and the file had min and max speed not freq

Code: Select all

MAX_SPEED "1896MHZ"
I tried changing this to 2400MHZ but the change was not reported in the System Profile/Processor which reported 1908MHZ before and after the change
Check the output if it's like this and try to run sudo service cpufrequtils restart.

Code: Select all

$ cat /sys/devices/system/cpu/cpufreq/policy2/scaling_available_frequencies 
1000000 1200000 1398000 1512000 1608000 1704000 1800000 1908000 2016000 2100000 2208000 2304000 2400000

LostMyDroid
Posts: 72
Joined: Tue Jan 13, 2015 10:06 am
languages_spoken: english
ODROIDs: N-2
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by LostMyDroid »

Thanks for your response
I don't seem to get 2400MHZ settings and when I issue the cat command I get this response
Image

LostMyDroid
Posts: 72
Joined: Tue Jan 13, 2015 10:06 am
languages_spoken: english
ODROIDs: N-2
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by LostMyDroid »

I am sorry I have wasted your time Tobetter and Psiborg. I only just realized this is for N2+ devices and mine is N2

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by Psiborg »

hahahah no time wasted, all shall learn! I should have been more specific about the N2 and N2+ speeds

trwn2p
Posts: 95
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 3 times
Been thanked: 13 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by trwn2p »

Is this what's the thread is about?

Extended renderer info (GLX_MESA_query_renderer):
Vendor: Panfrost (0xffffffff)
Device: Mali G52 (Panfrost) (0xffffffff)
Version: 21.0.0
Accelerated: yes
Video memory: 3635MB
Unified memory: yes

inxi -SMG
System: Host: groovy-server Kernel: 5.10.0-odroid-panfrost-arm64 aarch64 bits: 64 Desktop: KDE Plasma 5.19.5
Distro: Ubuntu 20.10 (Groovy Gorilla)
Machine: Type: ARM Device System: Hardkernel ODROID-N2Plus details: N/A
Graphics: Device-1: meson-g12a-mali driver: panfrost v: kernel
Device-2: meson-g12a-dw-hdmi driver: meson_dw_hdmi v: kernel
Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev resolution: 2560x1440~60Hz
OpenGL: renderer: Mali G52 (Panfrost) v: 2.1 Mesa 21.0.0-devel (git-94c00be49f)

Audio: Device-1: meson-g12a-dw-hdmi driver: meson_dw_hdmi
Device-2: axg-sound-card driver: axg_sound_card
Sound Server: ALSA v: k5.10.0-odroid-panfrost-arm64

AND Wayland: Device-1: meson-g12a-mali driver: panfrost v: kernel
Device-2: meson-g12a-dw-hdmi driver: meson_dw_hdmi v: kernel
Display: wayland server: X.Org 1.20.9 driver: modesetting unloaded: fbdev
resolution: 2560x1440~60Hz

Watching Youbloobs no problems Archetech :)

User avatar
wallyz21
Posts: 562
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 42 times
Been thanked: 46 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by wallyz21 »

Psiborg wrote:
Fri Nov 20, 2020 11:46 pm
...

Ok, go to viewtopic.php?f=176&t=311230#p311230 about halfway down
or click here for the https://bit.ly/3dUL1mC
...
The topic link doesn't work and I would like to find that topic!
Walter Zambotti
N2 - 22.04 Armbian xfce desktop
N2+ - 22.04 Ubuntu Mate desktop

User avatar
tobetter
Posts: 12972
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 983 times
Been thanked: 2248 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by tobetter »

wallyz21 wrote:
Fri Nov 27, 2020 5:11 pm
Psiborg wrote:
Fri Nov 20, 2020 11:46 pm
...

Ok, go to viewtopic.php?f=176&t=311230#p311230 about halfway down
or click here for the https://bit.ly/3dUL1mC
...
The topic link doesn't work and I would like to find that topic!
It's probably this one.
viewtopic.php?p=309320#p309320

User avatar
70sgamer
Posts: 5
Joined: Tue Nov 03, 2020 10:00 am
languages_spoken: english
ODROIDs: N2+
Location: Hong Kong
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide

Post by 70sgamer »

I have to install extra package to make youtube working on Firefox, hope this help :

sudo apt install ubuntu-restricted-extras
These users thanked the author 70sgamer for the post:
Psiborg (Mon Nov 30, 2020 9:42 pm)

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by Psiborg »

These users thanked the author Psiborg for the post:
Ameridroid (Thu Dec 03, 2020 9:00 am)

User avatar
mad_ady
Posts: 11920
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 662 times
Been thanked: 1252 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by mad_ady »

Sure, if your end goal is calculating primes, the N2 will be more power efficient than Intel/AMD. But other aspects that are needed in a desktop are still behind, but catching up to x86...

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by Psiborg »

I don't disagree at all. This is just a computing ability comparison, such as if someone wanted to crunch numbers or compile with a cluster vs typical current desktop. Never claimed it was anything else :)

User avatar
istanbulls
Posts: 939
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 586 times
Been thanked: 184 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by istanbulls »

Psiborg wrote:
Fri Nov 20, 2020 11:46 pm

Open terminal

Code: Select all

sudo apt-get install htop sysbench hardinfo vlc stacer libreoffice gimp gimp-data-extras psensor 
git-ui gitk gitweb git-cvs git-mediawiki git-svn git-el git-daemon-sysvinit glmark2-es2-wayland
sudo reboot
"git-ui" is giving error, can it be "git-gui"?
These users thanked the author istanbulls for the post:
Psiborg (Thu Dec 03, 2020 6:28 am)

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by Psiborg »

Yep, typo, thanks! Also I removed sidplay-base, breaking audio for me

User avatar
istanbulls
Posts: 939
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 586 times
Been thanked: 184 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by istanbulls »

Psiborg wrote:
Thu Dec 03, 2020 6:28 am
Yep, typo, thanks! Also I removed sidplay-base, breaking audio for me
I am using it with 5.10.0, I have no sound problem.
I haven't done the tests. I'm aiming for 1080p smooth video with mpv.
I sometimes watch football on iptv while reading something and listening to music.
When I watch football seriously, I prefer coreelec or windows.

Thanks for helpful tips.

eruo1
Posts: 29
Joined: Fri Jan 24, 2020 10:22 am
languages_spoken: english
ODROIDs: n2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by eruo1 »

Psiborg, thanks to you, tobetter and everyone that contributed to this. What is the best way to activate and keep the N2+ fan running in this build?

User avatar
tobetter
Posts: 12972
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 983 times
Been thanked: 2248 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by tobetter »

eruo1 wrote:
Mon Dec 07, 2020 12:06 am
Psiborg, thanks to you, tobetter and everyone that contributed to this. What is the best way to activate and keep the N2+ fan running in this build?
If you are running the kernel package *-odroid-arm64 and updated the package recently, you would be able to run this commands to change the fan speed.

In order to change the fan speed manually,

Code: Select all

$ echo 1 | sudo tee /sys/class/hwmon/hwmon2/pwm1_enable
$ echo 128 | sudo tee /sys/class/hwmon/hwmon2/pwm1
In order to make run fan at 100% speed,

Code: Select all

$ echo 0 | sudo tee /sys/class/hwmon/hwmon2/pwm1_enable
In order to control the fan as predefined as per the CPU temperature,

Code: Select all

$ echo 2 | sudo tee /sys/class/hwmon/hwmon2/pwm1_enable

eruo1
Posts: 29
Joined: Fri Jan 24, 2020 10:22 am
languages_spoken: english
ODROIDs: n2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by eruo1 »

Thank you Tobetter. This is not working for me. As recommended by Psiborg, I am on 5.8.16 and I don't have the folder (hwmon2) and subsequent file. I can add the folder, but don't know where to get the file (pwmi_enable)

root@focal-server:~# uname -a
Linux focal-server 5.8.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.8.16-202010281131~focal (2020-10-28) aarch64 aarch64 aarch64 GNU/Linux

User avatar
tobetter
Posts: 12972
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 983 times
Been thanked: 2248 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by tobetter »

eruo1 wrote:
Mon Dec 07, 2020 2:04 am
Thank you Tobetter. This is not working for me. As recommended by Psiborg, I am on 5.8.16 and I don't have the folder (hwmon2) and subsequent file. I can add the folder, but don't know where to get the file (pwmi_enable)

root@focal-server:~# uname -a
Linux focal-server 5.8.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.8.16-202010281131~focal (2020-10-28) aarch64 aarch64 aarch64 GNU/Linux
Oh...you are still with 5.8 which I don't update any more. Do you have any reason still with 5.8?
If you have to be with 5.8, I could consider to add the temp/fan support in a couple of days.

eruo1
Posts: 29
Joined: Fri Jan 24, 2020 10:22 am
languages_spoken: english
ODROIDs: n2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by eruo1 »

I am on 5.8 because that is what Psiborg recommends in Step 2 above. I can update to 5:10 as long as the GPU acceleration and Wayland work fine. Thanks again.

User avatar
tobetter
Posts: 12972
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 983 times
Been thanked: 2248 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by tobetter »

eruo1 wrote:
Mon Dec 07, 2020 2:51 am
I am on 5.8 because that is what Psiborg recommends in Step 2 above. I can update to 5:10 as long as the GPU acceleration and Wayland work fine. Thanks again.
You can install 5.10 and it supports as well, but since t.10 is not stable kernel, you can go for 5.9 first which is the default kernel from my package server.

Code: Select all

$ sudo apt update
$ sudo apt install linux-image-5.9.0-odroid-arm64
$ sudo reboot
After rebooting, you would need to install the Mali GPU driver again since the 5.9 kernel changed a lot.

Code: Select all

$ sudo apt install --reinstall mali-bifrost-dkms
$ sudo reboot

eruo1
Posts: 29
Joined: Fri Jan 24, 2020 10:22 am
languages_spoken: english
ODROIDs: n2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by eruo1 »

tobetter wrote:
Mon Dec 07, 2020 3:20 am
eruo1 wrote:
Mon Dec 07, 2020 2:51 am
I am on 5.8 because that is what Psiborg recommends in Step 2 above. I can update to 5:10 as long as the GPU acceleration and Wayland work fine. Thanks again.
You can install 5.10 and it supports as well, but since t.10 is not stable kernel, you can go for 5.9 first which is the default kernel from my package server.

Code: Select all

$ sudo apt update
$ sudo apt install linux-image-5.9.0-odroid-arm64
$ sudo reboot
After rebooting, you would need to install the Mali GPU driver again since the 5.9 kernel changed a lot.

Code: Select all

$ sudo apt install --reinstall mali-bifrost-dkms
$ sudo reboot
I will try and report back. Thank you!

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *UPDATE*

Post by Psiborg »

I have the newer 5.9 kernel and 20.11 groovy working, update incoming, typing up now!
I am having an issue with qtwayland5 breaking, working on that.

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.3 *UPDATE*

Post by Psiborg »

I have Ubuntu Wayland and Weston running on Armbian (Ubuntu Groovy 20.10) 5.9.12-meson64 kernel, but it's not perfect yet. Sound is working. There is a mild GPU performance hit in both desktop environments, still working on that. Glmark2 has a 50 point drop in Weston, 100 point drop in Ubuntu on Wayland.
I really like that HTOP is showing all possible sensor info, otherwise not sure there is a benefit. It is fun though.

*Worth Investigating?*
The most interesting thing is that Firefox 1080p playback has zero dropped frames, flawless. I did not install h264ify or force enable wayland in firefox.desktop config.
Any interest in me posting a guide and benchmarks in the Armbian section?

User avatar
tobetter
Posts: 12972
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 983 times
Been thanked: 2248 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.3 *UPDATE*

Post by tobetter »

Psiborg wrote:
Wed Dec 09, 2020 4:05 am
I have Ubuntu Wayland and Weston running on Armbian (Ubuntu Groovy 20.10) 5.9.12-meson64 kernel, but it's not perfect yet. Sound is working. There is a mild GPU performance hit in both desktop environments, still working on that. Glmark2 has a 50 point drop in Weston, 100 point drop in Ubuntu on Wayland.
I really like that HTOP is showing all possible sensor info, otherwise not sure there is a benefit. It is fun though.

*Worth Investigating?*
The most interesting thing is that Firefox 1080p playback has zero dropped frames, flawless. I did not install h264ify or force enable wayland in firefox.desktop config.
Any interest in me posting a guide and benchmarks in the Armbian section?
Out of curiousity, are you talking about GPU performance with Bifrost or Panfrost?

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.3 *UPDATE*

Post by Psiborg »

Bifrost! Also I think I have too much installed to the Ubuntu desktop, ram usage is 300-400 meg higher. I just need to do a better install, I bet performance would be same then.

User avatar
tobetter
Posts: 12972
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 983 times
Been thanked: 2248 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.3 *UPDATE*

Post by tobetter »

Psiborg wrote:
Wed Dec 09, 2020 7:32 am
Bifrost! Also I think I have too much installed to the Ubuntu desktop, ram usage is 300-400 meg higher. I just need to do a better install, I bet performance would be same then.
One more curiousity, what make you to try to run Bifrost package on Armbian OS?

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.3 *UPDATE*

Post by Psiborg »

Mostly a why not heh, I am one of those people :) Wanted to see the differences

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by Psiborg »

Simplified and I hope easier update to the guide just posted

eruo1
Posts: 29
Joined: Fri Jan 24, 2020 10:22 am
languages_spoken: english
ODROIDs: n2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by eruo1 »

Psiborg, thank you for v4. Some minor edits may be in order. 1. You have two Step 2s. On the second paragraph of the second Step 2, you need to add "sudo apt-get install" before weston ....

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by Psiborg »

Thank you for the heads up, corrected!

eruo1
Posts: 29
Joined: Fri Jan 24, 2020 10:22 am
languages_spoken: english
ODROIDs: n2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by eruo1 »

The upgrade to groovy 20.10/20.11 is not working for me.

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by Psiborg »

Hi eruo1, without more info I would recommend a full reinstall from scratch, double check every detail. Sometimes the install breaks due to a momentary network failure at the exact wrong moment, happened to me, doesn't have to be your fault :)

nicoraf
Posts: 39
Joined: Tue Dec 30, 2014 5:58 am
languages_spoken: english
ODROIDs: Odroid U3
Odroid N2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by nicoraf »

To install Ubuntu Desktop in an Odroid N2 this guide is not valid?

Georgetina
Posts: 70
Joined: Thu Oct 08, 2015 9:38 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by Georgetina »

hi looking to try this install but the link to 20201024 is not working so unable to down load

nicoraf
Posts: 39
Joined: Tue Dec 30, 2014 5:58 am
languages_spoken: english
ODROIDs: Odroid U3
Odroid N2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by nicoraf »

Hi , I have an Odroid N2, and I would like to have an 20.11 (20.04) Ubuntu Desktop with 5.9 kernel or an 5.x .
Can someone provide a link with steps how to do an installation ? I am not sure if the image from this steps is only for Odroid N2+ .

Thanks

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by Psiborg »

It will work the same for the N2, the only difference is a lower maximum clock speed for all the cores.

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by Psiborg »

@Georgetina, I just tried the download, working for me

nicoraf
Posts: 39
Joined: Tue Dec 30, 2014 5:58 am
languages_spoken: english
ODROIDs: Odroid U3
Odroid N2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by nicoraf »

Psiborg wrote:
Fri Dec 18, 2020 1:37 am
It will work the same for the N2, the only difference is a lower maximum clock speed for all the cores.
Thanks for clarifying!

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by Psiborg »

Welcome, good luck!

Georgetina
Posts: 70
Joined: Thu Oct 08, 2015 9:38 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by Georgetina »

OK I have downloaded the image - had to use firefox as google chrome did not work. Can I assume that the rest of the install instructions need a ethernet connection as there is no wifi set up ?

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by Psiborg »

No, I assumed that you would connect however you connect lol. Just "A" connection is required :) A quick google search showed me how to connect wifi from command line, I shouldn't admit this but I don't use wifi much!

thudchimp
Posts: 9
Joined: Mon Sep 02, 2019 8:25 am
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.4 *UPDATE*

Post by thudchimp »

Thank you Psiborg. I ran through this process using the 5.10.0 image from 20201218 and it worked. (see viewtopic.php?f=176&t=33993&start=900 ). I'm using Panfrost rather than Bifrost.

The panfrost install lines from that thread are

Code: Select all

$ sudo apt update
$ sudo apt install linux-image-5.10.0-odroid-panfrost-arm64
$ sudo reboot
With these changes:
  • Anyplace something specifies 5.9 I changed it to 5.10.
  • Got error "no install candidate ubuntu-software" in one step.
  • Didn't need to upgrade to groovy gorilla, because that was already the version I was using.
  • But did the install line for qtwayland, etc
  • I think I did all other things as mentioned in the directions.
Most things seem to work pretty well. There are some occasional display corruption or weirdness along with some error reports (nothing catastrophic as far as I can tell). YouTube plays well at 1080P without using too much CPU.

I disabled all the Power settings but "Blank screen" at 15 minutes and all the screen lock settings except "Blank screen" there also.

Blanking my screen seems to hard lock everything when it coming out of blanking by pressing a key on my keyboard. It is too bad since I'd love not to have to turn my monitor off manually. I cant even get into any terminal with CTRL-ALT-F2 or whatever. It shows the bar on the left and then something that looks like a lock screen with a clock in the center--even though it is all supposedly disabled. This is what it looks like when it locks up.
lockup_screen.jpg
lockup_screen.jpg (41.72 KiB) Viewed 14631 times
I also disabled screen savers just in case, like:

Code: Select all

$gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
$gsettings set org.gnome.desktop.screensaver lock-enabled false
$gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
But it's still locking up with the same behavior. I guess I'll disable any blanking of the screen at all, but it would be nice if it would let my monitor sleep and wake up again without manually turning off my monitor when I don't want it on.

Thanks for all the instructions since they work well and get things working to a mostly usable state with acceleration.

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 20.11 Ubuntu Desktop 5.9 kernel WITH GPU Acceleration & Audio install guide V.5 *UPDATE*

Post by Psiborg »

Been a long time, thought I would update and streamline this a bit
These users thanked the author Psiborg for the post:
odroid (Thu Feb 03, 2022 9:55 am)

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 22.04 Ubuntu Desktop 5.18 kernel WITH GPU Acceleration & Audio install guide V.6 *UPDATE*

Post by Psiborg »

Update time for 22.04 image
These users thanked the author Psiborg for the post:
odroid (Thu Sep 08, 2022 11:50 am)

Moshtin
Posts: 11
Joined: Mon Jun 08, 2020 7:38 pm
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: 22.04 Ubuntu Desktop 5.15 kernel WITH GPU Acceleration & Audio install guide V.6 *UPDATE*

Post by Moshtin »

Hi, complete novice here so please excuse if these are easily solvable problems. Did the install and very impressed and exactly what I am looking for, thank you so much for your hard work. However, two things have not worked for me:

Sudo apt-get reinstall networdd-manager - I get the response unable to locate package networkd-manager

I am connected via ethernet and I have connection, however it is unmanaged and I am unable to get a VPN working. Any work arounds?

Also, sudo cp /usr/share/applications/firefox.desktop ~/.local/share/applications/firefox.desktop - gives me cannot stat 'usr/share/applications/firefox.desktop': no such file or directory

Having a VPN and hardware accelerated Firefox are both something a covet a lot for my daily uses, any guidance would be most welcome.

Psiborg
Posts: 49
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 10 times
Been thanked: 13 times
Contact:

Re: 22.04 Ubuntu Desktop 5.15 kernel WITH GPU Acceleration & Audio install guide V.6 *UPDATE*

Post by Psiborg »

yeah, i just had a typo there, fixing it. sudo apt reinstall network-manager

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest