yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] existz:
Will you be releasing updaed sources anytime soon?
[Galaxy S I9000 Android Development] pinpong:
ok I'll test it for a while again. can you tell me what to do with the s_Script.zip do?
[Galaxy S I9000 Android Development] laststufo:
with the next release i'll deploy sources too
[Galaxy S I9000 Android Development] laststufo:
On the first post there is anything you need to know.
[Galaxy S I9000 Android Development] sideeffects:
Thanks for the new scripts. Before I was having issues with sound desynchronisation when watching videos due to the change in refresh rate.

I changed the VSF is Disabled echo to "400000" and it no longer dims when watching movies on vplayer. I tried 600Mhz first but it would still flash on and off during playback.

Does the script support non stock CPU values for example if i set 400005 will it still work for up to and including 400Mhz?

I also added the ramzswap disable script for the first time to try it out. It seems ramzswap is more optimal for multi tasking but the CPU overhead will slow down single heavy load applications like games. Is that a correct assumption?

Thanks for all the work:)
[Galaxy S I9000 Android Development] bossman74:
How can I change the value of /sys/devices/platform/s3cfb/VSF_enable from "1" (enabled) to "2" (disabled)?

I tried editing the file with "SU File Manager & Terminal" but it won't save the changes since it's read only.

:confused:
[Galaxy S I9000 Android Development] vanahaim:
Wow, thanks, VSF is now adult :-) I'm playing with my new toy now :-D I will post my experiences..
[Galaxy S I9000 Android Development] Jordiharrison:
Thanks for the update!

Listen to your own advice: Calm down and get reasonable.
[Galaxy S I9000 Android Development] shrooms90:
Great kernel. Really love it:)

Just one thing i cant undersand...

Could u explain me the the custom_freq.txt? What do i do with that? How do i use it?
[Galaxy S I9000 Android Development] Jodelaplaya:
Let's try your kernel :)
[Galaxy S I9000 Android Development] gon9999:
I've tried it with rootexplorer, works fine...
[Galaxy S I9000 Android Development] grokon:
on my side no success with root explorer... so i've done:

adb pull /sys/devices/platform/s3cfb/VSF_enable

I edited it with notepad then (remplaced 1 by 2)

adb push VSF_enable /sys/devices/platform/s3cfb/VSF_enable

works fine
[Galaxy S I9000 Android Development] shrooms90:
How about downloading s scripts and put disable vsf into init.d folder?
[Galaxy S I9000 Android Development] johan8:
Hi Laststufo,

Your kernel is so good !

Would you add "hpcall" to your kernel ?

So listen call in headphone, and talk use handset mic, just like iphone.

The source is here http://xdaforums.com/showthread.php?t=808286

And would you also port your kernel to i897 ?

Tks a lot.
[Galaxy S I9000 Android Development] gravityz3r0:
Cool, i've been looking for this for ages. Will be great if it could be implemented! :D
[Galaxy S I9000 Android Development] bossman74:
Is it supposed to be in /etc/ ?

I can't find init.d
[Galaxy S I9000 Android Development] Jodelaplaya:
The luminosity changes every 5 seconds. And at 0% It is very high .. Is it normal ?(4.7.0)
[Galaxy S I9000 Android Development] atomek1000:
I have it too..It is really annoying!

Could you fix it?
[Galaxy S I9000 Android Development] shrooms90:
Yes should be in /etc

Try if it works if u just create a folder named init.d within /etc

With that ur settings are aplyed at boot
[Galaxy S I9000 Android Development] bossman74:
Alright, I created the folder "/etc/init.d" copied S_VSF_disable into it, rebooted the phone, but it's still enabled.

Am I doing something wrong ?
[Galaxy S I9000 Android Development] grokon:
I just don't know how :) I've simply used what i knew...

(I am really not linux aware but i've used adb pretty often)
[Galaxy S I9000 Android Development] °Dexter°:
What's lcd color?

I put script into init.d,but can't see any difference...
[Galaxy S I9000 Android Development] Pilotxxx:
not working....

all the scripts not workin from ths init.d...
[Galaxy S I9000 Android Development] habylab:
How does this compare to Hardcores? I need UV, and I can with this.

Sent from my ever changing Rom (Doc or Darky) Galaxy S
[Galaxy S I9000 Android Development] Mortify1:
Are you creating or using /ect/init.d in root folder?
[Galaxy S I9000 Android Development] bossman74:
I created it in the root folder, then copied the disable script into it.
[Galaxy S I9000 Android Development] zacharias.maladroit:
hey, you always need to have the last word - don't ya ?

and: I was perfectly calm and reasonable - before you posted

that got my blood pressure a little bit higher :rolleyes:

(just kidding ;) )

anyways: it's like in kindergarten why do folks in here need to (practically) post the same message over and over again - even if someone just had posted it above them ? :(

@those having problems with the /ect/init.d scripts:

are those executable ?

you might need to do an chmod 755 on them

e.g. chmod 755 /system/etc/init.d/S_VSF_disable
[Galaxy S I9000 Android Development] wcg707:
I'm on 4.7.0 and having this irritating problem and I'm not sure what is at fault. Brightness and dimmer seems to be changing too often (every few seconds). Video player no longer able to have a stable brightness even when it is set to manual. Is this due to the 2secs video adjustment?

Normal screen display gets dimmer even when at the same location. It brightens up if you touch the screen. You need to keep touching the screen to stay at the same brightness. I don't have this when I was using 4.6.4. Will run further test with few releases and update if this is due to some tweaking done on the latter kernels.
[Galaxy S I9000 Android Development] laststufo:
Stop write if you do not know what are you speacking about... READ FIRST POST !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[Galaxy S I9000 Android Development] wcg707:
Well I read from 4.6.4 onwards. It doesn't say anything about the symptoms I'm having but it said a few things Light sensor polling interval changed to 2s instead of 0.5s,

Light sensor sensitivity, Better display light usage etc..

Are you saying that what you have done is that to force the brightness down a few levels? What if you want to have the full brightness and you are plug-in to the charger? Especially if you are driving in bright sunlight and car charger on.

And if I read wrongly, then you have to enlighten me, which part should I read and what should I do to remove this display issue.

Thank you sifu.
[Galaxy S I9000 Android Development] nitr8:
- VSF (Variable Screen Frequency) : Screen frequency go from 60hz (stock frequency) down to 25hz to maximize battery life. Frequency return to 60hz after a button/screen press or CPU load are more than or equal to 1ghz. Frequency return down to 60hz after 800ms.

It clearly states whats going on. This is not a display issue like you think, if you dont know what is going on i suggest you return to a stock kernel....
[Galaxy S I9000 Android Development] wcg707:
Thanks for the clearing this. I will apply VSF disable then.
[Galaxy S I9000 Android Development] touness69:
I'm new in this kernel and wanna now if it really stay safe or at least stable to overclock our gs to such frequencies like 1400Mhz ? or up? Is there anyone here that is doing this OC as a daily driver , and how is it going ?

Also I Want to know if it include the latest K12q from hardcore ?

Because I was on trasig's kernel and liked the OC, then I put speedmod and liked the 500Hz feature so I guess youre kernel is what includes both, doesn't it ?

Thanks in advance
[Galaxy S I9000 Android Development] HKcow:
The kernel is very good and stable. And I have applie VSF.

However I have a question. It seems the the way how he screen adjust the brightness level is not smooth. i.e. everytie if adjustment is required, the screen will first become very dim & dark, and after 0.5sec it return to the appropriate level. Therefore I see the screen is somewhat flashing essecially when I am using the phone in enviornment with changing light source. If I use stock kernel, the screen will only adopt to the new level, but won't dim to a very dark level before adjust to the new level of brigthness.

Could you please check on this?
[Galaxy S I9000 Android Development] johan8:
Oc is depends on the 'quality' of your "machine",

mine won't run stable over 1300Mhz,

but some people can OC up to 1600Mhz....

This kernel is different from Hardcore's Speedmod, they are different thing.

Even some major parts are the same....

Will you ask McDonald's cheese-burger included in Burger King's !?

Yes, they included beef.

Ok just kidding, you can say it is included but not totally the same.

this kernel HZ is 300 and User 150HZ,

it is mentioned in the first page, take a look.
[Galaxy S I9000 Android Development] mazroui:
ooo yea... flashed the kernal and my first impressions were sweeeeeeeet ^_^

do i need to config any settings or are defaults all good ?

i just noticed a small something, when the screen brightness is set down low, every minute or 2 the screen would go pretty dark for like 0.1-0.3 seconds and back to the screen brightness set, is it supposed to do that ?

changing between light sources changes the screen brightness much better now(faster)

cpu still likes to operate on low freqs when idle (excellent)

guess i dont need those new files in S_scripts but was wondering if i should add the S_LCD_Color_Gain.sh ...... do i need it or is it not required ( any info on what it does would be much appreciatted )
[Galaxy S I9000 Android Development] wcg707:
I did raise this before and I was told that I don't know what I'm talking about. Anyway after getting a clear explanation from nitr8 and disable VSF, the kernel is now as good as ever. Personally, I don't think VSF is practical to use if it keeps going up and down from 60-25-60, especially if you already have screen timeout at 15 or 30 secs. VSF apparently overwrite manual settings of individual apps too, it will dim the apps brightness setting unless you touch the screen. It is not practical if you reading GPS/Maps or doing something that doesn't require you to touch the screen.

As for VSF giving extra battery life, yes it does if you like to set screen timeout to more than a minute and unlock it every other 10 minutes or less.

For me, VSF disable should be the default instead of enable being default.
[Galaxy S I9000 Android Development] Jodelaplaya:
How can we disable the "brightness changinh frequency". I know that it's not an issue but it's very boring..
[Galaxy S I9000 Android Development] hatori:
U can disable by using the script in the first post.
[Galaxy S I9000 Android Development] Jodelaplaya:
Thanh's I did not saw this.
[Galaxy S I9000 Android Development] mazroui:
ur right wcg707

dont forget this is a NEW approach and such things as "perfect use" are impossible, as for ur type of use , u would very much benefit with VSF off

as for me a flicker every once in a while aint a big deal, my screen timeout is set on 10 mins and usually have the screen on if it wasn't keylocked and screen off in my pocket. All i know is its an excellent idea in early stages and growing , progression is at a really good pace and all we can do is point out the bad things to be able to have all the goodness in upcoming versions. All the thanx goes to Laststufo for his hard work and whoever helped

im pretty sure u do and whoever replied probably got confused with ur post and the other constant complains about the problem, people tend to skim thru posts and not read them thoroughly (im pretty sure someone did test the kernal enough knowing that problem was there and probably wanted to know what people think before applying his fix ( that way everyone's happy ^_^ i guess )
[Galaxy S I9000 Android Development] IntExCZ:
Laststufo, great work!

First thing that I did after update was disabling the crappy VSF feature and now the kernel is awesome again! :)

Thank you!
[Galaxy S I9000 Android Development] adixus:
if disable vsf...in next restar vsf is enable.How can fix that?
[Galaxy S I9000 Android Development] touness69:
Thanks for the reply ! But is there a 500Hz version of this kernel ? Because if not I will stick to speedmod as I would really miss the super smoothness that it gives.

Thanks anyway
[Galaxy S I9000 Android Development] °Dexter°:
Do you think vsf is not-so-useful with 30 sec timeout,then?

I'm trying to set it up fine,but if it's a waste of time i'll just disable it. :D
[Galaxy S I9000 Android Development] Tantrico I:
What is the best setting for lagfix ? All in ext 2 ?
[Galaxy S I9000 Android Development] IntExCZ:
Please, people, read first posts. :rolleyes:

There are all information that you need!
[Galaxy S I9000 Android Development] developer58:
No, he's got a point.

All changes made to config files are lost on reboot.

How can?
[Galaxy S I9000 Android Development] ickyboo:
I'm tearing my hair out. I can't disable vsf. Edited the file and put a 2 in there using text viewer in root explorer. After reboot it defaults back to 1. Also set my system to rw but nothing works. I love this kernel but since vsf was install its driving me ape crazy. Next thing I did was make a blank vsf enable file with 2 inside it to replace old file but no go. Even changed file permission. Starting to think this kernel has problems with Darkys rom . Going back to 4.6.8 AGAIN. Please Mr dev man can you make the setting to disable vsf a cwm setting or make a kernel without vsf as its mote problems then its worth

sent from the third rock from the sun
[Galaxy S I9000 Android Development] ickyboo:
That's exactly what is driving me insane

sent from the third rock from the sun
[Galaxy S I9000 Android Development] ramas123:
If you want to disable VSF put S_VSF_Disable.sh from S_scripts.zip into you /etc/init.d directory

1. download file S_scripts.zip to your PC from 1 post

2. extract file S_VSF_Disable.sh fom .zip

3. connect your phone, to PC

4. copy extracted file S_VSF_Disable.sh to your phones memory.

5. open Root Explorer in your phone, tick mount r/w, select file S_VSF_Disable.sh and copy it into /etc/init.d directory.

6. check if file S_VSF_Disable.sh copied in /etc/init.d directory

7. reboot your phone
[Galaxy S I9000 Android Development] zurchpet:
The sysfs is a virtual file system, that is reseted every time you reboot.

It isn't actually files that you are manipulating here. It is an interface to change kernel parameters on runtime. That is why you have to have a startup script in /etc/init.d that disables VFS every time you boot your phone.

To change the "file" and reboot means, you've changed it only as long as the kernel is running. as soon as it is restarted the defaults are loaded again.

Try the init.d scripts from first post to achieve what you want.
[Galaxy S I9000 Android Development] wcg707:
In most cases the init.d is not in /etc, you need to create it with root explorer. Then copy the disable vsf script into that folder.

It should last forever in your reboot. Also /etc and /system/etc are the same, just a symbolic link. So you can create in either one.

For me, I only use 2 scripts , disable ramz and vsf.
[Galaxy S I9000 Android Development] ickyboo:
Ahh. Thanks for that explaination. Thanks again

sent from the third rock from the sun
[Galaxy S I9000 Android Development] ickyboo:
Thanks guys for clearly explaining how to disable vsf as first page wasn't clear at all

sent from the third rock from the sun
[Galaxy S I9000 Android Development] developer58:
Thanks i got it. I thought editing the files would do, but the values are set by the shell commands.
[Galaxy S I9000 Android Development] jeebspawnshop:
Dunno why some people say things like "VSF is terrible" or "useless VSF".

It may be useless to YOU, but it's a feature which you can choose to use, or not. Don't paint it in a negative light because YOU don't find it useful; that just degrades the hard (and magnificent) work that laststufo is doing for you. And he does it without asking for anything in return.

So, in closing, either you give constructive criticism, or get the f**k out.
[Galaxy S I9000 Android Development] johan8:
You better try yourself.

I've used speedmod, but I don't feel it is super smooth.
[Galaxy S I9000 Android Development] johan8:
You better forget the old age ext2.
[Galaxy S I9000 Android Development] johan8:
These are BOOT SCRIPT, they will execute during boot time.

Or, you can run it manually in "shell" after bootup.

The scripts won't run itself.

Or, edit "/sys/devices/platform/s3cfb/VSF_enable" manually.

It is also what the script do.

You got to know better what is linux shell script,

in fact VSF is quite useful.
[Galaxy S I9000 Android Development] bossman74:
I found where I did wrong, instead of "

i

nit.d" I created a fodler named "

I

nit.d" the capital "I" was the problem.
[Galaxy S I9000 Android Development] suntzu123:
Is it possible to set not 25hz but 30-40hz all the time?
[Galaxy S I9000 Android Development] Jodelaplaya:
can we have a brightness darker with a script ? (like in speedmod kernel) but not VSF.
[Galaxy S I9000 Android Development] shrooms90:
Use vsf @37 hz nd use the lcd colour script then it will just be like a darker screen. Cam is not flickering aswell @37hz
[Galaxy S I9000 Android Development] vanahaim:
Set the CPU/display frequency to your max in appropriate script.

So, after a day of hard testing I have to say VSF is brilliant when you find the optional settings to yours eyes.. I have no complaints :)
[Galaxy S I9000 Android Development] touness69:
Really ? Because for me even with the other OC kernel to 1.2ghz or up with stock 250hz values, I feel speedmod with its 500hz value can be smoother at time and it is running at stock 1ghz cpu clock speed...

So to come back to what I was saying about the safety of overclocking to 1.3ghz and up with this kernel, I was worried because in the datasheet and even in the opinion of the creator of the overclocking thing (rasdeep) it is strongly dangerous to push overvolting up to a certain limit like this kernel do since 1.3ghz configuration...

so I wonder what kind of damages can be done to the phone when you use this kernel with 1.3ghz+ OC and this 1.5V value ??
[Galaxy S I9000 Android Development] gravityz3r0:
Just a bump up for awareness, i noticed that it's been implemented in hardcore's kernel. I'd really like this in the next release! Thanks in advance laststufo!
[Galaxy S I9000 Android Development] cheesy87:
Hey my english is bad^^

when activated after a time vsf comes a flicker..
[Galaxy S I9000 Android Development] shrooms90:
Bump
[Galaxy S I9000 Android Development] laststufo:
Version 4_7_1 is OUT !!!

Version 4_7_1 STABLE (2011-01-27)

- Added support for voice calls through headphones

- Enable color gain only on video sync (better battery usage)

- Fix a "Color Gain" Bug

- New sysfs file :

LCD_max_screen_freq (Max screen frequency on normal use)​
[Galaxy S I9000 Android Development] grokon:
Just installed then rolled back...

"out of the box" the screen was "waving" from white to yellowish strangely... mainly with white backgroung...

maybe it was another setting that I just have to adjust but...
[Galaxy S I9000 Android Development] Jodelaplaya:
Me too the screen becomes yellow.. too Strange.

Just have a question : can you add the hardcore's brightness fix in a future release ?

Thank's
[Galaxy S I9000 Android Development] laststufo:
No.. I try it some time ago.. I do nt like it..
[Galaxy S I9000 Android Development] Jodelaplaya:
Ok it's the only desavantage of your kernel (for shure it's just my opinion).

And the yellow screen is an issue or we.have to change something? (Settings or script)
[Galaxy S I9000 Android Development] judhas:
Same things...
[Galaxy S I9000 Android Development] developer58:
All works OK, except for the camera.

Any idea?
[Galaxy S I9000 Android Development] TrOjAnUK:
Settings > About still showing 4.7.0 ;)

TrOjAn
[Galaxy S I9000 Android Development] alxdadev:
I have also the the camera error

SOK@4_7_0#1292

but used the following file for flashing

SO_zImage_opt_ext_root_V4_7_1-CWM.zip
[Galaxy S I9000 Android Development] touness69:
Uh even video playback don't work for me (stock js3), I have only the sound playing (talk about an issue!)

Well this looks like a no go for me *gone back to speedmod until fix*
[Galaxy S I9000 Android Development] chadouming:
For everyone unable to use the script

To everyone unable to use the script given with this kernel, I suggest you to get Sgstools, to put the content of the .sh file in a .txt, put this text file into Sgstools folder on internal sd card and then run them with the program. Use the option apply script then "script name.txt". Worked for me on 4.7.0 and 4.7.1. :D
[Galaxy S I9000 Android Development] cnn888:
confirmed,

video playback and camera failed on 4.7.1
[Galaxy S I9000 Android Development] Freexter:
i can confirm it too

and when the screen reduces brightness after 3 seconds of inactivity the color changes from grey to blue sometimes
[Galaxy S I9000 Android Development] Arise:
Hi, I see that you take suggestions from people here.

Can you try to implement USB OTG Host mode support in the kernel? So we can connect mices, keyboards and most important USB memory sticks to the phone?
[Galaxy S I9000 Android Development] AmunReify:
And even the "disable VSF script" doesn't change it... it's a little bit annoying, hope it will be fixed soon.

Best kernel for now :)

Great work!

EDIT: I can also confirm the video playback bug.
[Galaxy S I9000 Android Development] Flynny75:
Well to implement it, someone first has to get it working. Its working on the Nexus One, thats it. Not even working for Nexus S. There is a dedicated thread for it here.

+1 for the camera bug, flashing back to speedmod fixes it again but the phone feels so much slower... Hope you can fix. This will be the best kernel IMHO when the camera/video playback bugs are fixed and the VSF is perfected
[Galaxy S I9000 Android Development] Rosa Elefant:
Hmm, flashing this over Advanced Voodoo gets me stuck in a reboot loop...

Back to the latter then.
[Galaxy S I9000 Android Development] hensk:
+1

8 chara
[Galaxy S I9000 Android Development] Mortify1:
*hen on 4.7.0 or 4.7.1 with VSF disabled, the colors on my screen are flickering when typing... It's not very noticeable at a glance but when really looking at the screen it flickers between a yellowish and blue at very quick intervals... Ive had to switch to Speedmod for now because its so irritating
[Galaxy S I9000 Android Development] Niekjuh:
Hello,

I've installed the newest version of this kernel and trying to OC it to 1.6 ghz.

Every time i do this the phone freezes, do i have to make a file for voltages or something?

Grtz
[Galaxy S I9000 Android Development] °Dexter°:
1600 is way too high,mate...you should have been extremely lucky to get such a cpu...

Just stay around 1200 MHz,try carefully and don't burn everything :D (search for xan's voltage apps for voltages,though,using more "normal" frequencies)
[Galaxy S I9000 Android Development] djkoa:
Better VSF - How could we do it better

Hi there. Isn't possible to test the sensors each 5sec to see if mobile moves? or use the proximity sensor...could be very nice, no? And easy to implement i think.

Cheers
[Galaxy S I9000 Android Development] Niekjuh:
O i thought that 1.6 was easy :D

The HD2 and Desire HD could make 1.5 easy too, because of the other chip i think.

Thnx anyway, back to a non oc kernell now, my phone wont boot @ 1.3 ghz , hehe
[Galaxy S I9000 Android Development] tzfrantic:
VSF_enable (to enable "1" or disable "2" VSF)

VSF_min_cpu_freq_to_change_screen_freq (To specify A CPU freq : - When CPU <= VSF is Enabled - When CPU > VSF is Disabled)

VSF_min_screen_freq (Min screen frequency)

VSF_timer_interval & VSF_timer_iterations_until_change (Screen set to lower freq after (VSF_timer_iterations_until_change) * (VSF_timer_interval in milliseconds))

LCD_color_gain & LCD_color_gain_low (see example script)

- Add 3 new script files to S_script.zip within default kernel values:

S_VSF_Disable.sh

S_VSF_Settings.sh

how can i use these i am confused i do i get these files to work