maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Overclock profile loaded from desktop widget (https://talk.maemo.org/showthread.php?t=95815)

Ridd92 2015-08-04 14:44

Overclock profile loaded from desktop widget
 
Hi there all

I'm running my n900 fixed at 950mhz, to be more specific:

Quote:

(...)
MINFREQ=950
MAXFREQ=950
FREQS="950:58,270"
SMARTREFLEX VDD1=1
SMARTREFLEX VDDD2=1
(...)
First of all, supposingly smart reflex works only with freqs up to 900Mhz.

Im running mine n900 for several weeks with this profile, no random reboots everything working fine even with starving voltage profile. DSP Freq is set low, cause I have lot .avi movies converted so higher dsp is not needed. If so, I have another profile with higher dsp.

Im using Desktop Command Execution Widget and with one wodget I can change max, min and avoid freqs (This is very usefull, since after calling min cpu freq goes down to 125mhz due to nokias "We want to".

So I can reload settings always after calling, but it doesnt load whole overclock profile saved in /home/user/.kernel/.

Is there a way by using widget created by DCEW to load whole profile from /home/user/.kernel/ ?

Mine most used profile looks like that:

Quote:

#kernel configuration file....
MINFREQ=950
MAXFREQ=950
FREQS="950:58,270"
SMARTREFLEX VDD1=1
SMARTREFLEX VDDD2=1
GOVENOR=ondemand
IGNORE_NICE_LOAD=1
UP_THRESHHOLD=100 #(Value here is pointless since Im using only one frequency)#
SAMPLING_RATE=333333
POWERSAVE_BIAS=0
SO I like to be able to load those setts with one click, not running xterm everytime after calling.

Is it possible?

peterleinchen 2015-08-04 17:57

Re: Overclock profile loaded from desktop widget
 
erm...
???

Just create a profile file under /home/user/.kernel with all your settings and call it within DECW like
sudo kernel-config load myProfile?

With either sudser (not recommended) for resolving the password issue or an entry in /etc/sudoers.d/.

That were only pointers. If you need the whole solution (no spoon-feeding ;)) ask once more.

--
And to extend your use case: there is also a solution to have this done automatically with dbus-scripts.

Ridd92 2015-08-05 07:07

Re: Overclock profile loaded from desktop widget
 
Quote:

Originally Posted by peterleinchen (Post 1478684)
erm...
???

Just create a profile file under /home/user/.kernel with all your settings and call it within DECW like
sudo kernel-config load myProfile?

With either sudser (not recommended) for resolving the password issue or an entry in /etc/sudoers.d/.

That were only pointers. If you need the whole solution (no spoon-feeding ;)) ask once more.

--
And to extend your use case: there is also a solution to have this done automatically with dbus-scripts.

Yep, its working! I mean the sudo kernel-config load myProfile. Ok

How to do it with dbus scripts? Easy way?

peterleinchen 2015-08-06 20:22

Re: Overclock profile loaded from desktop widget
 
Yep.

Just put that content in a file under
/etc/dbus-scripts.d/call (or name it like you like)
Quote:

# This file was generated by dbus-scripts-settings
# If you edit it by hand you might confuse the program,
# and you might lose your changes next time the program runs.

#:call_start
/opt/scripts/call_start.sh * * com.nokia.mce.signal sig_call_state_ind active normal

#:call_end
/opt/scripts/call_end.sh * * com.nokia.mce.signal sig_call_state_ind none normal
First line/script sets on call getting activated.
And second on call ended.

Possibly you may like to install package dbus-scripts-settings.


All times are GMT. The time now is 04:59.

vBulletin® Version 3.8.8