Programmatically disable backlight - General Questions and Answers

I searched around a bit for this information but all I found was the section of the registry where you can control the backlight brightness. I also tried MBVklight but that doens't seem to do the trick either.
I'm trying to turn off/on the backlight using .NET. I would imagine it requires a P/Invoke so if anyone can point me in the right direction it would be much appreciated. I want to do this because hitting the power button disables wifi, so I want wifi to stay on but have the screen off.
Thanks in advance!

Using advanced config 3.3 you can set the wifi to stay on after hitting the power button, which is effectively what you want to do yh? It will cane your battery tho, but its useful for donloading on device

Hmm yeah that would do the trick. Thanks!
I have an old Titan that I'm no longer using so I'm turning it into a bedside alert system in case my regular phone isn't on ring and someone needs to wake me up (I'm in charge of all the servers where I work). It needs to maintain a wifi connection so it can receive the signal but it's constantly plugged in so power isn't a problem.

sorted, no problems and good idea

I installed Advanced Config 3.3 and went into Menu -> More settings -> Connections and checked "Enable Wi-Fi on standby mode" and did a soft reset but it doesn't seem to be working. If I hit the power button on the phone to enter standby the wifi light stops blinking and it stops receiving connections. Is there another setting I'm missing?

mm let me try on mine, ill get back to you.......

Any luck? It's not really a big deal since I modified my application to be full screen with a black background so it would be doing minimal burn in, but I'd still prefer if it was fully off.

Related

How to turn off screen dim after 5 secs

Apologies if this has been answered before, I've done plenty of searches, and can't find out how to do it.
On my stock HTC Touch Pro, if I don't touch the screen or keyboard for about 5 seconds, then the screen goes to a dimmed state. Is there a way to turn this behaviour off?
Cheers,
Steve.
Settings - System - Power - Advanced tab. All of the options are there...
There are no relevant settings there. There's only the "Turn off backlight if device is not used for x min" and "Turn off device if not used for x min" for both battery power, and external power.
I'm not talking about the screen going off all together, I'm just talking about it dropping to minimum brightness after a few seconds of inactivity. I've tried the "Auto adjust backlight" and "Dim the backlight if the device is locked" settings, and they make no difference.
Cheers,
Steve.
Settings>Power>Advanced>Walla
StevePritchard said:
There are no relevant settings there. There's only the "Turn off backlight if device is not used for x min" and "Turn off device if not used for x min" for both battery power, and external power.
I'm not talking about the screen going off all together, I'm just talking about it dropping to minimum brightness after a few seconds of inactivity...
Click to expand...
Click to collapse
Steve,
You should be adjusting the "Turn off backlight if device is not used for..." setting under 'on battery power'. This setting relates to the dimming of the screen (backlight). It's most likely that this is set to 10 seconds or something short on your device. Increase this to the longer duration that you would like.
FYI, the "Turn off device..." setting relates to turning off the screen completely.
Hope that solves your problem.
xzibitB
Thanks for the responses. I was being a little confused by the fact that a) it's not turning off the backlight, it's just dimming it, b) it was doing it while sat in its cradle, and those settings were unchecked, and c) it was doing it after 5 seconds, and not the 1 minute it was set to.
Fiddling with those settings seems to have resulted in the behaviour I'm after.
Thanks again.
Cheers,
Steve.
I have exactly the same issue, as does my g/f's Diamond. The screen dims after 7 seconds of inactivity. I know this because I've timed it. I have all of the advanced settings turned off so the device should not ever turn off the backlight or power off. I'd really like to be able to stop this as it makes reading or watching video on the device extremely annoying.
Steve, what settings did you change?
Thanks.
I *think* what sorted it out was changing the settings to new values, then selecting [OK], and then going back into the Advanced tab, and setting them to what I wanted in the first place - it was almost as if the changing the settings didn't stick until I had changed them to something else, and gone out of the page.
I hope this helps.
Cheers,
Steve.
Having the settings not "stick" is a problem I had with my Apache/XV6700 under WM5. There was a fix out there for this problem that I could never get to work, either. It finally got fixed with a custom ROM and stayed fixed under a WM6 custom ROM.
But now I'm pretty dismayed to see the problem back with the stock Fuze ROM and a slew of tweaks/installs -- just when I got the phone how I wanted it. Anybody have any new ideas on getting the change to stick? A registry edit or something?
i am having the sameissue as leeJS, i had none of the boxes set to dim or turn off, it would dim after 7 seconds. i tried multiple settings even checking all the boxes with over 2 minutes, the screen will still dim. any solutions?
On another fourm I came across a fix that works for me - I had similar frustrating problems
In HKCU\Control Panel\Backlight rename the folder Locklevel to Locklevelx (or something).
System recreates the locklevel folder with the correct locklevel key inside it (and doesn't keep changing it back)
S2U2 has a setting that dims the screen after 7 seconds... Do you have that loaded as well? If so, check you s2u2 settings...

HTC Diamond - backlight not off after inactivity - just fading out a little

Ok so I have a little problem with my HTC Diamond. In options I set to turn-off the backlight after 10s of inactivity which is standard. The problem is that after those 10s I can see that the screen backlight is fading out but it doesn't fade out completly - if you look from an angle it might appear that it's off but if you look at the front of the phone or simply in the dark you can see that the backlight is still on only set to something near 10 or 5%. As you know the battery just sucks in this device and I don't want the backlight to drain it so any ideas or tips on this matter? Of course I can put the phone to sleep mode but I'd just prefer to make the backlight turning off so I can take a look at the screen to for example check the time without having to press any buttons...
Same problem here
After those 10s the screen is not turning off completly, just fading to 5, 10 %. The screen with all the info, the home page let us say, is still visible and drains the battery. I also could just press the power button to turn is completly off, but I would also prefer it to do this manually after ten second.
Did you find a solution to this problem yet?
Help Battery Drain
Same thing here, and my Backlight is stuck to 100% i think,
anyone found a solution to this? any hints?
Guys, i assume youve set the "turn off device if not used for xxx mins" correctly whilst in battery and external power correctly?
If you have, what roms are you using as you give us no information to help any further
Hello,
I had the same problem with ROM 2.03.421.2, date 12/24/08.Back then I had SPB mobile shell installed and a very few applications and I couldn't find the problem. I made a hard reset so now, with nothing installed, the device also enters standby. You should take care because it is possible that the device is not entering standby either and it is making calls. When I had this problem my friends were complaining that I kept calling them and not talking. It is strange as I'm sure I put the device to sleep with the power button. But still, somehow, it was making calls...

Wi-Fi Will not shut off, no reboot/standby/shutdown on Touch Pro, Help Needed

After rebooting my phone earlier today my wi-fi has been stuck on, yet shows as off in QuickMenu and Comm Mgr. Any attempt to "turn on" the switches fail, even turn off option in wi-fi set up dialog does nothing. Can anyone help me?
EDIT: I also noticed now that any command to reboot the phone, along with standby (yes, even my top button), and power off commands are not working either.
EDIT2: It also now seems the screen will not rotate when the keyboard is slid out. I'm beginning to think my only option is to do a hard reset, and I'd REALLY rather avoid that...
EDIT3: AND it thinks it's charging...
EDIT4: Also all of my buttons don't work...
thats weird
my touch pro is doing just the opposite..... i can't turn off the wifi, the "switch" is grayed out to the point that it will not let me turn it off
wierd, does a soft reset not work? Never seen that before...
Have you altered anything recently or added an app that could be causing compatibilty issues?

Backlight - arrrggggghhhhh!

My XDA Serra (Touch Pro) will let me view the screen for about 20 seconds before it switches off. Not just a backlight dim, but a full switch off. If I keep poking the screen it will stay on, but then I end up selecting something on screen.
My settings for the screen make no difference and it's making the thing unusable. Anyone know of a decent backlight / power management software that can take it by the scruff of the neck and make it behave?
Thanks.
66mustang said:
My XDA Serra (Touch Pro) will let me view the screen for about 20 seconds before it switches off. Not just a backlight dim, but a full switch off. If I keep poking the screen it will stay on, but then I end up selecting something on screen.
My settings for the screen make no difference and it's making the thing unusable. Anyone know of a decent backlight / power management software that can take it by the scruff of the neck and make it behave?
Thanks.
Click to expand...
Click to collapse
Check your power off button isn't stuck pushing down forcing phone to turn off. It has reportedly happened on a number of other devices
No, I just checked. Seems to be OK. Thanks
Have you tried flashing another rom?
If not try that, and if that doesn't work, the lock button must make contact somehow as fallen spartan says.
Solved.
I had to uncheck all the power management crap, soft re-set, and then. Re-check the settings I wanted.
Don't you just love WM...?

Help - My new SM-G930W8 S7 hangs on wake

Now this doesn't happen all the time every time, but usually around a notification and the screen is off, I go to hit a button to turn on the phone and it doesn't respond but the touch-keys are backlit. If Always-on Display is on, the screen is black regardless, not even showing the time or notifications. The only fix is waiting ~10 seconds for the phone to respond, which in some cases can be the difference between a missed call.
Now, seeing Always On Display off like that while it should be on made me think back to when I saw some sort of Nougat optimization setting that allowed me to select Always On Display, and as far as I remember, I did. That makes me think this process is killing AoD and it is taking that long to start back up, where the phone won't unlock until AoD (is back on and) can confirm that it's trying to wake up out of that state.
However, I don't believe this is the issue. I have turned off AoD and the issue still happened directly afterward, after a Messenger notification. This is stock firmware, however it is not factory firmware. I believe I downloaded it from Sam-Mobile, and they had the 7.0 Nougat upgrade that I would have gotten OTA with the factory firmware anyway.
Somehow I don't think it's the flashed firmware that is the problem, however please let me know if that's a possibility.
While the phone (or whatever) is hanging, I can still hold down the power button and I will feel haptic feedback as if the power menu has opened, and when the phone responds the power menu will be open, so the phone does still receive input. It just doesn't seem to act upon it or wake the screen properly. Is this perhaps merely a known Nougat bug or is it a glitch with my flashed stock firmware?
I'm sorry I don't have much more information. I do have Greenify, but I don't think that can or is set to disrupt anything that would affect the phone waking, or that would hang the OS, homescreen or whatever it is.
I haven't done other troubleshooting because I don't know what direction to attack this from, and that is why I have come here.
Help please!
Thanks in advance. :good:
UPDATE: It seems to happen directly after my screen shuts off from being on. So, if a notification wakes my phone but I don't interact with it in time and the screen goes off, when I press the power button it won't respond for ~10-15s. That's all I've really noticed... Anyone else have this problem??
BUMP.
Also, the same thing happens if I press the power button on my phone (by accident) and then go to turn it back on almost immediately - it won't respond for a while.
Cleared cache from recovery?
Got any settings enabled like "Keep screen off" which stops the screen coming on in your pocket, try disabling it in case that's causing it
Different gestures, disable them all in case they're messing with it
Last resort, factory reset
*Detection* said:
Cleared cache from recovery?
Got any settings enabled like "Keep screen off" which stops the screen coming on in your pocket, try disabling it in case that's causing it
Different gestures, disable them all in case they're messing with it
Last resort, factory reset
Click to expand...
Click to collapse
Won't be factory resetting unless I plan to root or something. I'll fiddle with the keep screen off setting that I do have on, and I highly doubt gestures would affect it but regardless I haven't enabled or used any. Thanks for the reply.
So the "Keep screen off" setting didn't affect anything. I turned Always On Display back on and I see the same issues. However, now sometimes I notice when I lock my screen or it shuts off, sometimes the AOD will appear and then quickly disappear, and stay in this hanging state for 10-15s. Then, if I haven't touched it during that time, the AOD will reappear. Any ideas? :/
So nobody else has this issue? This is still a problem, even if I press the power button and sometimes I'll want to turn it back on again as I just remember something to do before putting the phone away, it hangs on black for too long to be useful in that moment. The only potential solution is a factory reset?
Even if I lock the screen... If I try to turn it back on too soon, and I think it's specific timing... I have to wait 10-20 seconds. Sounds and vibrations still work.
UPDATE: This is still an issue. I've noticed a few more things, it does really seem like timing and as if there's some function in my phone literally not allowing me to turn on my screen - and I have never timed it but I think pressing buttons (power button) makes it take longer before it will respond again.
Kilva said:
UPDATE: This is still an issue. I've noticed a few more things, it does really seem like timing and as if there's some function in my phone literally not allowing me to turn on my screen - and I have never timed it but I think pressing buttons (power button) makes it take longer before it will respond again.
Click to expand...
Click to collapse
This happens for me also as a point of interest.
I am hoping that O solves it, since the monthly updates have never helped.
I haven't had this happen since upgrading to Oreo a week ago, so far so good!

Categories

Resources