Cyanogen Mod Low Brightness - Sony Xperia S, Acro S, Ion

Finally decided to install Cyanogen Mod 10 because it's the most stable one, but the problem is that even when Brightness settings are set to max my display is only 50% and it's very strange. Please help

MADNJPN said:
Finally decided to install Cyanogen Mod 10 because it's the most stable one, but the problem is that even when Brightness settings are set to max my display is only 50% and it's very strange. Please help
Click to expand...
Click to collapse
I'm having the same problem.....
Sent from my One X using Tapatalk 2

Jess813 said:
I'm having the same problem.....
Sent from my One X using Tapatalk 2
Click to expand...
Click to collapse
Unfortunately can't post the link due to forum ruels. But I'll copy the instruction.
CyanogenMod brightness Issue FIXED
I have installed Cyanogenmod , it is super fast and perfect rom
only one issue that is very major issue for me , is low brightness. I tried many things but no success
Today i got solution , it is very easy
- After installing cyanogenmod , install root explorer
- go to sysyem/etc directory
- Find hw_config.sh file
- Tap and hold on this hw_config.sh file , select edit in text viewer option from the menu
- Scroll down to the bottom , there you will see this code (i am using FXP054 cyanogenmod , for other versions it may vary)
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 1,65,255,24,24,5,128 > $dev/lcd-backlight/als/curve # ALS curve for group1
echo 2,0,0,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 450 > $dev/button-backlight/max_current
Change above code to
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 0,0,0,0,0,0,0 > $dev/lcd-backlight/als/curve # ALS curve for group1
echo 2,0,0,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 450 > $dev/button-backlight/max_current
Reboot your phone and voila you have fixed brightness problem :
I found this post yesterday, the guy who posteed says it works, but on My Xperia S it didn't maybe I did something wrong but anyway, the only thing that has changed is the LED Stripe on the bottom became brighter but not the display, maybe somebody can rewrite this code.
PS: Before changing something backup the System file.

Brightness
Jess813 said:
I'm having the same problem.....
Sent from my One X using Tapatalk 2
Click to expand...
Click to collapse
try this...
It's a well known problem on CM

SaZh047 said:
try this...
It's a well known problem on CM
Click to expand...
Click to collapse
Hey, thanks that really helped. Huge thanks!!!!

Download "Disable Auto Brightness" on Play Store ,the best solution for this problem.

Related

Possibly speed up some ROM's with these tweaks (only works with non-BFS kernels)

