yashsingh1/xdaforums huggingface dataset:
[Sony Xperia 1 III] Freak07:
You're entirely correct. Ambient temp is an extremely large factor.

It's normal in a way for phones which can only rely on passive cooling. Once it's summer outside the last few gens of flagship SOCs just get hot quicker than phones used to.

120fps, 5g and increased peak power draw of the SoC in comparison to a few years ago. Add direct sunlight outside to that and you have enough factors.

"Disabling" cores can get overriden via powerhal too. The settings you change in kernel managers can be overruled by other parts of the framework.

Think about it that way. Even if you restrict the SoC, you still have a point in your phone that gets up to 50-65°C (where the SoC sits) once you interact with the phone. If it's 30 degree outside, the phone can't run cooler than the ambient temp and it will cross 35 degree battery temp in no time.

If it's 20 degree outside, the whole device skin stays cooler, therefore the 50-65 degree during interaction might be 45-55degree or even only 40-50. That's why ambient temp has a huge impact on phones.

Depending on your usage, network, direct sunlight etc, ambient temp, where you keep your phone the point where you feel the phone heating up might come quicker or not.

A "kernel" can't really help with that simple physics fact. The feature that allows you to restrict CPU freqs, can help so the phone heats up slower, but it can't prevent the phone getting hotter quicker during summer.
[Sony Xperia 1 III] treff89:
Freak07, I have a very specific question for you.

Using this phone on Android 11 with your kernel connected to an external display via USB-C, the video out works fantastically (4K60 without adjusting any settings).

BUT, the phone won't recognise mouse and keyboard connected to the display's USB ports.

For comparison, a Samsung S9 lying around recognises the mouse and keyboard and allows their use without issue.

I see your kernel fixed the issue on another device -- https://xdaforums.com/t/otg-usb-hub-not-recognizing-mouse-keyboard.3936188/#post-79652945

Any chance of a hotfix for the Android 11 kernel? (I'm staying on 11 as don't feel any 12 features justify the upgrade, unless you convince me the battery life is even better on 12.)
[Sony Xperia 1 III] Ainz_Ooal_Gown:
Other than the heat on Android 12 my battery life is a bit better...but alas It skipped my mind to take battery screenshots of before and after...my phone also survived updating Magisk so that's nice.
[Sony Xperia 1 III] Miustone:
So glad to have You on a Xperia! Saw Your work on Pixels too and i'm totally amazed...

I wonder if You are up for some further Xperia Development with a Team!? There is a Mainline Kernel around from our SODP Guys and i am working on a new OS. We could really benefit from Your Skills! Hope we can come together at some Point (:
[Sony Xperia 1 III] JDC2389:
@Freak07 Hi Freak, I was looking to try newer gpu drivers but this kernel doesn't support OverlayFS, is there a chance you could add support for it please?
[Sony Xperia 1 III] Ainz_Ooal_Gown:
Even the Magisk Module that would normally add the function states that the kernel must support it
[Sony Xperia 1 III] Freak07:
the kernel supports overlayfs already.

https://github.com/freak07/Kirisakura_Sagami/blob/54c6b7ec98d7d694dcba3054565674c50dd412f8/arch/arm64/configs/kirisakura_defconfig#L6072

Maybe the module needs to be updated to work correctly with 5.4 devices.
[Sony Xperia 1 III] UsernameNotRecognized:
Hey @Freak07 , I'm trying to get double tap to wake to work, but according to some folks online this is something that must be supported by the kernel itself. According to 3C toolbox this kernel does not support it.

The confusing thing is that it said the same thing about the original kernel, but that makes no sense as Sony's own ROM supports double tap to wake as expected.

Perhaps you know what's happening here?
[Sony Xperia 1 III] Freak07:
Works just fine on my end.

Go to settings, display, Lockscreen preferences and enable "tap to show lock screen".
[Sony Xperia 1 III] UsernameNotRecognized:
Hi Freak, I'm using a GSI ROM, Corvus to be exact. Honestly I'm not so sure the information I've found is relevant. I think the ROM is misconfigured as AOD is also disabled, should definitely be enabled.

According to the overlay from Sony themselves AOD should be supported, but DT2W should not.

device-sony-pdx215/overlay/frameworks/base/core/res/res/values/config.xml at master · sonyxperiadev/device-sony-pdx215

Contribute to sonyxperiadev/device-sony-pdx215 development by creating an account on GitHub.

github.com

device-sony-pdx215/overlay/frameworks/base/packages/SystemUI/res/values/config.xml at master · sonyxperiadev/device-sony-pdx215

Contribute to sonyxperiadev/device-sony-pdx215 development by creating an account on GitHub.

github.com

But that doesn't make sense as DT2W works in the vanilla ROM...

Corvus is based on PHH Treble and missing the overlay anyways.

vendor_hardware_overlay/Sony at pie · phhusson/vendor_hardware_overlay

This includes hardware-specific overlays for Treble ROM - phhusson/vendor_hardware_overlay

github.com

(Missing PDX215 entry)
[Sony Xperia 1 III] JDC2389:
Yeah, dt2w works here too, AOSP mods magisk/zygosk xposed will enable Monet and other features/double tap to sleep on lockscreen/statusbar as well.
[Sony Xperia 1 III] UsernameNotRecognized:
No, I mean double tap to wake, not sleep. If you meant double tap to wake, do tell how.

Swipe is also fine, but now I have to pick it up every time I want to do something. That's... Cumbersome to put it mildly.
[Sony Xperia 1 III] JDC2389:
Ah well, gsi is the problem, incomplete and buggy, miuistone is working hard to make a more complete gsi over time, if you need it now I suggest you wait on a customized stock for the time being.
[Sony Xperia 1 III] 1219545479:
Thanks for your sharing, I am trying to build an Android 12 kernel with Xperia 1 III to support running Docker, I am a novice, can I do it with KirisakurA_sagami_s_2.0.0?

Here's a way to check if the kernel supports Docker:

This tutorial shows how to run docker natively on Android, without VMs and chroot.

This tutorial shows how to run docker natively on Android, without VMs and chroot. - docker.md

gist.github.com
[Sony Xperia 1 III] Freak07:
I think here´s not the best place to discuss this :) the kernel is primarily intended to be used with the stock firmware and I like to keep the discussion at least somewhat related to the kernel itself. I don´t mind occasional off-topic, but I think this is just something else entirely.

Maybe open a new thread and somebody might know a way to get it working on GSIs, look at other devices how it´s implemented on custom roms etc. :)

I´m not much familar with ROM development so I´m afraid I´m also not of much help.

Sorry I have no clue about that either. :) I suppose if those required patches are generic you should be able to apply them to my source and compile the kernel with the changes yourself.
[Sony Xperia 1 III] 1219545479:
Can I get the xperia 1 III A12 kernel source code? I want to enable some kernel features by make menuconfig so THAT I can use Docker. Here are some missing functions to check for when using Docker: docker_check.txt

I used this script to check which kernel features docker needs to enable: check-config.sh
[Sony Xperia 1 III] qwerzl:
Hi Freak,

Now that 1 iv has been out for a while, do you have plans to port your kernel to it?
[Sony Xperia 1 III] jaungster:
I just rooted my phone, USA variant running build 61.1.A.9.128. I can see it looks like the latest 2.0.0 release is for build.

Can I still flash the kernel, or do I need to update? How do I update anyway now that I'm rooted? Do I need to xperifirm patch the firmware boot everytime?
[Sony Xperia 1 III] Freak07:
as soon as you bootloader unlock you´ll no longer receive FOTAs. Yes you´ll need to update using the tools available here on XDA.

If you want to stay rooted you have to magisk patch the boot.img from the newly installed firmware and flash that. Afterwards reflash the kernel here following the instructions. I don´t have the USA variant, but the kernel should work just fine on that as well.

but as always make sure to keep a backup before flashing.
[Sony Xperia 1 III] jaungster:
So it looks like I have to wait for USA firmware 61....149 on xperifirm, then patch boot and update before flashing the kernel. Just wanted to confirm
[Sony Xperia 1 III] jaungster:
It's been a while since I've messed with root and all that. The last phone I went all in for was an axon 7. If I were to try to flash this kernel and it's not compatible, what steps can I use to reflash the old kernel (as well as backup my current stock kernel)
[Sony Xperia 1 III] Pandemic:
Look buddy this stands in the 1st post:

How to flash the Kernel:

1. Download the latest kernel.zip and make sure you have properly updated to the latest matching Firmware (check the feature list for the current firmware the source is based on). When there´s an OTA update for the Sony Xperia 1 III it takes Sony a while to release the source code for the new OS and me a while to build a new kernel. If you don´t want to face any issues, wait until I either release an updated kernel or give green light because there were no kernel changes.

If you want to be sure there are no issues, always make sure to run the firmware the kernel is built for!

If you feel adventurous and try in advance, make sure you have a backup ready!

2. Flash the kernel.zip via latest TWRP (if available), EXKM or FKM app and do a full reboot.

3. Reboot and profit.
[Sony Xperia 1 III] jaungster:
Sorry I was just asking since his firmware it's based on is 61.1.A.9.149 and I'm running 61.1.A.9.128 (latest on USA xc-62). If it wasn't compatible and someone knew I was hoping they'd chime in so I wouldn't risk bricking my device (it doubles as my work phone). I wasn't sure if there was a kernel difference between the firmwares that'd cause my phone to crash.
[Sony Xperia 1 III] Pandemic:
I use this kernel to on latest fw .128 and no issues at all trust me, i use my phone also for everything.
[Sony Xperia 1 III] jaungster:
Good enough for me. If it's working fine on .128 for you I'm gonna go ahead and flash.
[Sony Xperia 1 III] htcmage:
Hi, developer, can I ask you to develop the same (Snapdragon 888) xperia PRO-I kernel as Xperia 1 III (5 III)? I'd be happy to donate if I could.View attachment 5676225
[Sony Xperia 1 III] htcmage:
I checked the possibility. It boots normally. The camera doesn't work and of course stutters a bit. Can you help with development? . if there is a chance ..View attachment 5676445
[Sony Xperia 1 III] Shefczenko:
Hi all! Is it possible to force 4k output through the kernel/kernel manager since the adb method has been locked? Thx. :)
[Sony Xperia 1 III] Freak07:
sorry I don´t work on devices that I don´t physically own and can test on.

If it´s just a matter of getting the camera working maybe someone that owns the phone can take my work and adjust it to function properly with the PRO-I.

Unfortunately not and I´m not sure at this point that 4K works properly at all on A12.

I can force the panel itself to run at 4K via kernel, but content is still rendered at lower resolution.

Looking at the logs, forcing the panel via kernel to run at 4K produces the exact same lines in logcat and dmesg as when running any app that triggers 4K without the hack. So I´m really not sure if rendering is ever at 4K on A12, even in supported apps. That panel itself switches to 4K, but content seems to me still rendered at lower resolution. I´m not 100% sure about this, but I found no way to force it like on A11.
[Sony Xperia 1 III] Shefczenko:
Lol Sony SW FTW. Thanks for the reply though your kernel is superb. 🙂
[Sony Xperia 1 III] Pandemic:
Any one use 2.0 kernel on latest fw 219 and is it working fine ?
[Sony Xperia 1 III] bountyman334:
nope it doesnt. zit will bootloop and have to flash using newflasher. Data will be fine but will have to re-root
[Sony Xperia 1 III] bountyman334:
I Ended up going back to GSI evo a11 gpay works and chase mobile app works with fingerprint. Only missing Reverse charging
[Sony Xperia 1 III] Pandemic:
Damn that's to bad bro :(

@Freak07

here you go the latest boot.img of fw .219

boot.img

drive.google.com
[Sony Xperia 1 III] Freak07:
I'll take a look at it once I find time, but we probably need to wait for Sony to push the source.
[Sony Xperia 1 III] jaungster:
If we update our rooted devices to the latest firmware update using a newly made patched img, would this also revert the kernel back to stock or is it recommended to flash the stock kernel using ex kernel or something?
[Sony Xperia 1 III] Freak07:
No problems flashing 2.0.0 on 61.1.A.9.219 on my end using latest magisk.
[Sony Xperia 1 III] Freak07:
You don't update your phone by using a magisk patched boot.img.

You need to flash the entire firmware package using newsflasher, which overwrites everything including the custom kernel.

After flashing the new firmware you need to re-root by patching the boot.img from the firmware you just installed and afterwards reflash the kernel.
[Sony Xperia 1 III] jaungster:
I see. Thanks again for the help and sorry for the noob questions.
[Sony Xperia 1 III] Pandemic:
Yes indeed flashed it also and works fine bro on fw .219 😎👌
[Sony Xperia 1 III] YusukeYuu:
Mine fine
[Sony Xperia 1 III] bountyman334:
My apologies. I might have done something else in the background
[Sony Xperia 1 III] paul999:
This kernel is great! so far so good no big problems using 61.1.A.9.219 android 12. only about 2% power drain after 8hr sleep in deep doze mode.

one thing i notice is when you touch the screen/doing normal operations, all eight cores will jump up to 13xx together... this does not happen if you use the stock kernel. it will be better if only the little cluster and big cluster get boosted during input detection... is this something to do with the power saving option? it seem they are all synchronize.
[Sony Xperia 1 III] Freak07:
Hey :) glad it's working fine for you and you're happy.

Boosting to 1.3ghz happens on stock kernel too and is unrelated to the kernel, as this boost is controlled by the power-hal.
[Sony Xperia 1 III] paul999:
oh you are right, i just flashed back stock kernel and tested again. is there anyway to tune it down? all cpu cores boosting to 13xx everytime i touch the screen seem to be waste of energy
[Sony Xperia 1 III] JDC2389:
Idk if that's a good idea, but I'll add that any more updates are welcome when you find the time, maybe some more optimization or like a newer clang? Oh, I also discovered bbr2 tcp congestion algo exists. Idk, thanks for the kernel again my dood.
[Sony Xperia 1 III] Pandemic:
@Freak07 can we except a new kernel for A13 and does v2.0.0 works on A13 also ? Just curious bro 🫶
[Sony Xperia 1 III] Pandemic:
Anyone tried v2.0.0 on A13 and does it work ?
[Sony Xperia 1 III] Pandemic:
Any news ? 🫤😶‍🌫️ i am the only one that is still alive here..
[Sony Xperia 1 III] bentree:
Lol, others are alive. I imagine it's probably due to it being around new year. Lots of people disappear for a bit during that time.
[Sony Xperia 1 III] bentree:
Just wanted to say that I have been running this Kernel for a week now on build 61.1.A.11.88 and I have noticed an massive improvement to battery life. Before using this kernel I was struggling to get the phone to last through a 13 hour work day. The biggest issue with the factory kernel was that it very rarely went into deep sleep. Now with @Freak07 kernel the deep sleep time nearly matches the screen off time.

Not sure why it couldn't get deep sleep with the factory Kernel but now it is much better. I haven't noticed any delays with notifications or syncing issues either.
[Sony Xperia 1 III] Freak07:
Asking for ETAs no matter if direct or indirectly in disguise, politely or impolitely is not considered the proper way on XDA.

I haven´t tried it personally, but you´re free to backup your partitions and give it a try.

As a bonus there´s no source code yet from Sony for A13 for Xperia 1 III. Just like last time as A12 dropped, where you asked the exact same question. It probably will take Sony a few months to release it.

Last time it took them 6 months, so I fear it might take them even longer the older a device gets.

https://developer.sony.com/develop/open-devices/downloads/open-source-archives

Feel free to check here for archives starting with 61.2.x.x.x.

As a second bonus all my work is open source, so everyone can update or work on it. :)

Thanks for the kind words, but the kernel is not a magical improvement.

I guess this is just coincidence and whatever kept your phone awake or hogged resources in the background got cleared by the reboot.

If the kernel really fixed an inherent problem though, I´m happy it helped on your end.
[Sony Xperia 1 III] Pandemic:
Yes i agree about the ETA so my apologize bro, i was just curious ans i dunno why Sony nor google is so slow with bringing out the source but once again sorry bro, appriciate your work 💯🫶
[Tilt, TyTN II, MDA Vario III Themes and Apps] DRZ400:
Evening all.

I'm hoping there's some developers out there that can give me some help.:)

I work in the telecoms industry and we send out field staff out in the middle of the night to some unsavoury locations. I am aware of staff being robbed, beaten up, even once a long time ago a farmer pointed a shot gun at one of our techs!!!!!

I'm trying to write an "Emergency Beacon" app in c# that when a hardware key is pressed (probably nav wheel) 5 times within 5 seconds it'll wake the device and run the program. Vibrate once to alert the tech it's been activated, enable the GPS, read the CGI (Cell ID) from the RIL, and then send a SMS detailing the Tech needs urgent help at GPS lat/long (if it gets a fix) and the (CGI) Cell ID, and do this every minute until its manually deactivated with a PIN code.

The idea is that if a tech gets in trouble, if he can get to his Kaiser, find the nav wheel, tap the button a few times, it'll vibrate and send the SMS, and he'll know help will be on its way without having to go through the "unlock", phone someone, where are you, don't know lark.:D

So far I've done the ... GPS, got the Cell ID and LAC, and got it sending the SMS every minute.

I can't for the life of me figure out how to wake the device from a hardware key and run a program. I've only been developing on WM6 in c# for 2 months!!!

I'm thinking along the lines of a Today screen plugin but I think they go to sleep in sleep mode.

Anyone any ideas??

Cheers

Phil

I think it'll be a killer application and of course I'll be publishing it here first!!:D
[Tilt, TyTN II, MDA Vario III Themes and Apps] Wlofea:
Can't help with this at all, but that sounds like an amazing idea.

*watches thread with interest*
[Tilt, TyTN II, MDA Vario III Themes and Apps] DRZ400:
Cheers .... It's going to be a while .. I'm flat out at work!
[Tilt, TyTN II, MDA Vario III Themes and Apps] kilrah:
Hmm.. I have zero development background on WM, but maybe a few cues...

In the settings you have a "Key Lock" control panel. In there, by default the hardware keys are deactivated when the device is in standby. By changing that you can enable the keys again.

After that, a press on any hardware key will wake up the device and do what it's supposed to.

So the waking up would be sorted. Now if you don't want the phone to wake up all the time and do random stuff in the pocket, I guess your program would have to put a kook to capture all the hardware keys, whenever it's running (all the time in the background).

When the device is on standby and a key is pressed, if it's not the intended one the device is put to sleep again. If it's the right one, start counting the presses.

When the device is on, if it's not the intended one, the key event is passed to system so it can be handled normally. If it's the panic key, start counting too so that operation is guaranteed also if the phone is already on.
[Tilt, TyTN II, MDA Vario III Themes and Apps] DRZ400:
Ahhh I see what your saying .... capture the keys and if it's not the right one put the device to sleep BEFORE it wakes up properly.

I think this would have to be done as otherwise all the keys other than the "power button" are ignored. I don't want to go down the power button route as it's a hard button to find .... the nav wheels dead easy.

I'm very new to WM too, Even though I've got pretty much a working application. How to get it working at the press of a button ... no idea (yet).

I "think" it's possible, If a "proper" developer wants to take the idea and create a working application I think we'll all be winners!:D
[Tilt, TyTN II, MDA Vario III Themes and Apps] someguy1015:
That would be an amazing app, im in the telecomms industry too and would be a nice tool to have. I wouldnt mind doing some testing on the app when you have a version ready.
[Tilt, TyTN II, MDA Vario III Themes and Apps] DaveShaw:
Hope my code helped you get this going. I would like to see this working. :)

A good Idea would be to configure the button, if possible, that way if you port it to another device (say artemis) it would work without the jog wheel.

Drop us a PM if you need a hand with owt else :D

Ta

Dave
[Tilt, TyTN II, MDA Vario III Themes and Apps] DRZ400:
What you helped me with Dave was another part of the project :D ... your code allowed me to write the alarm function of my "Lone worker" Today screen plug-in which, IF the tech doesn't book off site it wakes up and beeps a lot ...

Sadly it's not an application that anyone one here would find useful UNLESS they work for a company with a SMS based Lone Worker system.

Now that's finished I can concentrate my efforts on the beacon app.... please note my C# WM development experience is a wopping 2.5 months!!

The ONLY and most probably difficult thing left to figure out is making an application launch at the repeated press of a button, even if the device is locked. Can't be that hard .... CAN IT??? LOL.

You could always write it Dave!!! *hint hint* And then you could sell it and make lots of money and buy a speed boat *.:D

* as long as I get a free copy!!
[Tilt, TyTN II, MDA Vario III Themes and Apps] DaveShaw:
Not enough hours in my day, I'm affraid :(

I work long hougs and don't normally get on my PC until gone 10pm.

Dave
[Tilt, TyTN II, MDA Vario III Themes and Apps] DRZ400:
I'll supply the Red Bull ... crack on!!:D

Dam .... looks like I'm REALLY going to have to give it a go.:(
[Tilt, TyTN II, MDA Vario III Themes and Apps] DaveShaw:
Quick help I can do, sitting down, designing and implmenting is the hard part.

Sorry.

Dave
[Tilt, TyTN II, MDA Vario III Themes and Apps] mohitsapru:
Is this project over cant see any progress... or am i late?
[XPERIA X8 Q&A, Help & Troubleshooting] Deleted member 11650153:
Hello!!!

I need help to xperia x8 cyanogenmod 10 4.0.1 unofficial rom!!!

From the first moment I put this rom it is not fast at all. (It is slower than the official one)

That's why I want to put a booster application to make my phone work faster!!! Can you suggest me something?
[XPERIA X8 Q&A, Help & Troubleshooting] machunhuan:
我把它制作成为床头闹钟了，它太古老了，祝你好运
[XPERIA X8 Q&A, Help & Troubleshooting] Deleted member 11650153:
Thanks