Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[kernel module] smartassV2 governor for Defy Mini

OP Bernd.Defy

12th August 2013, 12:19 AM   |  #1  
OP Member
Thanks Meter: 40
 
64 posts
Join Date:Joined: Feb 2013
Hi there,

based on the work of @viulian and @AnDyX here at xda, i've ported erasmux' smartassV2-goveror to a kernel-module for Defy Mini.

It's easy to use:

1. download the attached zip
2. place the defymini_smartass2.ko anywhere on your defy mini (i prefer /system/lib/modules)
3. install the module
Code:
insmod /system/lib/modules/defymini_smartass2.ko
4. start a tool like no-frills cpu-control
5. choose smartassV2-governor, 245min / 600 max.

ToDo:
* create init.d - script:
- which detects current (overclocked?) max-speed
- loads smartass-module then
- changes governor to smartass with detected max-speed

Please try it and give feedback, i hope, there is a little more batterylife now.

Regards,
Bernd.Defy!
Attached Files
File Type: zip defymini_smartass2.zip - [Click for QR Code] (6.0 KB, 198 views)
File Type: zip !smartass2-source.zip - [Click for QR Code] (7.1 KB, 53 views)
Last edited by Bernd.Defy; 2nd April 2014 at 11:09 PM. Reason: added sourcecode
The Following 4 Users Say Thank You to Bernd.Defy For This Useful Post: [ View ]
12th August 2013, 01:27 AM   |  #2  
Senior Member
Thanks Meter: 194
 
369 posts
Join Date:Joined: Mar 2010
More
Quote:
Originally Posted by Bernd.Defy

Hi there,

based on the work of @vulian and @AnDyX here at xda, i've ported erasmux' smartassV2-goveror to a kernel-module for Defy Mini.

It's easy to use:

1. download the attached zip
2. place the defymini_smartass2.ko anywhere on your defy mini (i prefer /system/lib/modules)
3. install the module

Code:
insmod /system/lib/modules/defymini_smartass2.ko
4. start a tool like no-frills cpu-control
5. choose smartassV2-governor, 245min / 600 max.

ToDo:
* create init.d - script:
- which detects current (overclocked?) max-speed
- loads smartass-module then
- changes governor to smartass with detected max-speed

Please try it and give feedback, i hope, there is a little more batterylife now.

Regards,
Bernd.Defy!

Is it also working for defy? or why is it on this forum?
12th August 2013, 01:30 AM   |  #3  
OP Member
Thanks Meter: 40
 
64 posts
Join Date:Joined: Feb 2013
Sorry, just for Defy Mini. There is no special subforum for the mini, so this one seems to fit.


Sent from my XT320 using xda app-developers app
12th August 2013, 03:38 PM   |  #4  
rootdefyxt320's Avatar
Senior Member
Flag Sydney, NSW
Thanks Meter: 380
 
412 posts
Join Date:Joined: Oct 2012
More
@Bernd.Defy You can load the module on boot by using an app called Set Xperia which works for me to load the smartassV2 governor on boot.

https://play.google.com/store/apps/d...teks.org&hl=en

The smartassV2 governor has a delay on waking up but otherwise this governor gives you better battery performance.
The Following User Says Thank You to rootdefyxt320 For This Useful Post: [ View ]
19th August 2013, 09:50 AM   |  #5  
OP Member
Thanks Meter: 40
 
64 posts
Join Date:Joined: Feb 2013
Quote:
Originally Posted by rootdefyxt320

@Bernd.Defy You can load the module on boot by using an app called Set Xperia which works for me to load the smartassV2 governor on boot.

https://play.google.com/store/apps/d...teks.org&hl=en

The smartassV2 governor has a delay on waking up but otherwise this governor gives you better battery performance.

Thank you for your information about SetXperia. I already use another tool by inteks (developer of setXperia) - SystemCleanup. I was in contact with him, and he added the possibility to move system-apps to /flex-partition in this tool. After removeing all the bloat from /flex partition, there wera ~60MB of space there. So, i took all my "important" apps, made them system-apps (inkl. odexing to prevent creating files in /data/dalvik-cache) and moved them to /flex. What system cleanup does is create a symlink in /system/app to /flex/app, similar to link2SD, but without the need of an 2nd partition on sdcard.

For the governor: i created a little init.d-script to load and set the governor at boot. Works great.
The Following User Says Thank You to Bernd.Defy For This Useful Post: [ View ]
21st August 2013, 05:03 PM   |  #6  
Guitwo2's Avatar
Senior Member
Flag Marseille
Thanks Meter: 73
 
285 posts
Join Date:Joined: Jul 2012
More
Nice module. Seems to work fine.
I'll just add in the 66ocmodule script what's necessary to load it on boot.

---------- Post added at 05:03 PM ---------- Previous post was at 04:48 PM ----------

Quote:
Originally Posted by Bernd.Defy

After removeing all the bloat from /flex partition, there wera ~60MB of space there. So, i took all my "important" apps, made them system-apps (inkl. odexing to prevent creating files in /data/dalvik-cache) and moved them to /flex. What system cleanup does is create a symlink in /system/app to /flex/app, similar to link2SD, but without the need of an 2nd partition on sdcard.

I'm iterrested in doing that as well.
Could you please develop this sentence ?
Quote:
Originally Posted by Bernd.Defy

(inkl. odexing to prevent creating files in /data/dalvik-cache)

21st August 2013, 09:24 PM   |  #7  
OP Member
Thanks Meter: 40
 
64 posts
Join Date:Joined: Feb 2013
Quote:
Originally Posted by Guitwo2

Nice module. Seems to work fine.
I'll just add in the 66ocmodule script what's necessary to load it on boot.

That's what i put in my init.d-script:
Code:
#!/system/bin/sh 

insmod /system/lib/modules/defymini_smartass2.ko
echo "smartassV2" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 245760 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
Quote:
Originally Posted by Guitwo2

I'm iterrested in doing that as well.
Could you please develop this sentence ?

Slightly OT:

I played around a little with /system/app and /flex/app and what i found out is, that you can't install anything to /flex/app directly, but this folder behaves like a second /system/app, like an appendix. So i tried to move apps from /system/app to /flex/app and - it worked. I moved them directly (and did not create a symlink in /flex/app), and after reboot, all apps were still working.

So this is what i did for all important apps that i don't want to Link2SD (via Link2SD ):

1. removed all bloat from /flex/app --> 60 MB free
2. moved all system-apps, that will probably never update, to /flex/app (for example phone.[apk|odex], Calendar*.*, ...)
3. used SystemCleanup to convert "normal" apps to odexed system apps. If you odex these apps, they store their odex (in general the same as a dalvik-cache-file) in /system/app, not in data-partition. Caution! Some apps do not work after converting. I converted the following apps to odexed system-apps with success: Holo Launcher, Playstore, K9 mail, SuperUser, Wetter.com (guess where i'm from! ), CpuSpy, Hacker's Keyboard, Link2SD)

When there are updates for these "system-apps", then i use SystemCleanup again and integrate the update in the system-app and odex it again.

HTH,
Bernd.Defy
The Following 2 Users Say Thank You to Bernd.Defy For This Useful Post: [ View ]
3rd November 2013, 10:20 PM   |  #8  
Senior Member
Thanks Meter: 32
 
132 posts
Join Date:Joined: Dec 2012
More
@Bernd.Defy, first congratulation for your consistent job. You (or someone else) may tell me if there are any apps originally in flex/app that we should NOT regarding as bloatware ? Which ? Thanks in advance.
3rd November 2013, 11:16 PM   |  #9  
OP Member
Thanks Meter: 40
 
64 posts
Join Date:Joined: Feb 2013
Quote:
Originally Posted by MauroSZ

...if there are any apps originally in flex/app that we should NOT regarding as bloatware ? Which ? Thanks in advance.

Hi MauroSZ,

here's the list of apps in flex/app:

ActivityGraph_tinboost_mdpi.apk
--> removable, it's part of this social-graph-widget-thing
ActivityWidget_tinboost_mdpi.jar
--> removable, it's part of this social-graph-widget-thing
BatteryManager_mdpi.apk
--> If removed, System-->Power does not work anymore (but this is not needed, you can see battery-usage in system-->telephone info-->battery)
blur-services.apk
--> thrown away
BlurUpdater.apk
--> thrown away
BotaSettings.apk
--> thrown away
CMP_MMCP_AmazonFR_NoFM_1.2.104.apk
--> thrown away
DashBoard_tinboost_mdpi.apk
--> Well, no bloat at all, but i don't need it.
FBAndroid-1.7.2_preload.apk
--> thrown away, wide, wide, wide away
FileManager.apk
--> no bloat, but there are better apps in the market
GenieWidget.apk
--> no bloat, google-news widget. did not use it
Gmail.apk
--> judge yourself.
GoogleBackupTransport_signed.apk
--> no bloat
GoogleCalendarSyncAdapter.apk
--> no bloat
GoogleContactsSyncAdapter.apk
--> no bloat
GoogleFeedback.apk
--> no bloat
GooglePartnerSetup.apk
--> no bloat, removed it anyway.
GoogleQuickSearchBox.apk
--> no bloat
LatinImeTutorial.apk
--> no bloat
Maps.apk
--> no bloat, but surely there is a newer one in /data/apps, so delete this one and move the other to here
MarketUpdater.apk
--> deleted it
MediaUploader.apk
--> deleted it
MotoAccuWeather2_App_tinboost_mdpi.apk
--> deleted it
MotoAccuWeather2_Service.apk
--> deleted it
MotoHome3D_tinboost_mdpi.apk
--> Moto Launcher, replaced it by holo launcher, so i deleted it
MotoLocationWidget_Simplified_small_tinboost_mdpi. apk
--> if you dont't like moto, you can consider this as bloat
MotoSearchEngine_tinboost_mdpi.apk
--> if you dont't like moto, you can consider this as bloat
MotoWeatherLiveWallpaper_tinboost_mdpi.apk
--> if you dont't like moto, you can consider this as bloat
MotoWeatherPictureRes_tinboost_mdpi.apk
--> if you dont't like moto, you can consider this as bloat
MusicGlobal_tinboost_mdpi.apk
--> bloat
MusicNowGlobal_tinboost_mdpi.apk
--> bloat
NetworkLocation.apk
--> no bloat
Phonesky.apk
--> playstore (old version, can be deleted after automatic update of playstore)
Quickoffice-Motorola-SP-5_0_104_V_Signed_2012-01-03_10-18-47.apk
--> no bloat, but i did'nt need it, so i deleted it
SetupLite.apk
--> if you dont't like moto, you can consider this as bloat
SocialGraphCallService.apk
--> if you dont't like moto, you can consider this as bloat
SocialGraphService.apk
--> if you dont't like moto, you can consider this as bloat
SocialGraphWidget_tinboost_mdpi.apk
--> if you dont't like moto, you can consider this as bloat
SocialWidget_tinboost_mdpi.jar
--> if you dont't like moto, you can consider this as bloat
Street.apk
--> streetview
Swype.apk
--> no bloat. nice keyboard (better than swype found in playstore, smaller, faster, better keyboard-layouts)
Talk.apk
--> i say: no bloat.
ToggleWidgetsGlobal_tinboost_mdpi.apk
--> nice toggles, but widgetsoid is better
Twitter-3.0.0-release.apk
--> bloat
Upgrader.apk
--> ?
VoiceSearch.apk
--> no bloat, if you like to talk to your phone
WorldClock.apk
--> no bloat, but useless for me
YouTube.apk
--> well, i say: bloat.

Remember, /flex behaves like /system: it's read only. Updates are written to /data/app, so move them to /flex/app and delete previous versions.
The Following 4 Users Say Thank You to Bernd.Defy For This Useful Post: [ View ]
13th June 2014, 07:51 PM   |  #10  
MadK9's Avatar
Senior Member
Thanks Meter: 27
 
157 posts
Join Date:Joined: Jul 2008
More
Question Operation not permitted
Hi,

Been a while since my last visit here...
I did not succeed sending this command to my mini... I get "failed (Operation not permitted)" message in terminal emulator...
My folder permission is set to RW, but no luck...
Were do you think the problem may be?

Thanks a bunch!

Quote:
Originally Posted by Bernd.Defy

Hi there,

based on the work of @viulian and @AnDyX here at xda, i've ported erasmux' smartassV2-goveror to a kernel-module for Defy Mini.

It's easy to use:

1. download the attached zip
2. place the defymini_smartass2.ko anywhere on your defy mini (i prefer /system/lib/modules)
3. install the module

Code:
insmod /system/lib/modules/defymini_smartass2.ko
4. start a tool like no-frills cpu-control
5. choose smartassV2-governor, 245min / 600 max.

ToDo:
* create init.d - script:
- which detects current (overclocked?) max-speed
- loads smartass-module then
- changes governor to smartass with detected max-speed

Please try it and give feedback, i hope, there is a little more batterylife now.

Regards,
Bernd.Defy!


Post Reply Subscribe to Thread

Tags
defy mini, kernel module, smartass
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes