sysctl.conf Xperia M2 - Sony Xperia M2

Requirements
Phone: Xperia M2 D2306
Android: 4.4.4
Compilation: 18.3.1.C.0.21
with this information you can develop your own optimization taking into account the following parameters xperia m2.
everything should go inside the sysctl.conf file in the path /system/etc/sysctl.d
to create optimizations should be this way
create a file called sysctl.conf (path /system/etc/sysctl.d)
with the following structure and order
command to use
Code:
sysctl-arm -w
Code:
### BEGIN INIT INFO
# Provides: sysctl.conf
# Required-Start: $local_fs
# Phone: xperia M2 D2306
# Android: 4.4.4
# Compilation: 18.3.1.C.0.21
# Author: kaiiori xda developers
# Description: settings fs
### END INIT INFO
dev.scsi.logging_level=0
#sysctl fs
sysctl-arm -w fs.aio-max-nr=65536
fs.aio-max-nr=65536
#sysctl kernel
sysctl-arm -w kernel.sysrq=1
kernel.sysrq=1
#sysctl vm
sysctl-arm -w vm.swappiness=16384
vm.swappiness=16384
and add the optimizations you want to apply in this order
sysctl.conf
Code:
dev.scsi.logging_level=0
sysctl_fs.conf
Code:
fs.aio-max-nr=65536
fs.aio-nr=0
fs.dentry-state=19084 7384 45 0 0 0
fs.dir-notify-enable=1
fs.epoll.max_user_watches=278262
fs.file-max=66895
fs.file-nr=3872 0 66895
fs.inode-nr=19041 882
fs.inode-state=19041 882 0 0 0 0
fs.inotify.max_queued_events=16384
fs.inotify.max_user_instances=128
fs.inotify.max_user_watches=8192
fs.lease-break-time=45
fs.leases-enable=1
fs.nr_open=1048576
fs.overflowgid=65543
fs.overflowuid=65543
fs.pipe-max-size=1048576
fs.suid_dumpable=0
sysctl_kernel.conf
Code:
kernel.auto_msgmni=1
kernel.blk_iopoll=1
kernel.boot_reason=0
kernel.cap_last_cap=35
kernel.cold_boot=0
kernel.core_pattern=core
kernel.core_pipe_limit=0
kernel.core_uses_pid=0
kernel.ctrl-alt-del=1
kernel.dmesg_restrict=1
kernel.domainname=localdomain
kernel.ftrace_dump_on_oops=0
kernel.hostname=localhost
kernel.hotplug=
kernel.keys.gc_delay=300
kernel.keys.maxbytes=20000
kernel.keys.maxkeys=200
kernel.keys.root_maxbytes=20000
kernel.keys.root_maxkeys=200
kernel.kptr_restrict=2
kernel.max_lock_depth=1024
kernel.modprobe=/sbin/modprobe
kernel.modules_disabled=0
kernel.msgmax=8192
kernel.msgmnb=1437
kernel.ngroups_max=65536
kernel.osrelease=3.4.0-geafc7cd-dirty
kernel.ostype=Linux
kernel.overflowgid=65543
kernel.overflowuid=65543
kernel.panic=5
kernel.panic_on_oops=1
kernel.perf_event_max_sample_rate=100000
kernel.perf_event_mlock_kb=516
kernel.perf_event_paranoid=1
kernel.pid_max=32768
kernel.poweroff_cmd=/sbin/poweroff
kernel.print-fatal-signals=0
kernel.printk=6 6 1 7
kernel.printk_delay=0
kernel.printk_ratelimit=5
kernel.printk_ratelimit_burst=10
kernel.pty.max=4096
kernel.pty.nr=0
kernel.pty.reserve=1024
kernel.random.boot_id=a47c3446-2cf9-48a1-78f3-ff21c7f5331e
kernel.random.entropy_avail=168
kernel.random.poolsize=4096
kernel.random.read_wakeup_threshold=64
kernel.random.uuid=ahgcolm6-jcf9-hba1-xvf3-cf21c7f5431d
kernel.random.write_wakeup_threshold=128
kernel.randomsize_va_space=2
kernel.real-root-dev=0
kernel.sched_child_runs_firts=0
kernel.sched_domain_cpu0.domain0.busy_factor=1
kernel.sched_domain_cpu0.domain0.busy_idx=2
kernel.sched_domain_cpu0.domain0.cache_nice_tries=1
kernel.sched_domain_cpu0.domain0.flags=4655
kernel.sched_domain_cpu0.domain0.forkexec_idx=0
kernel.sched_domain_cpu0.domain0.idle_idx=0
kernel.sched_domain_cpu0.domain0.imbalance_pct=125
kernel.sched_domain_cpu0.domain0.max_interval=4
kernel.sched_domain_cpu0.domain0.min_interval=1
kernel.sched_domain_cpu0.domain0.name=MC
kernel.sched_domain_cpu0.domain0.newidle_idx=0
kernel.sched_domain_cpu0.domain0.wake_idx=0
kernel.sched_domain_cpu1.domain0.busy_factor=1
kernel.sched_domain_cpu1.domain0.busy_idx=2
kernel.sched_domain_cpu1.domain0.cache_nice_tries=1
kernel.sched_domain_cpu1.domain0.flags=4655
kernel.sched_domain_cpu1.domain0.forkexec_idx=0
kernel.sched_domain_cpu1.domain0.idle_idx=0
kernel.sched_domain_cpu1.domain0.imbalance_pct=125
kernel.sched_domain_cpu1.domain0.max_interval=4
kernel.sched_domain_cpu1.domain0.min_interval=1
kernel.sched_domain_cpu1.domain0.name=MC
kernel.sched_domain_cpu1.domain0.newidle_idx=0
kernel.sched_domain_cpu1.domain0.wake_idx=0
kernel.sched_domain_cpu2.domain0.busy_factor=1
kernel.sched_domain_cpu2.domain0.busy_idx=2
kernel.sched_domain_cpu2.domain0.cache_nice_tries=1
kernel.sched_domain_cpu2.domain0.flags=4655
kernel.sched_domain_cpu2.domain0.forkexec_idx=0
kernel.sched_domain_cpu2.domain0.idle_idx=0
kernel.sched_domain_cpu2.domain0.imbalance_pct=125
kernel.sched_domain_cpu2.domain0.max_interval=4
kernel.sched_domain_cpu2.domain0.min_interval=1
kernel.sched_domain_cpu2.domain0.name=MC
kernel.sched_domain_cpu2.domain0.newidle_idx=0
kernel.sched_domain_cpu2.domain0.wake_idx=0
kernel.sched_domain_cpu3.domain0.busy_factor=1
kernel.sched_domain_cpu3.domain0.busy_idx=2
kernel.sched_domain_cpu3.domain0.cache_nice_tries=1
kernel.sched_domain_cpu3.domain0.flags=4655
kernel.sched_domain_cpu3.domain0.forkexec_idx=0
kernel.sched_domain_cpu3.domain0.idle_idx=0
kernel.sched_domain_cpu3.domain0.imbalance_pct=125
kernel.sched_domain_cpu3.domain0.max_interval=4
kernel.sched_domain_cpu3.domain0.min_interval=1
kernel.sched_domain_cpu3.domain0.name=MC
kernel.sched_domain_cpu3.domain0.newidle_idx=0
kernel.sched_domain_cpu3.domain0.wake_idx=0
kernel.sched_latency_ns=10000000
kernel.sched_migration_cost=500000
kernel.sched_min_granularity_ns=2250000
kernel.sched_nr_migrate=32
kernel.sched_rt_period_us=1000000
kernel.sched_rt_runtime_us=950000
kernel.sched_shares_window=10000000
kernel.sched_time_avg=1000
kernel.sched_tunable_scaling=1
kernel.sched_wake_to_idle=0
kernel.sched_wakeup_granularity_ns=2000000
kernel.sem=250 32000 32 128
kernel.sg-big-buff=32768
kernel.shm_rmid_forced=0
kernel.shmall=2097152
kernel.shmmax=33554432
kernel.shmmni=4096
kernel.sysrq=1
kernel.tainted=4608
kernel.threads-max=10457
kernel.timer_migration=1
kernel.version= name kernel default firm settings/about/version nucleo
sysctl_vm.conf
Code:
vm.block_dump=0
vm.dirty_background_bytes=0
vm.dirty_background_ratio=5
vm.dirty_bytes=0
vm.dirty_expire_centisecs=200
vm.dirty_ratio=20
vm.dirty_writeback_centisecs=500
vm.drop_caches=1
vm.extfrag_threshold=500
vm.extra_free_kbytes=6075
vm.highmem_is_dirtyable=0
vm.laptop_mode=0
vm.legacy_va_layout=0
vm.lowmem_reserve_ratio=32 32
vm.max_map_count=65530
vm.min_free_kbytes=3512
vm.min_free_order_shift=4
vm.mmap_min_addr=32768
vm.nr_pdflush_threads=0
vm.oom_dump_tasks=1
vm.oom_kill_allocating_task=0
vm.overcommit_memory=1
vm.overcommit_ratio=50
vm.page_cluster=3
vm.panic_on_oom=0
vm.percpu_pagelist_fraction=0
vm.scan_unevactable_pages=0
vm.stat_interval=1
vm.swappiness=60
vm.vfs_cache_pressure=100
screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Related

