yashsingh1/xdaforums huggingface dataset:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] virajxda:
No it's not that first dirty install the rom or flash the boot image of default rom you use then reflash the kernal you want or magisk if you want root that's it don't miss lead
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] greatcoder:
I flashed arter successfuly on 2020 Jan pe build. Fyi I m using unencrypted version with f2fs.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Stonecaper:
Flashed the kernel last night. Facing ridiculous battery drain since then. My phone is awake like crazy. I must be doing something wrong. what is it?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
50% after 18 hours does not sound ridiculous.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Lazy Rich:
50% after 18 hours is pretty decent. Remember, it's a smartphone. If you want to have unlimited battery you should switch to a Nokia 3310... ?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] human_glitch1_1:
How do I install F2FS? (iamn00b)

Hey, I've been wanting to install F2FS to see the performance difference between ext4 and f2fs. But I'm worried if I will lose my data. Should I take a backup first or will converting to f2fs not result in data loss? And can anyone please give me an Installation guide? I dont want to mess this up.

Love your kernel. Thank you!
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sachin5555:
deleted.

---------- Post added at 07:06 AM ---------- Previous post was at 07:03 AM ----------

If u change your system from ext4 to f2fs you need to format your all data including internal storage so please keep backup before proceed.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
If you don't know what formatting means I think you should wait until you have a bit more experience. If you choose not to wait use search. All the steps have been explained multiple times already. You will lose all data so backup to your sdcard first.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] ramkumar19890:
What is the difference between lineage os 16 kernel and arter97 kernel? Please don't be harsh, I am just a n00b!
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] strongst:
Mainly the features within the first post :)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] ramkumar19890:
:o

---------- Post added at 11:17 AM ---------- Previous post was at 11:15 AM ----------

How do you create arter97 kernel?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
Ask arter.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] ramkumar19890:
Has anyone here tried to compile archer97 kernel?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
Yes. Kernel source is in the OP.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] ramkumar19890:
Read my question again and again, till you understand
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
You asked if any have tried to compile the kernel and the answer was yes. If you don't want a yes or no answer don't ask a yes or no question.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] 2WildFirE:
arter97 mate. And I don't know, most people use the compiled kernel from arter himself.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] arter97:
I'm discontinuing Poco F1 development on XDA.

Follow [MENTION=4898097]arter97[/MENTION] on Twitter for status updates.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] arter97:
Important note on security with my kernels, please take your time and read.

https://twitter.com/i/web/status/1359127696765165573
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] eurochild:
nitrogen os with display cutout setting
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] DivyanshuJ:
Perfect. Mind showing battery graph mate?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] ak1998:
are you using f2fs?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] droidjunky90:
hello Dev, just wanted to ask whether or not your kernel solves the Fts_ts touch screen freezes as am using miui kernel now just for the sake of the damn freezes! thanks.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] eurochild:
nope

here u are, aprox 11 hours later
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Baffsuki:
nova launcher for 45 minutes? wtf?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Olystem:
How your battery temperature shows 20 degree mine is always 38-40 in normal usage.

Nitrogen OS Which Build.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] fifi570:
Im on miui stable 10.3.4 and sometimes I cant turn on wifi ?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] wadiehabib:
This kernel is touch-driver free. so, whatever driver you have will not be touched.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
Really? Doesn't say that in the original post....
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Kingelias95:
[MENTION=4898097]arter97[/MENTION] will u please merge dynamic stune boost ?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Mooatreides:
Sauce?

Maybe OP can inform?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Stampyron:
Maybe his ambient temperature is much lower than yours
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pipyakas:
Vice versa, there's no mention of any touch driver being used in the kernel. You can also check the released zip file and source code too

---------- Post added at 08:18 AM ---------- Previous post was at 08:17 AM ----------

Is it the Hide option? Or does the ROM has another option to ignore the notch?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Von192:
Awesome kernel, it'll support kcal?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Ruuda:
I have been using quite a few kernel on bunch of phones. ( Nexuses and now different Xiaomi phones).

I just won't to say that this kernel is something else battery life and performance are great (I don't play games ). I don't remember when I have been so plesently surprised.

I have sent a small donation to your fundraiser and I really hope I will see more of your work on Pocophone.

Thank you
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] shouk_1987:
[MENTION=4898097]arter97[/MENTION]

Very good kernel regarding performance and touch however android auto is all messy where device gets very slow and nav bar icons on car screen are gone and replaced by black bar

I tried to disable hw overlays and no difference

Android Auto is a must for me
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] melodystyle2003:
According to his kernel resource this is not a fact. Also, I am not aware of any kernel that is touchscreen firmware free, since touchscreen firmware is always embedded in kernel.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
First few posts imply that the kernel includes touch firmware because he refers to not making any touch firmware improvements until he gets a device to work on.

Anyway - see the previous post.

I think you're wrong.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] bamz1117:
Thanks [MENTION=4898097]arter97[/MENTION] ..works lng a charm:good:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] cayo tiberio:
I have installed PocoF1_MIUI_9.3.28_MiRoom_9.0 with kernel fk-r21-anykernel2, I can directly flash arter97-kernel-r2-20190408 through twrp.

regards
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
It seems to be advised when switching between custom kernels to first dirty flash the rom to ensure that its kernel (and other stuff potentially in system?) are restored before flashing the second custom kernel.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Baffsuki:
wtf are you on drugs?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Irwan Fauzi:
Faced system not responding and full screen gesture not working... I'm on nos+chrysalis+stonemod v3
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] thanhnvt194:
Sound like those mods made problem
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] wadiehabib:
"I won't be doing device-specific changes to this kernel" arter based the kernel on lineageos source, which does not have touch driver embedded (or an old driver). kernels like franco started without wifi driver, then he added it due to several problems. please correct me if am wrong.

---------- Post added at 02:02 PM ---------- Previous post was at 02:00 PM ----------

yes... best kind!
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] prakosza:
I'm on xioami.eu and this kernel absolutely rocks. Device is cool and battery even better than stock. Awesome work. You the best Arter :)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
You were posting authoritativly earlier but now you admit that you don't know?

Please stop posting stuff that is not true.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] arter97:
lol wut, my kernel is based on Qualcomm's stock sdm845 tag with most of MiCode's initial import commit.

I picked only some LineageOS' commits for ROM compatibility.

And what the heck you mean by mine not having a touch driver embedded?

You think I was crazy enough to release a kernel that doesn't have a working touch screen?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Mooatreides:
I literally posted a picture of it, I know 0 about coding or computers but i found where it shows nvt etc etv and fts etc etc and it says 9.1.24 so idk what the debate is...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] thanhnvt194:
[MENTION=4898097]arter97[/MENTION]

Do you have plan to build your own version of f2fs twrp to use with your kernel like oneplus 6/6t sometime in the future?

I'm on f2fs but official twrp for pucu can't read f2fs.

Only choice is unofficial build of orangefox recovery-which have too much unnecessary features included.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] abeloman:
After using OrangeFox to format f2fs, you can go back to TWRP, I'm using unofficial, and I don't have issues with accessing data
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] thanhnvt194:
The old unofficial 3.2.3.0 right? It can read f2fs data? Thanks
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Puneeth 676797:
In recent days as its summer (in india) I had to flash miui though i hate, for better thermal management. Flashed this kernel, I'm experiencing the charging speeds on kernel like never before in this device, no heating issues too. Great job dev.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] thechosenone43:
I just flashed it on Validus Rom. No Problems so far. Excited to see how's battery life in daily usage over the next day's ??

Thanks arter97 for kernel. I used to flash your kernel on the good old Samsung Galaxy S3... Good old days ??
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] cayo tiberio:
It means that I have to remove the Franco kernel in order to install arter97.

regards
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] bamz1117:
battery life and performance are awesome..hands down to the dev..
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] tariq2kn:
I admit that the standby drainage of battery is the least so far. :good: Also active drainage is pretty good.

I'm on Stock EU 10.3.4.0.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] bartoloandre98:
I have fts panel and is giving me touch freeze like crazy. Had to reflash rom to get back to normal. I'll try and grab some logs, maybe they help
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Rahul kumat:
Without root working arter kernel????
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dadejoey:
Of corse
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Rahul kumat:
Thanks
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Rahul kumat:
Without root
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Von192:
Sometimes wifi doesn't turn on, it needs restart to turn it on.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] thanhnvt194:
Check out [MENTION=4898097]arter97[/MENTION]’s Tweet: https://twitter.com/arter97/status/1116285672405360640?s=09
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] arter97:
r3 is up for fixing Wi-Fi issue.

Before you upgrade/reboot, I'd like to collect some statistics.

Please write down which variant you own(6GB/8GB of RAM)

and do the following from a terminal(app on the Play store) and attach the screenshot.

Thanks.

r3

Reverted a problematic Wi-Fi drivers optimization causing Wi-Fi to not turn on after some period of time
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] eurochild:
here u are
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pipyakas:
6GB variant

grabbed this via Windows and adb shell, hope that's usable

shell@beryllium:/ $ uptime
uptime
23:29:08 up 11:10, 0 users, load average: 0.30, 0.60, 0.75
shell@beryllium:/ $ grep . /sys/module/lowmemorykiller/parameters/*
grep . /sys/module/lowmemorykiller/parameters/*
/sys/module/lowmemorykiller/parameters/adj:0,100,200,300,900,906
/sys/module/lowmemorykiller/parameters/cost:32
/sys/module/lowmemorykiller/parameters/debug_level:1
/sys/module/lowmemorykiller/parameters/lmk_count:0,0,0,0,0,0
/sys/module/lowmemorykiller/parameters/minfree:18432,23040,27648,32256,85296,120640
shell@beryllium:/ $
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] arter97:
You gotta press enter after that.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] eurochild:
ow my bad, sorry mate, just flashed the update
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Glassgg:
:/ $ uptime

22:24:28 up 23:43, 0 users, load average: 0.55, 0.42, 0.18

:/ $ grep . /sys/module/lowmemorykiller/parameters/*

/sys/module/lowmemorykiller/parameters/adj:0,100,200,300,900,906

/sys/module/lowmemorykiller/parameters/adj_max_shift:353

/sys/module/lowmemorykiller/parameters/cost:32

/sys/module/lowmemorykiller/parameters/debug_level:0

/sys/module/lowmemorykiller/parameters/enable_adaptive_lmk:0

/sys/module/lowmemorykiller/parameters/enable_lmk:1

/sys/module/lowmemorykiller/parameters/lmk_fast_run:0

/sys/module/lowmemorykiller/parameters/minfree:18432,23040,27648,32256,85296,120640

/sys/module/lowmemorykiller/parameters/oom_reaper:1

/sys/module/lowmemorykiller/parameters/vmpressure_file_min:0

:/ $

6gb
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] ak1998:
using a 6gb variant
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Ruuda:
I'm using 6 GB variant.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Sharfuddin Ahmed:
Deleted
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Sharfuddin Ahmed:
There you go Sir.... Mine is 6/128gb

Thanks!
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] thechosenone43:
6GB Poco
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Grusel:
6gb/64gb
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] raptorskate:
Does this Kernel supports USB Fast charging?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Olystem:
Hi Can You Add a Support For Oxygen OS.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] BenParz:
No
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] bamz1117:
[MENTION=225651]op[/MENTION] ..Using r3 for 3hrs and battery is not that good ..dropped 8 percent when idle...compared to r2..reverting back to r2
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] eldybugs24:
6gb 128 gb variant

:/ $ uptime

19:10:02 up 20 min, 0 users, load average: 2.30, 1.70, 1.22

:/ $
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] arter97:
r2 -> r3 doesn't have anything that can affect battery life. Your issue is not the kernel's fault.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] bamz1117:
Thanks for checking in ..i enable f2fs and reflash kernel r3 ..its working good now..thanks again for this wonderful kernel:svetius::)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] eldybugs24:
Alarm not working

@ arter97 sir, i dont know if kernel issue but alarm is not working...maybe have a time to check for it. Thanks.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] raptorskate:
How do you enable f2fs?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Ajp30:
Good day sir...

Its a great kernel but am having touch issue... Maybe its because of the type of my touch panel... Hoping you can give us a support with the kind of our touch panel...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Baffsuki:
Xiaomi hasn't released the touch drivers found in recent betas, which supposedly fixed the touch freeze problems in fts panels.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Ajp30:
I see... Thanks for that info... :)... The only thing we could do right now is to wait for the source code
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] DivyanshuJ:
It is not a kernel issue for sure. I am doing using R3 and alarms are fine.

Try changing clock app or maybe check on respective ROM thread.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] raptorskate:
I got 6.30 SOT in 27 hours of usage, really good Kernel. This included most of the time on mobile data and WiFi, Location on, some of it (while playing Pokemon Go on high brightness).
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] MechaNarutoSucks:
You dumb?

He's on the pe custom rom that's why.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] tariq2kn:
V3 is breaking my apps like Amazon, IDM+.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] DivyanshuJ:
Since my question was already answered.

It seems you need some lesson in dumbness.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Lakku:
Nice to see you here.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] arter97:
I added an updated instructions to the OP on how to use f2fs.

/* f2fs */

This kernel fully supports f2fs for /data and I encourage everyone to use f2fs with my kernel for better performance.

See here as to why you might want f2fs.

To use f2fs, download zip files from http://arter97.com/browse/f2fs

Flash f2fs_tools_for_twrp.zip from TWRP. This won’t format your /data partition.

This will replace TWRP's f2fs tools with the latest version and pass the correct parameter to mkfs.f2fs, which is necessary.

This needs to be done everytime you enter TWRP, if you want to re-format to f2fs.

After formatting, or flashing a new ROM or an OTA, /vendor’s fstab needs to be changed.

Flash f2fs_fstab.zip to convert fstab to f2fs again. This won’t format your /data partition.
[Xiaomi Redmi Note 5 Pro Questions & Answers] t3rm3y:
I need to use an app over GSM data. It works on WiFi but not GSM.

A colleague uses the same app on a different device and this works on GSM.

Is there a way to trace what fails so can try and resolve it.?
[Xiaomi Redmi Note 5 Pro Questions & Answers] kos25k:
yes.scoop xposed module.
[Xiaomi Redmi Note 5 Pro Questions & Answers] user64byte:
CatLog maybe?
[Xiaomi Redmi Note 5 Pro Questions & Answers] t3rm3y:
Guess you need root for that? I don't use root as have banking and payment apps that don't work with root(or never used to work when rooted).
[Xiaomi Redmi Note 5 Pro Questions & Answers] kekesed97:
Try root via magisk, and use the integrated MagiskHide. It works well covering root to my banking apps.

Or if by "works over wifi but fail over mobile" you mean the network connection, I suggest using ssl capture. No root, it just use VPN.
[Google Pixel 3 XL Questions & Answers] treoo0:
Anyone else? After April's patch, my stand says it's charging but I wake up and battery is drained. WTH?
[Google Pixel 3 XL Questions & Answers] y2k1ltd:
No issue here.
[Google Pixel 3 XL Questions & Answers] y2grae:
Stand working fine here - was yours an OTA or did you load yourself?
[Google Pixel 3 XL Questions & Answers] v12xke:
Maybe your stand is on the blink. Try switching out the power supply. Test the current (stand) power supply by charging your phone directly. This has got to be an isolated case.
[Google Pixel 3 XL Questions & Answers] jdunker26:
I've had some funky issues with my stand. It seems to stop charging intermittently. Sometimes it says the phone is fully charged.
[HTC Vox] artilheiro.mz:
hello everyone

i was wondering, if it is possible to have a radio player on the VOX /S710 phone

im not talking about a gprs radio player that needs to connect to the internet to play the radio stations

im talking about connecting a headphone, and start searching for radio stations like a normal radio.

any idea?

cheers
[HTC Vox] NRGZ28:
Impossible.
[HTC Vox] Phrak:
Reason being is that there is no FM radio hardware in the phone.

Some other hardware models (eg. Nokia, O2 XDA Atom, etc) have an FM radio chip installed where you can do exactly as you want.
[Android Software/Hacking General [Developers Only]] ramast_:
I've only recently after lot of struggle compiled my first kernel. While the information is still fresh in my mind, I want to share all the problems I encountered and what to do if you are in the same situation.

This guide is mainly for Linux users since that is what I am familiar with.

I've used this amazing guide to learn the basics. If you haven't yet, read it first.

Errors from scripts/gcc-wrapper.py

Open the file and change the first line from

#! /usr/bin/env python

to

#! /usr/bin/env python2

Kernel won't compile

* Did you forget to set and export the variables ARCH and CROSS_COMPILE?

* Do you have the right .config file present?

Try extracting the .config file from the original boot kernel and use it instead

* Are you sure you are in the correct branch?

Run git branch inside kernel's source code to verify that

* Are you using a very recent or very old version of the compiler? Some old kernels for example would only compile with gcc-4 but not gcc-7 or 8. Most kernels - at the time of writing - won't compile with gcc-8

Kernel compiles fine but won't boot

* Are you using wrong kernel configuration (.config) ?

* Try different compiler or different compiler version.

I've tried to compile my current with Android's prebuild gcc 4 compiler and it wouldn't boot, switched to gcc 7 and it booted perfectly fine.

Kernel starts but system crashes somewhere during boot

You can enable adb during boot so that you can see what causes the error.

Find this file in your extracted boot image ramdisk/default.prop

Set or update the following values

ro.adb.secure=0
ro.secure=0
persist.sys.usb.config=adb

Then you can do adb shell logcat or adb shell dmesg to see what is going on

My phone won't boot after flashing my new kernel, how do I boot to recovery?

First of all, you shouldn't have! You should test your new kernel without flashing it using fastboot.

Simply reboot to bootloader then run the command

fastboot boot /path/to/my/new-image

So what can I do now? Try to reach bootloader screen. the method differs from device to device but it involve pushing certain physical phone buttons while turning on the phone.

Once you are in the bootloader screen, you can do adb fastboot /path/to/twrp-recovery.img or even path to original boot image if you kept a backup.
[Android Software/Hacking General [Developers Only]] wangyiling:
good job!

Do you have any general tutorials on kernel optimization?
[Android Software/Hacking General [Developers Only]] ramast_:
I am afraid not, sorry. I am just a beginner :)
[Android Software/Hacking General [Developers Only]] Spaceminer:
[MENTION=7747150]ramast_[/MENTION]

The information you provided has solved pretty much all of the problems I was having. We need more content like this. Everything I find about kernel building explains things like you're a Linux expert, where as your post is much more layman friendly. I can't thank you enough for this.

Quick question; which version of Linux do you use?
[Android Software/Hacking General [Developers Only]] ramast_:
You are very welcome, happy someone found it useful.

By Linux version I suppose you mean Linux distro (distribution).

I use Gentoo which is certainly not for beginners.

I'd suggest Ubuntu for beginners. Not because it's the best but because it has a very big community and you are more likely to find help when facing any problem.

This article explain how to cross compile arm code (how to compile code so that it can run on an arm device). Should get you started.

Best of luck