maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Custom Brightness & No Light Sensor (POST #1 & #2) (https://talk.maemo.org/showthread.php?t=64191)

dr_frost_dk 2010-10-22 10:23

Custom Brightness & No Light Sensor (POST #1 & #2)
 
You have 3 choices in custom brightness
Post #1:
- Simple Mod
- The modded stock brightness by gebeleysis
Post #2:
My Custom Brightness

I recommend the modded brightness by gebeleysis.

-------------------------------------------------------------
The simple mod, gives you 5 display settings that's much better then stock and no slow crappy light sensor

You can simply change one value in mce.ini to disable the light sensor & get better light values than stock

To do this: (remember to uninstall custom brightness mod first (if installed))
Terminal
Code:

root or sudo gainroot
sed -ie 's/brightness-als/brightness-simple/' /etc/mce/mce.ini

Or you can just edit mce.ini, the sed command just changes this as you would manually by editing the mce.ini

After this restart your N900 or "killall mce" (still under root)

---------------------------------------------------------------
Modded brightness by gebeleysis

http://talk.maemo.org/showpost.php?p...&postcount=183

.

dr_frost_dk 2010-10-22 10:57

Re: Custom Brightness for N900 - no ALS is now ready for install
 
1 Attachment(s)
POST #2 - Choice 2 - This is my custom brightness, it gives you full control (253 light steps) and also no slow crappy light sensor

This is a direct install, i don't know how to make apps / debs yet, i have only had this phone/computer for 20days so far.

This mod still works fine and does have the advantage of further customizing like 'Tinukedaya' has demonstrated with his cool theme.

Change log:
Have gone through the code of init.d and fixed the missing/weird fade out/dimming of screen, this now works like it should, but with a small delay

Install
usual tools "needed"
rootsh, queen beecon widget

Terminal:
Code:

sudo gainroot or root
cd "folder"/custom_brightness
sh ./install

import beecon settings or make own beecon widgets
reboot for everything to take effect

"folder" = where you put it - like "/home/user/MyDocs"

Attachment 17640

Now with 2 versions of Brightness bar, Circle & Block mods from users from maemo

Adding Queen Beecon Widgets:

- Add Widget
- click "settings" on widget - tool icon
- click "advanced"
- scroll down
- click "Import - File to Buffer"
- click "Import - Buffer to Beecon"
- click "Yes" :)
- click "Save"

Settings for Brightness bar 2 & Circle
to change the 4 values, goto setting for the widget, go advanced like you would when you added the widget, here you can change:
level1=10 - change to what you need
level2=70 - change to what you need
level3=160 - change to what you need
level4=255 - change to what you need - only for brightness bar

FIX L.E.D brightness
When using this custom brightness one thing you will notice is that the LED is seriously bright, to fix this i use a program (app) called "LED Patterns" to adjust the LED brightness down to a level not so ignoring, also now you can make your own Light Sequence for the LED.

Uninstall
open terminal
Code:

sudo gainroot or root
cd "folder"/custom_brightness
sh ./uninstall

remove brightness beecon widgets
reboot for everything to take effect

"folder" = where you put it - like "/home/user/MyDocs"

And please post if it works properly :)

stlpaul 2010-10-22 15:39

Re: Custom Brightness for N900 - no ALS is now ready for install
 
I don't have any problem with the instructions until the Queen Beecon part. I've never used it before so I have no idea what I'm doing. :)

I created a new widget, clicked Advanced, scroll down, click "Import file to buffer", chose one of your files, then click "Import Buffer to Beecon" and it tells me "WARNING! Bad Checksum! Possibly incorrect Import instance data!"

Is that the correct way or should I be doing something else? Everything I try only leaves me with the default widget... thanks

dr_frost_dk 2010-10-22 16:11

Re: Custom Brightness for N900 - no ALS is now ready for install
 
--- This post has been corrected, new zip uploaded ---

just tried it like this and it worked, well only with level3....
Add Widget
click "settings" on widget
click "advanced"
"Import - File to Buffer"
"Import - Buffer to Beecon"
"Yes" :)
"Save"

But your right....
Only Level3 will Work

so to everybody out there trying this USE Queen_beecon_brightness_level3 and in the "command" edit the number it echo´s

My numbers are again:
Level1: 10
Level2: 70
Level3: 160
Level4: 255
but you can make them what ever you want.
and you of course don't need to use 4, use as many or few you want


--- This post has been corrected, new zip uploaded ---

stlpaul 2010-10-22 16:19

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Of course I tried 1 and 2 and then gave up before attempting to import level 3 :)

Thanks again, now I'm rebooting and crossing my fingers :)

stlpaul 2010-10-22 16:27

Re: Custom Brightness for N900 - no ALS is now ready for install
 
It works, great work guys :) Now my sanity can slowly return...

Thanks to dr_frost_dk and JonWW :)

dr_frost_dk 2010-10-22 16:39

Re: Custom Brightness for N900 - no ALS is now ready for install
 
-- Zip has been updated for none working beecon widgets --

only thing that doesn't work in this mod is when the screen "fades" if you press screen or a button to keep the screen from going dark, it doesn't go to the brightness that you have selected, unless you tap the keylock twice (screen off & on), or if you press one of the beecon L* settings.
I'm trying to find out how to disable that "fade" for this to never "fail", all so trying to find out how to just define 5 custom steps for the 5 normal steps.

colchaodemola 2010-10-22 17:13

Re: Custom Brightness for N900 - no ALS is now ready for install
 
How can i use this without installin beecon ?

dr_frost_dk 2010-10-22 17:37

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

How can i use this without installin beecon ?
white this in terminal:
"root" or "sudo gainroot"
"echo 70 >/home/user/custom_brightness_settings"
"cat /home/user/custom_brightness_settings >/sys/class/backlight/acx565akm/brightness"

if you do the above and decide to install / use queen beecon than it is advised to:
In terminal:
"root" or "sudo gainroot"
"rm /home/user/custom_brightness_settings"
"exit" - to exit root
"echo 160 >/home/user/custom_brightness_settings" - make new settings file with user not root privileges
"exit" or close terminal
if these steps are not taken the beecon widgets cant write to custom_brightness_settings

replace 70 with to brightness level you want (0 to 255)

if you want to test a level just write in terminal
"root" or "sudo gainroot"
"echo 70 >/sys/class/backlight/acx565akm/brightness"

dr_frost_dk 2010-10-22 18:42

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Anybody else testing this mod?

This is still only version 1.0, i hope it helps you out there that like me that think that the standard light levels + light sensor is not that great.

and hopefully with more assistance we can make at system change to change the 5 brightness levels instead to 5 levels that suits the user.

i personally don't like the 5 normal steps, for me they are 4 steps witch are to dark and 1 that is way to bright.

colchaodemola 2010-10-22 19:37

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

Originally Posted by dr_frost_dk (Post 848139)
white this in terminal:
"root" or "sudo gainroot"
"echo 70 >/home/user/custom_brightness_settings"
"cat /home/user/custom_brightness_settings >/sys/class/backlight/acx565akm/brightness"

if you do the above and decide to install / use queen beecon than it is advised to:
In terminal:
"root" or "sudo gainroot"
"rm /home/user/custom_brightness_settings"
"exit" - to exit root
"echo 160 >/home/user/custom_brightness_settings" - make new settings file with user not root privileges
"exit" or close terminal
if these steps are not taken the beecon widgets cant write to custom_brightness_settings

replace 70 with to brightness level you want (0 to 255)

if you want to test a level just write in terminal
"root" or "sudo gainroot"
"echo 70 >/sys/class/backlight/acx565akm/brightness"

I havent tried yet , will test when i get home ... but i have some sugestions already, instead of using couldnt you make a status bar applet like simple brighness instead of using differente queenbeacons ?

dr_frost_dk 2010-10-22 19:46

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

Originally Posted by colchaodemola (Post 848208)
I havent tried yet , will test when i get home ... but i have some sugestions already, instead of using couldnt you make a status bar applet like simple brighness instead of using differente queenbeacons ?

im not that experienced in programming but if anybody wants to make a simple brightness applet let me know. but for now it works really well with the beecon

