yashsingh1/xdaforums huggingface dataset:
[Sony Xperia 1 III] Sakuu:
Told you it was fixed tho now we know we shouldn't keep stamina mode on before flashing i guess
[Sony Xperia 1 III] Pandemic:
Yeah i read that ! Dont get mad 😌🤗 and no probarly not but all cool then ☺️👌
[Sony Xperia 1 III] steso90:
Thank you for a Great kernel!

Is it possible to add support for nethunter pr just support for adding wifi adapters?

@Freak07
[Sony Xperia 1 III] MK73DS:
Is it possible to force enable 4k from the kernel or does it need a custom ROM?
[Sony Xperia 1 III] Sakuu:
If you don't want it enabled automatically (like Sony does) you need to flash a custom rom but if you want it on stock you need to flash some module idk I haven't looked into it
[Sony Xperia 1 III] MK73DS:
There's currently no way to always enable 4k on Android 13 sadly, not even magisk modules, unless I use a custom ROM (which I don't want because they are all in a testing phase and not 100% stable)

I guess it's my fault to have upgraded from A11...
[Sony Xperia 1 III] derin38:
How would one go about updating to A13 if I'm on Sagami 2.0? Which should be flashed first?

I am so grateful to your work @Freak07 may I ask a question? Did 3.0 update the wireguard driver, I have some issues with it on 2.0. I also wonder how automated your source makefile is and if it's difficult going from source to flashable zip. In that case I could patch the driver myself regularly.
[Sony Xperia 1 III] Pandemic:
Just flash v3.0.0 for a13 thats it
[Sony Xperia 1 III] Freak07:
Sorry I don´t have any plans for that and I´m not familiar with this.

Do you have a resource where I can look at it?

Are you 100% sure custom ROMs actually do proper 4k? I´m not familiar with custom ROMs on this device, but if you use the vendor display hals and don´t build everything from source it might not.

I can modify the display nodes via kernel on stock rom so only the 4k nodes are present. That will make the phone run always in "4k" mode, that´s usually only triggered on supported content. However that´s still "only" upscaled 2k quality and not completely 4k as it used to be in Android 11.

Since that behaviour started on A12 Sony has improved that mechanism of upscaling multiple times, which results in better upscaled quality, but it´s still not the same as running "proper" 4k rendering (as was possible in A11)

What´s happening at the moment: On supported content, the phone switches to 4k display timings for the panel itself but the rendering is upscaled 2k.
[Sony Xperia 1 III] MK73DS:
I never tried it myself but I thought AOSP does true 4k. Maybe I'm wrong.

However, it's really disappointing that 4k rendering is not possible on A13. I genuinely dinner understand why they put a 4k(ish) pannel on their phone if we can't even use it. Upscaled 2k, even with good algorithms, still looks worse than native 2k on a 2k panel...
[Sony Xperia 1 III] derin38:
Do you mean before or after I flash A13? I hope I'm not a pain, I was on unrootable phones for far too long.
[Sony Xperia 1 III] Freak07:
Update the phone to the A13 firmware. That will overwrite the kernel anyway, as it flashes entire firmware.

Then re-root your phone and flash the kernel for A13.
[Sony Xperia 1 III] derin38:
Oh yeah, never thought about how it comes with a kernel, thanks!
[Sony Xperia 1 III] Pandemic:
Run this v3 kernel the last couple if days and no issues at all like heat when charge, lag or whatever, its epic and my phone flies.

Great job ❤️💯
[Sony Xperia 1 III] steso90:
I think it will work if you add wifi adapter driver.

Im running nethunter via app and if i run lsusb in terminal it finds my wifi adapter but it wont come on.

here is a guide how to port nethunter to a device but i dont know if its enough

Porting NetHunter to New Devices manually | Kali Linux Documentation

In order to port NetHunter to a new device, it’s important to understand how NetHunter is separated. NetHunter is divided by the rootfs (also known as the chroot but will be referred to here as rootfs) and the kernel. For the most part, the rootfs is not important to your Android device as it...

www.kali.org

@Freak07
[Sony Xperia 1 III] Sakuu:
Yes custom roms do 100% use it since I and bbn were the only testers for a while and I was daily driving his LOS builds for a few months and with certainty I can tell you the 4k switch worked, now I can't tell you if that switch is in spark though since it was built by noodle and not bbn but I don't see any reason it shouldn't aside from it being a different rom I guess.
[Sony Xperia 1 III] Sakuu:
Also about that upscaling thing... It's interesting gphotos says the screenshot is in 4k. Also about the switching... Well it's a bit different on custom ROM it's more like how Samsung does it not instantaneous and it kinda messes the DPI but I am 99% sure it's 4k since the 1096p part gets shoved in 1 corner, like on a 4k display which is 4x 1080l (kinda hard to explain but all you need to do is go back to the home screen and you'll notice it's way sharper)
[Sony Xperia 1 III] bentree:
I can confirm this also works with the latest update for Taiwan and SEA users. 61.2.A.0.388. Boots nice and fast.
[Sony Xperia 1 III] Refuzeiv:
I can confirm this is working on my Sony Xperia 5 III. I flashed this in hopes to gain better temps. I try to use this phone for livestreaming but whenever the battery goes over 40c it hard throttles my phone and camera performance. My stream will drop frames heavily and looks god awful. Is there any way to fix this?

Like can you modify the kernel a bit to increase the thermal limit on the battery?

Right now I cant stream inside at normal ambient room temps without it causing performance drop after heating up. It works perfectly okay outside tho.
[Sony Xperia 1 III] steso90:
Is it possible to lower voltage on cpu or gpu?

I think someone else was talking about it but cant remember where @Freak07
[Sony Xperia 1 III] MK73DS:
CPU I don't know but for GPU use KonaBess
[Sony Xperia 1 III] Pandemic:
You use it mate ?
[Sony Xperia 1 III] Freak07:
Just a word of advise. There have been dead devices due to undervolting on other devices with sd888 before resulting in a damaged mobo that needed to be replaced.

I know it's "generally only known" to happen on overvolting or too much overclock, but there have been a few cases.

The second advise. The gains are marginal at best. :)

Understand those two points and continue at your own risk if . :)

To answer the initial question: GPU possible, CPU not possible.
[Sony Xperia 1 III] Pandemic:
Thats very clear bro, thanks 🤜🤛
[Sony Xperia 1 III] MK73DS:
Yeah, you always need to be careful when messing with voltage. I found the gains to be more than negligible thought. As always, your mileage may vary.
[Sony Xperia 1 III] steso90:
anyone know any guide how to add nethunter support to a kernel?

Every guide i find is in a diffrent language or not dumb enough so i can understand.

I have my own linux computer and some basic knowledge
[Sony Xperia 1 III] Pandemic:
@Freak07

Can we except a new update for xperia 1 iii fw 410 what you did for Xperia 1 v with this ?

- Update common kernel to latest qcom state

- bump lrng to v45
[Sony Xperia 1 III] Freak07:
already included :)

History for drivers/char - freak07/Kirisakura_Sagami

Contribute to freak07/Kirisakura_Sagami development by creating an account on GitHub.

github.com
[Sony Xperia 1 III] steveglowplunk:
Hi all

I understand I'm not supposed to expect this kernel to save much battery magically, but how much difference does the "CPU-Frequency Limiting" feature make? I only use my phone for lightweight activities like web browsing or listening to music so I'd like to limit the CPU speed to reduce battery usage as much as possible. Without any modifications, this phone's battery usage is so ridiculously high that it's almost unusable.
[Sony Xperia 1 III] Freak07:
Nobody will be able to tell you exactly, because everyones usage is unique.

CPU is only one part of the SoC and the SoC is only one component that draws power.

The display in general, display brightness, refresh rate, mobile data vs wifi, signal strength all of this draws power.

Even though sony doesn´t run the display all the time at 4K resolution, the display draws a lot.

If your phone is bootloader unlocked already why not give it a try. You can easily revert back to stock.

If you consider to unlock the bootloader to try, you have to decide yourself, no OTA, no widevine L1 etc vs the possibilities an unlocked bootloader opens up.
[Sony Xperia 1 III] steveglowplunk:
I do intend to unlock the bootloader some time later, despite those drawbacks you mentioned. In fact a major reason I purchased this phone is that I saw it has LineageOS, TWRP and this custom kernel, which make this phone highly customisable. I did see how the reviews say the phone's battery life is subpar, but I did not expect it to be this bad now that I do own the phone.
[Sony Xperia 1 III] derin38:
@Freak07 Thanks a lot, 3.0.0 works great. But I think I'm missing something, is the Wireguard module not included in 3.0.0? FKM doesn't state it and the wireguard app won't let me switch over.
[Sony Xperia 1 III] Freak07:
Maybe I forgot to include it in the build 😇😶‍🌫️
[Sony Xperia 1 III] Freak07:
Update to 3.0.1

Hey guys and girls,

Seems I forgot to include wireguard kernel side implementation in the previous build. Thanks to @derin38 for spotting.

This release adds wireguard support.

More changes can be found in the Changelog below:

Changelog:

- Include wireguard kernel side implementation

Download:

Attached to this post as AFH is currently not working correctly.

Instructions can be found in the OP!

But look at this post too :)

Have fun, enjoy the kernel and your phone.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea to keep development going: http://paypal.me/freak07
[Sony Xperia 1 III] derin38:
Haha thanks! This must be the quickest bug fix turn-around ever 😀
[Sony Xperia 1 III] Bumble17:
Any chance to implement the Adreno-idler GPU governor? Or any other governors for that matter. I know you said this kernel isn't designed for improving battery life (at least significantly), but battery life has been the biggest annoyance with this phone for me so any extra help is hugely appreciated. Thanks.
[Sony Xperia 1 III] Freak07:
that´s deprecated for years, but good idea. I completely understand the motivation.

Mabye sony should have waited for sd8 + gen1.

check post #3 and try to limit max cpufreq. even level 1 may result in a noticeable impact, based on usage.
[Sony Xperia 1 III] Bumble17:
I see, didn't know my bad. Yeah I've already done that, I've been having pretty damn good results with level 2. Guess I'll stick with what I have right now. Thanks for your time and quick reply.
[Sony Xperia 1 III] Freak07:
I might be looking into reducing boosts via the powerhal. But that goes on the cost of performance. Since qcom and therefore sony is pretty much done updating those platform changes, might be possible doing it without the need to constantly maintain for firmware changes.

Might make a separate magisk module out of this then. I just need to find a bit of time :)
[Sony Xperia 1 III] DrDrag0n:
Every time i change the files they revert when i reboot
[Sony Xperia 1 III] Freak07:
yes, that´s expected behaviour.

if you use exkm like on the screenshot, you can make it persist across reboots by tapping on the circular arrow.

if you´re doing it manually, you need to use a script to set it automatically during boot.
[Sony Xperia 1 III] DrDrag0n:
Thank you for the recommendation

its been sticking after boot!!

another addition ive made is using konabess to massively under volt each gpu stepping. has reduced heat a lot
[Sony Xperia 1 III] STTec CEO:
Any possible for add ZRAM_WRITEBACK support？This is the mainstream trend and even Pixel has supported it, but Sony has not caught up yet.
[Sony Xperia 1 III] Freak07:
It´s not Sony that´s disabling this, but rather QCOM iirc.

Just enabling the config kernel side will also do nothing. The rest of the firmware also needs to support it, fstab, rc files etc.

Since files can´t be replaced permanently due to dynamic partitions this is not in the scope of a kernel only mod, but rather custom rom territory as the entire firmware would need be to rebuilt.

Other approaches would be super hacky and one crash or failed boot can easily mess up the phone.
[Sony Xperia 1 III] STTec CEO:
Could you please modify a special version CONFIG_ZRAM_WRITEBACK=y for me? I have my own script and module configured for loop27 and writeback strategies. Thanks a lot!
[Sony Xperia 1 III] szalaigabor1999:
Hi! Have been considering this phone lately mainly for the HDMI-over-USB-C function.

I intend to run ARM linux on the phone so I'd like to kindly ask if KVM support is planned for this kernel in the future?

The Asus ZenFone 2 received many KVM enabled unofficial kernels and the Pixel 6 comes with KVM enabled out-of-the-box so I'm asking if it would be possible on the Xperia1 III.

I know it's a difficult task and I don't expect it to come true anytime soon but this phone is more than capable of running linux.

Native speed would be the icing on the cake!
[Sony Xperia 1 III] Freak07:
Unfortunately QCOM has disabled el2 deeper than kernel level so that's never going to happen. Except for some miracle.
[Sony Xperia 1 III] DrDrag0n:
trying to install this on latest sony release and i get error unsupported android version
[Sony Xperia 1 III] Pandemic:
@Freak07 did you looked into this ?

Edit:

@Freak07 ???
[Sony Xperia 1 III] Pandemic:
We got totally ignored right here 😂
[Sony Xperia 1 III] Freak07:
No problems flashing on my end on latest sony firmware.

Straight from the FAQ:

Question: How to report bugs properly?

Answer: Have a look at post #3 in the linked thread. The linked guide is a pretty good starting point.

Before reporting any bug make sure you´re running on a stock configuration. That´s means you´re not using any mods, tweaks in kernel managers or other root tweaks , magisk modules, scripts or other modifications that alter various functions like sound mods, data traffic, sleeping behaviour, scheduler, magical battery tweaks etc.

Try to describe the issue as detailed as possible! Give your exact setup, like rom, magisk version, kernel version.

Is the issue reproducible? Does it happen frequently?

Please make sure to meet the points described above, provide logs as detailed in the link above, otherwise debugging is a lot more time consuming and harder. (kernel flashing apps usually support exporting logs of flashes too) If these requirements aren´t met and I don´t find time to either reproduce the issue myself or I´m not able to reproduce the issue myself, reports might just be ignored. If you can already reproduce the issue and provide logs it greatly limits the amount of time I have to spent until I figure out how to reproduce it.

No logs and modules were used that alter android version so the version check fails. Or a wrong zip was flashed.
[Sony Xperia 1 III] Pandemic:
Alright bro and i was just joking with my last reply 🫶
[Sony Xperia 1 III] zeroX125:
Will this project be updated again?
[Sony Xperia 1 III] season 8:
Can you make kernel su for stock rom?
[Sony Xperia 1 III] Pandemic:
Yes any update ? 🥺
[Sony Xperia 1 III] season 8:
I'll waiting for you
[Sony Xperia 1 III] Pandemic:
Why on me ? 🤔
[Sony Xperia 1 III] bentree:
Just curious but has anyone else had a issue with Bluetooth headset controls not working properly when using this kernel?
[Sony Xperia 1 III] Pandemic:
Nope all works fine.
[Sony Xperia 1 III] kingkhan2843:
Help me. I have Sony 1 iii sog03. How can I root and install twrp
[Sony Xperia 1 III] amakuramio:
Can't get Google System Update, stuck on October 2022. Edit: it automatically downloaded after a week or so, even though I didn't change anything, now January 2024 Patch.
[Sony Xperia 1 III] steveglowplunk:
Any plans for Android 14?
[Sony Xperia 1 III] steveglowplunk:
Is an Android 14 version still planed?
[Sony Xperia 1 III] steso90:
This kernel development is abandoned for a long time sadly
[Sony Xperia 1 III] steveglowplunk:
That's unfortunate. I am reluctant to upgrading to android 14 because of this but I also understand these projects take massive effort to make.
[Sony Xperia 1 III] steso90:
I agree. There are different custom roms you can check out.

I'm using stock android 13 with a nethunter kernel, this device feels so risky to flash roms and such when we still don't have any recovery..
[Sony Xperia 1 III] steveglowplunk:
What do you mean kali nethunter is supported on the 1 iii??? 👀
[Sony Xperia 1 III] steso90:
Almost every phone is capable you only need a custom kernel that has everything enabled that nethunter needs :) I haven't build my own
[Sony Xperia 1 III] BlazingKahn35:
Cool thank you. I toggled the battery care option off and back on. I'll let you know if it stops at 90%
[Sony Xperia 1 III] BlazingKahn35:
It doesn't. So battery care doesn't work anymore so far I can tell.
[Sony Xperia 1 III] JDC2389:
For me it threw up a notification at 93% but idk if it actually stopped charging, didn't test it. @Freak07 You are a godsend, where there was nothing, there is custom goodness with better battery life. Have you ever seen Alfred Chen's BMQ, now called Project C? I was wondering if it would be possible to run it on Android? It's proven to be great on Archlinux. I would love to hear any customized settings you run on the kernel settings as well, cheers! 🎄🥳
[Sony Xperia 1 III] Freak07:
yes I found some minutes this morning to investigate the issue. The driver that´s connected to smart charging is not included anywhere in the source that sony releases.

All other bits to make the camera, vibration, audio, fingerprint etc. working I was able to find scattered in their sources, but that driver is missing.

I´ll ask and see if I can somehow obtain that driver.
[Sony Xperia 1 III] Freak07:
Alright here´s a kernel.zip that just force loads all drivers built as kernel modules that come bundled with the firmware. This means instead of building the full kernel from source, we just build the core and load all drivers from the stock firmware compilation from sony. This includes, fingerprint, camera, touchscreen etc and also the sony driver that´s responsible for battery care/smart charging. I think this should fix the smart charging issue for now.

However I don´t like to do this as force loading modules can cause issues, if the kernel gets to far from the stock base as already happened on the initial release.

I already needed to revert certain changes done to the full source built kernel, as force loading modules on the previous 1.0.1 release would just crash the device during startup.

For now it´s fine, but the kernel I plan to do once A12 drops won´t be able to resort to this approach as it will contain a lot more changes.

I hope I can get this driver somewhere so I can proceed to go forward as planned.

Source is pushed to a different branch.

Enjoy the holidays and have a nice Christmas time if you celebrate it. :)
[Sony Xperia 1 III] Audemars Piguet:
Hello.

Can I use Kirisakura Kernel with unrooting state?

Some bank apps aren't running.
[Sony Xperia 1 III] Freak07:
Not with the current release as it is.

If you do some research on how to repack a boot.img, you can repack your boot.img with the kernel from the kernel.zip.

But that's not a supported use case at the moment.

Regarding hiding root. Did you try latest magisk canary, enable zygisk and deny list in magisk manager and flash the universal safety net fix zygisk version? That might hide root from those apps.
[Sony Xperia 1 III] bountyman334:
@Freak07

Thabks for this bro. 👆🏾👌🏾. I'm using the xq-bc72 and everything working smoothly I was or I'm on the Russian build 61.0.A.23.20 release-keys

Update: the kernel from afh(android file host) breaks NFC. Just tried at the local gas station

The forced one from here in the xda link. NFC works. But I will continue testing this one for now
[Sony Xperia 1 III] darken5404:
can you add 4K resolution function in the future,because the way of using adb will make the boot animation offset
[Sony Xperia 1 III] Freak07:
You're very welcome. :)

Interesting, I remember building in an external NFC driver from the vendor part of the source.

I'll check the next few weeks.

I think for now if one wants to have everything working without any surprises it's better to use the one that was attached here on XDA.

Thanks for all the feedback. It's helpful to diagnose all those issues and little niggles, so I know what to work on.

I'm new to Sony, so I have no experience with their source/devices and build system.

Hopefully I'm able to somehow solve all those issues and release the A12 kernel, with a lot more changes as I intend.

Doesn't matter where the change to 4k happens. The bootanimation is just not made for 4k resolution.

I'm no designer, but if somebody can upscale the bootanimation to 4k (no idea if that's possible) i think i might be able to create a magisk module that shows it correctly aligned.
[Sony Xperia 1 III] w2l14:
thanks so much for your work on sony kernel!this is hdd_driver_load code from 魔法师蛋小丁's xperia pro i: github.com/DevriesL/PDX217_ImageBreaker/blob/master/kernel/module_injector.c，he said it's a better way to solve the wifi problem……
[Sony Xperia 1 III] Freak07:
Thanks for the link. Appreciate the help.

That's just another way of "(force) loading" the kernel modules from stock firmware on a custom built kernel. Doesn't solve the problem that at the moment the source doesn't contain seemingly all drivers.

I want to build the complete kernel with all the drivers from source. If I'm not able to obtain the source for all the drivers, i won't be able to realize what I plan. But we'll see once A12 is released.
[Sony Xperia 1 III] JDC2389:
I ended up going with the module kernel, the 1.01 was mostly good but nfc was still broken and the showstopper was a black screen that wouldn't turn on, didn't get a log but sometimes the screen just wouldn't wake or at least turn on the display.
[Sony Xperia 1 III] Freak07:
Yes, that's the best option until I'm able to get the driver from Sony to sort the issues :)
[Sony Xperia 1 III] JDC2389:
Not sure what causes the screen to fail to wake and stay black but it's random, it happens on the force module version and the regular 1.01 version with the newer clang etc. I don't need nfc so I went back to the 2nd release for now.
[Sony Xperia 1 III] Freak07:
Can you get me contents of sys/fs/pstore after you rebooted your phone, zip them up and upload them here?

I haven't faced this issue at all, so I can't do anything.
[Sony Xperia 1 III] JDC2389:
Idk if it logged what was needed but I have the contents, if I pressed the google assistant button I could hear it's sound loading, black screen but the phone was still running.
[Sony Xperia 1 III] Freak07:
thanks for the log. :) Just to be sure, you got the black screen, the assistant button still worked, you force rebooted the phone and then got the log after the phone was back up?

Fixed NFC on the source built kernel today. So the only thing left seems to be the driver for smart charging missing from the source.
[Sony Xperia 1 III] JDC2389:
I might have rebooted after the issue, I'm not sure, if it crops up again I'll zip the log file from there immediately on reboot. I haven't had it in a while so I might have disabled a setting that caused it to happen randomly. Idk, happy new year and thanks for the Kernel dev 😁 my best guess is it was a proximity sensor bug.
[Sony Xperia 1 III] w2l14:
hey bro，the phone was chargging by wireless charger ，then someone called me，i answered and hung up the phone，and i wanted to continue chargging，but it didn't work，so i restarted the phone，then it worked，is it relate to the kernel？
[Sony Xperia 1 III] htcmage:
1 III and 5 III know that they use the same boot file if the firmware version is the same. Kernel to the developer, running on 5 III. runs flawlessly
[Sony Xperia 1 III] htcmage:
I am a 5 III user. The kernel makes it possible enough.

However, there are special caveats. Only version 23 of magisk, should be used on 5III. If enabled in the canary version, it will be infinite boot.