ADB BAT SCRIPT for Screenshot in Recovery

I have modified a Script from Whiskey103 for the OneSV and for Timestamp screens
Thanks to Whiskey103 for the base Script
Thread from Whiskey103
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This Script make Screenshots with adb in Recovery or in rom or other place with active adb debug ......
View attachment screens_overall_adb.rar
^^^
new batch faster and higher jpeg quality
my,
i have more Plans
@Thestealth2
Just tested this on a K2_CL.....
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
1915 KB/s (4608000 bytes in 2.349s)
FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 18 2010 04:06:45 with gcc 4.4.2
configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-
libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect --enable
-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --ext
ra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisyn
th --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign
-hack
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.83. 0 / 52.83. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.52. 0 / 1.52. 0
libswscale 0.12. 0 / 0.12. 0
[rawvideo @ 01d7c190] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from 'fb0':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: rawvideo, rgba, 480x800, 25 tbr, 25 tbn, 25 tbc
Unable to find a suitable output format for 'Screenshot-2013_'
No picture appears for me.
Hope you find a fix my friend.
Sent from my C525c using XDA Premium 4 mobile app

[APP] Jekyll Client for Android

Some months ago I ditched my WordPress blog and fall for a platform called Jekyll. I use Jekyll alongside with Github pages to host my blog. Being hosted on Github was a great advantage but what happens when I want to post from my smartphone or tablet?
Cloning the whole project with some client and pushing it up again seemed stupid for just one file, the setup of which was pleasant because the filename should be something in the form of:
Code:
YYYY-MM-DD-title.md
and the beginning of the file:
Code:
---
layout: post
title: "The Title"
description: ""
category:
tags:
---
So I started a little project called Jekyll for Android.
It is a little simple client for android that allows you to publish a post on your Jekyll blog if it is hosted on Github!
It it uses Github’s API and offers a Markdown Preview to check if your post looks ok (very Alpha feature) .
If you find it useful fork it, make it better or just use it!
You can find the project here and build it yourself or download it from Google Play!
It provides:
UI that is simple and I like.
Ability to commit a new post through Github API.
Keeps a draft.
A list of the user’s posts.
Ability to edit previous posts.
Here are some screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Looks Interesting
Maven is broken for me since the latest (v19 SDK). Built with these (f-droid-style) instructions:
Code:
Build:1.0,1
commit=1e61b142c8
subdir=JekyllForAndroid
prebuild=wget [url]http://fossil.instinctive.eu/libsoldout-1.3.tar.bz2[/url] && \
tar -C ../bypass/dep/ -xf libsoldout-1.3.tar.bz2 && \
sed -i 's/libsoldout/libsoldout-1.3/' ../bypass/platform/android/library/jni/Android.mk && \
sed -i 's/all/armeabi/' ../bypass/platform/android/library/jni/Application.mk
buildjni=../bypass/platform/android/library/
Is there going to be a free/open source licence on it?
dabl8 said:
Maven is broken for me since the latest (v19 SDK). Built with these (f-droid-style) instructions:
Code:
Build:1.0,1
commit=1e61b142c8
subdir=JekyllForAndroid
prebuild=wget [url]http://fossil.instinctive.eu/libsoldout-1.3.tar.bz2[/url] && \
tar -C ../bypass/dep/ -xf libsoldout-1.3.tar.bz2 && \
sed -i 's/libsoldout/libsoldout-1.3/' ../bypass/platform/android/library/jni/Android.mk && \
sed -i 's/all/armeabi/' ../bypass/platform/android/library/jni/Application.mk
buildjni=../bypass/platform/android/library/
Is there going to be a free/open source licence on it?
Click to expand...
Click to collapse
I forgot to do that. I just licensed the project with GPL.

[DEV] HybridMod

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Info:
~ This project was originally started by me a long time ago, its been in different locations as different things, and its been written in many different styles.
~ So what is it? Well its a bash script/scripts/project/modular-project (this is how fragmented it is ) that were working on to be an all in one shell based application, currently we have a tonne of features in it and alot in our minds but we just need to get it down in the script.
~ So why post about it here if its still super alpha and not even 100% working!? Well cause we need developer help, anyone who wants can pm me or post here and ill add you with read access to our repo's , from there on you can create pull requests and help us refactor and clean up code.
~ Currently the project maintainers consist of me and @DeicPro , theres also @luca020400 who's contributed to cleaning up alot of the code. So we would love anybodys help! Even if you cant be on github constantly creating pull requests, at least pm me and ask to join the "dev" group since we can chill + it looks super cool to have a busy project
Source:
https://github.com/HybridMod
Setup:
~ This is the setup guide, you can either use the google repo tool guide and setup and use via that way, however you wont be able to do anything via git that way... The recommended way is below.
Recommended way:
Code:
mkdir -p ~/Scripts/HybridMod/
Code:
cd ~/Scripts/HybridMod/
Code:
git clone https://github.com/HybridMod/roomservice
Code:
cd roomservice
Code:
./repo_sync.sh
Now the repo_sync.sh will take care of cloning all the necessary scripts and etc...
Additional Notes:
Anyways thanks for the help if you do help, and enjoy!
banner-credits: idk , found on the google imgs, plis dont sue me ;-;
FAQ
Q: Do penguins have knees?
A: http://bfy.tw/LLo
reserved ^^

[TUT] How to disable Power Saver Notification (Works on 5.X) [No App Needed]

First and foremost, you must be ROOTED already
As a quick intro, I don't like annoying notifications. Especially ones that cannot be hidden with one click
Here is a quick demo on how to disable the notification of power saver mode:
For the quickest results, TURN POWER SAVER MODE OFF FIRST!
So there are two ways to do this
Option 1.) With a PC that has ADB ready to go
First step, type in
PHP:
adb shell
Then, if not ROOT already, type SU (output should look as follows mostly)
Code:
[email protected]_m8wl:/ # su
su
Then, you must type in the shell prompt:
PHP:
pm disable com.htc.htcpowermanager/.powersaver.PowerSaverNotificationReceiver
Output as follows:
Code:
[email protected]_m8wl:/ # pm disable com.htc.htcpowermanager/.powersaver.PowerSaverNotificationReceiver
ble com.htc.htcpowermanager/.powersaver.PowerSaverNotificationReceiver <
Component {com.htc.htcpowermanager/com.htc.htcpowermanager.powersaver.PowerSaverNotificationReceiver} new state: disabled
Option 2.) No PC
In this option you will have to download a Terminal Emulator.
In the terminal window, first step is to type:
Code:
SU
Then, after permitting root access, type in the following:
PHP:
pm disable com.htc.htcpowermanager/.powersaver.PowerSaverNotificationReceiver
FInale
Assuming all went through, this is what the final product should function and look like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks it worked
Sent from my HTC6525LVW using Tapatalk
Wait...I did your fix, but something must be wrong, I didn't get that wallpaper
Sent from my One M8 using Tapatalk
BrainRex said:
Thanks it worked
Sent from my HTC6525LVW using Tapatalk
Click to expand...
Click to collapse
No problem
garywojdan81 said:
Wait...I did your fix, but something must be wrong, I didn't get that wallpaper
Sent from my One M8 using Tapatalk
Click to expand...
Click to collapse
Yes yes, haha...

