Ubuntu 21.04 for ODROID-N2/C4/HC4

User avatar
mctom
Posts: 88
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 15 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Okay, I installed Gnome (Or "Ubuntu" as it's called in the login screen selection menu).
glmark2-es2-wayland indeed works from here, with a result over 700, can't remember exactly.

supertuxkart is borked just the same as on Sway, the same errors appear in dmesg as described before.
supertux works well, but for some reason defaults to SDL. When forced to opengl20 works just as fine as on Sway.
extremetuxracer works fine, just like on Sway.

Cursor on gnome runs a bot choppy, whereas in Sway works smoothly. ;)

amirul
Posts: 73
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Sun May 02, 2021 10:44 pm
20210502

Please note Ubuntu 21.04 server images for ODROID-N2/N2Plus/C4 have been uploaded. The image will boot with Linux kernel 5.11 and default account/password are odroid/odroid as always.

In case you like to install a desktop, please run tasksel and select preferred desktop.

Note for ODROID-HC4, for some reason the image for ODROID-HC4 has been failed but the image for ODROID-C4 will boot from ODROID-HC4. Only missing feature is OLED screen, it will work after installing odroid-homecloud-display.

Code: Select all

$ sudo apt update
$ sudo apt install odroid-homecloud-display
  • ODROID-N2/N2Plus installed great up to desktop, using tasksel ubuntu desktop. Hdmi sound is missing, how to get it back?

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

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Mon May 03, 2021 1:10 am
tobetter wrote:
Sun May 02, 2021 10:44 pm
20210502

Please note Ubuntu 21.04 server images for ODROID-N2/N2Plus/C4 have been uploaded. The image will boot with Linux kernel 5.11 and default account/password are odroid/odroid as always.

In case you like to install a desktop, please run tasksel and select preferred desktop.

Note for ODROID-HC4, for some reason the image for ODROID-HC4 has been failed but the image for ODROID-C4 will boot from ODROID-HC4. Only missing feature is OLED screen, it will work after installing odroid-homecloud-display.

Code: Select all

$ sudo apt update
$ sudo apt install odroid-homecloud-display
  • ODROID-N2/N2Plus installed great up to desktop, using tasksel ubuntu desktop. Hdmi sound is missing, how to get it back?
Run this commands, audio will work after rebooting.

Code: Select all

sudo apt update
sudo apt install odroid-alsa
These users thanked the author tobetter for the post:
amirul (Mon May 03, 2021 7:29 pm)

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

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

Last several days, I was trying to update Panfrost and can see it's been improved a lot, the supertuxkart runs way better than before. Beside, one big issue I have with the update is that GPU only works with Wayland, not X11. I've not tested many Desktop variant yet, will investigate more...in any case I am not able to find out the patches that works with X11 session, I would upload packages for Wayland only or will consider the packages can be managed for X11 and Wayland separately.
Screenshot from 2021-05-04 19-18-49.png
Screenshot from 2021-05-04 19-18-49.png (1.86 MiB) Viewed 150 times
These users thanked the author tobetter for the post (total 2):
amirul (Wed May 05, 2021 2:52 pm) • odroid (Thu May 06, 2021 12:25 pm)

User avatar
mctom
Posts: 88
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 15 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

I did see some updates of "libdrm" taken from linuxfactory yesterday, if I'm not mistaken. Thank you for that! Just rebooted my machine to see if there is any difference and sadly, supertuxkart works the same as I described in previous posts.
I got accomodated on Sway, it's a matter of acquired taste, I think. Super lightweight, nicely combines terminal workflow with accelerated graphics. It is important to note that Sway has been built from ground up specifically for Wayland - hence the name.
Anyway I failed to notice any difference in running applications against GNOME, except that glmark2-es2-wayland failed to run on Sway, and that GUI freezes for a few seconds from time to time - still can't say what this is about. Perhaps not related to Panfrost at all?

I got glmark2 to work by compiling it myself from source. Before that, I ran the stock version from ubuntu repository, that crashed with the following debug info. I wonder what does it have to do with Sway and why it worked okay with GNOME :?: :|

Code: Select all

Reading symbols from glmark2-es2-wayland...
(No debugging symbols found in glmark2-es2-wayland)
(gdb) run
Starting program: /usr/bin/glmark2-es2-wayland 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x0000fffff7f9ae1c in wl_proxy_marshal_constructor () from /lib/aarch64-linux-gnu/libwayland-client.so.0
(gdb) bt
#0  0x0000fffff7f9ae1c in wl_proxy_marshal_constructor () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#1  0x0000aaaaaaaf7414 in ?? ()
#2  0x0000fffff7a47148 in ?? () from /lib/aarch64-linux-gnu/libffi.so.8
#3  0x0000fffff7a46750 in ?? () from /lib/aarch64-linux-gnu/libffi.so.8
#4  0x0000fffff7f9de50 in ?? () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#5  0x0000fffff7f9a5b4 in ?? () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#6  0x0000fffff7f9bb40 in wl_display_dispatch_queue_pending () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#7  0x0000fffff7f9c108 in wl_display_roundtrip_queue () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#8  0x0000aaaaaaaf78c4 in ?? ()
#9  0x0000aaaaaaaacf40 in ?? ()
#10 0x0000aaaaaaaaac60 in ?? ()
#11 0x0000fffff7a7e9d4 in __libc_start_main (main=0xaaaaaaaaa4a0, argc=1, argv=0xfffffffff888, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=<optimized out>) at ../csu/libc-start.c:332
#12 0x0000aaaaaaaacd78 in ?? ()
(gdb) 

Anyway, my glmark2-es2-wayland score is 431.
for glmark2-wayland its' 345.

I think I recalled all that working slightly better some time ago. Hm.

Oh, right, some update has overwritten my /etc/default/[cg]pufrequtils values back to the stock. Gonna try again.

EDIT: I did two things: shifted GPU frequency back to 1GHz (I hope so?), and also ran glmark2* in windows, rather than half-screen tiles that Sway insisted on doing. It did change the results.
glmark2-es2-wayland: 578
glmark2-wayland: 569

Still wonder how did the others manage to get 700+ scores with older versions of Panfrost (as per panfrost status thread). Is that possible to get GPU overclock over 1GHz, or is there something else missing?

Anyway, I think that maybe some of my problems may be resolved by getting the most recent version of Sway - that one in the repo is 6 months old, but building Wayland, wlroots etc from scratch is gonna be a painful operation. :/
Last edited by mctom on Fri May 07, 2021 9:57 pm, edited 1 time in total.

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

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Fri May 07, 2021 9:29 pm
I did see some updates of "libdrm" taken from linuxfactory yesterday, if I'm not mistaken. Thank you for that! Just rebooted my machine to see if there is any difference and sadly, supertuxkart works the same as I described in previous posts.
I got accomodated on Sway, it's a matter of acquired taste, I think. Super lightweight, nicely combines terminal workflow with accelerated graphics. It is important to note that Sway has been built from ground up specifically for Wayland - hence the name.
Anyway I failed to notice any difference in running applications against GNOME, except that glmark2-es2-wayland failed to run on Sway, and that GUI freezes for a few seconds from time to time - still can't say what this is about. Perhaps not related to Panfrost at all?

I got glmark2 to work by compiling it myself from source. Before that, I ran the stock version from ubuntu repository, that crashed with the following debug info. I wonder what does it have to do with Sway and why it worked okay with GNOME :?: :|

Code: Select all

Reading symbols from glmark2-es2-wayland...
(No debugging symbols found in glmark2-es2-wayland)
(gdb) run
Starting program: /usr/bin/glmark2-es2-wayland 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x0000fffff7f9ae1c in wl_proxy_marshal_constructor () from /lib/aarch64-linux-gnu/libwayland-client.so.0
(gdb) bt
#0  0x0000fffff7f9ae1c in wl_proxy_marshal_constructor () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#1  0x0000aaaaaaaf7414 in ?? ()
#2  0x0000fffff7a47148 in ?? () from /lib/aarch64-linux-gnu/libffi.so.8
#3  0x0000fffff7a46750 in ?? () from /lib/aarch64-linux-gnu/libffi.so.8
#4  0x0000fffff7f9de50 in ?? () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#5  0x0000fffff7f9a5b4 in ?? () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#6  0x0000fffff7f9bb40 in wl_display_dispatch_queue_pending () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#7  0x0000fffff7f9c108 in wl_display_roundtrip_queue () from /lib/aarch64-linux-gnu/libwayland-client.so.0
#8  0x0000aaaaaaaf78c4 in ?? ()
#9  0x0000aaaaaaaacf40 in ?? ()
#10 0x0000aaaaaaaaac60 in ?? ()
#11 0x0000fffff7a7e9d4 in __libc_start_main (main=0xaaaaaaaaa4a0, argc=1, argv=0xfffffffff888, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=<optimized out>) at ../csu/libc-start.c:332
#12 0x0000aaaaaaaacd78 in ?? ()
(gdb) 

Anyway, my glmark2-es2-wayland score is 431.
for glmark2-wayland its' 345.

I think I recalled all that working slightly better some time ago. Hm.

Oh, right, some update has overwritten my /etc/default/[cg]pufrequtils values back to the stock. Gonna try again.
I have not treid Sway since I am very lazy to build yet, I usually run Gnome and Weston. If Sway does not have Debian package, I would not try sometime soon. So...I am glad to have your experience with it.
For new package for libdrm, this won't improve the performance and Panfrost. I've updated it for next update Mesa and new Linux kernel package what I am testing, I wish I can upload them in 2 days. The updates make SuperTuxKart runs, but minor display gliches, better than major...

What's the version of glmark2-es2-wayland? If the package version is 20.02, it's from LinuxFactory, 14.03 or so from Canonical.

User avatar
mctom
Posts: 88
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 15 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

You don't need to build Sway, it's in ubuntu repo and works out of a box, at least for me. Just run "sway" in tty and you're all set. Of course, it's very hard to navigate for a newbie, so if you don't have much time on hands or prior experience with i3, better skip this "opportunity" ;) It took me a few days to get used to it.
tobetter wrote:
Fri May 07, 2021 9:46 pm
What's the version of glmark2-es2-wayland? If the package version is 20.02, it's from LinuxFactory, 14.03 or so from Canonical.

Code: Select all

mctom@Tomusiomat-ARM:~$ sudo apt show glmark2-es2-wayland
Package: glmark2-es2-wayland
Version: 5:2021.02+202104220018~hirsute
(...)
And indeed it's from LinuxFactory. And that one didn't work for me on Sway.
The one that I built today is whatever they have on github at the moment. :)

But I think it's not a matter of some bug they fixed recently. It may hav something to do with library versions that I have on my system and used for building it. Wayland and others might break backwards compatibility, I imagine...
tobetter wrote:
Fri May 07, 2021 9:46 pm
I've updated it for next update Mesa and new Linux kernel package what I am testing, I wish I can upload them in 2 days. The updates make SuperTuxKart runs, but minor display gliches, better than major...
Okay, sorry, I got the impression that these updates have been already pushed to repos :oops:

I edited my last reply and added more glmark scores. Still suspiciously little, but hey, doesn't matter unless I fix my compatibility problems. :)

amirul
Posts: 73
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

Code: Select all

$ glmark2-es2-wayland 
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     Panfrost
    GL_RENDERER:   Mali G52 (Panfrost)
    GL_VERSION:    OpenGL ES 3.0 Mesa 21.1.0-devel (git-14b2dc0013)
=======================================================
[build] use-vbo=false: FPS: 622 FrameTime: 1.608 ms
[build] use-vbo=true: FPS: 649 FrameTime: 1.541 ms
[texture] texture-filter=nearest: FPS: 1354 FrameTime: 0.739 ms
[texture] texture-filter=linear: FPS: 1161 FrameTime: 0.861 ms
[texture] texture-filter=mipmap: FPS: 1387 FrameTime: 0.721 ms
[shading] shading=gouraud: FPS: 417 FrameTime: 2.398 ms
[shading] shading=blinn-phong-inf: FPS: 420 FrameTime: 2.381 ms
[shading] shading=phong: FPS: 389 FrameTime: 2.571 ms
[shading] shading=cel: FPS: 397 FrameTime: 2.519 ms
[bump] bump-render=high-poly: FPS: 145 FrameTime: 6.897 ms
[bump] bump-render=normals: FPS: 1517 FrameTime: 0.659 ms
[bump] bump-render=height: FPS: 1341 FrameTime: 0.746 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 995 FrameTime: 1.005 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 391 FrameTime: 2.558 ms
[pulsar] light=false:quads=5:texture=false: FPS: 1282 FrameTime: 0.780 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 215 FrameTime: 4.651 ms
[desktop] effect=shadow:windows=4: FPS: 910 FrameTime: 1.099 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 243 FrameTime: 4.115 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 241 FrameTime: 4.149 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 309 FrameTime: 3.236 ms
[ideas] speed=duration: FPS: 216 FrameTime: 4.630 ms
[jellyfish] <default>: FPS: 549 FrameTime: 1.821 ms
[terrain] <default>: FPS: 29 FrameTime: 34.483 ms
[shadow] <default>: FPS: 285 FrameTime: 3.509 ms
[refract] <default>: FPS: 36 FrameTime: 27.778 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 1141 FrameTime: 0.876 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 1115 FrameTime: 0.897 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 937 FrameTime: 1.067 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 1112 FrameTime: 0.899 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 755 FrameTime: 1.325 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 916 FrameTime: 1.092 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 1056 FrameTime: 0.947 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 867 FrameTime: 1.153 ms
=======================================================
                                  glmark2 Score: 709 
=======================================================
$ cat /etc/default/cpufrequtils 
GOVERNOR=schedutil
MIN_SPEED="1000MHZ"
MAX_SPEED="2400MHZ"

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

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

@mctom, what do you have in /etc/default/cpufrequtils and /etc/default/gpufrequtils?
For GPU overclocking, I don't think 1GHz is real but improve a bit from 800MHz which is official max frequency on the datasheet.

User avatar
mctom
Posts: 88
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 15 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

tobetter wrote:
Fri May 07, 2021 11:00 pm
@mctom, what do you have in /etc/default/cpufrequtils and /etc/default/gpufrequtils?
For GPU overclocking, I don't think 1GHz is real but improve a bit from 800MHz which is official max frequency on the datasheet.
Well, I have just reverted these two to my preferred values, because *something* has replaced them 3 days ago with the stock. Must have been an update, I think.
That's N2+ of course.

Code: Select all

mctom@Tomusiomat-ARM:/etc/default$ cat cpufrequtils 
GOVERNOR=ondemand
MIN_SPEED="1000MHZ"
MAX_SPEED="2400MHZ"
mctom@Tomusiomat-ARM:/etc/default$ cat gpufrequtils 
# GOVERNORS:    [userspace powersave performance simple_ondemand]
# FREQUENCIES : [124999998 249999996 285714281 399999994
#                499999992 666666656 799999987]
GOVERNOR=performance
MIN_FREQ=499999992
MAX_FREQ=999999984
mctom@Tomusiomat-ARM:/etc/default$ 
And before you ask:

Code: Select all

mctom@Tomusiomat-ARM:~$ sudo cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/max_freq
[sudo] hasło użytkownika mctom: 
999999984

amirul
Posts: 73
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Fri May 07, 2021 11:00 pm
@mctom, what do you have in /etc/default/cpufrequtils and /etc/default/gpufrequtils?
For GPU overclocking, I don't think 1GHz is real but improve a bit from 800MHz which is official max frequency on the datasheet.
$ cat /etc/default/cpufrequtils
GOVERNOR=schedutil
MIN_SPEED="1000MHZ"
MAX_SPEED="2400MHZ"
$ cat /etc/default/gpufrequtils
# GOVERNORS: [userspace powersave performance simple_ondemand]
# FREQUENCIES : [124999998 249999996 285714281 399999994
# 499999992 666666656 799999987]
GOVERNOR=performance
MIN_FREQ=499999992
MAX_FREQ=799999987
$ cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/available_frequencies
124999998 249999996 285714281 399999994 499999992 666666656 799999987 999999984
$ cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/cur_freq
999999984

User avatar
mctom
Posts: 88
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 15 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

amirul wrote:
Fri May 07, 2021 11:30 pm
tobetter wrote:
Fri May 07, 2021 11:00 pm
@mctom, what do you have in /etc/default/cpufrequtils and /etc/default/gpufrequtils?
For GPU overclocking, I don't think 1GHz is real but improve a bit from 800MHz which is official max frequency on the datasheet.
$ cat /etc/default/cpufrequtils
GOVERNOR=schedutil
MIN_SPEED="1000MHZ"
MAX_SPEED="2400MHZ"
$ cat /etc/default/gpufrequtils
# GOVERNORS: [userspace powersave performance simple_ondemand]
# FREQUENCIES : [124999998 249999996 285714281 399999994
# 499999992 666666656 799999987]
GOVERNOR=performance
MIN_FREQ=499999992
MAX_FREQ=799999987
$ cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/available_frequencies
124999998 249999996 285714281 399999994 499999992 666666656 799999987 999999984
$ cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/cur_freq
999999984
That's interesting, you didn't touch the MAX_FREQ setting and yet still get 1GHz GPU cur_freq? I feel stupid for "overclocking" my GPU then :roll: The reason why I got better scores in glmark was solely because I let it open a smaller window.

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

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

@mctom, can you check the values? Also, if GPU governor is set with performance, ignore it's frequency. You would better to test with Gnome or Weston what I am testing.

Code: Select all

