yashsingh1/xdaforums huggingface dataset:
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
You might give a try to get the rom zip, use a zip browser like Winzip, look up the Boot image for your model, unpack it, and flash it with "fastboot flash boot image"

Don't know if there's any additional magic going on in the boot partition, while installing the ROM, but I guess the stock one is packaged as it will look after flashing... Maybe [MENTION=398245]LeeDroid[/MENTION] can shed some light, if that boot img is just fine for restoring the stock without additional steps..

I'll check wifi tethering, now I have an idea what could be wrong with that...
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
I'll give you some light. I have tried another headphones with an USB C adaptor and they work so audio routing is working.

Only HTC ones do not work.

I'll wait till LeeDroid helps you, but if you fix WiFI tethering I will flash CleanSlate kernel again, for now I'll stay with your superstock version.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
:eek: wow thats superstrange...

Thanks for the detail. Now this is a very interesting detail... I'll check what might be related to this in the oreo sources.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Well, I couldn't find anything yet for the HTC USB C earbuds...

But here's something that might help with the wifi tethering problem https://www.androidfilehost.com/?fid=5862345805528052578
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
Thank you so much for checking this because it's very useful for me.

I'll test it tomorrow because I use it for about an hour when I'm on road to my job.

I'm sure that you can fix HTC USound too...only a matter of time :).
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
WiFi tethering solved! Now works fine.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Great... thanks for the tests! updated op with v4, and added known issues.. I'm clueless at the moment with htc earbuds. Been looking at the driver and possible misconfigurations but no luck.

I'll need to compare further with Nougat sources pro'ly ...
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
Take your time and I'm sure you can find out. Good luck, mate! BTW I also can confirm tethering works well.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] TangerineTractor:
tested v4, booted up ok, but every time I screened off, i got a reboot if i tried to get on again.

reverting to v2 which has been running fine.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] inFiniTyz_Z:
It is possible to change the notification LED for each app? For example that Telegram notificate me with a red LED
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] dabuHTC:
After installing the kernel, the home button started to vibrate on touch. It is annoying and battery consuming. Can be deactivated somehow? T
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
It be done but not there at the moment. It would need the app extended too to configure the apps on a nice interface.

I have it in my list but not in the short term right now
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Please try to set home vibration length in fingerprint settings.

In advanced mode
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] TangerineTractor:
I would love the ability to get rid of the led for charging. I only want it for notifications.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] CoNsTaR:
agree, and they are so bright when you sleep :mad:

there should be an option to disable the led when inside a dark room as a stock feature.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] dabuHTC:
Can you tell me which version of this kernel is working with the HTC headset? V4 has no sound with the stock headset. Thanks.

Im getting tired of roms, kernels, recoveries, patches, fixes, tweaks and so on. Somebody solves a problem, makes some function better, but other 10 bugs appear somewhere else. And so on and so forth. I will probably quit and buy an Iphone.

---------- Post added at 02:04 PM ---------- Previous post was at 01:58 PM ----------

Can you tell me which version of this kernel is working with the HTC headset? V4 has no sound with the stock headset. Thanks.

Im getting tired of roms, kernels, recoveries, patches, fixes, tweaks and so on. Somebody solves a problem, makes some function better, but other 10 bugs appear somewhere else. And so on and so forth. I will probably quit and buy an Iphone.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] dabuHTC:
Can you tell me which version of this kernel is working with the HTC headset? V4 has no sound with the stock headset. Thanks.

Im getting tired of roms, kernels, recoveries, patches, fixes, tweaks and so on. Somebody solves a problem, makes some function better, but other 10 bugs appear somewhere else. And so on and so forth. I will probably quit and buy an Iphone.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] dabuHTC:
Can you tell me which version of this kernel is working with the HTC headset? V4 has no sound with the stock headset. Thanks.

---------- Post added at 02:17 PM ---------- Previous post was at 02:08 PM ----------

Can you tell me which version of this kernel is working with the HTC headset? V4 has no sound with the stock headset. Thanks.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] dabuHTC:
Can you tell me which version of this kernel is working with the HTC headset? V4 has no sound with the stock headset. Thanks.

---------- Post added at 02:19 PM ---------- Previous post was at 02:17 PM ----------

Can you tell me which version of this kernel is working with the HTC headset? V4 has no sound with the stock headset. Thanks.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
I'm afraid no version works with the headset. The developer is still working on it.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
That's right. It's quite mysterious, as a simple compilation of the stock sources end up with this problem. So a bit clueless at this moment.