【Kernel】【Kernel-Installer】FusionLeo Kenrel V1.2【Snapdragon/Exynos】 【All variant】

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What is the FusionLeo Project?
-FusionLeo Project is create and provide totally different experience for you to explorer
Developer: Plmh
Version: 1.2
Feature:
Code:
~ [SIZE="5"][COLOR="DarkOrchid"]One Click Installer and Updater , much more user friendly[/COLOR][/SIZE]
~Build with latest linaro gcc 4. 9 toolchain
~Support for unofficial dex
~Turn off crc to improve performance~
~Remove dm-verify, rkp, knox, etc.~
~Support Magisk root mode~
~Support for LeoROM features, etc.~
~Over all Accelerated~
~Optimize cpu wakeup delay~
~etc~
Current supported list
Code:
[SIZE="4"]Snapdragon:[/SIZE]
SM-G9500
SM-G9508
SM-G9550
SM-G9558
SM-N9500
SM-N9508
SM-G9600
SM-G9650
SM-N9600
SCV35
SCV36
SC-02J
SC-03J
[SIZE="4"]Exynos:[/SIZE]
SM-G950F
SM-G950FD
SM-G950N
SM-G955F
SM-G955FD
SM-G955N
SM-N950F
SM-N950FD
SM-N950N
SM-G960F
SM-G960FD
SM-G960N
SM-G965F
SM-G965FD
SM-G965N
SM-N960F
SM-N960FD
SM-N950N
ScreenShot
Download ​
Kernel source
Fusion kernel : https://github.com/LeeMenHin
Donation
Code:
-
If you like our work we do,
Then please do consider a Donation
[URL="https://www.paypal.me/plmh"] https://www.paypal.me/plmh[/URL]
--
FusionLeo Home page:
[URL="https://www.leorom.cc"]https://www.leorom.cc[/URL]
-
Administrator :PLMH
Contact
Administrator :PLMH
Telegram group : Click Here to Join
QQ group : click here to join​
[All Variant] is misleading.
N960U/N960U1 are not listed and due to the permanently locked bootloader, never will be listed.
So this will be completely different felling from official rom
? You see I'm searching for Custom Kernel only so it would fake Knox to be 0x0 but I want to keep official ROM to use SamsungPass and SamsungPay on magisk rooted SM-N960FN/DS
X谢谢分享,,,,,,,,,,
Translation: X Thanks for sharing,,,,,,,,,,
Does This Work On SCV 40
Hello,
Do this kernel have KVM enabled?
I have a Note 9 N960u with my boot loader unlocked, root with Magisk. Is it possible to install this kernal. Even if not listed.

Categories

Resources