Change backlight - Windows Mobile Development and Hacking General

Hello developers,
I try to change the backlight by modifying the registry (HKCU\ControlPanel\BackLight) and afterwards sending the event "BackLightChangeEvent".
However nothing happens on my Diamond - I know this is hardware dependend but is there a (general) way to change the backlight level?
I know it has to work because I tested some application who are able to control the backlight level and they work on this device...
or am I doing something wrong?
Code:
he = CreateEvent (0,0,0,L"BackLightChangeEvent");
if (he) {SetEvent (he); CloseHandle(he); }
Thanks in advance!
ageye

I'm sorry I can't help, however would you be as kind as to name the applications you tested that successfully modified the backlight? (E.g.
spb pocket plus is unable to control backlight on the diamond).
Thank you.
-matthias

Related

HTC Magician Camera Profile::Testers needed

Hey guys,
I was wondering if you might give me some suggestion and comments about the application i just developed, well its my first ever developed app for smart device so i hope u don't mind. For HTC magicians only i guess unless other models have the same registry structure for the camera settings.
Features
-Save profiles
This application allows you to save settings and name it as profiles, thanks to kta and deuxani for providing some configs which i made as preset in the meantime.
-More camera settings
-and some more...
Just try it out
Known issues:
-Profile has no immediate effect
If any of u guys know how to make immediate effect after modifying registry please let me know, afaik i had to do a soft boot or just click on "reset" on the camera settings.
-Error if click 'Apply' on empty profile
Well, haven't put any exceptions handlers just yet, need to know more bugs first
Need comments about ease of use and user interface also bugs if u happen to find any. I try to make it as simple as i can. Thanks all.
::adit
Great!
Just installed it! Works fine!
Excellent, maybe a little addon after you select a profile directy start the camera ( this is the reason you start it )
Keep up the good work!
First Thanks on this Idea!!
Will test further and report back.
What do i wrong ? It doenst do anything for me except show me the frame rate ... :?
Thats what i meant by "immediate effect" which i haven't figure out yet, you must go to the camera settings and adjust and click on "reset" because I was able to change the registry for both settings (ie. Contrast and Contrast_User) but i think the camera needs something so it can "refreash" and get the values from the registry which also does on the ambience. I hope someone can figure this out..
::adit
great job adit
if you are looking for more advice about developing this plug-in.. I suggest to post this topic in the Development and Hacking forum.
keep up the good work :wink:
Nice job, and its working.
I've tried this app and i have a problem:
in the registry i have 2 values for each parameter (for example brightness and brightness user)
The software change the non user value but if i softreset my Magician user's values becomes default. I must open configuration and reset values and they becomes like the non user values.
Is there another solution?
I've also tryed to delete user keys but after a SR they are again.
Sorry for my english
I've tried this app and i have a problem:
in the registry i have 2 values for each parameter (for example brightness and brightness user)
The software change the non user value but if i softreset my Magician user's values becomes default. I must open configuration and reset values and they becomes like the non user values.
Is there another solution?
I've also tryed to delete user keys but after a SR they are again.
Sorry for my english
The application changes both default and user (default ie brightness, and user ie brightness_user). I did this to make sure that even after a soft reset since the effect does not change immediately, the values are not changed. If you find it inconvenient, i'll rebuild the application so it changes only the xxx_user (ie xxx=brightness)? For the time being, if you want to reset the settings to the original state change all values in the non user to '5'.

CONTRAST Adjustment

Hi all. Can anyone dir me to anywhere I can download apps for adjusting the screen contrast of xda2 (WM2005)? Thanx in anticipation.
bloggy
http://www.google.dk/search?hl=da&q=CONTRAST+Adjustment+wm2005&btnG=Google-søgning&meta=
?
Hi Rudegar. I had already googled it and seem not to get anything. Thanx for the concern anyway.
bloggy
Built in Contrast adjustment
I know there is a built in Contrast adjustment program in WM5. After doing some some registry tweak testing...basically me changing registry settings without any direction, I must have stumbled on something that activated a Contrast program icon.
When I ran it, there was a slider for screen contrast. I continued some more registry tweaks, but restored an old registry and lost the new Program Icon.
I don't know what registry setting it was that activated this, so if anyone knows how to activate it, please let us know!
Re: Built in Contrast adjustment
our screen driver (or maybe hardware) does not support contrast changing, so this is useless. Only backlight brightness can be changed.
I've discovered a registry key that seems to have _some_ control over not contrast, but gamma. You might be able to use it to get some results. Its located in HKLM/System/GDI/Gamma and it is a DWord called "Gamma Value"
Re: Built in Contrast adjustment
mamaich said:
our screen driver (or maybe hardware) does not support contrast changing
Click to expand...
Click to collapse
There is no hardware contrast support on himalaya, blueangel and universal, only the
brightness control via PWM duty period.
I'm not sure if it works on other devices, but on a Wizard, you can go to HKLM\ControlPanel\Contrast and delete the redirect key (if there is one) and create a new dword value named Group with value 0 and it will put a Contrast icon in Settings that has an adjustable slider....
works...
registry tweak brings contrast setting to control panel but that does nothing (since contrasting is not supported)

disallow screen rotation

Hello!
I need to write software that disallows any screen rotation on my Wizard.
How can I do it? I didn’t found any registry settings for this. The best way
that I see is hooking ChangeDisplaySettingsEx. But unfortunately, SetWindowsHookEx
doesn’t works on WM 5.0, at least it said on some topics. Please, give me any solution for this problem or example code to hook some API function.
wm5: [HKLM\System\GDI\Rotation]
Angle=dword:0
00000000 portrait
0000005a righthanded landscape
0000010e lefthanded landscape
then RegistryNotifyCallback will do
tanks a lot
I will try this way.
But I afraid it will be notified after screen rotation starting.
Adjusting this registry value in regedit tool did't help.
So I suppose this value is changing after rotation is done.
You can delete the start up service of ScreanRotate.
Go to HKLM/Services/ScreanRotate and delete it.
I think before you doing this,you can export it to a reg file
It's not bad idea.
but delete this key leading to system restart for apply
I just try to stop this service.
Not luck : (
This key not present in the registry storage.
I am under WM 5.0
Maybe you talk about some early system.
Hi hoblano, I'm experiencing the same problem, did you find a solution ?
thanks,
Scalposcarno
use task manager 2.7 and stop service...if you know it is service...
same way to stop kbd lights...btw,
I tried, but the result is the same as the one obtained by manually deleting the Screen Rotate voice within the services voices in the registry: avoiding the load of the service providing the icon on the task bar enabling the user to rotate the sceen one or more times by tapping on it.
I still don't understand ... at this point the most probable thing is that the service that rotate the OS screen when rotating by hand the HW screen, is invisible with respect to registry voices and to applications like Task Manager 2.7 or MemMaid. Apart from criticizing the constructor choice (why didn't they thought that someone should have been more comfortable using only one view mode ? e.g. landscape one), is there a way to obtain a list of core services and to avoid one of those to be loaded ? or, otherway, is there a way to intercept the event thrown when manually rotating the screen of the terminal ?
By the way, I'll have to do it with Java ...
thanks all

Auto Lock when backlight is off

I tried changing the value on touch 3G but it doesnt work, even after rebooting it, what gives?
Automatically lock --> HKEY_CURRENT_USER\ControlPanel\BackLight\AutoDevic eLockEnable from 0 to 1 and everytime your backlight goes off the device is locked
dont work on my htc jade
Anyone knows why? I don't want to install any software for the autolock. Changing registry seems to be the best fit for me. Anyone who can help? Many thanks.
Didn't work with me as well...
I was thinking maybe it has something to do with HKEY_CURRENT_USER\ControlPanel\BackLight\LockLevel\LockLevel being 0? Anybody tried changing this key to 1?
bump thread
Try CSDEVCTRL (search here in XDA) for your autolocking needs... Works like a charm!
You can try S2U2. This is a utility that will help you customize how to lock your phone while on battery and while on power.
It also allows you to set customized pictures as screensaver much like the ipod.
PM me for links

[Q] Backlight setting help

I think this is a problem specific to the HD2 - basically, when i leave the phone on the auto backlight setting, it is too bright and therefore draining the battery. of course, setting it manually is a pain and it needs changing as conditions change etc.
What i am wonder is if there is any way of changing the auto so that it is consistently less bright? I have had a dig through the regedit but not really sure what i am looking for or doing!
I was guessing that there was a value that would be assigned to the brightness above the ambient brightness (from the light sensor) - can anyone enlighten me further?
Many thanks (and also for all those other posts i have used to help me make my phone exactly as i like it... CHT, BsB, Scilor etc!)
try Lumos.
nice. almost does too much! but good bit of software thus far. now to do some benchmarking... if only the sun would shine!
Controlling Backlight Settings
I took a different approach to resolve my problem -- keeping auto backlight turned off, but easily changing the backlight settings when I needed to change them. I created a shortcut called Backlight.lnk (that's a lowercase "L", not an "I" I discovered). I used a text editor and put in this line:
12#Powerexe.exe 2 - backlight tab
I saved it with the name Backlight.lnk and copied it to my Start/Programs folder using File Explorer. I moved the shortcut to the top of the Start menu where I can get to it quickly. I just tap Start and the shortcut icon and I am at the Backlight screen where I can quickly change the backlight level or the timeout settings. This saves a few taps compared with going in through the Settings screen.
I had tried Lumos and another program I found on the MS Marketplace, but both caused other problems for me.
PS: I found the line above in a posting at
http://forum.xda-developers.com/showthread.php?t=645916
It's an excellent tutorial on creating all kinds of shortcuts.
Try MVBKLight.
Very handy popup (plus a usefull torch).
I have both Auto and Manual controls. With links I immediately switch between sensor and the MVBKLight slider.
Try searching for autobacklight toggle. Basically, its an icon which when pressed on main screen enables disables autobacklight. So much better than lumos.

Categories

Resources