I plan to compare configuration file from stock binary kernel, if there any hints.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Tctien342:
Hey! I have clone your source and built it! After done i push it into stock kernel boot.img and flash it! Every thing seem to be work normal include headset! Maybe something wrong with your flash zip?

https://drive.google.com/open?id=1hOjoekoAxgr1S94pJMJtplkwZ9nlLzJF

Using fastboot to flash it

[IMG="kernel info"]https://dl.xda-developers.com/4/5/8/0/2/4/5/Screenshot_20180825-101608.png?key=Q6UkPSWkGDA5j6m9FzrNkA&ts=1535167733[/IMG]

[IMG="headset work"]https://dl.xda-developers.com/4/5/8/0/2/4/6/Screenshot_20180825-102224.png?key=mWt3cTqnZ5C4zbkpSkclmg&ts=1535167630[/IMG]
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Whoa, That's looking good. Maybe I just need a clean compilation. Thanks for the heads up. I'm going to try a clean one and share here in a bit
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] migueljerico:
Thank you so much!!!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
Thanks!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Mitko0111:
Hello...

I want to ask you for a favor. I don't know if every HTC U Ultra is affected by this issue but it annoys the hell out of me especially when I try playing games like pubg or 8 ball pool. So basically the touchscreen doesn't respond to small movements. It moves at about 24 pixels. It even persists in the TWRP recovery, stock kernels and android 7. I think that it's from the touchscreen driver. My touchscreen controller is sw49407. The LG v20 is using the same controller but it doesn't have such problems. Here's a thread I made. And also a video. I want to ask you to try fixing this problem. :) . Thanks in advance!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
Still no sound in yt, spotify :(
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
made a clean compilation, and it seems it resolves the issues partially as others reported, spotify sounds is not there for them.

Interesting, that it's working for you.

I'll have a look at some point, if the stock source compiles to a fully working version.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] bulletproofdroid:
No mention of forced encryption... Does this kernel support optional encryption, or does it follow the stock kernel and force encryption upon first boot?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
Has anyone tried if the earbuds work on this kernel + totally stock rom?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
I wonder about this too. Also we only have one region ultra sources from HTC. Might be that single sim would need another package from htc
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] panda968:
Would this work for rr rom

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

Trying to make calls audio work
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] marcsiev:
How can I reactivate my original HTC kernel settings, that sound on HTC headphones work again?

Flash original don't helped
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] mucan57:
usonic
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] MattP410:
This is an awesome kernel. It would be even better IMO if there were some added cpu governors, I/O schedulers, and TCP congestion algorithms. I also have a question. What exactly does Touchboost do? I don't see anything about it on the companion or configuration apps, but it showed up on my other kernel management apps upon flashing Clean Slate. Thanks for a great kernel, well worth the paid versions [MENTION=3088420]tbalden[/MENTION]!

EDIT: Never mind about the Touchboost question. After digging a little deeper, I realized it wasn't an added feature of the kernel. You just added a way to disable it to save power. Sorry for the noob question. I'm learning. ?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ali_l67:
So no hope for fixing earphones ? Do it for your last favour to u ultra [MENTION=3088420]tbalden[/MENTION] if possible v5 dosent work too
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] WenjieSun:
Hi, can i flash it on a custom Q rom?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Przecin:
No, only for Nougat and Oreo.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
I couldn't find a solution for this. There are no newer updates for kernel sources that might help... I'm updating the kernel today with new Wireguard compiled in and a smaller fix, but unfortunately not the earphones :(
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
- Update 2.7.5 (beta) -
​

- Fix: while in long phone calls, flashlight notif/vib notif reminder triggers - fixed

- Update to feb-2020 WireGuard

CleanSlate 2.7.5 Download:

https://www.androidfilehost.com/?fid=4349826312261724414
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] MattP410:
My phone became incredibly slow after flashing CleanSlate v2.7.5. It's also become very glitchy. Has anyone else had this issue?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Firstly thank you for trying! Much appreciated

If going back to your backup helps, then it might be a problem with the kernel.

