-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path05thunderbolt
592 lines (476 loc) · 22.9 KB
/
05thunderbolt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
#!/system/bin/sh
#ThunderBolt!
# ==============================================================
# ==============================================================
# ==============================================================
# I/O related tweaks
# ==============================================================
# ==============================================================
# ==============================================================
STL=`ls -d /sys/block/stl*`;
BML=`ls -d /sys/block/bml*`;
MMC=`ls -d /sys/block/mmc*`;
MTD=`ls -d /sys/block/mtd*`;
#I/O scheduler (Commented out) An example here is NOOP. SIO is still the best ;)
#for i in $STL $BML $MMC;
#do
# echo "noop" > $i/queue/scheduler;
#done;
# Optimize non-rotating storage;
for i in $STL $BML $MMC $ZRM $MTD;
do
#IMPORTANT!
if [ -e $i/queue/rotational ];
then
echo 0 > $i/queue/rotational;
fi;
if [ -e $i/queue/nr_requests ];
then
echo 1024 > $i/queue/nr_requests; # for starters: keep it sane
fi;
#CFQ specific
if [ -e $i/queue/iosched/back_seek_penalty ];
then
echo 1 > $i/queue/iosched/back_seek_penalty;
fi;
#CFQ specific
if [ -e $i/queue/iosched/low_latency ];
then
echo 1 > $i/queue/iosched/low_latency;
fi;
#CFQ Specific
if [ -e $i/queue/iosched/slice_idle ];
then
echo 1 > $i/queue/iosched/slice_idle; # previous: 1
fi;
# deadline/VR/SIO scheduler specific
if [ -e $i/queue/iosched/fifo_batch ];
then
echo 4 > $i/queue/iosched/fifo_batch;
fi;
if [ -e $i/queue/iosched/writes_starved ];
then
echo 1 > $i/queue/iosched/writes_starved;
fi;
#CFQ specific
if [ -e $i/queue/iosched/quantum ];
then
echo 8 > $i/queue/iosched/quantum;
fi;
#VR Specific
if [ -e $i/queue/iosched/rev_penalty ];
then
echo 1 > $i/queue/iosched/rev_penalty;
fi;
if [ -e $i/queue/rq_affinity ];
then
echo "1" > $i/queue/rq_affinity;
fi;
#disable iostats to reduce overhead # idea by kodos96 - thanks !
if [ -e $i/queue/iostats ];
then
echo "0" > $i/queue/iostats;
fi;
# Optimize for read- & write-throughput;
# Optimize for readahead;
if [ -e $i/queue/read_ahead_kb ];
then
echo "256" > $i/queue/read_ahead_kb;
fi;
# Commented out nomerges (Merges are good). max_sectors_kb to default - don't tweak it
# echo "0" > $i/queue/nomerges
# echo "128" > $i/queue/max_sectors_kb
done;
# Specifically for NAND devices where reads are faster than writes, writes starved 2:1 is good
for i in $STL $BML $ZRM $MTD;
do
if [ -e $i/queue/iosched/writes_starved ];
then
echo 2 > $i/queue/iosched/writes_starved;
fi;
done;
# =========
# TWEAKS: raising read_ahead_kb cache-value for mounts that are sdcard-like to 1024
# =========
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ];
then
echo "1024" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;
if [ -e /sys/devices/virtual/bdi/179:8/read_ahead_kb ];
then
echo "1024" > /sys/devices/virtual/bdi/179:8/read_ahead_kb;
fi;
if [ -e /sys/devices/virtual/bdi/179:28/read_ahead_kb ];
then
echo "1024" > /sys/devices/virtual/bdi/179:28/read_ahead_kb;
fi;
if [ -e /sys/devices/virtual/bdi/179:33/read_ahead_kb ];
then
echo "1024" > /sys/devices/virtual/bdi/179:33/read_ahead_kb;
fi;
if [ -e /sys/devices/virtual/bdi/default/read_ahead_kb ];
then
echo "256" > /sys/devices/virtual/bdi/default/read_ahead_kb;
fi;
# Remount all partitions with noatime
for k in $(busybox mount | grep relatime | cut -d " " -f3);
do
#sync;
busybox mount -o remount,noatime $k;
done;
# ==============================================================
# ==============================================================
# ==============================================================
# VFS, VM settings
# ==============================================================
# ==============================================================
# ==============================================================
# Don't optimize swappiness. Swappiness does nothing if you don't have ZCACHE
#echo 0 > /proc/sys/vm/swappiness # 70 for zram, Talon # 0 for CM7 / MIUI (no zram yet)
sysctl -w vm.page-cluster=3;
sysctl -w vm.laptop_mode=0;
sysctl -w vm.dirty_expire_centisecs=3000;
sysctl -w vm.dirty_writeback_centisecs=500;
sysctl -w vm.dirty_background_ratio=40;
sysctl -w vm.dirty_ratio=80;
sysctl -w vm.vfs_cache_pressure=10;
sysctl -w vm.overcommit_memory=1;
sysctl -w vm.oom_kill_allocating_task=0;
### Phone dialer app ###
# renice -1 `pidof com.android.phone`;
### System apps ###
# renice -1 `pidof com.android.mms`; # Text message app
# renice -1 `pidof com.swype.android.inputmethod`; # Keyboard
# renice -1 `pidof com.sec.android.app.controlpanel`; # Task manager
# renice -1 `pidof com.android.systemui`; # Status bar
# renice -1 `pidof com.android.settings`; # Settings menu
# renice -1 `pidof com.android.vending`; # Market app
# renice -1 `pidof com.sec.android.app.camera`; # Camera app
# renice -1 `pidof android.process.acore`;
# renice -1 `pidof kondemand/0`;
# renice -1 `pidof ksmartass_up/0`;
# ==============================================================
# ==============================================================
# ==============================================================
# network speed and throughput
# ==============================================================
# ==============================================================
# ==============================================================
# =========
# TWEAKS: for TCP read/write
# =========
sysctl -w net.ipv4.tcp_timestamps=0;
sysctl -w net.ipv4.tcp_tw_reuse=1;
sysctl -w net.ipv4.tcp_sack=1;
sysctl -w net.ipv4.tcp_dsack=1;
sysctl -w net.ipv4.tcp_tw_recycle=1;
sysctl -w net.ipv4.tcp_window_scaling=1;
sysctl -w net.ipv4.tcp_keepalive_probes=5;
sysctl -w net.ipv4.tcp_keepalive_intvl=30;
sysctl -w net.ipv4.tcp_fin_timeout=30;
sysctl -w net.ipv4.tcp_moderate_rcvbuf=1;
# Commented out - Use the kernel defaults instead
#echo 524288 > /proc/sys/net/core/wmem_max;
#echo 524288 > /proc/sys/net/core/rmem_max;
# Commented out - Use the kernel defaults instead
# increase Linux auto tuning TCP buffer limits
# min, default, and max number of bytes to use
# set max to at least 4MB, or higher if you use very high BDP paths
#echo "524280" > /proc/sys/net/core/rmem_default # default:
#echo "524280" > /proc/sys/net/core/wmem_default # default:
# Commented out - Use the kernel defaults instead
# Increase the maximum total TCP buffer-space allocatable
#sysctl -w net.ipv4.tcp_mem="57344 57344 524288";
# Commented out - Use the kernel defaults instead
#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;
# Commented out - Use the kernel defaults instead
# Increase the tcp-time-wait buckets pool size
#sysctl -w net.ipv4.tcp_max_tw_buckets="1440000"
# default: 180000
# Commented out - Use the kernel defaults instead
# Increase the maximum amount of option memory buffers
#sysctl -w net.core.optmem_max="57344"
# default: 20480
# Commented out - Use the kernel defaults instead
# disable ECN
# enable it - since it's needed for SFB to work properly/optimally
# echo "0" > /proc/sys/net/ipv4/tcp_ecn # default at 2
# explicitly disable it since there's still buggy routers and other stations involved that break networking
# ==============================================================
# ==============================================================
# ==============================================================
# network security related settings
# ==============================================================
# ==============================================================
# ==============================================================
# Commented out - Use the kernel defaults instead
# disables IP source routing (for ipv4)
#for i in /proc/sys/net/ipv4/conf/*; do
# /bin/echo "0" > $i/accept_source_route
#done # does not get applied - FIXME
## echo "1" > /proc/sys/net/ipv4/conf/all/accept_source_route ## fix wifi, networking issues # leave at default
# Commented out - Use the kernel defaults instead
#for i in /proc/sys/net/ipv6/conf/*; do
# /bin/echo "0" > $i/accept_source_route
#done # does not get applied - FIXME
# Commented out - Use the kernel defaults instead
## echo "1" > /proc/sys/net/ipv6/conf/all/accept_source_route ## fix wifi, networking issues # leave at default
# These commands configure the server to ignore redirects from machines that are listed as
# gateways. Redirect can be used to perform attacks, so we only want to allow them from
# trusted sources:
# Commented out - Use the kernel defaults instead
#for i in /proc/sys/net/ipv4/conf/*; do
# /bin/echo "1" > $i/secure_redirects
#done
## echo "0" > /proc/sys/net/ipv4/conf/all/secure_redirects ## fix wifi, networking issues # leave at default
#for i in /proc/sys/net/ipv6/conf/*; do
# /bin/echo "1" > $i/secure_redirects
#done
# Commented out - Use the kernel defaults instead
# disables IP redirects (for ipv4)
#for i in /proc/sys/net/ipv4/conf/*; do
# /bin/echo "0" > $i/accept_redirects
#done # does not get applied - FIXME
# echo "1" > /proc/sys/net/ipv4/conf/all/accept_redirects ## fix wifi, networking issues # leave at default
#for i in /proc/sys/net/ipv6/conf/*; do
# /bin/echo "0" > $i/accept_redirects
#done # does not get applied - FIXME
# echo "1" > /proc/sys/net/ipv6/conf/all/accept_redirects ## fix wifi, networking issues # leave at default
# If this server does not act as a router, it does not have to send redirects, so they can be
# disabled:
#for i in /proc/sys/net/ipv4/conf/*; do
# /bin/echo "0" > $i/send_redirects
#done # does not get applied - FIXME
# Commented out - Use the kernel defaults instead
# echo "1" > /proc/sys/net/ipv4/conf/all/send_redirects ## fix wifi, networking issues # # leave at default
# Configure the server to ignore broadcast pings and smurf attacks:
# (smurf-attacks)
sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1;
if [ -e /proc/sys/net/ipv6/icmp_echo_ignore_broadcasts ]
then
echo "1" > /proc/sys/net/ipv6/icmp_echo_ignore_broadcasts; # default
fi;
# Ignore all kinds of icmp packets or pings:
sysctl -w net.ipv4.icmp_echo_ignore_all=1;
if [ -e /proc/sys/net/ipv6/icmp_echo_ignore_all ]
then
echo "1" > /proc/sys/net/ipv6/icmp_echo_ignore_all; # default: 0
fi;
# Some routers send invalid responses to broadcast frames, and each one generates a
# warning that is logged by the kernel. These responses can be ignored:
sysctl -w net.ipv4.icmp_ignore_bogus_error_responses=1;
if [ -e /proc/sys/net/ipv6/icmp_ignore_bogus_error_responses ]
then
echo "1" > /proc/sys/net/ipv6/icmp_ignore_bogus_error_responses;
fi;
# When the server is heavily loaded or has many clients with bad connections with high
# latency, it can result in an increase in half-open connections. This is common for Web
# servers, especially when there are a lot of dial-up users. These half-open connections are
# stored in the backlog connections queue. You should set this value to at least 4096. (The
# default is 1024.)
# Setting this value is useful even if your server does not receive this kind of connection,
# because it can still be protected from a DoS (syn-flood) attack.
sysctl -w net.ipv4.tcp_max_syn_backlog=4096; # default: 128
# Commented out - Use the kernel defaults instead
#echo 2 > /proc/sys/net/ipv4/tcp_synack_retries; # default: 5
# Increase the number of outstanding syn requests allowed.
# Note: some people (including myself) have used tcp_syncookies to handle the problem of too many legitimate outstanding SYNs.
sysctl -w net.core.netdev_max_backlog=2500;
# While TCP SYN cookies are helpful in protecting the server from syn-flood attacks, both
# denial-of-service (DoS) or distributed denial-of-service (DDoS), they could have an
# adverse effect on performance. We suggest enabling TCP SYN cookies only when there is
# a clear need for them.
# disabling syncookies
sysctl -w net.ipv4.tcp_syncookies=0;
# Commented out - Use the kernel defaults instead
# We have also learned that window scaling can be an option to enlarge the transfer
# window. However, benchmarks have shown that window scaling is not suited for systems
# experiencing very high network load. Additionally, some network devices do not follow the
# RFC guidelines and could cause window scaling to malfunction. We suggest disabling
# window scaling and manually setting the window sizes.
# log and drop "martian" packets
#for i in /proc/sys/net/ipv4/conf/*; do
# /bin/echo "1" > $i/log_martians
#done # does not get applied - FIXME
# echo "1" > /proc/sys/net/ipv4/conf/all/log_martians
# Commented out - Use the kernel defaults instead
# enable reverse path-filtering [prevents IP-Spoofing]
#for i in /proc/sys/net/ipv4/conf/*; do
# /bin/echo "1" > $i/rp_filter
#done # does not get applied - FIXME
#echo "1" > /proc/sys/net/ipv4/conf/all/rp_filter # not enabled by default # uncomment for enhanced security & NOT using VPN (breaks VPN functionality)
# disable IP dynaddr
sysctl -w net.ipv4.ip_dynaddr=0;
# ==============================================================
# ==============================================================
# ==============================================================
# general phone/RIL-related settings
# ==============================================================
# ==============================================================
# ==============================================================
# Seems to give undesired effect on certain phones. Commenting out.
# For HSDPA low throughput
# setprop ro.ril.disable.power.collapse = 1
# =========
# TWEAKS: overall
# =========
setprop ro.telephony.call_ring.delay 1000; # let's minimize the time Android waits until it rings on a call
#setprop dalvik.vm.startheapsize 8m;
if [ "`getprop dalvik.vm.heapsize | sed 's/m//g'`" -lt 64 ];then
setprop dalvik.vm.heapsize 64m; # leave that setting to cyanogenmod settings or uncomment it if needed
fi;
setprop wifi.supplicant_scan_interval 120; # higher is not recommended, scans while not connected anyway so shouldn't affect while connected
if [ -z "`getprop windowsmgr.max_events_per_sec`" ] || [ "`getprop windowsmgr.max_events_per_sec`" -lt 60 ];then
setprop windowsmgr.max_events_per_sec 60; # smoother GUI
fi;
sysctl -w kernel.sem="500 512000 100 2048";
sysctl -w kernel.shmmax=268435456;
sysctl -w kernel.msgmni=1024;
#sysctl -w kernel.hung_task_timeout_secs=30; #Commented out pending Siyah's fix on hung tasks being prevalent in Siyah
#media.stagefright.enable-player=true
#media.stagefright.enable-meta=true
#media.stagefright.enable-scan=true
#media.stagefright.enable-http=true
# ==============================================================
# ==============================================================
# ==============================================================
# TWEAKS: improve handling & reactivity of the CFS cpu scheduler
# ==============================================================
# ==============================================================
# ==============================================================
# CFS options moved elsewhere!
#if [ -e /proc/sys/kernel/rr_interval ];
#then
# BFS;
# echo 6 > /proc/sys/kernel/rr_interval;
# echo 75 > /proc/sys/kernel/iso_cpu;
#else
# CFS
# following 2 settings are to be handled with care - could lead to bootlooping phone or other issues if too low !
#echo 100000 > /proc/sys/kernel/sched_latency_ns; # 1000000 # 18000000 # 1000000 # 100000 ## new
#echo 500000 > /proc/sys/kernel/sched_wakeup_granularity_ns ; # 500000 # 3000000 # 25000 # 0 (?)
#echo 750000 > /proc/sys/kernel/sched_min_granularity_ns; # 1000000 # 1500000 # 100000 # 1000000 ## 750000 (upstream)
#echo 200000 > /proc/sys/kernel/sched_min_granularity_ns; # 1000000 # 1500000 # 100000 # 1000000 ## 750000 (upstream)
#echo 400000 > /proc/sys/kernel/sched_latency_ns; # 1000000 # 18000000 # 1000000 # 100000 ## new
#echo 100000 > /proc/sys/kernel/sched_wakeup_granularity_ns ; # 500000 # 3000000 # 25000 # 0 (?)
#echo -1 > /proc/sys/kernel/sched_rt_runtime_us;
#echo 100000 > /proc/sys/kernel/sched_rt_period_us;
#echo 95000 > /proc/sys/kernel/sched_rt_runtime_us; # default: 950000; very small values in sched_rt_runtime_us can result in an unstable system when the runtime is so small
# the system has difficulty making forward progress (the migration thread and kstopmachine both are real-time processes)
#fi;
# =========
# TWEAKS: new scheduler performance settings (test)
# =========
echo "NO_GENTLE_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features;
echo "NO_NEW_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features;
echo "NO_NORMALIZED_SLEEPER" > /sys/kernel/debug/sched_features;
# ==============================================================
# ==============================================================
# ==============================================================
# remove lag when answering phone calls (Don't enable this!)
# ==============================================================
# ==============================================================
# ==============================================================
# =========
#MAX_PHONE()
#{
#pidphone=`pidof com.android.phone`;
#if [ $pidphone ]; # Wait for com.android.phone to start;
#then#
# echo -17 > /proc/$pidphone/oom_adj; # exclude com.android.phone from oom-killer;
# renice -20 $pidphone; # set highest nice level for com.android.phone;
## log -p i -t SSSwitch_v0.8 "*** MAX phone *** set oom_adj(-17) and nice(-20) for com.android.phone";
# exit;
#else
# sleep 5;
# MAX_PHONE;
#fi;
#}
# =========
# Background process to optimize dialer process (Don't enable this!)
# =========
#(while [ 1 ];
#do
# sleep 10;
# MAX_PHONE;
#done &);
# ==============================================================
# ==============================================================
# ==============================================================
# renicing kswapd (don't enable this! kswapd is important for caching activities too!)
# ==============================================================
# ==============================================================
# ==============================================================
# =========
#KSWAPD_RENICE()
#{
#pidkswapd=`pidof kswapd0`;
#if [ $pidkswapd ]; # Wait for kswapd to be available;
#then
# renice 19 $pidkswapd; # set kswapd lowest nice level possible;
# exit;
#else
# sleep 5;
# KSWAPD_RENICE;
#fi;
#}
# =========
# Background process to keep priority of kwapd low (Don't enable this!)
# =========
#(while [ 1 ];
#do
# sleep 10;
# KSWAPD_RENICE;
#done &);
# ==============================================================
# ==============================================================
# ==============================================================
# Governor Tweaks
# ==============================================================
# ==============================================================
# ==============================================================
# ==============================================================
# Ondemand
# ==============================================================
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold;
echo "10" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/up_threshold;
echo "10" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
echo "10" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
fi;
# =========
# Conservative
# =========
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold;
echo "75" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold;
echo "75" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
if [ -e /sys/devices/system/cpu/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold;
echo "75" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;