Kernel config for max frequency

Post Reply
User avatar
wallyz21
Posts: 407
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 35 times
Been thanked: 37 times
Contact:

Kernel config for max frequency

Post by wallyz21 »

from the WIKI the max+freq used to be set in config.ini.

Code: Select all

; Maximum CPU frequency of ARM A73
; N2: 500/667/1000/1200/1398/1512/1608/1704/1800 (Stock)/1908/2004
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908/2016/2100/2208 (Stock)/2304/2400
max_freq_a73=2400
 
; Maximum CPU frequency of ARM A53
; N2: 100/250/500/667/1000/1200/1398/1512/1608/1704/1896 (Stock)/1992
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908 (Stock)/2016
max_freq_a53=2016
This seems to have changed in tobetters distros. Where can I find these kernel settings now?
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

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

Re: Kernel config for max frequency

Post by tobetter »

wallyz21 wrote:
Tue Jan 25, 2022 11:11 am
from the WIKI the max+freq used to be set in config.ini.

Code: Select all

; Maximum CPU frequency of ARM A73
; N2: 500/667/1000/1200/1398/1512/1608/1704/1800 (Stock)/1908/2004
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908/2016/2100/2208 (Stock)/2304/2400
max_freq_a73=2400
 
; Maximum CPU frequency of ARM A53
; N2: 100/250/500/667/1000/1200/1398/1512/1608/1704/1896 (Stock)/1992
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908 (Stock)/2016
max_freq_a53=2016
This seems to have changed in tobetters distros. Where can I find these kernel settings now?
Please refer to the link,
https://docs.linuxfactory.or.kr/guides/ ... d-governor
These users thanked the author tobetter for the post:
wallyz21 (Tue Jan 25, 2022 1:18 pm)

alex_biancograt
Posts: 13
Joined: Sun Sep 12, 2021 2:08 am
languages_spoken: english
ODROIDs: odroid n2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel config for max frequency

Post by alex_biancograt »

Hello everyone !

on my odroid n2+ , kernel 4.9.277-122 (ubuntu 20.04)

for overclocking a53 at 2016 and a73 at 2400 mhz

changing parameters in "config.ini" and cpufrequtils's folder as in previous posts did not give any results...

can you help me ... what went wrong?

thank you all !!

User avatar
odroid
Site Admin
Posts: 39564
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2687 times
Been thanked: 1483 times
Contact:

Re: Kernel config for max frequency

Post by odroid »

@alex_biancograt,
If you run Kernel 4.9, you had to follow this instruction.
https://wiki.odroid.com/odroid-n2/hardware/overclocking

alex_biancograt
Posts: 13
Joined: Sun Sep 12, 2021 2:08 am
languages_spoken: english
ODROIDs: odroid n2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel config for max frequency

Post by alex_biancograt »

Hello everyone !

the file "config.ini " was changed in according to this: https://wiki.odroid.com/odroid-n2/hardware/overclocking

but no change was made to cpu's frequencys...

another tip is this ... https://docs.linuxfactory.or.kr/guides/ ... d-governor

no new effects !

maybe change other settings on "cpufrequtils" ??

greetings to all !

User avatar
odroid
Site Admin
Posts: 39564
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2687 times
Been thanked: 1483 times
Contact:

Re: Kernel config for max frequency

Post by odroid »

Show us your modified /media/boot/config.ini file.

alex_biancograt
Posts: 13
Joined: Sun Sep 12, 2021 2:08 am
languages_spoken: english
ODROIDs: odroid n2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel config for max frequency

Post by alex_biancograt »

@ site admin: thanks for your interest !

this is my config.ini file..

I hope I used the right command !

Code: Select all

[generic]
; Auto Detection of Monitor settings based on your Screen information
display_autodetect=true

; HDMI Mode
; Resolution Configuration
;    Symbol             | Resolution
; ----------------------+-------------
;    "480x272p60hz"     | 480x272 Progressive 60Hz
;    "480x320p60hz"     | 480x320 Progressive 60Hz
;    "480p60hz"         | 720x480 Progressive 60Hz
;    "576p50hz"         | 720x576 Progressive 50Hz
;    "720p60hz"         | 1280x720 Progressive 60Hz
;    "720p50hz"         | 1280x720 Progressive 50Hz
;    "1080p60hz"        | 1920x1080 Progressive 60Hz
;    "1080p50hz"        | 1920x1080 Progressive 50Hz
;    "1080p30hz"        | 1920x1080 Progressive 30Hz
;    "1080p24hz"        | 1920x1080 Progressive 24Hz
;    "1080i60hz"        | 1920x1080 Interlaced 60Hz
;    "1080i50hz"        | 1920x1080 Interlaced 50Hz
;    "2160p60hz"        | 3840x2160 Progressive 60Hz
;    "2160p50hz"        | 3840x2160 Progressive 50Hz
;    "2160p30hz"        | 3840x2160 Progressive 30Hz
;    "2160p25hz"        | 3840x2160 Progressive 25Hz
;    "2160p24hz"        | 3840x2160 Progressive 24Hz
;    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
;    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
;    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
;    "640x480p60hz"     | 640x480 Progressive 60Hz
;    "800x480p60hz"     | 800x480 Progressive 60Hz
;    "800x600p60hz"     | 800x600 Progressive 60Hz
;    "1024x600p60hz"    | 1024x600 Progressive 60Hz
;    "1024x768p60hz"    | 1024x768 Progressive 60Hz
;    "1280x800p60hz"    | 1280x800 Progressive 60Hz
;    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
;    "1360x768p60hz"    | 1360x768 Progressive 60Hz
;    "1440x900p60hz"    | 1440x900 Progressive 60Hz
;    "1600x900p60hz"    | 1600x900 Progressive 60Hz
;    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
;    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
;    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
;    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
;    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
;    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
;    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
hdmimode=1080p60hz

; Monitor output
; Controls if HDMI PHY should output anything to the monitor
monitor_onoff=false

; Overscan percentage
; This value scales down the actual screen size by the percentage below
; valid range is 80 to 100
overscan=100

; SDR/HDR Configuration
; This forces SDR or HDR modes
; valid options are: sdr hdr auto
sdrmode=auto

; voutmode : hdmi or dvi
; hdmi / dvi
voutmode=hdmi

; HPD enable/disable option
; false / true
disablehpd=false

; Enable/Disable CEC
cec=true

; Hardkernel ODROID-VU7 support
; By default VU7 support is disabled
disable_vu7=true

; Maximum CPU frequency of ARM A73
; N2: 500/667/1000/1200/1398/1512/1608/1704/1800 (Stock)/1908/2004
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908/2016/2100/2208 (Stock)/2304/2400
; max_freq_a73=2400

; Maximum CPU frequency of ARM A53
; N2: 100/250/500/667/1000/1200/1398/1512/1608/1704/1896 (Stock)/1992
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908 (Stock)/2016
; max_freq_a53=2016

; Maximum number of CPU cores
maxcpus=6

; Wake-On-Lan support (0=disable, 1=enable)
; enable_wol=1


; Device Tree Overlay
overlay_resize=16384
overlay_profile=
overlays="spi0 i2c0 i2c1 uart0"

[overlay_custom]
overlays="i2c0 i2c1"

[overlay_hktft32]
overlays="hktft32"

[overlay_hktft35]
overlays="hktft35"
thank you all ...
ps.

attached a screenshot of the status
Attachments
Odroid n2.jpg
Odroid n2.jpg (362.7 KiB) Viewed 512 times

User avatar
mctom
Posts: 1961
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1
Location: Gdansk, Poland
Has thanked: 224 times
Been thanked: 280 times
Contact:

Re: Kernel config for max frequency

Post by mctom »

You need to "uncomment" the lines where you put new values, remove ; symbols from the beginnings of these lines.
Otherwise, "commented out" lines are ignored and default values are used instead.

This should work:

Code: Select all

; Maximum CPU frequency of ARM A73
; N2: 500/667/1000/1200/1398/1512/1608/1704/1800 (Stock)/1908/2004
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908/2016/2100/2208 (Stock)/2304/2400
max_freq_a73=2400

; Maximum CPU frequency of ARM A53
; N2: 100/250/500/667/1000/1200/1398/1512/1608/1704/1896 (Stock)/1992
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908 (Stock)/2016
max_freq_a53=2016
And don't forget to reboot after making these changes. :)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

alex_biancograt
Posts: 13
Joined: Sun Sep 12, 2021 2:08 am
languages_spoken: english
ODROIDs: odroid n2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel config for max frequency

Post by alex_biancograt »

excellent !!

I didn't know the meaning of

Code: Select all

;
!!

now all cores operate at their best frequency !

but I would also like to set the governor scaling on "ondemand" mode, now is on "performance"

i should manually edit the file

Code: Select all

/etc/default/cpufrequtils
with the new string "ondemand"??

or another proper command is used....

thanks for your advice !

User avatar
mctom
Posts: 1961
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1
Location: Gdansk, Poland
Has thanked: 224 times
Been thanked: 280 times
Contact:

Re: Kernel config for max frequency

Post by mctom »

Yes, you will encounter similar things in many config files and scripts in the future. Their purpose is to leave human-readable comments that software will ignore, but sometimes are used to temporarily "turn off" a line without deleting it.
Many symbols are used, it's not always semicolon. In bash scripts, # symbol is used to indicate comments, for example.

About changing the governor on Odroid N2+, I would recommend you not doing that. I had many troubles with this, especially with random system freezes for a few seconds when hardware failed to change CPU frequency. It didn't happen all the time, but often enough for me to abandon ondemand or schedutil governors.
Also, ondemand doesn't save much power anyway, the CPU has its own internal sleep modes that are quite efficient.

But to answer your question, yes, I think editing that file with other CPU governor should work (after reboot). If not, there are other ways described in numerous posts. It's not described in Odroid Wiki, I believe, because it's really not recommended.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

alex_biancograt
Posts: 13
Joined: Sun Sep 12, 2021 2:08 am
languages_spoken: english
ODROIDs: odroid n2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Kernel config for max frequency

Post by alex_biancograt »

Also, ondemand doesn't save much power anyway, the CPU has its own internal sleep modes that are quite efficient.
exactly !!
I recently checked the consumption of my raspberry with ondemand mode and the energy saving is minimal !

regards..

User avatar
mctom
Posts: 1961
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: OGA, XU4, C2, M1
Location: Gdansk, Poland
Has thanked: 224 times
Been thanked: 280 times
Contact:

Re: Kernel config for max frequency

Post by mctom »

Raspberry Pi is a totally different story, it consumes 1W even on shutdown :lol:
Not all SBCs are the same, and RasPis certainly are not the "reference designs"...
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests