yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] ellesshoo:
+ 1.... You can have a separate timer for pin/pattern lock vs normal slide tab/rotary unlock. It's all the little things like this that keep me on cm7 vs all the miui alternatives. I have to use this device to much on a daily basis, other ROMs are fine but lack some of the small things that can add up to make a difference.
[Nexus S Android Development] simms22:
instead of writing an app to turn on/off the screen/button dimmers, this is how i do it. i use an app called gscripts. you enter your script in it one time and save it. then you can either open the app and run the script with one press, or you can just make a shortcut on the screen for that script. just press the icon and the script runs. i used some of my photos and made custom icons.. the violet flower turns off the screen dimmer, the yellowish/white flower turns on the screen dimmer, and the pinkish/white flower turns off the backlight buttons light. i didnt make a turn on the backlight buttons light because i dont need that :p
[Nexus S Android Development] morfic:
Was going to ask same. Seems to make most sense, just something that listens and toggles based on app needs.
[Nexus S Android Development] morfic:
Using shortcuts to scripts in sl4a is usually my approach to often needed script.

And if someone makes the app, you get rid of the shortcuts :-)
[Nexus S Android Development] simms22:
true. im not making an app, so for now these simple to use shortcuts :D
[Nexus S Android Development] Ezekeel:
I have looked and have not found a way for a background process to detect whether an app with this flag is currently active. But then again, I am a total newbie when it comes to the Android API.

That is an awesome app. I did not know such a thing existed. This makes disabling the screen dimmer for watching movies a breeze. One could write a simple script which changes the 'enabled' switch based on its current state, so one would only need a single icon to toggle the Screen Dimmer on/off.

This should do it:

if [ $(cat /sys/class/misc/screendimmer/enabled) == 1 ]; then
echo 0 > /sys/class/misc/screendimmer/enabled
else
echo 1 > /sys/class/misc/screendimmer/enabled
fi
[Nexus S Android Development] morfic:
sl4a seems to allow working with android API, i have not looked into it but it has the API lookup and everything iirc.

worth looking at, you can also install perl, python, lua and other plugins to script in the language of your choice. shell scripting is only the default.

sl4a -- scipting layer for android

http://code.google.com/p/android-scripting/
[Nexus S Android Development] dsellers2:
Do you have to reboot every time? If not I'd like to understand how to write the scripts.
[Nexus S Android Development] morfic:
No reboots needed.

That one line in his screenshot is the whole "script" :)
[Nexus S Android Development] simms22:
no rebooting. that script is to turn on the screen dimmer. replace the 1 with a 0 to turn it off.
[Nexus S Android Development] sombody:
Yes I agree and have mentioned in my OP. Thats one of the few things that I'm hoping morfic or MIUI devs can add since right now I am hooked with MIUI because of the 'small things' they have. :rolleyes:
[Nexus S Android Development] Maximilian Mary:
That's way too verbose (and understandable) for my tastes. :p

expr "(" $(cat /sys/class/misc/screendimmer/enabled) - 1 ")" \* -1 > /sys/class/misc/screendimmer/enabled
[Nexus S Android Development] simms22:
yup, that one works. thanks :)
[Nexus S Android Development] dario3040:
T__________T wat?
[Nexus S Android Development] Ezekeel:
Pah. Too many CPU cycles. You got a substraction and a multiplication while my code only needs a comparison (= substraction). Now get of my lawn. *Shakes fist in anger* ;)
[Nexus S Android Development] Maximilian Mary:
// Toggle screen dimmer between enabled (1) and disabled (0)

// dimmer_enabled_flag = (dimmer_enabled_flag - 1) * (-1)
[Nexus S Android Development] Maximilian Mary:
Bwahahaha.

I code like I talk. More brain cycles, fewer words. I'll admit it's lacking in input validation.
[Nexus S Android Development] melvinchng:
any new release of the dimmer kernel?
[Nexus S Android Development] HareyCarey:
On MIUI(latest) can't seem to make a shortcut to run the screendimmer scripts with Gscript lite. Is the paid version working on MIUI or has anyone tried Script Manager? With SM it says you can run at boot. Or would it be easier to just edit the file in init.d?
[Nexus S Android Development] superfloup:
Gscript works well on my MIUI. Go into edition mode and menu/add -> shortcut
[Nexus S Android Development] HareyCarey:
Edition mode is found where?

Edit: got it, thanks :)
[Nexus S Android Development] Pitrino:
Last Kang and last trinity is a perfect combo!!!! More than 1 day, with 3g enabled! Noemi the problem is TO solve the bld on i9023

Inviato dal mio Nexus S
[Nexus S Android Development] dario3040:
Actually I just read your post wrong ^^

I thought you didn't understand it :P
[Nexus S Android Development] dario3040:
RUN, THE GRAMMAR POLICE IS COMING!!! :rolleyes:
[Nexus S Android Development] HareyCarey:
*are :p
[Nexus S Android Development] dario3040:
Are you sure about that?
[Nexus S Android Development] HareyCarey:
Unless you said something that inflected a singular noun.
[Nexus S Android Development] dario3040:
Well, maybe I did ;)
[Nexus S Android Development] simms22:
ok, im not going to post anything here until the grammar/spelling nazis leave.. im afraid of them :(
[Nexus S Android Development] Maximilian Mary:
Them no matter. Me want bacon!
[Nexus S Android Development] droidance:
8/15 TUV11 seems most stable. I noticed I have many radio_dump files when I was using 8/19 version or other test kernels.

No radio_dump with 8/15 for about past 3 days after I switched back to this version.
[Nexus S Android Development] HareyCarey:
Have to sign on computer to remove apparently xda app won't let me for some reason
[Nexus S Android Development] HareyCarey:
I second this ^
[Nexus S Android Development] morfic:
Remove the image.
[Nexus S Android Development] HareyCarey:
Got it, that was the only image I had related to the Nazi party and I kind of threw that up without thinking about it. Apologies my man:o
[Nexus S Android Development] simms22:
bacon posted in the bacon thread :p
[Nexus S Android Development] morfic:
If you want to post pictures of grammar Nazis, find one of me.

I correct people's tweets.
[Nexus S Android Development] simms22:
is this you in the van :confused:
[Nexus S Android Development] alf69mi:
Just to say that TUV10 2408 is the best kernel i've tried so far.

Excellent battery life and not a single problem with miui 1.8.19.

Great Work!
[Nexus S Android Development] dario3040:
Ok*

I'm* x2

Also you forgot one dot after leave

O_O
[Nexus S Android Development] markovianmind:
I am not able to set different boot-screens using TUV11-Any-NS+4G-15082011 kernel atop of MIUI 1.8.26. What am I missing?

and what is the difference between TUV10 apart from clock speed? which will be more compatible with miui ?
[Nexus S Android Development] iamxeph:
Agreed. I've always had a bootloop with Trinity series, but not with TUV10 2408. So happy.
[Nexus S Android Development] eduke:
I agree, but with a bootloop, only one ... otherwise normal in an experimental kernel ... ;)
[Nexus S Android Development] HareyCarey:
I correct EVERYONE I am around constantly lol. I don't do it much on forums out of sheer laziness, but it irks me nonetheless.
[Nexus S Android Development] simms22:
wat yuo do speec?

out of fairness, there are too many non english speakers/writers here. many of them do a great job at getting their point across even though they are grammatically incorrect.
[Nexus S Android Development] Maximilian Mary:
+1

I'm learning to recognize a certain grammatical oddness that may indicate a lack of fluency rather than a deficiency in the little grey cells.
[Nexus S Android Development] simms22:
there you gough ;)
[Nexus S Android Development] Maximilian Mary:
Poor spelling, on the other hand, is a dead giveaway........

:p
[Nexus S Android Development] sinik420:
As is....when they think typing....like this helps us understand...

sent from my nexus s on a kang from simms
[Nexus S Android Development] dario3040:
Yea I notice that.

People who write: "Sorry for my bad English", even though their post had no grammatical errors.
[Nexus S Android Development] HareyCarey:
Yeah, most of them can speak better English than most Americans. This holds true especially for the area I am around lol.
[Nexus S Android Development] Maximilian Mary:
What do call someone who speaks two languages?

.

.

.

Bilingual.

What do call someone who speaks three languages?

.

.

.

Trilingual.

What do call someone who speaks only one language?

.

.

.
[Nexus S Android Development] Maximilian Mary:
.

American.
[Nexus S Android Development] morfic:
Since most naturalized Americans likely speak two languages, you must mean another, less generalized group.

Probably white, probably votes red, probably into teabagging.
[Nexus S Android Development] dario3040:
Haha, good one.

People in the Netherlands generally know many languages.
[Nexus S Android Development] dario3040:
The average American speaks 0.18 languages, I think that sums the whole thing up...
[Nexus S Android Development] melvinchng:
English, malay, Chinese, hokkien...

Accidentally sent from my Nexus S using XDA Premium App
[Nexus S Android Development] window7:
Same here. Haha. Except that I can even speak Cantonese, Foochow and Indonesian malay.
[Nexus S Android Development] philadelphiaTM:
i use brainmasters miui and the trinity uv10 kernel. display time out doesnt work (screen turns off after approx. 30sec) and the backlight of the buttons (backbutton usw) doesnt work... can somebody help me?

thanks!
[Nexus S Android Development] morfic:
What happens when you tap the screen 15 seconds after it turned off
[Nexus S Android Development] philadelphiaTM:


it turns on again
[Nexus S Android Development] morfic:
For testing, screen dimmer by Ezekeel is default ON.

It is set to turn off screen after 30secs.

It will LOCK after the time specified for display time out.

Edit the dimmer file in /etc/init.d/ to change the behaviour.

Comments should explain what to do.

Thanks for reporting screen dimmer works as designed in miui.
[Nexus S Android Development] philadelphiaTM:
thanks ill try. any idea about the button backlught problem?
[Nexus S Android Development] morfic:
Do they turn OFF early or never turn on?

The kernel also has a backlight dimmer that is default on.

It turns them off, those who would want them off for watching movies would be most likely to use this feature.

I have a new build in testing either way, will release it when I have some more feedback on it.

(Some time today)

The next kernel will have all dimmers default to off.
[Nexus S Android Development] barqers:
Hello everyone, I'm really wanting to try this Kernel.

So which one should I flash for maximum battery savings, with relatively similar performance to the stock kernel?

Thanks guys, I'm thoroughly reading the OP but am a little confused about the differences.
[Nexus S Android Development] dario3040:
This one saves battery, and rapes the stock one at the same time. (Better performance and battery life).
[Nexus S Android Development] morfic:
Depends on how daring you are.

If you are interested in experimental good to battery kernels, then flash this one:

http://goo.gl/hwt7f -- TUV10-Any-NS+4G-28082011Rammstein.zip

As far as my favorite from OP....not sure, the best are currently inline, and i plan to make this one the next OP TUV10 soon.
[Nexus S Android Development] morfic:
Guess you would want a TEUV88-Rammstein to give me feedback on that
[Nexus S Android Development] barqers:
Your help is GREATLY appreciated. Thank you VERY much Dario :)

I was reading this thread for about an hour trying to figure out which one to try lol, debating over all the different kernels.

I've got to say though that the ability for this kernel to be so diversified is amazing. It can apply to everyone out there.

So thank you to the developer and Dario for helping me put my phone into action :D
[Nexus S Android Development] jjhrrsn:
This the update you said you were posting today?
[Nexus S Android Development] morfic:
one of many, yes

Just keep in mind i chose the postfix Rammstein because the singer sets himself on fire on stage

calling things "XX" is so boring.
[Nexus S Android Development] barqers:
If I were to choose one of the experimentals, do you face any serious errors? If there are only minor errors I wouldn't be scared at all :P

Oh, does it matter that I'm using MIUI 1.8.26 ?

Or is that OK
[Nexus S Android Development] morfic:
The one i linked is even MIUI themed.

It's only boot logo and bootanimation that is different.

The kernel works well with MIUI.

And *ANYANDALL* OC kernels as much as UV kernels have the ability to destroy a phone.

Did i kill one yet? No. Just making sure you are aware of what the manufacturers think of it.
[Nexus S Android Development] brainmaster:
It works fine on my MIUI, I am testing it little bit longer now. But you need to edit the zip and delete the init.local.rc file since it interferes with my memory scripts.

@ morfic - Thanx for the kernel. Gonna give you more feedback soon.
[Nexus S Android Development] barqers:
Perfect, where do I find your rammstein TEUV-88?

I can experiment with that one :)

Edit: I found one on August 19. Is that the newest? I'll flash that one
[Nexus S Android Development] morfic:
Freshly uploaded: http://goo.gl/kfL3A

It is Trinity , not a MIUI themed one.
[Nexus S Android Development] morfic:
init.local.rc is gone (will affect future releases)

98tweak makes corrections to minfree instead of it anyway.

i can populate system/etc/init.d in the .zip per 'miui' or 'any', the difficulty there would be, it would negatively affect non-brainmaster miui users if they didn't get the file.
[Nexus S Android Development] barqers:
Awesome, ty

I will give the one you linked to a try and the TEUV88 a try.

Thank you for your responses :)
[Nexus S Android Development] brainmaster:
You don't need to delete the init.local.rc extra for the users here. I already stated in my thread that the users of my MIUI ROM should flash only the kernel zip's that I've provided in my ROM.

If anyone takes the one from here, its they're problem.

Thanx for pointing me to the Chinese battery indicators. New OTA coming later that fixes that.

So far I've fixed all of Chinese strings besides the Calendar app that is giving me headaches.
[Nexus S Android Development] coloxim:
lasti kernel is good for the kang?
[Nexus S Android Development] king23adrianc:
yup i just flashed the latest tuv10 with kang
[Nexus S Android Development] jjhrrsn:
Omg thanks been wanting teuv88 back
[Nexus S Android Development] barqers:
Just flashed the TEUV88 from August 28th. No force closes, slow initial boot (that's expected), very fast once loaded properly and as for battery life (not sure yet :P). But I was reading previous posts that said UV'ing too much can be bad for the battery?

I'm guessing TEUV88 is safe though so so far so good :) will report later on battery life!
[Nexus S Android Development] sinik420:
Better than the previous 88's on battery; I'm getting a much more consistent -1ma battery draw even with wifi on

sent from my nexus s on a kang from simms
[Nexus S Android Development] coloxim:
why i can't edit 95dimmers file?
[Nexus S Android Development] morfic:
Why back?

It was never gone :)
[Nexus S Android Development] jjhrrsn:
Haha yeah but you had the test kernel I had to use ;-) and new kernel is smoking just ran 3384 quad on TEUV88 and cm7 kang
[Nexus S Android Development] coloxim:
sorry...but the dimmer don't work?
[Nexus S Android Development] gotjazz:
hrm I don't get how people get consistent -1mA draws here. sersiously.

I know I used to have it months ago. but since then I switched kernels and roms so often.....

yesterday I did a clean wipe, installed a current cm7 nightly and tuv10. Well after removing all widgets, disabling wifi, bluetooth and nfc (and BEFORE restoring any mail accounts or apps beside the battery monitor) the BEST I've seen was -15. But that only after I left the phone alone for hours.

Does that mean my battery's shot? today I thought I'd try a non UV kernel in case - as some claim - uv sometimes hurts battery life. so I flashed t12. No improvement either. (even without using the full 1200mhz)

I disabled backing up settings in the cloud - all i synchronize are contacts and calendar. haven't even installed the facebook app yet.
[Nexus S Android Development] coloxim:
same for me...don't worry..
[Nexus S Android Development] morfic:
Edit /system/etc/init.d/95dimmer

Change 0s to 1s for the dimmers you want to enable.

Change the times. They are in ms, so add 3 0s to the seconds you want to set.
[Nexus S Android Development] morfic:
NS or NS4G?
[Nexus S Android Development] morfic:
The XX are dropped mostly because TEUV88 is done.

the current kernels are "Rammstein" because they are experimental in other ways.

Just fyi.
[Nexus S Android Development] coloxim:
I've done..but it's impossible change the file!!why?i can't edit the file..

in the previos I 've done it..

:confused:
[Nexus S Android Development] morfic:
Get rootexplorer

Navigate to /system/etc/init.d/

Tap the "mount r/w" button

Long press 95dimmer

Choose open in text editor

make the changes

Tap menu

Choose "save & exit"

Tap the "mount r/o" button

long press power

Choose reboot

Keep on normal

Tap ok
[Nexus S Android Development] SA-07:
or adb shell :D
[Nexus S Android Development] morfic:
No, adb shell is not for coloxim right now.

Unless you teach him how to use it.

All the way through.
[Nexus S Android Development] coloxim:
Thanks..done!!!

Inviato dal mio Nexus S usando Tapatalk
[Nexus S Android Development] dario3040:
Sound fun :P
[Nexus S Android Development] rony474:
excellent kernel .. maybe the one i will use for longer time :)
[Nexus S Android Development] morfic:
Depends on how long you can resist the lure of the T144.

(Miui themed build)

http://goo.gl/jxGXX
[Nexus S Android Development] gotjazz:
NS (9023) . Removed nfc completely and flashed ud launcher meanwhile. Both seemed to help but only a little. Btw: should a battery be calibrated after every kernel flash? Oh and thanks for the answer. And love your kernels. (not like my drain was on trinity only)
[Nexus S Android Development] morfic:
I never calibrate my battery, utter waste of time imho, as even with my frequent flashing, the battery meter tends to be accurate, worst case it may take a day/charge if i go from TEUV88 to T144 or something like that.
[Nexus S Android Development] coloxim:
i've a problem with the lst 10....

when i open the advanced settins wifi, the phone goes in crash..
[Nexus S Android Development] jjhrrsn:
Any plans to mess around with Ezekeels touch wake?
[Nexus S Android Development] morfic:
He has another mod?

Checking.
[Nexus S Android Development] Babydollll:
TUV1008282011 works perfectly (no surprise there ;) )

On to the newest T144.....
[Nexus S Android Development] morfic:
Ok, everyone who likes this kernel and likes all the dimmer/touch wake work Ezekeel does, go over to his threads and hit them thanks buttons for him.

Then find his referal links and sign up and install the software, so he can get the free space he gets for the *COMPLETED* referals.

Thanks.
[Nexus S Android Development] jjhrrsn:
Think found my answer. Going to help him out
[Nexus S Android Development] barqers:
Does anyone notice a difference in battery life between the 88 and 144 ?
[Nexus S Android Development] king23adrianc:
LOL ur pretty much asking which car saves more gas, a hybrid car or a performance car.
[Nexus S Android Development] locoboi187:
Bmw m3 saved more than a prius at the performance level. Who knows? ;)

Source: Top Gear <3

EVO 4g out!
[Nexus S Android Development] king23adrianc:
that i dunt know

but for sure higher horsepower cars uses more gas

source: from my gas usage of my cars
[Nexus S Android Development] Maximilian Mary:
If the headlights used 5-10 times more juice than the engine, you might not notice much difference between the two. Leave them idling with the lights off in the driveway, though, and the prius'll be banging the energizer bunny drums before long.
[Nexus S Android Development] iamxeph:
TEUV88-Any-NS+4G-28082011Rammstein works great on my NS. No bootloop at all.
[Nexus S Android Development] king23adrianc:
thats not true

even with or without headlights, and no matter on city or highway

higher hp will always use more gas than lower hp
[Nexus S Android Development] dario3040:
Them thanks buttons..??

You did that on purpose :P
[Nexus S Android Development] morfic:
I does as i do.
[Nexus S Android Development] droidance:
What could be the cause of lag when switching to different home screens?

The transition just isn't smooth anymore.

This wasn't an issue for awhile, but now it's back again.

I have the latest nightly kang + 0815 TUV11.
[Nexus S Android Development] dario3040:
What is that?
[Nexus S Android Development] bringonblink:
Turn high Res icons from launcher settings off

Sent from my Google Nexus S
[Nexus S Android Development] dario3040:
He said that he ran the latest kang :P

High res icons only work on MIUI.
[Nexus S Android Development] barqers:
True, but I was asking more along the lines of "how much extra battery juice does the 144 use over the 88?"

I was basically concerning myself with whether or not it's worth the performance jump to sacrifice some battery life (if it was a lot then imo no, if it was a little, then imo yes)
[Nexus S Android Development] dario3040:
Well, I got your answer.

1.44 Ghz rapes your battery, while 884Mhz makes it last maybe 2 days with conservative use.
[Nexus S Android Development] barqers:
Lmfao okay I'll stick with the 884Mhz :P

Thank you ! :D
[Nexus S Android Development] locoboi187:
Just wanted to share for fun if you are bored or something.

BMW M3 vs Toyota Prius (Top Gear)

http://www.youtube.com/watch?v=JmxUsGiGp3w
[Nexus S Android Development] king23adrianc:
u won't even drive a prius at the max speed as possible, thats just dumb
[Nexus S Android Development] cheech87:
The point that locoboi187 was trying to make is that more hp does not necessarily equate to lower efficiency. The same can be said when comparing two different phones. restricting a dual core powerhouse phone to a lower clock speed can be more efficient when attempting to match the performance of my NS running flat out.

Alas, we are talking about running different clocks on the same phone, so the analogy isn't quite so good.
[Nexus S Android Development] locoboi187:
come on, on the highway youre atleast going 60-70mph. that's stressful for the prius
[Nexus S Android Development] locoboi187:
I got bored and decide to talk to people on a different forum lol
[Nexus S Android Development] catchsomezz:
what timings are typical for the dimmer settings?
[Nexus S Android Development] Maximilian Mary:
My personal preference at the moment is:

backlightdimmer/enabled 1

backlightdimmer/delay 3000

screendimmer/enabled 1

screendimmer/delay 90000

-

Screen timeout: 5 minutes

Stay awake while charging: true
[Nexus S Android Development] rentaric:
Look for long enough and you'll find out :D
[Nexus S Android Development] dario3040:
Either it's supposed to be a 3d ball, or it's one of those optical illusion things (that make your sight fuzzy).
[Nexus S Android Development] catchsomezz:
Thanks Maximillian Mary!
[Nexus S Android Development] roshga:
hi morfic,

is the fsck implanted on the newer tuv10 and tuv88?

oh and a non-nfc tuv88 version would be cool :D

btw, after more than a week with the older tuv88 I just have to say that it's amazing to get to 17:00 with more then 50% battery, just freaking amazing!

flashed the newer one from yesterday, let's see those dimmers now :P
[Nexus S Android Development] simms22:
its a gif animation of a 3D ball spinning :p
[Nexus S Android Development] dario3040:
But why did you post it? ಠ_ಠ
[Nexus S Android Development] Kurupt1:
Gooooood work!