I reported a couple of kernel tweaks I came across on the web the other day but there has been no response yet so I thought I'd start a new thread to catch peoples attention!
The tweaks are for non-BFS kernels only (e.g. Flykernel 10a) and alter a couple of the parameters within the scheduler. I dont know enough about linux kernels to give more details but I was hoping someone who did know more would explain what the parameters do.
After applying the tweaks my phone is the smoothest I have ever felt it be and subsequently I have returned to 528MHz. Even now it feels smoother than I have had it on any other ROM when OC'ing > 600MHz. This means my battery life has seriously increased too. My phone has been running 26 hrs with email and weather updates with still 66% left.
I am currently using elelinux 1.8 and flykernel 10a @ 528MHz and I honeslty dont feel the need to flash any ROM updates anymore (yet!). The tweaks are:
EDIT: Due to some confusion I would like to make it clear in the following commands DO NOT type the '#' or '$' symbols. These are just to indicate what the terminal shows.
from ./adb shell or terminal emulator on phone
$ su
# mount -o remount,rw /system
# echo 'kernel.sched_latency_ns = 600000' >> /etc/sysctl.conf
# echo 'kernel.sched_min_granularity_ns = 400000' >> /etc/sysctl.conf
# echo 'kernel.sched_features = 24188' >> /etc/sysctl.conf
# mount -o remount,ro /system
# sysctl -p
(the following should print after typing previous command)
kernel.sched_latency_ns = 600000
kernel.sched_min_granularity_ns = 400000
kernel.sched_features = 24188
# exit
$ exit
Try them and see if it makes your phone smoother. Im sure they will. and if they dont then just delete the sysctl.conf file and you should return to normal on next boot.
EDIT2: Ok so it has become apparent that the tweaks to dont speed up ALL ROMS as the title suggests. I apologise for this over big-uppery. I think the main reason for this is that some devs have already incorporated similar tweaks (cronos?). Also erasmux has been playing around with the tweaks and he has suggested that not all the tweaks have a significant effect on performance. Of course you are all welcome to play around too and find whats suits you best. As for me, im going to leave the tweaks in because for the first time since buying my hero i am pleased with its performance and I dont see the point in removing a couple of lines from a file if it makes no difference!
Also, it is worth noting that there may be some down side to these tweaks as pointed out by Decad3nce on page 5 (post #44) in that apps requiring constant cpu time such as gps may become jumpy. I havent noticed any ill-effects yet but then I havent been on any long drives with sat-nav either so I dont know. (if you have already got yourself seriously lost or missed some meeting I apologise).
If after reading all this you still want the tweaks either follow the instructions above or flash the updated kernel elelinux was kind enough to compile (page 3) or there is another link on page 4/5 i think
Now if C0mpu13rFr34k would hurry up and finish that theme my hero may well be perfect!
Oh wow Thanks i will try this now also does this affact the bechmark scores in anyway ill report if does
A-MA-ZING, wow it's so smoother ! it work so fine !
haha how you get that done so fast im still typing
Edit: Grrrrrr..!!!!!!! Terminal crashed when typing this owell try again
I've not benchmarked it since applying tweaks but I don't think this will change benchmarks. It just improves the 'interactivity' which is all I want to do. Benchmarks are just numbers!
Sent from my HTC Hero using XDA App
ah okay thanks
Edit: just done and rebooted first impresions WOW Thanks alot realy smoothed things up a bit becnch marks are around the same (5.2)mflops for me
too bad im using bfs kernel...
orangeclanz said:
too bad im using bfs kernel...
Click to expand...
Click to collapse
Just flash non-BFS and try it. It will be worth it. If you don't like flash back!
Sent from my HTC Hero using XDA App
it is smoother : )
thanks!
Floyo 0.8
will it work with the official kernel that i got with my hero? 2.1.
liorweitz said:
will it work with the official kernel that i got with my hero? 2.1.
Click to expand...
Click to collapse
As far as I know it will work. Though I think you will need root to write a file to the /system directory.
Sent from my HTC Hero using XDA App
Anyone tried adding this to one of the init.d scripts and seeing if it helps speed?
You will need root to use most of these, as they are setting kernel params, and IIRC that requires root.
Doesn't the .config file cause the settings to be applied at startup?
Sent from my HTC Hero using XDA App
f_padia said:
Doesn't the .config file cause the settings to be applied at startup?
Sent from my HTC Hero using XDA App
Click to expand...
Click to collapse
Yes, if you compiled a kernel using these tweaks in .config, then they would be applied at startup by default. This would just let people test it out and see if they wanted to compile using these settings for good, as I imagine they will.
doesn't work at me 3x error
# sysctl -p - says short write - im not sure if is this normal
kernel.sched_latency_ns = 600000 - not found
kernel.sched_min_granularity_ns = 400000 - - not found
kernel.sched_features = 24188 - - not found
BuzzyFuzzy said:
doesn't work at me 3x error
# sysctl -p - says short write - im not sure if is this normal
kernel.sched_latency_ns = 600000 - not found
kernel.sched_min_granularity_ns = 400000 - - not found
kernel.sched_features = 24188 - - not found
Click to expand...
Click to collapse
Are you definitely on a non-BFS kernel? I think this is an issue if you have a BFS kernel.
Sent from my HTC Hero using XDA App
f_padia said:
Are you definitely on a non-BFS kernel? I think this is an issue if you have a BFS kernel.
Sent from my HTC Hero using XDA App
Click to expand...
Click to collapse
yes, FlyKernel-10a
can someone copy the code in to a post here? so I could just copy paste into CMD, beacuse I really not very good with that stuff.
Thanks,
Idan.
BuzzyFuzzy said:
doesn't work at me 3x error
# sysctl -p - says short write - im not sure if is this normal
kernel.sched_latency_ns = 600000 - not found
kernel.sched_min_granularity_ns = 400000 - - not found
kernel.sched_features = 24188 - - not found
Click to expand...
Click to collapse
hmm im not too sure to be honest. If you followed the instructions as I listed them I dont think you should have the problem. It seems as though the commands werent written to the sysctl.conf file. Again im not really very good at programming so I cant give you much more help. sorry
idanfima said:
can someone copy the code in to a post here? so I could just copy paste into CMD, beacuse I really not very good with that stuff.
Thanks,
Idan.
Click to expand...
Click to collapse
If you have the Android SDK then go to the tools folder in a command prompt (or terminal in linux) and run:
adb remount (./adb remount)
adb shell
then the following: (if you go straight through the terminal emulator in your phone dont run the above 2 commands)
$ su
# mount -o remount,rw /system
# echo 'kernel.sched_latency_ns = 600000' >> /etc/sysctl.conf
# echo 'kernel.sched_min_granularity_ns = 400000' >> /etc/sysctl.conf
# echo 'kernel.sched_features = 24188' >> /etc/sysctl.conf
# mount -o remount,ro /system
# sysctl -p
(if your above commands worked it should print:
kernel.sched_latency_ns = 600000
kernel.sched_min_granularity_ns = 400000
kernel.sched_features = 24188)
# exit
$ exit
and you should be done.
if i have a recovery image but not SU apk, can i still do it?

