Odroid N2+ gpufrequtils settings not working

Post Reply
chatplosion
Posts: 30
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC
Has thanked: 6 times
Been thanked: 2 times
Contact:

Odroid N2+ gpufrequtils settings not working

Post by chatplosion »

Dear developers and community mebers,

since I installed Ubuntu 22.04, changes in file /etc/default/gpufrequtils are ignored or not passed to the device.

/sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/governor
/sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/min_freq
/sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/max_freq

They all stay unaffected as simple_ondemand, 124999998 and 9999999984.

What is wrong?

Update:

When I open a terminal and do the following:

Code: Select all

odroid@odroid-n2plus:~$ su root
Passwort: 
root@odroid-n2plus:/home/odroid# . /etc/default/gpufrequtils; echo ${GOVERNOR} > /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/governor; echo ${MIN_FREQ} > /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/min_freq; echo ${MAX_FREQ} > /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/max_freq
root@odroid-n2plus:/home/odroid# 
The device now accepts the values from /etc/default/gpufrequtils until the next boot.

Is there a permission error or something else with udev?
Last edited by chatplosion on Tue May 10, 2022 8:31 pm, edited 1 time in total.

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

Re: Odroid N2+ gpufrequtils settings not working

Post by tobetter »

What's your kernel version now? Please share the output of uname -a.
What' do you have in /etc/default/gpufrequtils?

chatplosion
Posts: 30
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC
Has thanked: 6 times
Been thanked: 2 times
Contact:

Re: Odroid N2+ gpufrequtils settings not working

Post by chatplosion »

Thanks for your fast response!

My uname -a is:

Code: Select all

Linux odroid-n2plus 5.17.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.17.1-202204241200~jammy (2022-04-24) aarch64 aarch64 aarch64 GNU/Linux
And this is the contend of my /etc/default/gpufrequtils is:

Code: Select all

# GOVERNORS:    [userspace powersave performance simple_ondemand]
# FREQUENCIES : [124999998 249999996 285714281 399999994
#                499999992 666666656 799999987]
GOVERNOR=performance
MIN_FREQ=499999992
MAX_FREQ=999999984
And here is my newest bootlog:
bootlog.txt
(171.21 KiB) Downloaded 3 times
Last edited by chatplosion on Tue May 10, 2022 10:01 pm, edited 1 time in total.

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

Re: Odroid N2+ gpufrequtils settings not working

Post by tobetter »

chatplosion wrote:
Tue May 10, 2022 8:41 pm
Thanks for your fast response!

My uname -a is:

Code: Select all

Linux odroid-n2plus 5.17.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.17.1-202204241200~jammy (2022-04-24) aarch64 aarch64 aarch64 GNU/Linux
And this is the contend of my /etc/default/gpufrequtils is:

Code: Select all

# GOVERNORS:    [userspace powersave performance simple_ondemand]
# FREQUENCIES : [124999998 249999996 285714281 399999994
#                499999992 666666656 799999987]
GOVERNOR=performance
MIN_FREQ=499999992
MAX_FREQ=999999984
Let me check again, how did you install 5.17 kernel? Since it's not tested enough and released yet, maybe you have installed it by yourself after download the package?

chatplosion
Posts: 30
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC
Has thanked: 6 times
Been thanked: 2 times
Contact:

Re: Odroid N2+ gpufrequtils settings not working

Post by chatplosion »

Yes, I installed it with apt. As you mention it, I also was surprised to see it available.
Shall I revert to newest 5.15 or 5.16?

Update:

I did downgrade the Kernel to 5.16.0-odroid-arm64 with the command

Code: Select all

sudo flash-kernel --force 5.16.0-odroid-arm64
and rebooted.
Now I have uname -a output:

Code: Select all

Linux odroid-n2plus 5.16.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.16.16-202204242219~jammy (2022-04-24) aarch64 aarch64 aarch64 GNU/Linux
.

But the problem is the same.

I have a new bootlog attached.
bootlog0.txt
(180.52 KiB) Downloaded 3 times

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

Re: Odroid N2+ gpufrequtils settings not working

Post by tobetter »

chatplosion wrote:
Tue May 10, 2022 10:05 pm
Yes, I installed it with apt. As you mention it, I also was surprised to see it available.
Shall I revert to newest 5.15 or 5.16?

Update:

I did downgrade the Kernel to 5.16.0-odroid-arm64 with the command

Code: Select all

sudo flash-kernel --force 5.16.0-odroid-arm64
and rebooted.
Now I have uname -a output:

Code: Select all

Linux odroid-n2plus 5.16.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.16.16-202204242219~jammy (2022-04-24) aarch64 aarch64 aarch64 GNU/Linux
.

But the problem is the same.

I have a new bootlog attached.bootlog0.txt
Thanks, I think the problem can be resolved after updating the package odroid-base. Please check and let me know if it works.

Code: Select all

$ dpkg -l | grep odroid-base
ii  odroid-base                           5:22.04+202205110437~jammy        arm64        ODROID base package
These users thanked the author tobetter for the post:
chatplosion (Wed May 11, 2022 7:24 am)

chatplosion
Posts: 30
Joined: Wed Jan 29, 2020 3:35 pm
languages_spoken: german, english
ODROIDs: Odroid-N2 4GB-RAM CoreELEC
Has thanked: 6 times
Been thanked: 2 times
Contact:

Re: Odroid N2+ gpufrequtils settings not working

Post by chatplosion »

It now works perfectly with governor and frequencies with the gpu!

I thank you a lot for boosting my odroid n2+ Ubuntu 22.04 a bit!

Who had thought that the udev rule for the gpu was broken?
This was indeed something unexpected.

I add the most recent bootlog for further analysis. Maybe other interesting things can be spotted.
bootlog1.txt
(185.52 KiB) Downloaded 5 times
These users thanked the author chatplosion for the post:
tobetter (Wed May 11, 2022 8:38 am)

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

Re: Odroid N2+ gpufrequtils settings not working

Post by tobetter »

chatplosion wrote:
Wed May 11, 2022 7:23 am
It now works perfectly with governor and frequencies with the gpu!

I thank you a lot for boosting my odroid n2+ Ubuntu 22.04 a bit!

Who had thought that the udev rule for the gpu was broken?
This was indeed something unexpected.

I add the most recent bootlog for further analysis. Maybe other interesting things can be spotted.bootlog1.txt
Thanks, the log looks ok to me. This couldn't be fixed without your report. :lol:

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest