yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] Hexmaster93:
woah! why was bln removed?
[Nexus S Android Development] ellesshoo:
Call me crazy but i'm having a hard time figuring out the usefulness of the dimmers.

Screen dimmer: should be renamed screen timeout since it goes full black. What's the difference between this and setting up your display timeout & lock delay to accomplish this task. If it actually just dimmed the display to low it would make some sense.

Button dimmer: I get it, it's not ideal to have them on when watching a movie but for the 99.99% of the time when not watching a movie its annoying if you're in lighting where you can't see them. Also, the button brightness can be dimmed using the custom light levels under auto brightness in cm7.

I realize these are easily removed but i'm just wondering what people are finding to be so useful about them that I don't see.
[Nexus S Android Development] simms22:
well, my power button is just about dead, so the screen dimmer is pretty useful to me. instead of trying to use the power button to wake the device, i just tap on the screen.
[Nexus S Android Development] dsellers2:
Thanks for for the response.
[Nexus S Android Development] dsellers2:
Not sire how to get you the information you need but I ran into a problem where the screen was in an off state but jot locked. I truer pressing the power button but the screen remained black. But the menu keys lit up. I had to pull the battery.

I have the setting to 45 seconds on the dimmer

And screen timeput is set to 1 minute.

Am I doing something wrong? Or maybe a bug of some sort?
[Nexus S Android Development] reddv1:
Yeah that's a bug, it happens to me yesterday. If that happens again plug your phone into your PC and run logcat while trying to turn on the screen. Then send the log to Ezekeel so he can see what's going wrong.
[Nexus S Android Development] jjhrrsn:
Send it to morfic as happens to me sometimes and is most likely the kernel not the screen dimmer. I'm also using tuv88 as I love it too much
[Nexus S Android Development] Maximilian Mary:
If you set the screen dim level to 1% and put stay awake on, it basically does the same thing, but only when the phone is plugged in.

Changing the button dim levels in cm custom auto brightness settings does not actually do anything.
[Nexus S Android Development] morfic:
I never heard of it nor seen it before the dimmer was added.

It happened to me earlier today and i could unlock the screen, the haptic feedback the lockscreen gives when doing so occured, but the screen remained unlit.

Considering the dimmer is involved in turning off the light while keeping the touch screen active, it is likely that this bug involves the dimmer.

I made Ezekeel aware of it, and his time permitting, i am sure he will look into it. So far it occured on 2 devices i am aware of, and neither resulted in a log at the time.

Right now i will reap the benefits of his bugfixing skills and patch in working auto brightness.

Then we see if the screen repeats its behaviour when i am around a pc to "see" what it "says" when this happens.
[Nexus S Android Development] jjhrrsn:
Word I don't have my PC with me but has happened on both tuv11 And tuv88. Most commonly when charging but even today I took my phone out and it looked like I had a text with bln notification but was simply unresponsive, only way to fix was with a battery pull.
[Nexus S Android Development] dsellers2:
Yeah if it happens again I'll run a log if I'm near a PC. :)
[Nexus S Android Development] morfic:
The kernel will ship with it disabled, if you don't like it you will not have to use it.

Since it is a test kernel and everyone is a first time user, i enabled it on boot, just so people can test it without having to do anything up front.
[Nexus S Android Development] morfic:
http://goo.gl/YoyLI TUV10-Any-NS+4G-23082011z2

you woahed it back in ;)

I was so focused on the dimmers i didn't notice the BLN V9 code was incomplete wrt to the actual BLN function.

the lukis will have to deal with another round of miui bootlogo for tonight.

less and less issues, time for a new stable build set soon
[Nexus S Android Development] melvinchng:
I saw someone button is broken. So I just add my screen off bottom on the widgets in notification. And volumes rocker to wake.

Testing the latest uv right now.

And is there any effect of battery if we do not off the screen and just dim it.
[Nexus S Android Development] dario3040:
The reason the lock button is there is because unintended touches can come when it's in your pocket...

And mine works perfectly.
[Nexus S Android Development] simms22:
of course. thats why im using the lockscreen widget to turn the screen off, and the volume rocker wake option in cm to wake my device. but when the ns is sitting besides me on my desk top, the dimmer is nice.
[Nexus S Android Development] Tenhi:
It's fine now. I've flashed kernel with WIFI on. Just turned it off and restarted again. It's working now :). Thanks!
[Nexus S Android Development] tadaha:
does the CPU scale down if the screen is turned off by the dimmer?
[Nexus S Android Development] alf69mi:
@morfic

1. had the screen off dimmer problem this morning as well with this kern, dimmers disabled for now.

2. I am enjoying your new MIUI/MORFIC bootlogo and hope you will keep versions themed at least for MIUI and maybe CM7. One thought i had : would it be possible to include in the Kernel more then one 'morfic copyright' bootlogos to be choosen with a init.d script setting? This way only one kernel for different roms and proper themed bootlogos users can set individually.

3. TUV10 is the best kernel so far, hope you will keep it updated also for the phones having troubles with 88 and TUV11 with extreme UV and OC.
[Nexus S Android Development] coloxim:
I miss somethings...

the brightnees works?
[Nexus S Android Development] morfic:
Works for me.
[Nexus S Android Development] morfic:
Y'all can bug simms22 if he feels the tuv10z from 2408 is ready for posting, has one more Ezekeel screen dimmer fix.
[Nexus S Android Development] simms22:
a couple more hours for testing. so far so good.
[Nexus S Android Development] Maximilian Mary:
Ah, the blessed smell of fresh bacon frying.
[Nexus S Android Development] alf69mi:
We can help testing to reduce the wait times :)
[Nexus S Android Development] simms22:
tuv10z from 8/24/11 http://goo.gl/4sOl6

enjoy :D
[Nexus S Android Development] melvinchng:
Changelog? :-)
[Nexus S Android Development] dario3040:
Too much to say, just check Morfic's github, if your intelligence exceeds 60 you won't have any problems finding it.
[Nexus S Android Development] Maximilian Mary:
It freaked me out a little when the screen went black while booting. I'm not used to touching the screen to wake it up. :p
[Nexus S Android Development] king23adrianc:
can't wait for the 11 to come out :D
[Nexus S Android Development] simms22:
screen dimmer is fixed.
[Nexus S Android Development] dsellers2:
Hmmm time to go bug simms on google + :)
[Nexus S Android Development] window7:
Fresh bacon immediately went for bbq. The taste was superb!
[Nexus S Android Development] jjhrrsn:
Testing newest although going to miss 88 :( will post if any issues
[Nexus S Android Development] dsellers2:
While in the initd folder changing the time values for the dimmer script I noticed the memory (98Tweak) threshold script. Never noticed it before...where have I been? :/ Anyways I was just curious if anyone actually edits those default memory value Morfic setup? If so, please share what values have worked well for you. I'm very interested in hearing other Morfic kernel fans experiences with this particular script.

Thanks!
[Nexus S Android Development] simms22:
they were removed for a while, now theyre back ;)
[Nexus S Android Development] morfic:
Additional dimmer fixes from Ezekeel.

All those with a z in it will be dimmer revisions.

Once dimmer is complete /stable I go back to build kernels for the open.

Github is usually best place to check. Except for this one, built minutes before leaving for work.
[Nexus S Android Development] RevengeITA:
Xteuv88 on 1 post is great for me since now..battery duration is more or less 2 days with normale use !

Any way of changing soft button brightness indipendently from display brightness?
[Nexus S Android Development] coloxim:
could you put ih the first page the files that i've to change for the dimmer's time,please?
[Nexus S Android Development] Pitrino:
last t10 with last kang doesn't work....reboot on bootanimation...i've to pull battery to reboot
[Nexus S Android Development] eduke:
Simms, morfic...

failed and had to remove the battery
[Nexus S Android Development] simms22:
works here. try flashing the kernel again, then power off and pull the battery for two minutes. then stick it back in and power up.
[Nexus S Android Development] simms22:
if youre flashing a rom and this latest tuv10z, the screen dimmer turns the screen off during the boot animation. especially if its a long first boot after a rom flash, you might think that your phone is bootlooping at the animation. because screen goes off, you touch it, then the screen goes back on at the animation. looks like a bootloop if youre not paying attention :p
[Nexus S Android Development] ellesshoo:
You really aught to include more details. Saying it just doesn't work like it's an all or nothing thing that's certainly universal to everyone isn't going to help Morfic or you get to the bottom of it.

It's working flawless for me so obviously there is something else in play. Ever since t10 was released i've been diligent to flash the room prior to the kernel and wipe dalvik. Not sure if that is what suddenly helped for me but I use to simply flash kernel after kernel and wiping dalvik until I read morfics post about the ram disk. Either the t10 is just better or flashing/re-flashing the rom before flashing a new kernel has helped everything.
[Nexus S Android Development] Pitrino:
perfect!!! you are a problem solver!!!! but if I wanted to remove backlightdimmer...what i've to do? 'cause in my i9023 When softkeys goes black, then can't turn on again until I turn off display.
[Nexus S Android Development] simms22:
morfic isnt gonna enable the dimmers in the release version. he'll let you decide what you want to enable. i just flashed both again to try and reproduce youre issue, then i realized that it looks like a bootloop if not paying attention ;)
[Nexus S Android Development] Pitrino:
i'm waiting for the release version without dimmers or or at least without the problem of the turn on softkey without turn off display
[Nexus S Android Development] reddv1:
There's a fix for the i9023, mofic will include it in the release version.
[Nexus S Android Development] dsellers2:
One thing about the dimmer that is kind of a bummer. When watching Netflix or navigation the screen is constantly going black. Otherwise its great.
[Nexus S Android Development] sinik420:
agreed, is this something an app would be able to control, like bln?
[Nexus S Android Development] cheech87:
Or is there a way to force it to obey screen wakelocks? If so, I guess this would solve the screen blanking during bootup as well.

EDIT: jjhrrsn's post quoting Ezekeel completely answered my question.
[Nexus S Android Development] simms22:
Apple controls bln? :eek:
[Nexus S Android Development] droidance:
Tried the GPS fix on OP.

It says GPS is fixed. Do I still need to keep the .apk file installed or can I remove it?

Thanks!
[Nexus S Android Development] sinik420:
no, they do iBLN. Which they then would mostly sue anyone who attempts to enjoy it
[Nexus S Android Development] HareyCarey:
^its like you don't know Apple at'all, mate ;)
[Nexus S Android Development] sinik420:
only when i use my macbook lol....or use miui :p
[Nexus S Android Development] Maximilian Mary:
Well, if the kernel isn't aware of the ROM's keep_screen_awake, perhaps a patch could make the ROM aware of the kernel's gimme_dim_screen_naowz, so they can play nice.

Something like:

if (FLAG_KEEP_SCREEN_ON && screendimmer_enabled )

{ screendimmer_suspend = TRUE;

screendimmer_enabled = FALSE;

on !FLAG_KEEP_SCREEN_ON

{ screendimmer_enabled = TRUE;

screendimmer_suspend = FALSE;

}

}fi
[Nexus S Android Development] sombody:
I myself don't really see the full usefulness of having the screen dimmer as to what maybe for those who have the handware buttons going wonky and the occational times the phone is at the desk and the buttons are quite hard to press.

I'm more interested to be able to adjust the lockscreen timeout with respect to the screen timeout. This would prevent us from having to unlock our phones everytime the screen is locked. I know this has been implemented on CM7 but I'm stuck with MIUI right now. :)

Another question is that does this kernel support Cyaniris' touchscreen tweaks? where we can adjust the touchthr and noisethr? Been having lost of sensitivity from time to time and have to lock and unlock to get it back. :)
[Nexus S Android Development] morfic:
So you want the screen to turn off but not lock so you don't have to unlock it?
[Nexus S Android Development] Ezekeel:
That won't work because the dimmer is activated from kernel not the Android OS. Only way to do this would be to pass on the FLAG_KEEP_SCREEN_ON to the kernel, however for this you would need to modify the Android OS, i.e. a custom ROM.

To be honest the current implementation of both BLD and Screen Dimmer is kinda ****ty. I mean, the implementation is not that messy or something and seems to be stable, however from of purely conceptual point of view it is not well done. One should not implement such a feature into the kernel, because it simply is not the right place to put it. The proper way to do it, would be to implement some simple on/off switches in the sysfs and let the Android OS handle all the complicated stuff. This way you could easily implement the FLAG_SCREEN_ON handler. However I am not at all familiar with the internal details of the Android OS and since this project already took more of my time than anticipated I am hesitant about taking it to the next level which would require building an entire custom ROM.
[Nexus S Android Development] melvinchng:
Back from school. Check my screen and it work. But battery drain from 95-74. And it is in airplane mode.

Any idea?

Btw, can you write something to let us wake the device by using softkey?
[Nexus S Android Development] alf69mi:
http://db.tt/hlV4PwT

You have to edit file system/etc/init.d/95dimmers.

The one linked above has dimmers disabled since i find them useless

Reboot the phone after changing the file.
[Nexus S Android Development] coloxim:
but it s fo the screen dimmer or blacklight?
[Nexus S Android Development] Lazat:
It's for both. Its commented in the file so it's really easy to understand what to do :)
[Nexus S Android Development] ellesshoo:
After much thought I wouldn't mind a screen dimmer that actually did what the name implies; dim the screen, not turn it off.

Say my display/lock timeout is 2 minutes. Additionally we have a screen dimmer that lowers the brightness to the lowest point after 1 minute of no user interaction. You'd still be able to see the screen contents but if you really were not interacting then you save some precious battery.

All this is totally pointless though if there's no automatic recognition of video playback or even ebook type activity.
[Nexus S Android Development] coloxim:
I've tried to edit the file foe change the delay,but when i reboot the phone, the dimmers stop to work..

Why?

And if i don't change the file..the screen dimmer doesn't work anyway..but softkey dimmer yes..

:(

Inviato dal mio Nexus S usando Tapatalk
[Nexus S Android Development] sombody:
Exactly... it would only lock after a certain time say 5 minutes. Its especially useful when I'm texting or chatting with someone constantly. :)
[Nexus S Android Development] Maximilian Mary:
su

echo 60000> /sys/class/misc/screendimmer/delay

exit

That'll dim the screen after 60 seconds. Then change the display settings to lock it after 5 minutes.
[Nexus S Android Development] sombody:
Thanks for the suggestion, though the downside would be the ones previously discussed. Additionally, I do not want it to wake without me touching the hardware keys. For example, I did send a sms and want to turn off the screen. if I use screen dimmer, I have to wait 60 sec for my screen to go black and not touch the screen for 5 min! (do enlighten me if im wrong, havent tried the dimmer kernel yet) If I did have a different delay time to my lockscreen, I could turn my screen on and off anytime I want and not have to unlock, more especially input PW every single time. :)

I am hoping morfic can find a way to easily implement this with his vast knowledge in the dev scene. I know this is possible as CM7 users has actually have this built-in. Unfortunately MIUI doesnt....
[Nexus S Android Development] ellesshoo:
Your nexus already has a solution to your problem. It's called the "Phone". Not sure why people prefer Morse code 2.0 for long back and forth conversation
[Nexus S Android Development] morfic:
Since you have not tried it, you made an ass out of you and me (never ASSume).

Only difference dim == 0.

And you don't need to wait 5 minutes to lock the screen.

You press power to lock it.

This is what I saw:

By not trying it:

You:"'This' is stupid"

"I much rather want 'that'."

Me: "So you want 'this'?" (Making it clear this == that)

You: "yeah exactly, but I don't want to wait 5minutes to lock screen"

If you had tried it:

You: "cool, just what I wanted, thanks morfic"

Me: "don't thank me, thank Ezekeel"
[Nexus S Android Development] simms22:
only one thing that i can say.. lol!
[Nexus S Android Development] Maximilian Mary:
Ok, next try. What if someone could write a tidy little apk to run in the background and do this:

dimmer_enabled = read ("/sys/class/misc/screendimmer/enabled")

if (FLAG_KEEP_SCREEN_ON AND dimmer_enabled == 1 )

screendimmer_suspend = TRUE

user_delay_setting = read ("/sys/class/misc/screendimmer/delay")

// 3 days should be long enough.

write ("/sys/class/misc/screendimmer/delay", 314159265)

on !FLAG_KEEP_SCREEN_ON

screendimmer_suspend = FALSE;

write ("/sys/class/misc/screendimmer/delay", user_delay_setting)

fi

I understand what you're saying about the ROM being a better place for it, but it's better to have it in the kernel than not have it at all. :p

.

So are you looking to change the screen lock delay (settings - display - screen timeout), lock it before the specified timeout (press the power button) or unlock it just by pressing the power button (without having to swipe across the screen)?
[Nexus S Android Development] dario3040:
Nuff said.
[Nexus S Android Development] Ezekeel:
Hmm, good idea. I have not thought about that, but if it would be possible to use a separate background app instead of modifying the Android OS, then you could indeed have a proper and clean implementation with a modified kernel + that app. You could put the simple on/off switches in the kernel like I said before and have that app regulate all the dimmer timer stuff and checks whether an app is open which should not be dimmed. Sounds great, problem is I never wrote an Android app, so getting into the Android API and Java is probably not that easy. However, if you know a dev of Android apps that would like to take on that project, he will get my full cooperation.
[Nexus S Android Development] SA-07:
I can work on it in my free time lol
[Nexus S Android Development] simms22:
i was using it way back on my g1, then during the nexus one days i got tired of looking at it :p
[Nexus S Android Development] BrokenWall:
maybe open up your phone and send pics and measurements to K|ngp|n and he may be able to make you a LN2 pot for your phone's SOC
[Nexus S Android Development] Jesseraelang:
I have a shop and all the necessary tools and experience, unless there's a kernel which can push 1800mhz+ I'm deeming it unnecessary.
[Nexus S Android Development] thejron:
Where is the link for this new kernel?
[Nexus S Android Development] Crazed47:
my new personal best on the 1544
[Nexus S Android Development] kijp15:
:O...

Sent from my Nexus S 4G
[Nexus S Android Development] nickespi:
my phone is pushing no where near what is shown in the screen shots..what could be the deal? yes i am using set cpu..im still in the 3000 range
[Nexus S Android Development] window7:
You need to do it with fresh install of a rom.

More ram and more space, do it at airplane mode too :)
[Nexus S Android Development] lolokman:
simms22, wanna ask you a question

why your 2d and 3d scores can be so high?

i just cant reach such high scores no matter what i do
[Nexus S Android Development] treUse:
simms & morfic, hurry up and release the 1.2 ocuv already!
[Nexus S Android Development] dario3040:
Because even at 400 Mhz, we hit the frame cap of our phone (65FPS).

As long as we get under 65 FPS in a benchmark, it's no use to us.

The tegra 2 has a framecap of 117 though, which makes it go to 78 fps on neocore, while everybody hits 65 on the Nexus S.
[Nexus S Android Development] window7:
My 3D grahpics suddenly stuck at maximum 49fps. It was after the 3rd benchmark.

the first 2 are still 65fps, can someone tell me what happen :(

Is my phone GPU bricked?

EDIT:: My phone was at 10 degree when 49fps happen, so I heat up my phone with games and charging till 30 degree, and it back to 65fps :)
[Nexus S Android Development] simms22:
sweet!

so, 5800 is my no goal.. lol :)
[Nexus S Android Development] simms22:
every phone is different.
[Nexus S Android Development] window7:
Breaked 5900!

Benchmark at 18 degree, fresh install of Kang Version (6/6/2011).

Trinity 1.576 kernel

The 3D was a glitch :o

If not, I would have break 6000! :D:p
[Nexus S Android Development] window7:
6000 should be your goal. LOL I just reach 5978! :p
[Nexus S Android Development] dario3040:
That has nothing with the phone temperature to do.

It's a glitch that happens after a reboot or after being turned on.

Just turn the screen off, and on again.

That will make it 65 fps again.
[Nexus S Android Development] window7:
Sadly for me, it does happen with phone temperature.

I spend 2 hours doing this test.

below 21 degree, it will only go at 49fps.

Above 21 degree, it will go at 65fps.
[Nexus S Android Development] dario3040:
Have you even tried it?

There is NO way it could be temperature.
[Nexus S Android Development] simms22:
now THATS exciting! almost pornographic. ok, 6000 is the goal :eek:
[Nexus S Android Development] Ezekeel:
http://stackoverflow.com/questions/3332573/problem-in-key-capture

Seems like you cannot catch key presses with a background process. So much for this idea... I guess that leaves the custom ROM as the only alternative.
[Nexus S Android Development] reddv1:
Does the app need to catch key presses, the kernel will handle that? Can't the app just handle/monitor the keep screen on flag and disable/enable screen dimmer as necessary.
[Nexus S Android Development] sombody:
I think you miss my point, first thing is that I did try it except for setting a different lockscreen timer and as I suspect the dimmer does not disable the touch control. What I was hoping to get from different delay timer is that i could press the lock button to shut my device on and unlock it quickly without having the need to unlock and type the password for my device. This feature is useful to me as my nexus s sometimes looses its touchscreen response on certain portion of the screen and the only quick fix is to quickly lock and unlock the screen.

The current dimmer works perfectly for the specific purpose of you having to be away from your phone for a short period and be easily able to reactivate it. So like what you mentioned early I want to set a delay to the lockscreen such that when i lock my device the lockscreen won't activate till a set amount of period. Also useful for not having to enter your password everytime especially when the phone has so much sensitive info. I am only suggesting this and if you think this feature is not useful then that is fine.
[Nexus S Android Development] thedudejdog:
Cm7 has this feature.