maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   Ambient Light Sensor Not Working! Now To Disable? (https://talk.maemo.org/showthread.php?t=30798)

MicroChip123 2009-08-14 13:17

Ambient Light Sensor Not Working! Now To Disable?
 
When i am using the n810 it keeps making the screen go bright and dark and its annoying i am much happier setting the brightness on my own!

Can i turn off the light sensor so it does not effect the screen brightness and make it so the backlight on the keyboard stays permanently on?

thanks

Milhouse 2009-08-14 19:25

Re: Ambient Light Sensor Not Working! Now To Disable?
 
https://bugs.maemo.org/show_bug.cgi?id=2755

Don't forget to add your vote.

MicroChip123 2009-08-14 20:11

Re: Ambient Light Sensor Not Working! Now To Disable?
 
can you tell me now to edit /etc/mce/mce.ini
i have got root but i dont know the command to edit it.

KristianW 2009-08-14 20:55

Re: Ambient Light Sensor Not Working! Now To Disable?
 
Install leafpad text editor.
Or emelfm2 file manager that can edit files.
Both can be called from the command line.
( Much easier than vi(m).)

MicroChip123 2009-08-14 21:11

Re: Ambient Light Sensor Not Working! Now To Disable?
 
i know no linux commands so can someone give me a step by step guide to do this?

Milhouse 2009-08-14 21:26

Re: Ambient Light Sensor Not Working! Now To Disable?
 
Quote:

Originally Posted by MicroChip123 (Post 311824)
i know no linux commands so can someone give me a step by step guide to do this?

Probably easiest for you to implement the method in comment #1 from the aforementioned bug:

Code:

sudo gaintroot
cd /usr/lib/mce/modules
mv libfilter-brightness-als.so libfilter-brightness-als.so.bak
sync
reboot

I'd suggest you learn the basics of vi as you'll never be stuck if you know vi... :)

If you want to try the method in comment #2 & #3, follow these instructions:

Code:

sudo gainroot
cp /etc/mce/mce.ini /etc/mce/mce.ini.bak
vi /etc/mce/mce.ini

Once in vi, enter the following commands (note - vi is case sensitive, so turn your caps lock OFF. If you make a mistake quit by pressing escape then colon, q and exclamation mark - <ESC>:q!<RETURN>)

Note: <RETURN> means press return key!

Code:

:%s/filter-brightness-als;//g<RETURN>
:x<RETURN>

Finally

Code:

reboot
If you're not comfortable with using vi, try this method - it's easier and will achieve the same effect as editing the file but without requiring a text editor...

Code:

sudo gainroot
cd /etc/mce
cp mce.ini mce.ini.bak
cat /etc/mce/mce.ini.bak | sed "s/filter-brightness-als;//g" > mce.ini
reboot


qwerty12 2009-08-14 21:33

Re: Ambient Light Sensor Not Working! Now To Disable?
 
Quote:

Originally Posted by Milhouse (Post 311829)
Probably easiest for you to implement the method in comment #1 from the aforementioned bug:

Code:

sudo gaintroot
cd /usr/lib/mce/modules
mv libfilter-brightness-als.so libfilter-brightness-als.so.bak
sync
reboot

I'd suggest you learn the basics of vi as you'll never be stuck if you know vi... :)


/etc/init.d/mce restart is faster. :)

*whistles* I made the light sensor only affect my keyboard light thanks to some leaked source *whistles*

Milhouse 2009-08-14 21:53

Re: Ambient Light Sensor Not Working! Now To Disable?
 
Thanks qwerty! :)

@MicroChip123 - I know the ambient light sensor is located in the worst place possible - hopefully the Nokia designers have learned their lesson and won't repeat it on future devices - but try not to cover it with your thumb, that could well be why the screen constantly changes in brightness! :)

MicroChip123 2009-08-15 19:25

Re: Ambient Light Sensor Not Working! Now To Disable?
 
Quote:

Originally Posted by qwerty12 (Post 311831)
/etc/init.d/mce restart is faster. :)

*whistles* I made the light sensor only affect my keyboard light thanks to some leaked source *whistles*

how do i do that :confused:

Milhouse 2009-08-15 20:47

Re: Ambient Light Sensor Not Working! Now To Disable?
 
Quote:

Originally Posted by MicroChip123 (Post 312029)
how do i do that :confused:

It's an alternative to rebooting the entire device - just restart the mce process instead.

Edit: If you mean qwerty's comment in small text... only he has the answer :)


All times are GMT. The time now is 09:26.

vBulletin® Version 3.8.8