[Q] Dim capacitive buttons on cm10 roms

Hi all,
After 3 days of searching, I still can't find a init.d script that dims the capacitive buttons of my One X in a cm10 rom.
I found it for sense roms but not for jellybean aosp cm10
Could someone please help me?
Thanks in advance
No one have an idea?
Tabtoub said:
No one have an idea?
Click to expand...
Click to collapse
Hmm, try to modify the stuff I have in my signature. No idea it will work, I use this only to shut them off. I hate them.
try to use something else as the 0 in the init.d
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
the chmod is for disabling access to the file after you change the value

[Q] setting apps oom value using terminal emulator?

just asking,is there a way to set the oom value of certain apps using terminal emulator or any other alternative?im using autokiller memory optimizer apps and it kill the messaging apps due to its high value of oom.is there a way to lower it since this app dont hv that function(it does hv but temporarily).already did some research and found a similiar thread in xda but the respondents suggested using other apps to lower the oom(e.g system tuner pro,supercharger,automemomry manager).im curious if lowering the oom can be achieve with just using terminal emulator.thank you in advance
su
echo $new_oom_adj > /proc/$pid_of_process/oom_adj
The problem is finding the $pid_of_process , and that's your homework
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
su
echo $new_oom_adj > /proc/$pid_of_process/oom_adj
The problem is finding the $pid_of_process , and that's your homework
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
thanks..will search for it..btw noticed u upgraded to cm9 rc2.
pepoluan said:
su
echo $new_oom_adj > /proc/$pid_of_process/oom_adj
The problem is finding the $pid_of_process , and that's your homework
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
thanks..will search for it..btw noticed u upgraded to cm9 rc2.
edit:
did the finding,the pid is 2103 but how do i type it?is it like this?(em.dont quite understand when to enter)
su
echo $new_oom_adj > /proc/2103/oom_adj
edit: or should it be like this?
su
echo -8 > /proc/2103/oom_adj
afif_7070 said:
thanks..will search for it..btw noticed u upgraded to cm9 rc2.
Click to expand...
Click to collapse
Yup
@dewadg's Kernel is perfect for me :thumbup:
afif_7070 said:
did the finding,the pid is 2103 but how do i type it?is it like this?(em.dont quite understand when to enter)
su
echo $new_oom_adj > /proc/2103/oom_adj
edit: or should it be like this?
su
echo -8 > /proc/2103/oom_adj
Click to expand...
Click to collapse
The second one.
$new_oom_adj was just a placeholder because I didn't know what value exactly you want to set it to...
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
Yup
@dewadg's Kernel is perfect for me :thumbup:
The second one.
$new_oom_adj was just a placeholder because I didn't know what value exactly you want to set it to...
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
thanks.luckily i rememberd those code that u type in the apk seeder thread..another thing i wanna ask is the pid sometimes changing.so is the oom adj still applied? to be precise if i already set with pid=2103, then i run tm to kill that apps,once i run the apps again n check the pid thru tm the pid changed..(sorry for my bad english)
afif_7070 said:
thanks.luckily i rememberd those code that u type in the apk seeder thread..another thing i wanna ask is the pid sometimes changing.so is the oom adj still applied? to be precise if i already set with pid=2103, then i run tm to kill that apps,once i run the apps again n check the pid thru tm the pid changed..(sorry for my bad english)
Click to expand...
Click to collapse
yes, you have to search for the right PID after every boot.
If you know the exact package name (e.g., com.yadda.yadda.yadda), you can easily pgrep for it. Example script:
Code:
#!/system/bin/sh
targproc=com.yadda.yadda.yadda
targoom=-8
targpid="$(pgrep $targproc)" || exit 1
for p in $targpid; do
echo $targoom > /proc/$p/oom_adj
done
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
yes, you have to search for the right PID after every boot.
If you know the exact package name (e.g., com.yadda.yadda.yadda), you can easily pgrep for it. Example script:
Code:
#!/system/bin/sh
targproc=com.yadda.yadda.yadda
targoom=-8
targpid="$(pgrep $targproc)" || exit 1
for p in $targpid; do
echo $targoom > /proc/$p/oom_adj
done
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
lol.its become more complicated.but thanks alot.
edit:
didnt understand this part,for example: pid=2103
targpid=2103(pgrep com.yada.yada.yada) || exit 1
for p in 2103; do echo -8 > proc/p/oom_adj done
?is it correct?im really sorry coz i dont understand bout doing script.
afif_7070 said:
lol.its become more complicated.but thanks alot.
edit:
didnt understand this part,for example: pid=2103
targpid=2103(pgrep com.yada.yada.yada) || exit 1
for p in 2103; do echo -8 > proc/p/oom_adj done
?is it correct?im really sorry coz i dont understand bout doing script.
Click to expand...
Click to collapse
#!/system/bin/sh
targproc=com.yadda.yadda.yadda
targoom=-8
targpid="$(pgrep $targproc)" || exit 1
for p in $targpid; do
echo $targoom > /proc/$p/oom_adj
done
the thing you need to set there is the targproc and the targoom value. com.yada.yada is only example. the problem we have here is we don't know the pid because it's changing like variable in algebra so the command
Code:
targproc=com.yadda.yadda.yadda
targoom=-8
targpid="$(pgrep $targproc)" || exit 1
is needed to find the pid of the process you want. the real code is
Code:
for p in $targpid; do
echo $targoom > /proc/$p/oom_adj
done
CMIIW

