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

Post Reply
Psiborg
Posts: 12
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 2 times
Been thanked: 6 times
Contact:

Ubuntu Desktop WITH GPU Acceleration & Audio install guide V.2 *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.

viewtopic.php?p=309320#p309320
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

passwd -l root
Lock root login

Code: Select all

exit
Lout out, log back in as NEWNAME

Step 1 done!

Step 2
As of right now I can't get 5.9 kernel to run without breaking random things in Ubuntu desktop, though Weston doesn't care, go figure. Most of the time I can't enable wayland gpu acceleration so for now I am staying at 5.8.16

Code: Select all

sudo apt-mark hold linux-image-$(uname -r)
sudo apt-get install linux-headers-$(uname -r)
sudo apt-mark hold linux-headers-$(uname -r)
sudo apt-mark hold linux-image-generic
sudo apt-mark hold linux-headers-generic

Code: Select all

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

Code: Select all

sudo dpkg-reconfigure tzdata
Set your local info

Code: Select all

sudo reboot

Code: Select all

sudo apt-get install cpufrequtils nano
Overclocking and my favorite no-frills quick editor

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"

Code: Select all

sudo reboot
Ok, Step 2 is done, now for the big install. Once this starts, go make some coffee or something, takes a few minutes to complete.
This is a large block of packages, I will break it up to be easier to read. Please give me any advise on this list you have!

Step 3

Code: Select all

sudo apt-get install mali-bifrost-wayland-driver flex bison menu gcc-9-locales gnome-keyring debian-keyring autoconf libtool gdb git bzr gdbm-l10n ed 
libterm-readline-gnu-perl libterm-readline-perl-perl libb-debug-perl liblocale-codes-perl mesa-utils build-essential unzip pigz lm-sensors i2c-tools libi2c-dev 
curl neofetch ninja-build snapd gpm vim vim-scripts weston qtwayland5 qt5-image-formats-plugins qt5-qmltooling-plugins 
ubuntu-desktop-minimal ubuntu-restricted-extras serdi sidplay-base sordi
sudo reboot
Step 3 "The big install" done. Nice!

Step 4
At this point login to Ubuntu at the launcher, remember to choose Ubuntu on Wayland from the gear icon in the lower right of launcher screen

Do to the previously mentioned kernel upgrade issue we have to make sure the right things are held before any more updates.
Open a terminal

Code: Select all

sudo apt-mark hold linux-image-5.9.0-odroid-arm64
sudo apt-mark hold linux-headers-5.9.0-odroid-arm64
sudo apt-mark hold linux-image-generic
sudo apt-mark hold linux-headers-generic
sudo apt-mark unhold linux-image-5.8.0-odroid-arm64
sudo apt-mark unhold linux-headers-5.8.0-odroid-arm64
Some of these may say already held but that's ok, better to be sure with Ubuntu's damn autoupdate.

I like to change Software & Updates Settings.
Under the Updates tab, I change to Display Immediately instead of Download and Install, important to stop accidental upgrades on the N2+
Everything else in here should be fine, click Close
Run the normal Software Update program, there will be an update for the 5.8 kernel and a few other items, be sure that the generic and 5.9 files are either not there or not checked. For the most part there should be few or no updates considering it is a fresh install.

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

That is it, essentials installed, GOOD JOB!
Now to have fun and benchmark we need some more utilities, most of these are sure common installs for people. Choose what you like :)
Once again I split the list just to make it easier to read here.

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
***STEP 4 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 22 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 22 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 22 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 Mon Nov 30, 2020 10:39 pm, edited 1 time in total.
These users thanked the author Psiborg for the post:
LostMyDroid (Sat Nov 21, 2020 10:12 am)

LostMyDroid
Posts: 49
Joined: Tue Jan 13, 2015 10:06 am
languages_spoken: english
ODROIDs: N-2
Has thanked: 2 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: 12
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 2 times
Been thanked: 6 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: 49
Joined: Tue Jan 13, 2015 10:06 am
languages_spoken: english
ODROIDs: N-2
Has thanked: 2 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: 6619
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 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: 49
Joined: Tue Jan 13, 2015 10:06 am
languages_spoken: english
ODROIDs: N-2
Has thanked: 2 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: 49
Joined: Tue Jan 13, 2015 10:06 am
languages_spoken: english
ODROIDs: N-2
Has thanked: 2 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: 12
Joined: Fri Nov 06, 2020 1:18 am
languages_spoken: english
ODROIDs: N2+ 4GB
Has thanked: 2 times
Been thanked: 6 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: 9
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 1 time
Been thanked: 2 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 :)

wallyz21
Posts: 184
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 10 times
Been thanked: 17 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 - Ubuntu Mate Desktop

User avatar
tobetter
Posts: 6619
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 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: 1
Joined: Tue Nov 03, 2020 10:00 am
languages_spoken: english
ODROIDs: N2+
Location: Hong Kong
Has thanked: 0
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)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest