maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   How to disable the sensor on N810? (https://talk.maemo.org/showthread.php?t=21713)

dkarale 2008-07-08 19:06

How to disable the sensor on N810?
 
Hello, can someone tell me how to disable the sensor on the N810. thank you.

josiahg777 2008-07-08 19:09

Re: How to disable the sensor on N810?
 
Which sensor are you talking about?

Do you mean the ambient light sensor? There's no "easy" way to just disable it. Although I'm sure you could by deleting a few key libraries somewhere.

However, you can go into Control Panel --> Display and set the "Brightness Period" to 1440 minutes. This should keep the ambient light sensor from checking to adjust the screen brightness for 24 hours.

brontide 2008-07-08 19:18

Re: How to disable the sensor on N810?
 
AS ROOT
Edit the /etc/mce/mce.ini file

The top of the file will look like this

Code:

# Configuration file for MCE

[Modules]

# Path to modules
#
# Do not modify unless you're sure that you know what you're doing!
ModulePath=/usr/lib/mce/modules

# Modules
#
# List of modules to load
# Note: the name should not include the "lib"-prefix
Modules=homekey;battery;filter-brightness-als;inactivity;camera;alarm

edit the Modules line, removing the filter-brightness-als.

Code:

# Modules
#
# List of modules to load
# Note: the name should not include the "lib"-prefix
#Modules=homekey;battery;filter-brightness-als;inactivity;camera;alarm
Modules=homekey;battery;inactivity;camera;alarm

reboot.


I'll leave the "getting root" and "edit file" as an exercise for the user.

qwerty12 2008-07-08 19:20

Re: How to disable the sensor on N810?
 
I think fanoush posted method, something about removing the sensor module from /etc/mce/mce.ini

or even better, look above.

iancumihai 2008-07-08 21:47

Re: How to disable the sensor on N810?
 
Quote:

Originally Posted by brontide (Post 200651)
AS ROOT
... I'll leave the "getting root" and "edit file" as an exercise for the user.

does "OMG how do I quit VI " rings a bell ? :P

callanish 2008-07-08 23:09

Re: How to disable the sensor on N810?
 
Quote:

Originally Posted by josiahg777 (Post 200648)
Which sensor are you talking about?

Do you mean the ambient light sensor? There's no "easy" way to just disable it. Although I'm sure you could by deleting a few key libraries somewhere.

However, you can go into Control Panel --> Display and set the "Brightness Period" to 1440 minutes. This should keep the ambient light sensor from checking to adjust the screen brightness for 24 hours.

My brightness period is maxed out at 2 minutes. Is there something I need to change to allow me to have the option of 1440 minutes?

josiahg777 2008-07-08 23:14

Re: How to disable the sensor on N810?
 
hmmmm try changing the "Switch Screen Off" value to a higher value.

Then try changing it again.

Are you running Diablo?

callanish 2008-07-09 03:01

Re: How to disable the sensor on N810?
 
Yeah, I am running Diablo. Tried everything. Strange that my only options are 10 and 30 seconds and 1 and 2 minutes. Won't lose sleep over it, but it's weird never the less. Did a full chinook backup restore, rather than start Diablo from scratch. Don't know if that has anything to do with it. Still, if that's the only issue I've got to worry about with an upgrade to Diablo, and so far it is, then I've got no reason to complain

brontide 2008-07-09 03:10

Re: How to disable the sensor on N810?
 
It's something that can be changed via gconf, they probably had made the tewak at some point and restored the backup. There are a number of neat tweaks that can be done including, but not limited to..

backlight timout > defaults
lock timeouts > defaults
networking scanning < 5 minutes

I'l dig them up.

brontide 2008-07-09 03:26

Re: How to disable the sensor on N810?
 
Here are the defaults from gconftool-2

Code:

~ $ gconftool-2 -R /system/osso/dsm/display
 display_on_with_charger = true
 display_brightness_level_step = 1
 display_blank_timeout = 300
 display_brightness = 1
 display_dim_timeout = 120
 max_display_brightness_levels = 5
 possible_display_dim_timeouts = [10,30,60,120]
 possible_display_blank_timeouts = [30,60,120,300]

Then we can change the lists like the following. Each value is in seconds

Code:

~ $ gconftool-2 -s --type list --list-type int /system/osso/dsm/display/possible_display_dim_timeouts [10,30,60,120,600,3600,86400]
~ $ gconftool-2 -s --type list --list-type int /system/osso/dsm/display/possible_display_blank_timeouts [30,60,120,300,600,900,3600,86400]
~ $ gconftool-2 -R /system/osso/dsm/display
 display_on_with_charger = true
 display_brightness_level_step = 1
 display_blank_timeout = 300
 display_brightness = 1
 display_dim_timeout = 120
 max_display_brightness_levels = 5
 possible_display_dim_timeouts = [10,30,60,120,600,3600,86400]
 possible_display_blank_timeouts = [30,60,120,300,600,900,3600,86400]

That should give you 10, 60, and 1440 minutes under brightness period and 10,15,60, and 1440 minutes under switch off display.


All times are GMT. The time now is 14:35.

vBulletin® Version 3.8.8