yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] sUsH667:
DevilSettinx init.d-script

to all of you who have problems with commandcenter and want to try it via an init.d-script, i've made one...

this script includes ALL settings that are included in the latest devil.json made by .:Crack:., so credits go to him, i just copypasted the stuff into a script and added some minor stuff by myself.

edit it to your likings, remove the .txt file extension and it is ready for use.

don't forget to change the permissions of the script (eg with root explorer) to rwxr-xr-x (or to the permissions all your other scripts located in init.d have) after you put it in /system/etc/init.d-folder!

you can see if and when the script was executed in a file called DevilSettinxExecuted.log in /data/local/.

further description, more details and instructions are included in the script.

changelog for V3.00rc:

added recovery-switcher (thx to stratosk!)

added uksm-setting

added setting for screen-refreshfrate

added setting for gpu-frequency

some corrections and other small changes

added alternative version that may help in case of problems due to not properly symlinked busybox (again thx to stratosk for the idea!)

changelog for V2.09b:

corrected some errors that version 2.09 had, sorry for inconvenience!

changelog for V2.09:

added fudgeswap-settings (though i would leave it standard, but hey, you choose)

added setting for deep idle-stats

changelog for V2.08:

renamed the execution-marker to DevilSettinxExecuted.log

DevilSettinxExecuted.log now shows date and time the script was executed.

changelog for V2.07:

changed destination for DevilSettinxExecuted.txt

changelog for V2.06:

based on devil.json from 27-05-2012

you now can check if the script was executed by checking if a file called DevilSettinxExecuted.txt is present in /data/local/

added detailed instructions to the script

fixed some typos

as always, try it at your own risk.

any suggestions welcome...

greetz,

sUsH

thx to:

DerTeufel1980 for the kernel

.:Crack:. for his devil.json

stratosk for his extencive help, without him the recovery-switcher wouldn't have been possible! thx, man!

dongfangri, Nick0703, Bejda, FadeFx for inspiration and general stuff

and of course all of you who gave positive feedback!
[Galaxy S I9000 Android Development] Nick0703:
Thanks, but it didn't work. I replaced the "??" with the correct value and nothing happened and I rebooted my phone.

Edit: Nevermind, it works. :D
[Galaxy S I9000 Android Development] dongfangri:
1. Don't forget to change the file's permission.

2. If you power off the phone. the ram setting will be activated after a new reboot. That means, you should reboot (hot start) the phone once more after power on (cold start).
[Galaxy S I9000 Android Development] vigaruhul:
wow ,thanks guys :D ,but where is the place for .json file? anywhere?or spesific place?
[Galaxy S I9000 Android Development] sUsH667:
should be something like

/mnt/sdcard/Android/data/com.asksven.commandcenter/files/devil.json

or maybe the respective folder in internal memory, like

data/data/com.asksven.commandcenter/files/devil.json

or something like that...

greetz,

sUsH
[Galaxy S I9000 Android Development] Nick0703:
Your script is working way better than Command Center!! You should post this post in the captivate thread. People over there also are getting the same problem.
[Galaxy S I9000 Android Development] sUsH667:
thx!

kay, i will do it.

greetz,

sUsH
[Galaxy S I9000 Android Development] donytsang:
How to select the ram size in the kernel? Is it in CWM or in the Command Centre?
[Galaxy S I9000 Android Development] Nick0703:
It's in Command Center. But I would recommend you to use the script that sUsH667 created because at some point Command Center might fail and your RAM setting will go back to normal.
[Galaxy S I9000 Android Development] fishears:
Anyone else getting no Deep Sleep with 0.94? My battery is being wiped out with the screen off...

I only get Deep Sleep if I disable Devil Idle (but I usually have that set on automatic)
[Galaxy S I9000 Android Development] kamalmawa:
Do you happened to have Bluetooth kill script in init.d ? If yes.. this known for causing no deep sleep

PS: for those who having trouble with memory setting not sticking after reboot.. I did some testing. I only encounter this problem if I switch off my phone completely. No problems with restart. I even flash the latest nightly then devil kernel after a cache & dalvik wipe, memory setting still remains intact.
[Galaxy S I9000 Android Development] fishears:
No. I use Bluetooth for hands free so I can't kill it
[Galaxy S I9000 Android Development] Abyv:
Hi all...lots of discussion about comman centre and scripts, stupid of me to ask..can someone plz help to go step by step.

Thanks
[Galaxy S I9000 Android Development] donytsang:
I tried the mentioned way to enable BigMem,

1. For CC, I find it auto reset to default Mem which is 367

2. For sUsH667's script, but somehow my script originally in int.d folder. After rebooting, it is auto-moved to a folder "backup" inside the int.d folder.

which is system/etc/int.d/backup

I have change to the right permission of the script file and I have deleted the backup folder and try again, still the same.

I am currently using CM9 nightly. THank!
[Galaxy S I9000 Android Development] DerTeufel1980:
I am back home again :)

Can you please attach the /boot.txt

Also, please attach /systrm/last_version.

The files should only be moved to backup at your first boot after installing the kernel.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Galaxy S I9000 Android Development] Bejda:
Hi DerTeufel :)

Hope you managed to forget us all (a little) and did have good times the last 3 days.

Can i ask what is the idea behind the last_version file in /system?
[Galaxy S I9000 Android Development] DerTeufel1980:
the last days were fun :)

the idea is: at boot, the file is read, and the version stored in it, compaered with the version the actual running kernel is having. if both match, everything ok :)

if they don't match (after the first boot after installing), all libs get copied and init.d moves to backup folder. then the actual version gets written to the last_version file. at next boot, actual version, and last_version match, and nothing has to be done :)
[Galaxy S I9000 Android Development] Bejda:
Interesting...sorry to welcome you with off-topic but you may know i'm searching here and there about cwmless bootloops issues :o

I noticed the boot time (time spent on kernel logo) is much shorter on 0.94 and was thinking it can be due to that file.

Anyway just now i was trying to flash Devil coming from midnight and had bootloops 4 times i tried...i put last_version file in /system and just flash 0.94 like i did before...and this time it booted fine (and fast on kernel logo)...

Just saying/talking to myself huh,thanks again for this great kernel ;)
[Galaxy S I9000 Android Development] DerTeufel1980:
Simply creating the file should not change anything, because its contents is important.

After first boot, it should get little faster, because version matches, and there is nothing to copy or move then.

All other speed improvements are due to the new initramfs from mialwe and stratosk.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Galaxy S I9000 Android Development] Bejda:
Oh thanks for answering.

Actually i put a 0.94 last_version file in /system before flashing,not a blank one.(I kept one from a log I've sent you previously).

I think of this cause the only last_kmsg i got that really seemed related to cmwless bootlps talked about this:

Internal error : oops : 17 PREEMPT

[Long serial numbers lines]

Unable to handle Kernel...virtual adress...

Kernel panic - not syncing fatal exception.rebootomg...

But it gives me another question...maybe it skipped copying some files cause of the last_version file presence and that's why it booted fine this time...

All possibilities and difficulties to grab infos on this "randoms" bootlps issues are giving me headaches sometimes :(

I'm hoping to have cwmless bootloops with Devil and recover from it by using Devil .tar then I could have related last_kmsg and .bak that could help,but i hadn't have any when staying with 0.94...since the presence of last_version file? Lol ;)

I know nothing but keep searching,thanks for your precisions.
[Galaxy S I9000 Android Development] yaatzek:
I'm using init.d script to set up devil, but how to check if it is correctly applied? I can see ram in system settings, but how to check other settings without using buggy cc? Are there any commands for terminal emulator?
[Galaxy S I9000 Android Development] Handeman707:
How i know the script & swap & ect. is working how i test that?....
[Galaxy S I9000 Android Development] Bejda:
A lot of things are in the second post,for swap there's a simple command via terminal emulator:free

You can find the path to the files involved too and go check with a root explorer if your values are well written on them.
[Galaxy S I9000 Android Development] sUsH667:
or if you're using my script you can look at it, all pathes to all settings that are included in crack's latest devil.json are written down inside it.
[Galaxy S I9000 Android Development] yahyoh:
go to /data u will find user.log just post it here ;)
[Galaxy S I9000 Android Development] yaatzek:
Read it myself :D thanks for the hint.
[Galaxy S I9000 Android Development] FadeFx:
Derteufel, hope you had a good time...

Any idea why scripts in /data/local/userinit.d do not work despite the useinit script is in init.d folder and is executed and the same script placed in init.d folder is executed as well? Also could we exclude the userinit script from being moved to backup?

------------------------------

tapatalked from Galaxy S
[Galaxy S I9000 Android Development] sUsH667:
or is there the possibility to exclude other specific, user-chosen scripts from being moved to backup? i think FadeFx asked that some pages ago before...

greetz,

sUsH
[Galaxy S I9000 Android Development] FadeFx:
Excluding userinit script would be the same, this way we could just put our needed scripts to /data/local/userinit.d/ and we are golden.

------------------------------

tapatalked from Galaxy S
[Galaxy S I9000 Android Development] DerTeufel1980:
can you link/attach me the userinit script? want to try it myself.

of course i could exclude specified files from moving, but this would make things much more complicated, and users would start to ask for each "important" script to exclude it from moving. also, placing all files in userinit.d would make the cleaning useless, or i would have to clean the userinit folder, too.

edit: maybe i can make it work the way, that files only get moved, if one is coming from another kernel.
[Galaxy S I9000 Android Development] gonsa:
and about NSTools sticking the governor after reboot?
[Galaxy S I9000 Android Development] KiRAdot47:
i have found a way to "enter" cc, no need to clear app cache or anything else

here are the steps:

- launch CC > if cc fails to respond, takes 1-2 sec to know (hold long back button to kill (if u have to option <hold to kill>))

- relaunch

- do this 3-4 times and you can enter cc :)
[Galaxy S I9000 Android Development] FadeFx:
This comes with stock cm9:

http://db.tt/gL9RpLEb

That's the purpose of that userinit script, this way user can decide which script should survive flashing over system. If this works, you would not have to exclude anything else.

------------------------------

tapatalked from Galaxy S
[Galaxy S I9000 Android Development] yahyoh:
same here i think using init.d scripts way better :p:rolleyes:
[Galaxy S I9000 Android Development] purpleraintoxicity:
offline charging

well i see that in 0.94 (didnt check this since 0.79 or so though)

if i power off the device and connect to charger, i only see the "loading" animation (the one with empty battery and the loading sign)

no green animation when charging goes on nor full battery. nothing :)

just keeps "loading" animation.

now i know as a fact that in earlier kernel that animation was working...

can it be Rom specific? cause i recently moved to miui
[Galaxy S I9000 Android Development] Kurre:
IIRC, for that battery_charging...qmg files are needed in /system/media. So first check that one..some roms lack of those.
[Galaxy S I9000 Android Development] sUsH667:
DevilSettinx init.d-script V2.06

i've updated my DevilSettinx-script.

changes:

you now can check if the script was executed by checking if a file called DevilSettinxExecuted.txt is present on your sdcard.

added detailed instructions to the script

fixed some typos

greetz,

sUsH
[Galaxy S I9000 Android Development] FadeFx:
Usually i put such files either to /data/local/ or /sdcard/data/ as i hate how app developers clutter root directory with stuff a user normally does not need to have there.

@DerTeufel do u think it is possible to get a testkernel without bootsplash, so we can see what is going on when bootlooping? Someone suggested this on bootloop thread, i just don't know if it is actually possible...

------------------------------

tapatalked from Galaxy S
[Galaxy S I9000 Android Development] edy4sure:
+1, now that would be a good idea :thumbup:
[Galaxy S I9000 Android Development] yahyoh:
2+

is there any way to make debugging work on boot maybe it will help with bootloop issue to see what happening with device and one time i think i was watching Adam Outler video and he was testing something like UART but it need special tools i think this will really help

here the video

http://www.youtube.com/watch?v=GGrFAU1sig8&list=UUMpqW1IPGv0g6rydrFQhMCA&index=8&feature=plcp

btw it never happened to me on aokp :D
[Galaxy S I9000 Android Development] DerTeufel1980:
I never thought about removing bootsplash. What do you think you can see?

I never had this bootloop till now, but i suppose that the init script gets corrupted.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Galaxy S I9000 Android Development] sUsH667:
good idea!!!

and maybe DerTeufel doesn't even have to remove bootsplash for this:

reading what you wrote, this and this came to my mind.

have tested and used these apps long time a go and they did what they should.

greetz,

sUsH
[Galaxy S I9000 Android Development] yahyoh:
i think this will not work if u have bootloop cuz this need to boot into system to get this apps work so when we had bootloop no booting into system we get stuck on boot loader screen :rolleyes:
[Galaxy S I9000 Android Development] sUsH667:
ups, yes, guess you're right...

damn shame, was a good idea, lol

greetz,

sUsH
[Galaxy S I9000 Android Development] Bejda:
I'd love to see such trying/searching/giving ideas discussion on the cwmless bootloops topic.
[Galaxy S I9000 Android Development] FadeFx:
This was discussed there, but someone needs to ask a kernel dev...

------------------------------

tapatalked from Galaxy S
[Galaxy S I9000 Android Development] DerTeufel1980:
What exactly is not working?

Sent from my I9000 running Android 4.03
[Galaxy S I9000 Android Development] jakTomas:
what are the config for bln app to keep the led light on after receiving a msg or missed call ,, thx for the help
[Galaxy S I9000 Android Development] jenablinsky:
thanks, installed the BLN version... but what changes between BLN, LED or LED2? what is better or what should i flash to get better performance?
[Galaxy S I9000 Android Development] purpleraintoxicity:
BLN needs the Nedlar's bln app.

Led2 is the fix for led version to. Make blinking work using nstools
[Galaxy S I9000 Android Development] purpleraintoxicity:
Hi.. I'm using the v14 didle kernel and it's a suddenly started to be on 1000cpu at all time.

My battery drains in 3 hours of idle, and the phone getting super hot.

All of that after a long great use if this kernel.

Weird, I'll try to do a clean reflash to see if it will be fixed

Edit : clean flash didn't help....
[Galaxy S I9000 Android Development] xBenny:
I had the same problem.Clear cache and dalvik cache solve my problem,but i dont use didle.
[Galaxy S I9000 Android Development] purpleraintoxicity:
I'll try.. For now seems like deleting Google+ solved the problem...?
[Galaxy S I9000 Android Development] strickyy:
It's running, but tuning anything, doesn't change the sound at all.
[Galaxy S I9000 Android Development] purpleraintoxicity:
Why don't you use the voodoo control pro settings? I it's better sound then dsp

Btw, nstools keeps "forgetting" the cpu settings, and showing "?" instead of the last configured settings
[Galaxy S I9000 Android Development] DerTeufel1980:
Try reflashing the kernel.

Is the? Everywhere? Or just lowest cpu speed?

Sent from my I9000 running Android 4.03
[Galaxy S I9000 Android Development] purpleraintoxicity:
this is it.

reflashed the kernel. tried also with Lippol's cleaning script.

keeps comming back.

im using the good old 14liveOC_didle version, the first one with stock colors.

without any moded framework.

it happening randomly, no reboot needed.

just everytime i open the app.

its nmot the app fault too, cause its never happened with stock. and ive reinstalled it and updated it.

thanx!
[Galaxy S I9000 Android Development] jakTomas:
bln isnt working ,,, after i flash the kernel with bln ,, i enable it ,, its not working ?
[Galaxy S I9000 Android Development] pckoloji:
great work! i installed usb host controller app from market in order to control USB OTG mode but unfortunately i don't have OTG cable to test it.

Anyone tried?

https://market.android.com/details?id=hu.sztupy.android.usbhostcontroller

Maybe you should add to OP about this app.
[Galaxy S I9000 Android Development] DerTeufel1980:
I've had this one or two times with glitch kernel. I think it has something to do with the "bug" from pawit's kernel, which does not use 100 mhz correct, but I am not sure.

Setting live_oc to 100% and reselecting the prefered min. and max. freq solved the problem for me.

are you using bln pro app? It's not working with free version (seems to be rom related, because it has been this way with cm7, too)
[Galaxy S I9000 Android Development] purpleraintoxicity:
Thanx, so you say that I shouldn't use LIVEOC?
[Galaxy S I9000 Android Development] thestudent00:
First i have to thanks to all devs for the great work for our sgs i9000 and thanks to the devs of this kernel. teufel makes a good work.

I use TH ICS buidl 14 and the devils kernel 3.1.9 #101 with BLN and DIDLE

i have experienced, that with the cm9 music app i do not have didle, if i use a third party music app than i have didle every time when i have my screen off. with the cm9 music app its the same as with the charger. i can't get didle and have to reboot to get it.

any one an idea about that? I want to use the cm9 music app but cant use it cause its drain my battery more than third party music apps. Perhaps i have intalled it in a wrong way. I put the apk with root explorer in a folder on my phone that i could install it. i don't remember wich folder it was. i read it on XDA.

Sent from my Transformer TF101
[Galaxy S I9000 Android Development] purpleraintoxicity:
what kernel exactly?

im ussing the #105 and didle isnt fully works
[Galaxy S I9000 Android Development] DerTeufel1980:
no, just for a moment. after the normal state is resored/was restored, i could reactivate live_oc without any further problems.

is it the first time, this is happening to you?
[Galaxy S I9000 Android Development] purpleraintoxicity:
Checked now with 3 different kernels.... The #105, and latest bln, and and the first...

This thing happened only with the #105 kernel.

Maybe it's this kernel who's messed up?

I just really need the didle, I'm listening to a lot of music and I can really see improvement in the battery life.

Any ideas.?
[Galaxy S I9000 Android Development] RolluS:
Hi, I'm new to this thread but use your kernel since it was on a deutsch forum.

Many thanks for the hard work of all persons involved in this project, it seems the most complete actually.

For the "? " issue, AFAIK I just selecting min and max for again, which are multiplied by liveoc value. For exemple, @110% min will be 110 mhz and max 1100... That sounds logical..

+ +

RolluS
[Galaxy S I9000 Android Development] FadeFx:
I hope to see some text like when Linux kernel boots on a pc. I doubt its the init script, as it is not always solved by a simple kernel flash, u get back recovery, but system boots to recovery only then.

------------------------------

tapatalked from Galaxy S
[Galaxy S I9000 Android Development] DerTeufel1980:
I'll look at the code this evening. At the moment I am not sure if it can be removed to see the command line.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Galaxy S I9000 Android Development] purpleraintoxicity:
Well, even though all m working well.l, Ram wont update after reboot...

Just stays at 378mb
[Galaxy S I9000 Android Development] flinkebernt:
Script for viewing devil2 settings

I have put together a bash script that displays information relevant to the devil2 kernel. It's just a quick-and-dirty script, but it's the output that's important :-)

It displays information on the settings that can be set through command line, init.d script or the command center app (so you can verify that it works) in a human-readable line by line form, so it can also be used for helping users having problems that could be because of strange settings or peculiar setups.

If you have suggestions or find that something is missing, just PM me.

To use it just download it, unzip and place it on your phone and run it via terminal emulator

sh dk.sh

or push it to your phone via adb and run it via adb shell

The screenshot shows how the output looks on my phone

Here's a zipped version:

https://www.dropbox.com/s/wm7lth8mm2ti8s6/dk.zip
[Galaxy S I9000 Android Development] Bejda:
@Flinkebernt,

Thanks I'd like to give it a try (mostly curiosity/learning,was just trying cat and other commands yesterday) but as the attachment is a .txt file i can't find a way to download it from my phone it only shows the text in a web page,could you zip it or else please?

I tried to copy/paste but it's not so simple for me (comes with end of lines errors).
[Galaxy S I9000 Android Development] flinkebernt:
Here's a link to a zipped (newer) version.

https://www.dropbox.com/s/wm7lth8mm2ti8s6/dk.zip
[Galaxy S I9000 Android Development] ghul21:
Hey

Exactly to what location we have to push on the phone?

thx
[Galaxy S I9000 Android Development] flinkebernt:
It doesn't matter where you put it, but I keep it in /sdcard for simplicity.

Just push it to /sdcard

adb push dk.sh /sdcard/

Remember the "/" at the end!

You can then run

adb shell
sh /sdcard/dk.sh

If you use adb you can also see that screen off min/max is working when the screen turns off.
[Galaxy S I9000 Android Development] pbecks1963:
info widget settings

Hello folks,

Just wanted to say that i use tasker/secure settings/minimalistic text to have a widget on-screen that shows me my settings/enviroment.

see attachment. In the screeny my system-info-page, top widget (minimalistic text) has, amongst other variables, nstools-info. Bottom widget is cool tool. I use tasker to "grep/cat/chmod" variables and use them in minimalistic text -widget.

di: deep idle

fc: fast charge

tw: touchwake

bln: back light notification

1 = on

Memtotal tells me if i am in xl/bm or stock mode
[Galaxy S I9000 Android Development] vitoski:
What widget you use to show swap information?

Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
[Galaxy S I9000 Android Development] ghul21:
Wroks perfect mate :D

b

Big thx :D

Wysłane z mojego GT-I9000 za pomocą Tapatalk
[Galaxy S I9000 Android Development] pbecks1963:
Do you mean that zram-thing? I have it set to zero but haven't put a variable in "minimalistic text". Maybe i will some day..

ps: as far as i understand, zram is (virtual) compressed ram which means that it takes the processor more time/effort to use this ram. Therefor i don't want it. (0) Please correct me if i am wrong.
[Galaxy S I9000 Android Development] vitoski:
I mean the bar with 599,40 from your screenshot-I thought it was swap:-)

Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
[Galaxy S I9000 Android Development] pbecks1963:
That's the amount (mb's) i have left on my data-account (provider-download-quota)