tobetter@hirsute:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq 
2016000
tobetter@hirsute:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 
performance
tobetter@hirsute:~$ cat /sys/devices/system/cpu/cpufreq/policy2/scaling_cur_freq 
2400000
tobetter@hirsute:~$ cat /sys/devices/system/cpu/cpufreq/policy2/scaling_governor 
performance
tobetter@hirsute:~$ cat /sys/class/devfreq/ffe40000.gpu/cur_freq 
999999984
tobetter@hirsute:~$ cat /sys/class/devfreq/ffe40000.gpu/governor 
performance

User avatar
mctom
Posts: 88
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 15 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Code: Select all

mctom@Tomusiomat-ARM:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq 
1000000
mctom@Tomusiomat-ARM:~$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 
ondemand
mctom@Tomusiomat-ARM:~$ cat /sys/devices/system/cpu/cpufreq/policy2/scaling_cur_freq
2400000
mctom@Tomusiomat-ARM:~$ cat /sys/devices/system/cpu/cpufreq/policy2/scaling_governor 
ondemand
mctom@Tomusiomat-ARM:~$ cat /sys/class/devfreq/ffe40000.gpu/cur_freq 
124999998
mctom@Tomusiomat-ARM:~$ cat /sys/class/devfreq/ffe40000.gpu/governor
simple_ondemand
mctom@Tomusiomat-ARM:~$ cat /etc/default/gpufrequtils 
# GOVERNORS:    [userspace powersave performance simple_ondemand]
# FREQUENCIES : [124999998 249999996 285714281 399999994
#                499999992 666666656 799999987]
GOVERNOR=performance
MIN_FREQ=499999992
MAX_FREQ=999999984
Right now I'm compiling supertuxkart, so despite the CPU is ondemand it really is busy right now.
About the GPU results, I'm honestly puzzled. I remember once I experimented with

Code: Select all

simple_ondemand
governor, but I gave up that some time ago. Surely this is not what I have set in gpufrequtils.

Also when I run glmark2*, GPU frequency jumps to 1GHz.

Code: Select all

mctom@Tomusiomat-ARM:~$ cat /sys/class/devfreq/ffe40000.gpu/cur_freq 
999999984
mctom@Tomusiomat-ARM:~$ cat /sys/class/devfreq/ffe40000.gpu/governor
simple_ondemand
mctom@Tomusiomat-ARM:~$ echo performance | sudo tee /sys/class/devfreq/ffe40000.gpu/governor
[sudo] hasło użytkownika mctom: 
performance
[I killed glmark2 here]
mctom@Tomusiomat-ARM:~$ cat /sys/class/devfreq/ffe40000.gpu/cur_freq 
999999984
mctom@Tomusiomat-ARM:~$ cat /sys/class/devfreq/ffe40000.gpu/governor
performance
You got a good idea, I'll try glmark on Weston and see if it gives any better results.

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

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

I've tried PPSPP on ODROID-N2 21.04 and can play some games. The meaning "Play" here mean, I can launch a game and get started but not playing to measure the performance since I am not a game player. :)
Screenshot from 2021-05-08 01-40-58.png
Screenshot from 2021-05-08 01-40-58.png (928.21 KiB) Viewed 39 times
Screenshot from 2021-05-08 01-37-46.png
Screenshot from 2021-05-08 01-37-46.png (681.51 KiB) Viewed 39 times

User avatar
mctom
Posts: 88
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 15 times
Been thanked: 2 times
Contact:

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by mctom »

Okay I just fired up Weston and indeed, glmark2-es2-wayland score is... 830! :o

But supertuxkart is buggy just the same, so... I'll give it a try once you drop new Panfrost on the repository. I'll surely compare performance and report back!

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

Re: Ubuntu 21.04 for ODROID-N2/C4/HC4

Post by tobetter »

mctom wrote:
Sat May 08, 2021 2:31 am
Okay I just fired up Weston and indeed, glmark2-es2-wayland score is... 830! :o

But supertuxkart is buggy just the same, so... I'll give it a try once you drop new Panfrost on the repository. I'll surely compare performance and report back!
Thanks, different compositors will give you different scores and currently Gnome Desktop gave me the decent scores. The SuperTuxKart will draw the screen on the next update and I will let you guys know when new packages are uploaded. I am collecting the patches and buillding it in order to reduce the screen glitches, testing to make them land to your ODROID-N2.
These users thanked the author tobetter for the post:
mctom (Sat May 08, 2021 2:40 am)

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 1 guest