[Q]Led color - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

Hi how to change led color in kernel to initiate recovery??

Jawor245 said:
Hi how to change led color in kernel to initiate recovery??
Click to expand...
Click to collapse
Are you familiar with editing the boot.img?

I'd like to know which file and command is responsible for this after i unpack boot.img.

Jawor245 said:
I'd like to know which file and command is responsible for this after i unpack boot.img.
Click to expand...
Click to collapse
I think it's in the ramdisk -> sbin. There is a bootrec or booterc-device file where you can find these lines or similar ones:
Code:
# trigger amber LED
echo '255' > /sys/class/leds/blue/brightness
echo '255' > /sys/class/leds/red/brightness
echo '0' > /sys/class/leds/green/brightness
# trigger button-backlight
echo '255' > /sys/class/leds/button-backlight/brightness
cat /dev/input/event2 > /dev/keycheck&
sleep 3
# trigger amber LED
echo '0' > /sys/class/leds/blue/brightness
echo '0' > /sys/class/leds/red/brightness
echo '0' > /sys/class/leds/green/brightness
# trigger button-backlight
echo '0' > /sys/class/leds/button-backlight/brightness
Now you should be able to change these leds to another color. But I haven't tried that yet

Related

[Tweaks] All in one tweaks build.prop,init.d,Wifi,Xloud,Bravia,A-Gps,A/V Sync,Modules

