Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
AnDyX
Old
(Last edited by AnDyX; 22nd June 2011 at 01:25 PM.)
#1  
AnDyX's Avatar
Senior Member - OP
Thanks Meter 444
Posts: 180
Join Date: May 2008
Location: Ruda Śląska
Default [Module] AX8NoALS v002 | Disabling light sensor

Tired of the lack of possibility to turn off 'automatic light sensor', I have modified the original driver. The only difference is - I removed code that enables ALS.

Issues:
- sometimes screen wake ups with maximum backlight value and fades to desired value in seconds.

Manual installation:
- push ax8noals.ko to /system/lib/modules
- run the following command
Code:
insmod /system/lib/modules/ax8noals.ko
- set desired brightness.

Until you're sure that it works with your hardware, don't install it to hw_config.sh.

Make sure that module is inserted before lm3530 LMU configuration settings.

Code:
#insert new noALS module
insmod /system/lib/modules/ax8noals.ko
sleep 2

# lm3530 LMU configuration
dev=/sys/devices/platform/i2c-adapter/i2c-0/0-0036
echo als_off > $dev/mode # add this line if system overrides your mode
Release history
v002:
- restored how original modes works:
- i2c, pwm, i2c_pwm: modes without als,
- als, pwm_als, i2c_pwm_als, i2_als: modes with als
- added two new modes:
- als_off - disables als in ALS enabled modes,
- auto - enables als in ALS enabled modes.

v001: just recompiled original driver with ALS disabled


Note:
It uses code to remove original driver from doixanh X8Gesture module.

Disclaimer
I'm not responsible if this module damages your lovely phone. Use it at your own risk!
Attached Files
File Type: zip ax8noals.zip - [Click for QR Code] (6.5 KB, 351 views)

|Xperia U on ICS| currently powered by SMARTASS / SIO
GIT
Xperia U | SMARTASS | ONDEMANDAX | PEGASUSQ | LULZACTIVEQ | SIO | VR
Neo V | SMARTASSV2 / ONDEMANDX
X8 | AX8NETFILTER | AX8_SMARTASS | AX8MT | AX8NOALS
The Following 6 Users Say Thank You to AnDyX For This Useful Post: [ Click to Expand ]
 
skyboyextreme
Old
#2  
skyboyextreme's Avatar
Senior Member
Thanks Meter 152
Posts: 1,089
Join Date: Feb 2011
Location: Cairo
thanks i guess i will need that one someday....
Xperia Neo S+

PwnKernel v1.7b + .64 Baseband + S.E 'Super' Tweaked XXX Edition + Rooted + CPU @ 1.6GHz with 1200mV + 420mb User spaced + 16GB-C4 Kingston microSD + Link2SD @ 512MB sd-ext4 + CWM Recovery 5.0.2.7 + DRM Functional

(4000 Antutu-Points)

My name is John, Hi
Now Playing : Shadow Gun - The Left Over, GTA III - 10th Anniversary
 
shpit
Old
#3  
shpit's Avatar
Senior Member
Thanks Meter 137
Posts: 174
Join Date: Nov 2010
nice work dude...
I was a nobody, who wants to help others to get something better
 
XperianPro
Old
#4  
XperianPro's Avatar
Senior Member
Thanks Meter 641
Posts: 1,906
Join Date: Nov 2010
Location: Mars

 
DONATE TO ME
Another moduler,ok then please,please,please make overvolt module for x8
 
Dare-Devil Inside
Old
#5  
Dare-Devil Inside's Avatar
Senior Member
Thanks Meter 366
Posts: 1,054
Join Date: Apr 2011
Location: Sibenik
Quote:
Originally Posted by as-mario View Post
Another moduler,ok then please,please,please make overvolt module for x8
You wanna fry your phone? XD

Sent from my X8 using Tapatalk
AND FOR GODS SAKE, I'M NOT A DEVELOPER.
 
skyboyextreme
Old
#6  
skyboyextreme's Avatar
Senior Member
Thanks Meter 152
Posts: 1,089
Join Date: Feb 2011
Location: Cairo
Quote:
Originally Posted by as-mario View Post
Another moduler,ok then please,please,please make overvolt module for x8
I guess this is not even possible with the current kernel cause Dx would have done that long ago!

Sent from my X8 using XDA Premium App
Xperia Neo S+

PwnKernel v1.7b + .64 Baseband + S.E 'Super' Tweaked XXX Edition + Rooted + CPU @ 1.6GHz with 1200mV + 420mb User spaced + 16GB-C4 Kingston microSD + Link2SD @ 512MB sd-ext4 + CWM Recovery 5.0.2.7 + DRM Functional

(4000 Antutu-Points)

My name is John, Hi
Now Playing : Shadow Gun - The Left Over, GTA III - 10th Anniversary
 
Blagus
Old
#7  
Blagus's Avatar
Recognized Developer
Thanks Meter 1027
Posts: 1,233
Join Date: Jun 2010

 
DONATE TO ME
No one has managed to overvolt MSM7227 yet, I've googled about that already. So I doubt it's the kernel problem.
 
skyboyextreme
Old
#8  
skyboyextreme's Avatar
Senior Member
Thanks Meter 152
Posts: 1,089
Join Date: Feb 2011
Location: Cairo
Quote:
Originally Posted by Blagus View Post
No one has managed to overvolt MSM7227 yet, I've googled about that already. So I doubt it's the kernel problem.
Wat could be the proplem then?

Sent from my X8 using XDA Premium App
Xperia Neo S+

PwnKernel v1.7b + .64 Baseband + S.E 'Super' Tweaked XXX Edition + Rooted + CPU @ 1.6GHz with 1200mV + 420mb User spaced + 16GB-C4 Kingston microSD + Link2SD @ 512MB sd-ext4 + CWM Recovery 5.0.2.7 + DRM Functional

(4000 Antutu-Points)

My name is John, Hi
Now Playing : Shadow Gun - The Left Over, GTA III - 10th Anniversary
 
Koulis2000
Old
#9  
Koulis2000's Avatar
Senior Member
Thanks Meter 381
Posts: 589
Join Date: Apr 2011
Location: Thessaloniki
What could be the advantages and disadvantages of Overvolt and Undervolt in our Xperia X8.....I really don't understand what could be used for, please inform me.
 
doixanh
Old
#10  
Recognized Developer
Thanks Meter 4712
Posts: 1,247
Join Date: Jan 2011

 
DONATE TO ME
Quote:
Originally Posted by as-mario View Post
Another moduler,ok then please,please,please make overvolt module for x8
Why don't you make it yourself?
IScreamDX v004 | GingerDX v028 | GingerDX v015 for GT-I9000 | LinuxDX v004 | FroyoBread v023b FINAL | X8Gesture v007
X8Overclock v004 | X8Undervolt v001 | X8MDDI v001 | X8Kconfig v001 | X8Netfilter dev | FroyoBeam dev | X10MPMultitouch

shakira/gdx31stock - best experience ever | galaxysmtd/slimbean | p1/cm | anzu/slimbean | maguro/slimbean

The Following 5 Users Say Thank You to doixanh For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...