If not, then it might be an intermittent hardware issue, as you mention. Hope your backup helps the issue.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
Boots fine for me with no problems, but changing any settings doesn't seem to work...
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] S3V3N:
Me too :(

Wysłane z mojego HTC_U-1u przy użyciu Tapatalka
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Made sure you pressed the save button after changing settings?

Could you please send me your /sdcard/uci_user.cfg

Also if it doesn't help to save it, then could you please try to grab a dmesg log just while you do the save in settings app.

Happy that at least most stuff works. We'll get to the bottom of it.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
Yes I did save it, I'll send you the uci_user.cfg now, don't have time for a dmesg right now
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thank you!! OK, hope we can get this fixed.

One question yet tho, what setting you have changed that was a sure indication it doesn't have effect?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Another question, is the notification led pulsing instead of short stock blinking? Also are the buttons blinking on notification?

Thanks
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
The power button blocker, and screen off when facing it down.

No, it's stock blinking and the buttons isn't lighting up when getting notifications
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Sorry guys, I screwed this up big, here's the good installer Download:

1.7.0_beta2 Installer zip for TWRP:

https://www.androidfilehost.com/?fid=889964283620774139

I mixed up with the stock kernel image from yesterday accidentally
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
I screwed the previous beta, checked it was the first stock compilation zimage... Meh :)

Let's see the beta 2 then. Hopefully it will boot and all good probably :good:

https://www.androidfilehost.com/?fid=889964283620774139
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ForceField:
Tried Beta 2.

Doesn't boot :(
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] S3V3N:
Bootloop :(

Wysłane z mojego HTC_U-1u przy użyciu Tapatalka
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Could you try this:

Restore your backup.

Then flash the kernel and create a backup. Boot partition is enough

Restore again but the good backup stock boot partition .

Then grab the backup boot partition boot.emmc.win file from backed up storage of the beta 2. It's in the internal storage twrp... folder

Then if you copied the beta 2 boot partition backup to your pc:

adb reboot-bootloader

Then temp boot without overwriting the real partition, just booting from pc:

fastboot boot boot.emmc.win

Then it reboots with beta 2 crash, but won't boot loop because the good stock boot partition is there.

Let it boot then

adb shell

su

cat /sys/fs/pstore/console-ramoops > /sdcard/log

exit

adb pull /sdcard/log

Paste the log or upload and share.

If anything unclear let me know :)

Tyia
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] LazyFunker:
Wrong post...
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
Mine boots, but when the notification lights come on it does seems to pulse, but then it hangs and goes into a bootlop.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
That's something! Thanks!!

Did the hang happen upon touching the fingerprint sensor, or right after the pulse starting.

If you could try the method above to grab a ramoops file, that would give me some pointer, but this is something that gives me some clue what might happen.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
Seemed to be right after the pulse starting, probably when recieving a notification?

I can try that tomorrow
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Maybe fastboot boot won't work, what I suggested, so I'll try to give builds with different functionalities switched off for now, so we could find the culprit... in a minute
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
OK, so here's one with led notification functionalities turned off by default just for testing purpose, if it boots and is stable (settings won't work, disabled to make sure no interference):

beta3 no notif lights tweak, not settings:

https://www.androidfilehost.com/?fid=817906626617954608

If this is somewhat stable, I can start enabling stuff one by one
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
That works, and seems to be stable for now at least
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Good! Thanks for you perseverance !

So here are more :eek: :highfive:

ONLY FLASHLIGHT NOTIFICATIONS ENABLED: try a receive notification

https://www.androidfilehost.com/?fid=817906626617954611

ONLY PULSING RGB LED NOTIFICATION TWEAK ENABLED, try a receive notification

https://www.androidfilehost.com/?fid=673791459329069220

ONLY BUTTON LIGHTS NOTIF ENABLED try a receive notification

https://www.androidfilehost.com/?fid=745849072291696744

ONLY COLORED CHARGING LED ENABLED, try charger here

https://www.androidfilehost.com/?fid=889964283620774201

If we can narrow it down to one (or more) bootlooping, that would be awesome.

So if one bootloops, don't stop, test the others. Many thanks
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
None did bootloop

But only the pulsing rgb and colored charging did work, the flashlight and buttons didn't light up when recieving notifications.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Ok, thank you.

Will have to analyze this a bit, and I'll try to come up with a method to capture a log easily for the bootloop.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
I can try to get a ramoops file later if you want, haven't got to try that yet...
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
That would be awesome. With the looping beta 2 you could try, but I'm unsure if fastboot boot works on the ultra. On the 10 it doesn't work with current aboot type boot loader. But if it loads then the way described should enable getting ramoops.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
Ok, I will see if I can manage to do it tonight
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
It seems to be the buttons which makes it crash(was overridden in the LeeDroid Tweaks app) so seemed like it wasnt working.

But the flashlight notification doesn't work
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Ok, flashlight i might know why not, there's a change in the flash driver which is suspicious. But at least it doesnt crash.

So to grab a log for the crash, could you do the following.

Use the kernel without BLN, any beta3.

Then go to

adb shell
su
echo "1" > /sys/class/leds/button-backlight/bln
exit

Trigger a notif, it should crash, reboot. But it will not bootloop, as BLN is default off.

Then

adb shell
su
cat /sys/fs/pstore/console-ramoops > /sdcard/ramoops-1.log
exit
adb pull /sdcard/ramoops-1.log

That would be great!!

Thanks!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
[MENTION=3088420]tbalden[/MENTION]

So I've just tried the steps for the log you have written on page 3 or so, but seems like i can't finish it (see screenshot attached).

edit: in bootloader, the Screen says:
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Ouch, this is rather strange. :(

Unlock device? That's pretty weird on an unlocked device.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
BTW I'm out of thanks for now on xda but thank you!!

If you have some time at hand you could check this

https://xdaforums.com/showpost.php?p=74959841&postcount=48

Beta3 installers in one previous post.

Just not test with the one where bln is enabled by default, and be aware that leedroid tweak app kernel part can interfere
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
So actually thank YOU that you bring some Action to the Ultra threads over here, I've already been missing the old HTC Desire HD times with lots of Roms etc. I'll just do my best to Support you guys, since i've no idea of developing such things :D

I've installed "b3_only_chargingcoloredRGB" earlier today. Booted normally so far, and e.g. douple tap FP to sleep works, as well as the green/golden charging led. Call strobe did not, but i'll try the Things from #48 right now.

I'll edit my results here when i'm done.:

okay, something seems to be messed up..
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Oh, okay, so maybe it's unlike on the Htc 10 and it's

/sys/class/leds/indicator/bln

what does

su

ls /sys/class/leds/

show?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
Never Mind, i re-flashed the beta3 and now the Code worked, a notification let the device freeze and rebooted.

Will send you the ramoops file in private right now.

edit:

htc_oceuhl:/ # ls /sys/class/leds/

button-backlight lcd-backlight led:switch mmc0:: sub-backlight

flashlight led:flash_0 led:torch_0 rgb_amber torch-light0

indicator led:flash_1 led:torch_1 rgb_green torch-light1
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
Sent you the ramoops file now
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Perfect! Helped quickly

Perfect, now I found out that a tiny bit of KConfig configuration change causes this :) Uploading beta4, fingers crossed
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Note configuration app now is enabled to work again in beta 4

If you save in the app, it will override leedroid tweak app settings. It will survive a reboot too unless you delete /sdcard/uci_user.cfg.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thank you [MENTION=8604318]Oddvin94[/MENTION] and [MENTION=3872117]ChavezD[/MENTION] please check beta 4
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
Testing it at the moment, seems to work fine.

Great work!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
If flashlight still doesn't work, as I expect, this could help when the notification happens and flashlight is on.

Make sure flashlight notification setup in advanced configuration app mode ( tap compact to switch) is without flash only with vibration and that for starter the face down switch is not on either. If it still doesn't work please check dmesg at notification time:

adb shell

su

dmesg>/sdcard/dmesg1.log

Then pull it and send me

Thanks
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
Flashlight works, but I can't get buttons to work... Everything else I've tried is working. :good::good:
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Hmm, strange. Nothing shows on the buttons, not even a slight light up?

Could you please send me a dmesg captured at about when the button light supposedly should happen.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Could you please send it in pastebin, seems dropbox is limited

Thanks
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] king of demons:
Does it work with the Middle East version?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
It should. Create a backup of the boot partition just in case.

Beta 4 seems to work fine, except button lights notification

https://xdaforums.com/showpost.php?p=74960690&postcount=57
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] king of demons:
Magisk Manager is work with kernel ?????
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
I've got an idea for a new feature: e.g.test directly inside the app, what the vibrations feel like or how bright the rgb-leds/buttons are. So you don't have to wait for new notifications:D

[MENTION=7377440]king[/MENTION]: yes, i'm on leedroids ROM with magisk (and systemless xposed) and beta4 is working great so far.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
yep, should work fine