But the best solution will still be:
Find where the 5 standard values are store and edit them to 5 customs values.
than you would only need to edit mce.ini and nothing else.

The best thing about this mod is that like zerocool2k just pointed out that it can be made with a slider function so that the user can select just the right level to suit.

colchaodemola 2010-10-22 20:08

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Since simple brighness app is open source someone could just edit to make it work, it has a slide there to choose between the 5 levels :)

dr_frost_dk 2010-10-22 20:20

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

Originally Posted by colchaodemola (Post 848235)
Since simple brighness app is open source someone could just edit to make it work, it has a slide there to choose between the 5 levels :)

yes, just need to be changed so instead of basically choosing the 5 standard levels, it just needs to be changed to:
- have a setting button to set the 5 values
- and than just using the echo commands to settings file and ../acx565akm/brightness

stlpaul 2010-10-22 21:20

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Is LED notification light brighter after this or is it just my imagination? :)

dr_frost_dk 2010-10-22 21:35

Re: Custom Brightness for N900 - no ALS is now ready for install
 
i haven't noticed, but i would make sense to include the LED light with the light sensor.

stlpaul 2010-10-22 21:51

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Is it supposed to save my brightness level or is it normal to have to set it every time the screen turns off and on?

For example, switch to L1 (very dark), then press the switch on the side to turn off the screen. Press it again and screen is much brighter than L1. Need to press the L1 widget to make it darker again.

dr_frost_dk 2010-10-22 22:04

Re: Custom Brightness for N900 - no ALS is now ready for install
 
mine does not do that, thats weird.
when i select L1, and turn the screen off & on, it stays on L1.

im assuming you did "all" the install things:
Terminal - "root"
go to custom_brightness dir and
Code:

sh ./install
edit mce.ini and remove "filter-brightness-als;" from "Modules="
make beecon widgets.

Im using the same install, when i finally made this install, i deleted all the files i used to make this mod and than did the install as i have described here

How to install custom brightness

stlpaul 2010-10-22 22:21

Re: Custom Brightness for N900 - no ALS is now ready for install
 
I think figured out why.

The daemon in init.d sets the brightness level from /home/user/custom_brightness_settings

The beecon widgets store the brightness level in /home/user/bright_setting

every time I turn screen off and back on, daemon is resetting to the value in /home/user/custom_brightness_settings which never gets updated.

Is this your intended behavior, or should daemon and widget both use the same file for storing the brightness level?

stlpaul 2010-10-22 22:30

Re: Custom Brightness for N900 - no ALS is now ready for install
 
I edited so they all use the same settings file and now everything works as I expected, bright level is preserved :)

dr_frost_dk 2010-10-22 22:34

Re: Custom Brightness for N900 - no ALS is now ready for install
 
i just checked the files in the zip i uploaded, an they are all using /home/user/custom_brightness_settings

can someone else confirm that there should be an error here....

stlpaul 2010-10-22 22:37

Re: Custom Brightness for N900 - no ALS is now ready for install
 
I was using the beecon from original (checksum failed), maybe your updated version has more recent settings. In that case new user should not have any problem. :)

dr_frost_dk 2010-10-22 22:43

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

Originally Posted by stlpaul (Post 848319)
I was using the beecon from original (checksum failed), maybe your updated version has more recent settings. In that case new user should not have any problem. :)

ahh thank you for clearing that up, i really try to make things work well and that error was weird since i used the same install as the zip with the working widgets.

so to everybody else, false alarm :)
should work without any problems.

How to install custom brightness

dr_frost_dk 2010-10-23 08:32

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Still looking for testers to this mod, would like to know if there is no more bugs, besides the "fade" thing

dr_frost_dk 2010-10-23 19:25

Re: Custom Brightness for N900 - no ALS is now ready for install
 
-- bumping the thread... --

dr_frost_dk 2010-10-23 22:39

Re: Custom Brightness for N900 - no ALS is now ready for install
 
1 Attachment(s)
- Update -
Added 2 new beecon's to the zip.
instead of 4 levels these 2 are to increase or decrease the brightness, and still it saves settings like the other 4 levels.

as default they change the brightness with steps of 20+/-, witch gives 13 steps, and they are setup to go from values 1 - 255, value 0 turns backlight off completely so i cap it at 1.

After import of beecon widgets values can be changed to allow 0 brightness or steps of 10+/- or whatever is needed :)

covid 2010-10-24 16:50

Re: Custom Brightness for N900 - no ALS is now ready for install
 
I am totally lost and not working. i just want my phone back to normal. How can i uninstall it. i did the command, and installed queen beecon, please tell me the command how to erase everthing to normal. thanks

dr_frost_dk 2010-10-24 18:14

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

Originally Posted by covid (Post 849646)
I am totally lost and not working. i just want my phone back to normal. How can i uninstall it. i did the command, and installed queen beecon, please tell me the command how to erase everthing to normal. thanks

something tells me that you did not do the install correctly. but here is the guide

steps to uninstall is:
hopefully you backed up /etc/mce/mce.ini, if you didn't you just need to add 'filter-brightness-als;' (remember to add ; ) to "Modules="

delete:
/etc/event.d/custom_brightness_event.d
/etc/init.d/custom_brightness_init.d

then press 1 of the 5 normal brightness steps before you reboot
- reboot needed for Light Sensor to take effekt
-----------------
but just for checking what you did to install:
did you:
Terminal
Code:

sudo gainroot
cd / %folder% /custom_brightness
sh ./install

then edit /etc/mce/mce.ini and remove 'filter-brightness-als;' (remember ; )
add the beecon widgets

covid 2010-10-24 22:51

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

Originally Posted by dr_frost_dk (Post 849734)
something tells me that you did not do the install correctly. but here is the guide

steps to uninstall is:
hopefully you backed up /etc/mce/mce.ini, if you didn't you just need to add 'filter-brightness-als;' (remember to add ; ) to "Modules="

delete:
/etc/event.d/custom_brightness_event.d
/etc/init.d/custom_brightness_init.d

then press 1 of the 5 normal brightness steps before you reboot
- reboot needed for Light Sensor to take effekt
-----------------
but just for checking what you did to install:
did you:
Terminal
Code:

sudo gainroot
cd / %folder% /custom_brightness
sh ./install

then edit /etc/mce/mce.ini and remove 'filter-brightness-als;' (remember ; )
add the beecon widgets

___________________________________
oh ok.
i got lost on how to use queen beecon. but as you mention again on how to install. i just made a copy of .ini file on MyDocs and erase the brightness, but didnt made chage to existing etc folder.
ok let me keep the uninstall guide as a side and try again. however, did custom brigtness can bright the screen more than level 5 default? cos i what i want. if the max of your custom brighness just the same and just have more dynamic way to control the brightness, i think it okay for me.

if you can find the way to increase loudspeaker volume, that would be great, cos it too low compare to my N95 which is twice louder.

thanks so much.
covid

dr_frost_dk 2010-10-24 23:06

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

Originally Posted by covid (Post 849910)
___________________________________
oh ok.
i got lost on how to use queen beecon. but as you mention again on how to install. i just made a copy of .ini file on MyDocs and erase the brightness, but didnt made chage to existing etc folder.
ok let me keep the uninstall guide as a side and try again. however, did custom brigtness can bright the screen more than level 5 default? cos i what i want. if the max of your custom brighness just the same and just have more dynamic way to control the brightness, i think it okay for me.

if you can find the way to increase loudspeaker volume, that would be great, cos it too low compare to my N95 which is twice louder.

thanks so much.
covid

not the best english but ill try my best to answer questions as im reading them.
the L4 brightness in the custom brightness is the same as level 5 and it is as bright as the screen can get.
I personally think it's to bright but i included it in the install so users will have it for that day when the sun is in your back.
The best brightness level is around 160 (custom L3) it is not to bright to look at and really brings out the colors of the screen and make small text (teminal / inet) easy on the eyes.

The N95 is louder than the N900, but the N900 has the best sound i have heard so far from such small speakers, it of course uses some processing power making sure that the sound quality is really good, if you have conky installed or use TOP you will notice that pulseaudio is using some 20% just playing music....
I have read here in the forums somewhere that there is a mod for pulseaudio that makes it louder.

dr_frost_dk 2010-10-25 14:34

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Just wanted to add:
if anybody is wondering about if this mod is going to use cpu/drain battery, i have just tested whit and without this mod and no difference in cpu % or clock speed over time (12H+ uptime test)


How to install custom brightness

dr_frost_dk 2010-10-25 18:15

Re: Custom Brightness for N900 - no ALS is now ready for install
 
All so works fine with PR 1.3 :)

dr_frost_dk 2010-10-31 10:19

Re: Custom Brightness for N900 - no ALS is now ready for install
 
ZIP has been updated due to PR 1.3.
Seems that brightness 2 is now minimum light in PR 1.3 it was 1 in PR 1.2.
i have corrected the "Bright -" accordingly so that it is capt at 2 as the lowest.

JonWW 2010-10-31 10:55

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Just spied this new thread, good to see that you are still persevering with this.
A thought I have had, seeing that you are using QBW, you have 9 clickable locations with QBW so in theory you could have 9 brightness settings.

http://wiki.maemo.org/Queen_BeeCon_W...Script_Runtime
http://talk.maemo.org/showthread.php...pot#post735753

I still havn't had time to try this on my phone, I still need to upgrade to PR1.3, after that I will try to find some time for this.

dr_frost_dk 2010-10-31 11:05

Re: Custom Brightness for N900 - no ALS is now ready for install
 
1 Attachment(s)
Thats pretty cool, of course in the setup i created it's just a matter of importing a setting again and calling it L5 or something to make more settings.
But the hot spot thing could maybe save a little place on the desktop

the setting i use now doesn't take to much space.

No!No!No!Yes! 2010-11-01 14:06

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

Originally Posted by dr_frost_dk (Post 858304)
Thats pretty cool, of course in the setup i created it's just a matter of importing a setting again and calling it L5 or something to make more settings.
But the hot spot thing could maybe save a little place on the desktop

the setting i use now doesn't take to much space.

Guys have a look at HERE
You could use a custom brightness bar with possibility to detect push/click coordinates on whole bar with $QBW_CLICK_X, $QBW_CLICK_Y
$QBW_CLICK_X coordinate could then be easily indexed to as many relevant fractions as you like and visual indicator of current brightness could be created as well ...

s/t like this:
http://i.imgur.com/ooO7B.jpg

dr_frost_dk 2010-11-25 17:54

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Quote:

Originally Posted by No!No!No!Yes! (Post 859649)
Guys have a look at HERE
You could use a custom brightness bar with possibility to detect push/click coordinates on whole bar with $QBW_CLICK_X, $QBW_CLICK_Y
$QBW_CLICK_X coordinate could then be easily indexed to as many relevant fractions as you like and visual indicator of current brightness could be created as well ...

Has anybody tried this QBW function, i have not had time to test since im doing the battery test and going to be a father within the next week.

And would like to know if anybody else have tried this mod, im of course still using it and always using level 3 since i made my big battery.
The QBW advanced function is a cool idea, but i don't need it, i do use my - & + function after selecting level 1 if im in a very dark area than it is nice to take the brightness down to "2" so it is just giving enough light to see the screen

TiagoTiago 2010-12-01 13:54

Re: Custom Brightness for N900 - no ALS is now ready for install
 
Could someone please make somthing like this but instead of using QueenBeecon it would be a status bar widget like the volume control thingy?

dr_frost_dk 2011-01-31 19:11

Re: Custom Brightness for N900 - no ALS is now ready for install
 
had some free time and decided to update the install process, no more editing mce.ini manually

install is at page #1 post #2

tell me if it works alright

dr_frost_dk 2011-01-31 19:41

Re: Custom Brightness for N900 - no ALS is now ready for install
 
it's been awhile since this thread have been going so for new cumbers that didn't read up on this thread this mod is to remove that ignoring light sensor and setting your own brightness level that suits you.


All times are GMT. The time now is 22:42.

vBulletin® Version 3.8.8