Intro
Tweaks for All ROM To make your phone faster and more features
Installation For init.d and build.prop @ post Here
ChangeLog @ post Here
Build.prop Tweaks
Some ROM have 2 build.prop you have to change both @ /System and /System/bin​
Code:
# Raise JPG quality to 100%
ro.media.enc.jpeg.quality=100
# VM Heapsize; 178MB RAM = 32 is better
dalvik.vm.heapsize=32m
# Render UI with GPU
debug.sf.hw=1
# Decrease dialing out delay
ro.telephony.call_ring.delay=0
# Helps scrolling responsiveness
windowsmgr.max_events_per_sec=150
# Save battery
wifi.supplicant_scan_interval=180
pm.sleep_mode=1
ro.ril.disable.power.collapse=0
# Disable debugging notify icon on statusbar
persist.adb.notify=0
# Increase overall touch responsiveness
debug.performance.tuning=1
video.accelerate.hw=1
# Photo and video recording quality tweak (2.3 Rom only)
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=800000
# Photo and video recording quality tweak (2.2 Rom only)
ro.media.dec.jpeg.memcap=10000000
ro.media.enc.hprof.vid.bps=1000000
# Photo and video recording quality tweak (Official ROM only)
ro.media.dec.jpeg.memcap=10000000
ro.media.enc.hprof.vid.bps=1600000
# Internet tweaks
ro.ril.hsxpa=2
ro.ril.gprsclass=12
ro.ril.hep=1
ro.ril.hsdpa.category=10
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=6
ro.ril.def.agps.mode=2
ro.ril.def.agps.feature=1
ro.ril.enable.sdr=1
ro.ril.enable.gea3=1
ro.ril.enable.fd.plmn.prefix=23402,23410,23411
ro.ril.enable.a52=1
ro.ril.enable.a53=1
ro.ril.enable.dtm=1
# NetSpeed tweaks
net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960
# Disable blackscreen issue after a call
ro.lge.proximity.delay=25
mot.proximity.delay=25
# Fix some application issues
ro.kernel.android.checkjni=0
# Phone will not wake up from hitting the volume rocker
ro.config.hwfeature_wakeupkey=0
# Force button lights on when screen is on
ro.mot.buttonlight.timeout=0
# Disable boot animation for faster boot
debug.sf.nobootanimation=1
# Enable Stagefright helps stream Video and Music Faster
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
# Enable display Dithering
persist.sys.use_dithering=1
# Enable purgeable assets
persist.sys.purgeable_assets=1
# For SD storage insert notification sound
persist.service.mount.playsnd=0
init.d tweaks
Download Init.dtweaksV3.rar and choose 99Tweaks for balance option and 99XTweaks for aggressive tweaks copy it to /system/etc/Init.D
Note:Choose 99TweaksLow/99XTweaksLow for sdcard class3 and lower​
Init.d tweaks contain
IPv4 tweaks
Code:
echo "0" > /proc/sys/net/ipv4/tcp_timestamps;
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse;
echo "1" > /proc/sys/net/ipv4/tcp_sack;
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle;
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling;
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes;
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl;
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout;
echo "404480" > /proc/sys/net/core/wmem_max;
echo "404480" > /proc/sys/net/core/rmem_max;
echo "256960" > /proc/sys/net/core/rmem_default;
echo "256960" > /proc/sys/net/core/wmem_default;
echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem;
echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem;
Dalvik VM tweaks
Code:
echo "4096" > /proc/sys/vm/min_free_kbytes
echo "0" > /proc/sys/vm/oom_kill_allocating_task;
echo "0" > /proc/sys/vm/panic_on_oom;
echo "0" > /proc/sys/vm/laptop_mode;
echo "0" > /proc/sys/vm/swappiness
echo "50" > /proc/sys/vm/vfs_cache_pressure
echo "90" > /proc/sys/vm/dirty_ratio
echo "70" > /proc/sys/vm/dirty_background_ratio
Battery Tweaks
Code:
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
SDCard speed tweaks
Code:
# Sdcard Speed tweaks
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb(Class 4 and above)
echo "512" > /sys/devices/virtual/bdi/179:0/read_ahead_kb (Class 3 and lower)
Note:If you have init.d problem or if not have init.d folder try add this line at hw_config.sh​
Balance Tweaks
Code:
# IPV4 tweaks
echo "0" > /proc/sys/net/ipv4/tcp_timestamps
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse
echo "1" > /proc/sys/net/ipv4/tcp_sack
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout
echo "404480" > /proc/sys/net/core/wmem_max
echo "404480" > /proc/sys/net/core/rmem_max
echo "256960" > /proc/sys/net/core/rmem_default
echo "256960" > /proc/sys/net/core/wmem_default
echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem
echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem
# Dalvik VM tweaks
echo "4096" > /proc/sys/vm/min_free_kbytes
echo "0" > /proc/sys/vm/oom_kill_allocating_task
echo "0" > /proc/sys/vm/panic_on_oom
echo "0" > /proc/sys/vm/laptop_mode
echo "0" > /proc/sys/vm/swappiness
echo "50" > /proc/sys/vm/vfs_cache_pressure
echo "90" > /proc/sys/vm/dirty_ratio
echo "70" > /proc/sys/vm/dirty_background_ratio
# Battery tweaks
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
# Sdcard Speed tweaks
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb(Class 4 and above)
echo "512" > /sys/devices/virtual/bdi/179:0/read_ahead_kb (Class 3 and lower)
Aggressive Tweaks
Code:
# IPV4 tweaks
echo "0" > /proc/sys/net/ipv4/tcp_timestamps
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse
echo "1" > /proc/sys/net/ipv4/tcp_sack
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout
echo "404480" > /proc/sys/net/core/wmem_max
echo "404480" > /proc/sys/net/core/rmem_max
echo "256960" > /proc/sys/net/core/rmem_default
echo "256960" > /proc/sys/net/core/wmem_default
echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem
echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem
# Dalvik VM tweaks
echo "4096" > /proc/sys/vm/min_free_kbytes
echo "0" > /proc/sys/vm/oom_kill_allocating_task
echo "0" > /proc/sys/vm/panic_on_oom
echo "0" > /proc/sys/vm/laptop_mode
echo "0" > /proc/sys/vm/swappiness
echo "20" > /proc/sys/vm/vfs_cache_pressure
echo "95" > /proc/sys/vm/dirty_ratio
echo "60" > /proc/sys/vm/dirty_background_ratio
# Battery tweaks
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
# Sdcard Speed tweaks
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb(Class 4 and above)
echo "512" > /sys/devices/virtual/bdi/179:0/read_ahead_kb (Class 3 and lower)
SuperCharger
Supercharger is minfrees,OOM groping fixes for our X8
Credits Goes To zeppelinrox
Download And Tutorial Here
And tutorial for stick minfrees Credits goes to SpyderX
1.In /etc/hw_config.sh write this line at the top
Code:
sh /etc/minfreeadjstick.sh
2.then, create a file (not folder) called minfreeadjstick.sh in /etc
3.open it and write this lines inside
4.
Code:
# Script to make minfrees and adj stick (Credits to Zeppelinrox)
sleep 40
echo "0,3,5,7,14,15" > /sys/module/lowmemorykiller/parameters/adj
echo "1536,2048,6656,7168,7680,8192" > /sys/module/lowmemorykiller/parameters/minfree
echo "0" > /proc/sys/kernel/panic
echo "0" > /proc/sys/vm/oom_kill_allocating_task
echo "0" > /proc/sys/vm/panic_on_oom
echo "1" > /proc/sys/kernel/panic_on_oops
echo "0" > /proc/sys/kernel/panic
# end of script
Wifi tweaks
This wifi tweaks is enabling N standard and 5ghz band
Credits Goes to Graveir ​1. go to /system/etc/firmware
2. find this file name
Code:
fm_rx_init_1273.2.bts
fm_tx_init_1273.2.bts
fmc_init_1273.2.bts
3.Are they there? good you will have 5ghz band. Are they not there? you wont get 5ghz band
4.Go to /system/etc/ and find tiwlan.ini Note: In CM7 based ROMs the path may be /system/etc/wifi
5.Look for the following lines:
Code:
HT_Enable=0 #0=disable 802.11n support / 1=Enable
BurstModeEnable = 0 # 0 - Disabled 1 - Enabled
WiFiAdhoc = 0
and change them into:
Code:
HT_Enable=1 #0=disable 802.11n support / 1=Enable
BurstModeEnable = 1 # 0 - Disabled 1 - Enabled
WiFiAdhoc = 1
6. This stage is for people who have file from step 2
Look for the line
Code:
Single_Dual_Band_Solution = 0
And change them into
Code:
Single_Dual_Band_Solution = 1
7. Save, reboot
Xloud Engine
2.3 ROM Only​
Xloud is making Sound enhancement,Volume enhancement,Equalizer enhancement credits goes to su.angga​1.Download Here
2 Add this line at bottom of your build.prop
Code:
# Xloud Engine
ro.semc.xloud.supported=true
persist.service.xloud.enable=1
3.Set all permission to rw-r-r
[V][V][0]
[V][0][0]
[V][0][0]
4.Reboot,Enjoy
Note:X-Loud is making DSPManager work incorrectly
Bravia Engine
2.3 and 2.2 ROM​
What is Bravia Engine? Learn Here
Credits goes to GreatApo​
1.Download Here
2.Add this line at bottom of your build.prop
Code:
# BRAVIA HACK
ro.service.swiqi.supported=true
persist.service.swiqi.enable=1
3.Copy be_photo and be_movie to system/etc
4.Set all permission
[V][V][0]
[V][0][0]
[V][0][0]
5.Reboot,Enjoy
A-Gps Patch
A-Gps patch is make GPS more accurate and lock on more Sat
Credits goes to crypted ​
1.Download Generic build Here
2.Copy to your SDCard
3.Boot to CWM recovery
4.select the "Mounts and storage" option, then "mount /system"
5.Install custom zip
6.choose the zip
7.Reboot,Enjoy
Video Recording A/V Sync for CM6​Credits goes to jkrauser​
This Audio and video sync for CM6/2.2.X
1.Download Here
2.Copy to your SDCard
3.Boot to Xrecovery
4.Install zip
5.Reboot,Enjoy
Modules For Stock Kernels​Modules is Add-on for our X8/E15​
X8Gesture Pinch zoom/Fake DT Doixanh Sypanitcs Fake DT
Instruction & Download Here
andrej456 Pinch zoom/Fake DT Good for zooming Sypanitcs Fake DT
this is andrej456 X8Gesture good for zooming
Download Here
Instruction Here
AX8MT Cypress Real DT by AnDyX
Instruction & Download Here
X8UnderVolt UnderVolt CPU voltage
Instruction & Download Here
X8Overclock Overclock X8 CPU
Instruction & Download Here
Additional Modules:Tun.ko,Vpnc,NTFS,Utf8,Ext3,Ext4
You can find Here Here
Instalation for Init.d
1.Download
2.Extract
3.Choose 99Tweaks/99Xtweaks
4.copy to init.d
5.set perm to
[V][V][0]
[V][0][0]
[v][0][0]
6.reboot
7.Enjoy
instalation build.prop
1.look at build.prop tweaks
2.copy or edit (if exist) to your build.prop
3.set perm to
[V][V][0]
[V][0][0]
[v][0][0]
4.reboot
5.Enjoy
ChangeLog:
Post Update: Update
three build.prop update
Code:
# Enable display Dithering
persist.sys.use_dithering=1
# Enable purgeable assets
persist.sys.purgeable_assets=1
# For SD storage insert notification sound
persist.service.mount.playsnd=0
Init.D tweaks Update: Remove
Remove Minfrees Tweaks
Add SuperCharger
Post Update: More Detail
More Detail Instructions
Add credits thanks SpyderX
Add Sleep Mode build.prop
All Tweaks v3: added tweaks
Added wifi N standard
Added X-Loud engine
Added Bravia engine
Update init.d v3 for lower class Sdcard
and read ahead cache is 512kb
init.d tweaks v2: init.d update
MicroSD tweaks Thanks SpyderX
Some changes on Aggressive tweaks And again thanks SpyderX
Code:
echo "20" > /proc/sys/vm/vfs_cache_pressure
echo "95" > /proc/sys/vm/dirty_ratio
echo "60" > /proc/sys/vm/dirty_background_ratio
added experimental tweaks, contain
Code:
echo "0,3,5,7,14,15" > /sys/module/lowmemorykiller/parameters/adj
echo "2560,4096,6144,15360,17920,20480" > /sys/module/lowmemorykiller/parameters/minfree
echo "0" > /proc/sys/kernel/panic
echo "0" > /proc/sys/vm/oom_kill_allocating_task
echo "0" > /proc/sys/vm/panic_on_oom
echo "1" > /proc/sys/kernel/panic_on_oops
echo "0" > /proc/sys/kernel/panic
echo "0" > /proc/sys/net/ipv4/tcp_timestamps;
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse;
echo "1" > /proc/sys/net/ipv4/tcp_sack;
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle;
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling;
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes;
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl;
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout;
echo "404480" > /proc/sys/net/core/wmem_max;
echo "404480" > /proc/sys/net/core/rmem_max;
echo "256960" > /proc/sys/net/core/rmem_default;
echo "256960" > /proc/sys/net/core/wmem_default;
echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem;
echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem;
echo "4096" > /proc/sys/vm/min_free_kbytes
echo "0" > /proc/sys/vm/oom_kill_allocating_task;
echo "0" > /proc/sys/vm/panic_on_oom;
echo "0" > /proc/sys/vm/laptop_mode;
echo "0" > /proc/sys/vm/swappiness
echo "20" > /proc/sys/vm/vfs_cache_pressure
echo "95" > /proc/sys/vm/dirty_ratio
echo "60" > /proc/sys/vm/dirty_background_ratio
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
echo "8" > /proc/sys/vm/page-cluster;
echo "64000" > /proc/sys/kernel/msgmni;
echo "64000" > /proc/sys/kernel/msgmax;
echo "10" > /proc/sys/fs/lease-break-time;
echo "500,512000,64,2048" > /proc/sys/kernel/sem;
All v1:
initial release for public
nice. ..
XtremePeople said:
LowmemoryKiller Tweaks Balance
Click to expand...
Click to collapse
i think better is avoid this section and use Supercharger
.And thanks for other. will try this evening
Thanks. I'm gonna try some tweaks..
Sent from my X8 using XDA Premium App
Sorry for a noon question but can u explain the installation process a little bit more detailed...?
Sent from my X8 using XDA App
working in Gingerdx v17+LinuxDx v004.. thanks buudy!
u have to copy the file to the init.d folder, then set peimissions of it with root explorer
Erm... i think 40MB for dalvik vm heap is better. And SD Card read ahead cache BEST size is 2048 KB. Tried for about a 100 times, 2048 KB is BEST .
/sys/devices/virtual/bdi/179:0/read_ahead_kb is the file
Oh and my /etc folder is attached, take all the files you want from it.
By the way don't take the wifi files . They don't work I think...
Don't replace your entire folder with my folder, just take the stuff you need .
Of course, mine is not perfect .
And settings should be:
Code:
echo "20" > /proc/sys/vm/vfs_cache_pressure
echo "95" > /proc/sys/vm/dirty_ratio
echo "60" > /proc/sys/vm/dirty_background_ratio
Please make a version with tweaks to 2.1
is the bravia engine working on froyobread?
---------- Post added at 07:22 PM ---------- Previous post was at 06:56 PM ----------
you forgot to add this line
3. Go back to /system/etc and find a file named tiwlan.ini
NOTE: In CM7 based ROMs the path may be /system/etc/wifi
Click to expand...
Click to collapse
Thats why i dont find it! lol
SpyderX said:
Erm... i think 40MB for dalvik vm heap is better. And SD Card read ahead cache BEST size is 2048 KB. Tried for about a 100 times, 2048 KB is BEST .
(...)
[/code]
Click to expand...
Click to collapse
NOOOOOOO xD
With that Cache size the music has hiccups.
Probably if you have an higher class sdcard, that cache size will be good, but with Class2 and Class4 there is hiccups when you're listening to music
128KB for Slow MemoryCards
Any of this tweaks allow us to connect to eduroam networks?
XtremePeople, u should warn people, because enabling WiFi .n makes wifi work very unstable -___-
WARR10r said:
XtremePeople, u should warn people, because enabling WiFi .n makes wifi work very unstable -___-
Click to expand...
Click to collapse
No,Wifi N just stable for B/G but it will unstable to connect N standard
RockitOut11 said:
NOOOOOOO xD
With that Cache size the music has hiccups.
Probably if you have an higher class sdcard, that cache size will be good, but with Class2 and Class4 there is hiccups when you're listening to music
128KB for Slow MemoryCards
Click to expand...
Click to collapse
I think 512kb for class 3 and lower
ilarisk said:
is the bravia engine working on froyobread?
Click to expand...
Click to collapse
It's work on 2.2 and 2.3
SpyderX said:
Erm... i think 40MB for dalvik vm heap is better. And SD Card read ahead cache BEST size is 2048 KB. Tried for about a 100 times, 2048 KB is BEST .
/sys/devices/virtual/bdi/179:0/read_ahead_kb is the file
Oh and my /etc folder is attached, take all the files you want from it.
By the way don't take the wifi files . They don't work I think...
Don't replace your entire folder with my folder, just take the stuff you need .
Of course, mine is not perfect .
And settings should be:
Code:
echo "20" > /proc/sys/vm/vfs_cache_pressure
echo "95" > /proc/sys/vm/dirty_ratio
echo "60" > /proc/sys/vm/dirty_background_ratio
Click to expand...
Click to collapse
yes is best is 2048 for class 4 above but dalvik vm is best is 32 for me
szaberto said:
u have to copy the file to the init.d folder, then set peimissions of it with root explorer
Click to expand...
Click to collapse
where is this init.d folder ? can u please teach me step by step? thanks..
maliceomalice said:
where is this init.d folder ? can u please teach me step by step? thanks..
Click to expand...
Click to collapse
system/etc/init.d
etc/init.d
I copy on the both
hunff said:
system/etc/init.d
etc/init.d
I copy on the both
Click to expand...
Click to collapse
i download the v3 tweak. after i extract,wat should i do? copy all files in the folder to init.d folder?

[Q] init.d --> semicolon use?

Hi everyone,
I have just one question to ask:
In every init.d file that I've found, it's been divided-- some lines are with semicolons, others are one. Most have both, which confuses me greatly...
AND they're right next to each other; for example, in the Pimp My Rom tweaks,
The S10vm tweak has all but one semicolon-ed:
Code:
#!/system/bin/sh
echo "4096" > /proc/sys/vm/min_free_kbytes;
echo "0" > /proc/sys/vm/oom_kill_allocating_task;
echo "0" > /proc/sys/vm/panic_on_oom;
echo "0" > /proc/sys/vm/laptop_mode;
echo "0" > /proc/sys/vm/swappiness;
echo "50" > /proc/sys/vm/vfs_cache_pressure;
echo "90" > /proc/sys/vm/dirty_ratio;
echo "70" > /proc/sys/vm/dirty_background_ratio
In the S36iosched file, almost none are semicoloned:
Code:
#!/system/bin/sh
mount -o remount,rw /sys /sys;
mount -o remount,rw /system /system;
echo 2 > /sys/block/mmcblk0/queue/iosched/fifo_batch
echo 2230 > /sys/block/mmcblk0/queue/iosched/write_expire
echo 300 > /sys/block/mmcblk0/queue/iosched/read_expire
echo 2230 > /sys/block/mmcblk0/queue/iosched/async_write_expire
echo 300 > /sys/block/mmcblk0/queue/iosched/async_read_expire
echo 2 > /sys/block/mmcblk0/queue/iosched/writes_starved
echo 2230 > /sys/block/mmcblk0/queue/iosched/sync_write_expire
echo 300 > /sys/block/mmcblk0/queue/iosched/sync_read_expire
mount -o remount,ro /system /system
mount -o remount,ro /sys /sys
It's driving me nuts (I'm compiling my own init.d file) and I'm not sure whether to include the semicolon or not >__>
Thanks for your definitive response; it is very much appreciated!
The semicolon is a command separator. If command are separated by a new line, you don't need a semicolon. Inserting one won't make any difference.
Sent from my Nexus 7
BillGoss said:
The semicolon is a command separator. If command are separated by a new line, you don't need a semicolon. Inserting one won't make any difference.
Sent from my Nexus 7
Click to expand...
Click to collapse
Okay, thanks for your response! It's much clearer now.

[Q] Remove dual touch?

3 questions.
1. Is it possible to remove dual touch?
2. It will help the phone to be faster?
3. If the first two answers is yes then how can i do it?
manthes said:
3 questions.
1. Is it possible to remove dual touch?
2. It will help the phone to be faster?
3. If the first two answers is yes then how can i do it?
Click to expand...
Click to collapse
1-yes
2-yes sure but not that much, maybe fewer than 1%
3- what's your rom+kernel+ touch screen type?
Sent From My BEAST , I mean X8
I don't use it so and 1% for me is fine
MiniCM7-2.2.1
nAa-14
What do you mean with touch screen type?
manthes said:
I don't use it so and 1% for me is fine
MiniCM7-2.2.1
nAa-14
What do you mean with touch screen type?
Click to expand...
Click to collapse
X10m & x8 come with two different touch screens
Syanptics(known as fake dual touch,one of touch points should not move otherwise touch will stop working )
Cypress(real dual touch which acts like dual touch screens but you must press your fingers a little harder)
Sent From My BEAST , I mean X8
---------- Post added at 04:58 PM ---------- Previous post was at 04:44 PM ----------
Your phone, your risk, I'm not responsible for bricks:
http://forum.xda-developers.com/showthread.php?t=1350484
Read the first post, it's written about removing dual touch
It's for x8 but x8 & x10 are much like the same.
nandroid backup is recommended
Repeating again: Your phone, your risk, I'm not responsible for bricks
Sent From My BEAST , I mean X8
Thanks for the answer.
I make a copy-paste insmod /system/lib/modules/synaptics_i2c_rmi4_no_dt.ko at the end of the file but nothing happens
manthes said:
Thanks for the answer.
I make a copy-paste insmod /system/lib/modules/synaptics_i2c_rmi4_no_dt.ko at the end of the file but nothing happens
Click to expand...
Click to collapse
Add that following code to
System/ etc/ hw_config.Sh
(Using text editor)
& you'll be fine
Sent From My BEAST , I mean X8
i have done it but it didn't work.
That's my file. Have i done something wrong?
# Vibrator configuration
dev=/sys/devices/platform/msm_pmic_vibrator
echo 2400 > $dev/voltage_mv
# lm3530 LMU configuration
dev=/sys/devices/platform/i2c-adapter/i2c-0/0-0036
echo linear > $dev/br::mapping # linear exp
echo 32768 > $dev/br::rate::up # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 32768 > $dev/br::rate::down # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 254 > $dev/br::limit # 0 - 255
echo 22.5 > $dev/br::fsc # 5.0, 8.5, 12.0, 15.5, 19.0, 22.5, 26.0, 29.5
echo 4,16,64,250 > $dev/curve::borders
echo 50,50,50,50,50 > $dev/curve::targets
echo high-z > $dev/als::r1 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo high-z > $dev/als::r2 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo 128 > $dev/als::avg-t # 32, 63, 128, 256, 512, 1024, 2048, 4096
echo i2c_pwm_als > $dev/mode # i2c, pwm, i2c_pwm, als, pwm_als, i2c_pwm_als, i2_als
# Proximity sensor configuration
dev=/sys/devices/platform/proximity-sensor/semc/proximity-sensor
echo 15 > $dev/led_on_ms # sensor LED on time in ms
echo 35 > $dev/led_off_ms # sensor LED off time in ms
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 90 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential
echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# Flash LED configuration
dev=/sys/devices/platform/msm_pmic_flash_led
echo 80 > $dev/spotlight::current_ma # spotlight current
echo 4700 > $dev/spotlight::boost_mv # spotlight boost voltage
echo 480 > $dev/cmaflash::current_ma # camera flash current
echo 5000 > $dev/cmaflash::boost_mv # camera flash voltage
dev=/sys/devices/platform/msm_pmic_misc_led.0
echo 255 > $dev/max::brightness
echo 3 > $dev/als::cut-off
zone "0"
echo user_als > $dev/control::mode
echo 40 > $dev/max::current_ma
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
chmod u+s /system/bin/charger
mount -o ro,remount -t yaffs2 /dev/block/mtdblock0 /system
rm -rf /data/local/download/*
insmod /system/lib/modules/synaptics_i2c_rmi4_no_dt.ko
manthes said:
i have done it but it didn't work.
That's my file. Have i done something wrong?
# Vibrator configuration
dev=/sys/devices/platform/msm_pmic_vibrator
echo 2400 > $dev/voltage_mv
# lm3530 LMU configuration
dev=/sys/devices/platform/i2c-adapter/i2c-0/0-0036
echo linear > $dev/br::mapping # linear exp
echo 32768 > $dev/br::rate::up # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 32768 > $dev/br::rate::down # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 254 > $dev/br::limit # 0 - 255
echo 22.5 > $dev/br::fsc # 5.0, 8.5, 12.0, 15.5, 19.0, 22.5, 26.0, 29.5
echo 4,16,64,250 > $dev/curve::borders
echo 50,50,50,50,50 > $dev/curve::targets
echo high-z > $dev/als::r1 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo high-z > $dev/als::r2 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo 128 > $dev/als::avg-t # 32, 63, 128, 256, 512, 1024, 2048, 4096
echo i2c_pwm_als > $dev/mode # i2c, pwm, i2c_pwm, als, pwm_als, i2c_pwm_als, i2_als
# Proximity sensor configuration
dev=/sys/devices/platform/proximity-sensor/semc/proximity-sensor
echo 15 > $dev/led_on_ms # sensor LED on time in ms
echo 35 > $dev/led_off_ms # sensor LED off time in ms
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 90 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential
echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# Flash LED configuration
dev=/sys/devices/platform/msm_pmic_flash_led
echo 80 > $dev/spotlight::current_ma # spotlight current
echo 4700 > $dev/spotlight::boost_mv # spotlight boost voltage
echo 480 > $dev/cmaflash::current_ma # camera flash current
echo 5000 > $dev/cmaflash::boost_mv # camera flash voltage
dev=/sys/devices/platform/msm_pmic_misc_led.0
echo 255 > $dev/max::brightness
echo 3 > $dev/als::cut-off
zone "0"
echo user_als > $dev/control::mode
echo 40 > $dev/max::current_ma
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
chmod u+s /system/bin/charger
mount -o ro,remount -t yaffs2 /dev/block/mtdblock0 /system
rm -rf /data/local/download/*
insmod /system/lib/modules/synaptics_i2c_rmi4_no_dt.ko
Click to expand...
Click to collapse
Maybe your phone have cypress
try this:
Code:
insmod /system/lib/modules/cypress_i2c_rmi4_no_dt.ko
Edit: sorry this module is not included so wait a moment, I'll find another solution
Sent From My BEAST , I mean X8
---------- Post added at 12:38 AM ---------- Previous post was at 12:29 AM ----------
Grab & Upload hw_config.sh from system/etc/
I'll change preference & send it to you
Sent From My BEAST , I mean X8
i see that in my folder modules i dont have any of these files.
the only files are :
modules.deb.bb
sdio.ko
tiap_drv.ko
tiwlan_drv.ko
x10miniprouv.ko
manthes said:
i see that in my folder modules i dont have any of these files.
the only files are :
modules.deb.bb
sdio.ko
tiap_drv.ko
tiwlan_drv.ko
x10miniprouv.ko
Click to expand...
Click to collapse
Sorry again, I need hw_config.sh ,upload that here(system/etc/)
I'll fix it & send it to you
Sent From My BEAST , I mean X8
here it is

[Q] low memory killer 1000,2000,... casue reboot

I am using this setting.
echo "0,1,4,6,13,15" > /sys/module/lowmemorykiller/parameters/adj
echo "4000,5000,6000,10000,15000,20000" > /sys/module/lowmemorykiller/parameters/minfree
I see other members using 1000,2000,... or lower for minfree.
If I use my value for my neo, firefox closes when I load some image heavy page.
If I use lower value for my neo, it reboots in the same situation.
It is pretty strange. Please give some advises.
p.s. my vm.min_free_kbytes is 4096, related?
For stable use system use and low battery drain
echo 0 > /proc/sys/vm/oom_kill_allocating_task
echo 1 > /proc/sys/vm/vfs_cache_pressure
echo 95 > /proc/sys/vm/dirty_ratio
echo 80 > /proc/sys/vm/dirty_background_ratio
echo 0 > /proc/sys/vm/block_dump
echo 1 > /proc/sys/vm/overcommit_memory
echo 80 > /proc/sys/vm/overcommit_ratio
echo 3 > /proc/sys/vm/page-cluster
echo 0 > /proc/sys/vm/panic_on_oom
echo 0 > /proc/sys/vm/dirty_expire_centisecs
echo 0 > /proc/sys/vm/dirty_writeback_centisecs
echo "10" > /proc/sys/fs/lease-break-time
echo 3 > /proc/sys/vm/drop_caches
Click to expand...
Click to collapse
for performance
echo 1 > /proc/sys/vm/oom_kill_allocating_task
echo 100 > /proc/sys/vm/vfs_cache_pressure
echo 10 > /proc/sys/vm/dirty_ratio
echo 4 > /proc/sys/vm/dirty_background_ratio
echo 0 > /proc/sys/vm/block_dump
echo 1 > /proc/sys/vm/overcommit_memory
echo 100 > /proc/sys/vm/overcommit_ratio
echo 3 > /proc/sys/vm/page-cluster
echo 0 > /proc/sys/vm/panic_on_oom
echo 3000 > /proc/sys/vm/dirty_expire_centisecs
echo 1000 > /proc/sys/vm/dirty_writeback_centisecs
echo "10" > /proc/sys/fs/lease-break-time
echo 3 > /proc/sys/vm/drop_caches
echo "256,512,4096,11120,25360,33300" > /sys/module/lowmemorykiller/parameters/minfree
Click to expand...
Click to collapse
you can copy this to file without extention end run into terminal/shell exec sh path_to_your_file
try this and give me a feedback. On rom i use it's give a very good scores
invidian1 said:
For stable use system use and low battery drain
for performance
you can copy this to file without extention end run into terminal/shell exec sh path_to_your_file
try this and give me a feedback. On rom i use it's give a very good scores
Click to expand...
Click to collapse
Can we make a file and put this init.d folder??
Sent from my MT11i using xda premium
vishal_android freak said:
Can we make a file and put this init.d folder??
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
Of course, plese I added smartassv2 setting to this scripts too. But they will not work if you didn't choose smartassv2 as Your Governor. Delete ".txt" and push one of them to init.d folder.

Underclocking app for SD 625

What good app you preffer for underclocking SD625? I want an app thar can underclock and if posible undervolt CPU and turn off some cpu cores. I have RR 5.8.5 with Electrablue 7 kernel.
If you are after an app, then Kernel Adiutor should do some of what you want.
However, if you want full manual control, then you can run commands from a root terminal, or use a script - eg
Code:
# reduce max freq to 1.68ghz
echo "1689600" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# reduce cores running foreground operations
echo "0-3" > /dev/cpuset/foreground/cpus # default=0-6
echo "0-3" > /dev/cpuset/foreground/boost/cpus # default=0-6
# reduce cores running background operations
echo "0" > /dev/cpuset/background/cpus # default=0-1
echo "0-1" > /dev/cpuset/system-background/cpus # default=0-3
# turn off the last 4 cores
echo "0" > /sys/devices/system/cpu/cpu7/online
echo "0" > /sys/devices/system/cpu/cpu6/online
echo "0" > /sys/devices/system/cpu/cpu5/online
echo "0" > /sys/devices/system/cpu/cpu4/online
DarthJabba9 said:
If you are after an app, then Kernel Adiutor should do some of what you want.
However, if you want full manual control, then you can run commands from a root terminal, or use a script - eg
Code:
# reduce max freq to 1.68ghz
echo "1689600" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# reduce cores running foreground operations
echo "0-3" > /dev/cpuset/foreground/cpus # default=0-6
echo "0-3" > /dev/cpuset/foreground/boost/cpus # default=0-6
# reduce cores running background operations
echo "0" > /dev/cpuset/background/cpus # default=0-1
echo "0-1" > /dev/cpuset/system-background/cpus # default=0-3
# turn off the last 4 cores
echo "0" > /sys/devices/system/cpu/cpu7/online
echo "0" > /sys/devices/system/cpu/cpu6/online
echo "0" > /sys/devices/system/cpu/cpu5/online
echo "0" > /sys/devices/system/cpu/cpu4/online
Click to expand...
Click to collapse
Very nice commands, these remain after reboot?
Do you know the command for checking current cpu speed and current number of cores online? Or better, one command to show all running cores with their speed.
nikkky said:
Very nice commands, these remain after reboot?
Do you know the command for checking current cpu speed and current number of cores online? Or better, one command to show all running cores with their speed.
Click to expand...
Click to collapse
The commands are not persistent. If you want them to be applied automatically after reboots, you need to put them in a script that is executed via init.d (see https://forum.xda-developers.com/re...o-initd-ad-blocking-bad-audio-videos-t3626661).
To see the values, simply run "cat" on each of the files being written to in the above examples - eg
Code:
cat /sys/devices/system/cpu/cpu7/online
DarthJabba9 said:
The commands are not persistent. If you want them to be applied automatically after reboots, you need to put them in a script that is executed via init.d (see https://forum.xda-developers.com/re...o-initd-ad-blocking-bad-audio-videos-t3626661).
To see the values, simply run "cat" on each of the files being written to in the above examples - eg
Code:
cat /sys/devices/system/cpu/cpu7/online
Click to expand...
Click to collapse
Do you know the command for changing governors?
nikkky said:
Do you know the command for changing governors?
Click to expand...
Click to collapse
Unfortunately, no.
DarthJabba9 said:
If you are after an app, then Kernel Adiutor should do some of what you want.
However, if you want full manual control, then you can run commands from a root terminal, or use a script - eg
Code:
# reduce max freq to 1.68ghz
echo "1689600" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# reduce cores running foreground operations
echo "0-3" > /dev/cpuset/foreground/cpus # default=0-6
echo "0-3" > /dev/cpuset/foreground/boost/cpus # default=0-6
# reduce cores running background operations
echo "0" > /dev/cpuset/background/cpus # default=0-1
echo "0-1" > /dev/cpuset/system-background/cpus # default=0-3
# turn off the last 4 cores
echo "0" > /sys/devices/system/cpu/cpu7/online
echo "0" > /sys/devices/system/cpu/cpu6/online
echo "0" > /sys/devices/system/cpu/cpu5/online
echo "0" > /sys/devices/system/cpu/cpu4/online
Click to expand...
Click to collapse
When I try for example echo "0" > /sys/devices/system/cpu/cpu6/online I got permission denied. I used Material Terminal app.
Edit:
It worked by tiping su before, to convert $ to # for becoming root.
nikkky said:
Edit:
It worked by tiping su before, to convert $ to # for becoming root.
Click to expand...
Click to collapse
Yes. Running the "su" command is what converts your terminal session into a root terminal session

Categories

Resources