change device hostname?

Hey there, I wonder how I can change the hostname of my Nexus 4? Trickster Mod Tool doesn't seem to work :S
settings -> dev options (enable it in about phone and click build number 10x if u havent) -> device hostname -> rename it.
wrong forum also.
zephiK said:
settings -> dev options (enable it in about phone and click build number 10x if u havent) -> device hostname -> rename it.
wrong forum also.
Click to expand...
Click to collapse
Not on my Stock 4.2.1 :S
Rooted and have busybox installed?
You can also edit net.hostname in your build.prop
Yes rooted + busybox.. but that would go back to stock whenever I update my ROM ?
Also, how exactly can I do that?
no one?
zakazak said:
no one?
Click to expand...
Click to collapse
It's no woo-do magic here
Code:
setprop net.hostname <x>
where x is the hostname. You can google more about it http://lmgtfy.com/?q=android+how+to+change+device+hostname
But, it is reset everytime you reboot the phone.

[Mod][Root] Enable double tap to wake in any ROM if missing...

I remember dt2w was implemented in the very first CM13 release, MIUI has it, so it's in the kernel already, we just have to find what's need to be changed to enable it... And guess what... I like digging and testing so I have found it.
Open /sys/bus/i2c/devices/4-0038/wakeup_mode with text editor, change 0 to 1, save and voila... dt2w instantly works. :good:
To make changes stick at boot open /system/etc/init.d/90userinit and add these two lines at the bottom:
Code:
sleep 15
echo "1" > $(find /sys/devices/soc.0 -name wakeup_mode)
To turn it off change back 1 to 0 in above code or comment out those two lines you just added to the 90userinit script.
Do I need to mention you need root and browser/editor with root access to do this mod!?
Enjoy!
Say thanks if works for you...
Edit: Now should work with the second hw variant discovered as well...
Hi.
can be so convenient or useful to anyone. Download drive DoubleTap_Enable_fix through TWRP
sorry:good:
Yep, that's convenient... And correct for checking the file if exists...:good: Thanks, I am too lazy some time...
Can't thank you enough!!
.......
Nice!?
DoubleTap_Enable_fix. Link not working.
double tap to sleep?
what about doubble tap to sleep ?
nijel8 said:
I remember dt2w was implemented in the very first CM13 release, MIUI has it, so it's in the kernel already, we just have to find what's need to be changed to enable it... And guess what... I like digging and testing so I have found it.
Open /sys/bus/i2c/devices/4-0038/wakeup_mode with text editor, change 0 to 1, save and voila... dt2w instantly works. :good:
To make changes stick at boot open /system/etc/init.d/90userinit and add these two lines at the bottom:
Code:
sleep 15
echo "1" > $(find /sys/devices/soc.0 -name wakeup_mode)
To turn it off change back 1 to 0 in above code or comment out those two lines you just added to the 90userinit script.
Do I need to mention you need root and browser/editor with root access to do this mod!?
Enjoy!
Say thanks if works for you...
Edit: Now should work with the second hw variant discovered as well...
Click to expand...
Click to collapse
please explain little more
i am on root explorer opened that file in rb text editor
shall i just paste
Code:
sleep 15
echo "1" > $(find /sys/devices/soc.0 -name wakeup_mode)
or shall i creat script via kernel auditor ?
Paste it in at the end of /system/etc/init.d/90userinit or create new one /system/etc/init.d/100dt2w with first line #!/system/bin/sh
nijel8 said:
Paste it in at the end of /system/etc/init.d/90userinit or create new one /system/etc/init.d/100dt2w with first line #!/system/bin/sh
Click to expand...
Click to collapse
sir i cannot see init.d folder, it only init
plz help
You can do create it manually or with kernel adiutor with init.d emulation
link77kz said:
Hi.
can be so convenient or useful to anyone. Download driveDoubleTap_Enable_fix through TWRP
sorry:good:
Click to expand...
Click to collapse
What happened to this link? It'll be cool if someone haf mirrors for this one. Thanks
would be awesome if this link gets reuploaded.
Could anyone tell me if this works on any ROM/ device please? I've got a Lenovo P8 tablet (TB-8703F), with stock ROM, rooted, but the bootloader is still locked by Lenovo (which means there is no custom ROM at the moment).
Would it be safe to try it?
thanks in advance!
4-0038 folder is not present. What can be the next step? Is there anyone faced this?
---------- Post added at 06:00 AM ---------- Previous post was at 05:12 AM ----------
I lost 90userinit file after putting the code mentioned and reboot. After this file lost I am facing network issue
thanks ill try...

Categories

Resources