yashsingh1/xdaforums huggingface dataset:
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
So here is a beta4 slightly modified for testing purpose, trying to fix Button Lights notif. It contains more logging and slight mods.

Download: https://www.androidfilehost.com/?fid=817906626617954740

Install, reboot, make sure BLN is enabled in config app, receive a notification (like if you want to test a lot, create a secondary gmail account for hangouts test from PC) and grab the dmesg:

adb shell
su
dmesg>/sdcard/dmesg1.log
exit
adb pull /sdcard/dmesg1.log

If you have the opportunity please test as before and paste dmesg on pastebin.com post it here or send me.

Thanks [MENTION=8604318]Oddvin94[/MENTION] and [MENTION=3872117]ChavezD[/MENTION] for helping out much so far. This is getting into shape nicely! :)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
[MENTION=8604318]Oddvin94[/MENTION] please check you pm inbox

Thanks
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
The idea is good, vibration is easy. Notification not so easy, but I'll think about a solution.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Please check again [MENTION=8604318]Oddvin94[/MENTION]
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Borys123:
Yeah!!! Thanks! I'll install the kernel in a few days, will give some feedback. :)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
With [MENTION=8604318]Oddvin94[/MENTION] we narrowed down the problem to the fact that the second smaller display triggers stuff that should be ignored at the time when handling button light notifications event.

Check beta5 here, report please if button light notifications work if enabled in configuration app.

Beta 5:

https://www.androidfilehost.com/?fid=673791459329069431
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Update to beta 8:

Thanks to [MENTION=8604318]Oddvin94[/MENTION] for a long debug session related to Button Lights Notif and secondary screen of the U Ultra.

Right now it seems to work ok, if the secondary screen times out after a notification, BLN will start then.

Changes:

- Fix for Button Light Notifications

Download:

https://www.androidfilehost.com/?fid=962021903579500701
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Let me know if anything doesn't work as you think it should.

If this proves to be stable, then I'll convert it a full release and we can rejoice :)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ForceField:
Yes , the HTC U Ultra community is very small . We are rare :p (and proud :p)

Everything seems to work here .

Only from time to time I feel the phone is vibrating for no reason and without any notification

I am on beta 8

So maybe it's just me

However , I still need to try it more
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks for the feedback, good to know.

Check the attached setting, vibrating notification reminder.

Are you using this?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ForceField:
My vibration power override is false

I noticed that it was vibrating while on whatsapp call at very small intervals.

I thought that I was receiving notifications but when I checked after the call , nothing was on the notification area

so i guess maybe it's not related to the kernel

Will try to reproduce :)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Tricky, actually it will be related to the kernel and companion app. Whatsapp application is in a list of apps where notifications are intercepted and channeled towards the kernel for cases where the charging state blocks the detection of notification blinking.. It's a bit more detailed topic . I'll have a look at this in the companion app.

Whatsapp probably adds a notification element while on call and removes it when call finishes
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Working on a more intuitive default notification channeling in the companion app with some additional toggle to help where you get a bit excessive notification lights...

Progressing nicely
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Rolling out to play store CleanSlate Companion App 1.5.0 https://play.google.com/store/apps/details?id=org.cleanslate.csservice

- add smarter auto filtering of notifications/duplicates
- add Extra Notification Detection switch (on charger/always/off)
- add SENT and ALL notifications tabs with extended info

This will help greatly to reduce your excessive notification detection if you facing that. Personally I'm fine with how it works now. With this version it's easy to follow what triggers and when, and also a "Charger only mode" can help out as well, because these extra detections are most useful when on-charger and non-vibrating notifications arrive.

Soon to follow with the free version here.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
Nice to See, looking Forward to give it a try :D

Installed beta8 today and seems to work great so far, including button lights and rgb and flashlight. Except I still couldn't figure out how to get "face down screen off" to work..(but didn't work on previous betas, neither.)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Do you have the configuration app installed and set to enable that gesture? Check screenshot in attachment.

Along with that the Companion app needs to be installed too and running in the background
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
Yeah i've Double checked both and also rebooted a couple of times.

Edit:.. can't edit and post screenshots..^^
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
Here you go
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Can you try this: put the phone on adb and put it face down on a desk.

Then while phone is so

adb pull /sdcard/uci_sys.cfg

And post the content here?

Also please turn the volume down to DND silent mode and then pull the same file, and post it here.

I'm curious about the "silent" and "face_down" variables.

I think [MENTION=8604318]Oddvin94[/MENTION] had it working but I'm not perfectly sure.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
I had it working earlier, but doesnt seem to work now... That might have been on b6 or b7
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
i didn't Change anything and now its working..:

upside:

proximity=0
face_down=0
face_down_hr=0
ringing=0
silent=0
notifications=6
screen_waking_apps=0
locked=0
lock_timeout=0
screen_timeout=60
#

downside:

proximity=1
face_down=1
face_down_hr=0
ringing=0
silent=0
notifications=6
screen_waking_apps=0
locked=1
lock_timeout=0
screen_timeout=60
#

so.... never mind.....? :D i really dont know what didn't work until now, since i didn't Change anything :D
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
There's a certain level of difference between how sensors act on different devices. It might be that the current sampling delay setting in companion app is not fitting perfectly with the ultra. It works OK on the HTC ten and u11 with different delay value, but I'm not sure these are OK with ultra.

Based on this value face_down_hr=0 I think it's not perfect.

Both should be 1 on a desk.

I'll have a look.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
i've pulled a couple of times again with my phone on different surfaces and angles and i always got all on 1... what exactly Dows face_down_hr=1 look for?

edit: any Chance to see those 3 variables on the fly? to see when which sensor changes its value?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
No way for that as the phone is face down, and there no log yet. That would be useful tho.

face_down_hr should be 1 when the phone is on a really horizontal orientation, like a ordinary table.

It's used to Detect being in pocket proximity and not on a table, and only boost vibration power for notification when not on a table.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Could you please try this companion app 1.5.1 and check uci_sys.cfg and face_down and face_down_hr ?

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

[MENTION=8604318]Oddvin94[/MENTION] maybe this will help you as well. Later I'll publish it in play store if this helps to stabilize it
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
Alright, thanks for the explanation!

I'm Gonna have a look at it tomorrow when im on my pc at home, not just the tablet.

And regarding the vibration settings and so on, I'm also going to re-look at those. At first glance it was a bit complicated as a non-native-english-speaker and android-noob :D
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Seems like this is hit or miss on the ultra. I'll add debug panel to the companion app so it's possible to get the sensor data easily.

I'll update you when it's available for testing
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Published 1.5.1 to play store, and here's the free version as well. This is now with Debug log tab too, if problems occur, easier detection.

Tested with help of [MENTION=8604318]Oddvin94[/MENTION] . Thanks again!

Download Companion app 1.5.1

https://www.androidfilehost.com/?fid=962157660013068304
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
Well thanks, how to use debug?

I've still got some Problems with the Screen off Feature not working.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ChavezD:
I think i found a bug or something like that:

-phone charging (maybe allready fully charged or near 100% (not sure))

-shutting phone down

-green charging led still on.

-cant boot phone while led on. (no reaction at all after pressing power)

-after 1-2 minutes, led Switches off and i can boot again.

edit: after booting (without Sim+SdCard): "CleanSlateService wurde beendet" -> roughly translates to "CleanSlateService was terminated", but e.g. double FP to sleep & button light still works.

But I'm going to reflash my Rom right now, maybe ist just a bug for me
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] Oddvin94:
Try to fully uninstall the companion app, and then install the new version of the companion app
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks for the report. I've never tried this on other phones either. So it's time to check.

About the reboot crash, I've fixed it since. gonna upload soon

To use debug, click on the log icon on the bottom icons the third. Put phone face down, pick up, and you should have a log on the app screen. You can long tap it to select.

Paste it here.

Also a full uninstall install of the companion app may be needed, as Oddvin94 mentions
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Published 1.5.3 to play store, and here's the free version as well.

Advanced log window handling, slight UI redesign.

Tested with help of [MENTION=8604318]Oddvin94[/MENTION] . Thanks again!

Download Companion app 1.5.3

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

Let me know how it goes with Face Down screen off, Face Down Flashlight notif settings!

If it fails, check Logs tab (third in the row on bottom menu), long tap, copy and paste it here, so I can check

Maybe try a reinstall of the companion app if it's failing
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Premium version feature CS Configuration App themes rolling out to Play Store.

Config App version 1.5.0

Light/Dark/Grey themes in 4 color variants each (Red,Green,Blue, or Contrasted)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Finally it turns out it was just partially solved, still crashing with sensor events triggering the application logging.

Rolling out 1.5.4 already to fix it.

Here's the androidfilehost link to 1.5.4:

https://www.androidfilehost.com/?fid=745849072291697633
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] xxxxyuan:
After the screen color is saved, the screen will be disabled after the lock screen

After the screen color is saved, the screen will be disabled after the lock screen
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks for reporting.

Hmm, disabled screen means exactly what?

Also make sure that you use it in Vivid color profile, if accidentally using srgb
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] xxxxyuan:
1

Sorry, after the screen is unlocked, the change color will fail and the Settings must be resaved
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] AL_IRAQI:
Awesome work buddy, i hope that i can get this device later next month :D
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
ok, now I understand. I've identified that the issue is that screen off/screen on cycle the system resets the original kcal. I'll think about this a bit, probably because of the second screen Ultra ROM has this additional step compared to other phones where this is not happening.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] xxxxyuan:
Thank you very much. It will be great to solve this problem and look forward to your update
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Happy New Year!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Great! Excellent device.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] AL_IRAQI:
Yeah its great, but no AOSP support tho, that is why ive kept it on my waiting list, at this point there nothing better at the same price.... BTW i remember your back on One X days, then i remember checking M9+ stuff and everything you did for thay device was awesome, again really awesome work, and thanks for all you spent to make everything better on people devices

Happy new year and i wish you all the best :)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
- U Ultra update 1.7.0 stable -

...Happy New Year all...

​

Updates and Fixes

Moving to Stable from beta status. :)

- Fixed KCal being reset after a screen off/screen on cycle (thanks [MENTION=8604318]Oddvin94[/MENTION] for testing the fix)

- added WireGuard VPN support

- update installer zips to latest Companion and Configuration APKs

U Ultra 1.7.0 Download

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

Donations appreciated! :)

Configuration APK 1.5.4

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

or PlayStore for premium version rolling out right now... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig

Companion APK 1.5.5

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

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Progressing with new stuff

- addition of backlight dimming to kernel with extended "instant apply" at saving the settings so you can check right on the fly if in a dark room

- add single vibration notifications detection on kernel side (currently only double vibration patterns are interpreted as notification while on the charger)
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
- U Ultra update 1.7.1 stable -​

Updates

- Backlight dimmer with instant apply support (with CS config app) (Thanks go to [MENTION=8604318]Oddvin94[/MENTION] for testing and feedback)

- CS config app support for Backlight dimmer (UX / Extra / Backlight dimmer)

- Adding vibration pattern detection for notifications with single vibration (over or equal to 100msec)

- update installer zips to latest Companion and Configuration APKs

U Ultra 1.7.1 Download

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

Configuration APK 1.5.5

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

or PlayStore for premium version ... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig

Companion APK 1.5.6

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

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Setting Profiles premium feature rolling out to play store, app version 1.6.0

- Set up a max of 7 profiles for your different environments, needs, to easily switch between the kernel settings

- Disable unneeded profiles to keep the menu with the needed profiles only
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Heh, it seems someone doesn't like this kernel and gave it one star... Sometimes I wonder what gives :D

Anyway, if you could rate the thread accordingly to your opinion, in a normal browser (not tapatalk), then it would be great. You can do so in a normal web browser at the top of the thread "Rating..."
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] c2781130:
I cant use second screen when I turn off screen

I use ViperRom v1.1
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ForceField:
Rated : Five Stars From Me :):good:
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
is this meaning that it doesn't react in touches or it remains blank?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] c2781130:
I can’t touch and it doesn‘t show anything
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ForceField:
Same here , I am on Viper 1.1.0 too

Usually , when we hold the phone up , the small screen should light up and show several notifications like the time , the notification icons....

After flashing the kernel , it doesn't react anymore
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks for the report.

yeah, we have tested it with [MENTION=8604318]Oddvin94[/MENTION] how the small screen works, and it was mostly ok.

We should find out what setting differs from your setup and Oddvin's, so that I can find out what causes the issue.

Is the issue that it doesn't light up for notifications when in a special gesture mode?

I'm not perfectly knowing how it works, but I think we can find out what the issue might be.

Are you using KCal color profile? If you switch it off, is it better?

Are you using Backlight dimmer functionality?

Are you using any special other kernel tweak app additionally?

is it working on this, older version?

1.7.0 Installer zip for TWRP:

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

If this is not working out please try stock 1.62 source compiled kernel.

If that doesn't work either then it could be the unmatching base 1.64 of viperU

Stock 1.62 https://androidfilehost.com/?fid=889964283620773912
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ForceField:
Hi , Sorry for being late.

I did changed ROM , I am not on Viper 1.1.0 anymore

My current ROM is the following :

S.Team-S7.1-HTC-UUltra&9&10&10life&10Evo-Android-7.1.1-Sense9&9GP-XT2.zip

It's an Android 7.1.1 .

I used your Kernel on a 7.0 ROM till now

Is your Kernel compatible with Android 7.1 ?

I also noticed that on Android 7.1.1 , the small screen doesn't light up too
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
No idea. Please backup boot partition and try.

Let us know how it goes.

So far leedroid is confirmed to work without issues.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] ForceField:
Yes it works :) flawlessly.

The notifications and vibrations works.

The small screen is still the same. But it wasn't working even before flashing the kernel.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
- U Ultra update 1.7.2 stable -​

Updates

- Backlight dimmer if applied through cleanslate config app keep blocking other tweak apps to accidentally overwrite it at reboot

- Vibrating notification reminder: do not vibrate in silent mode

U Ultra 1.7.2 Download

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

Configuration APK 1.5.5

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

or PlayStore for premium version ... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig

Companion APK 1.5.6

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

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Rolling out QuickTile support for Premium Configuration app in playstore! :good:

After update, check your Notifiations Quick tiles Pull down, edit icon. Then add the tiles you'd like to use. :cool:
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] foon5796:
Second screen wouldn't show up anything when off screen (1.7.2 kernel)

But 1.7.0 no that issue.

I using stock ROM.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Do you have set on:

Backlight dimmer or

Color control

If so, if you have one or the other off does it make the second screen work normally?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] foon5796:
Tried ald~still cannot. After my off screen the second no any working. Never mind wait ur next version ?
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Hi, could please try this one if it fixes the issue with the second screen:

https://www.androidfilehost.com/?fid=745849072291700456
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] foon5796:
Thanks to try fix it. But still cannot, and I also restored stock boot and flash again.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Ok, i've another idea what could cause it (change between 1.7.0 and 1.7.1) related to kcal feature...if you could try it that would be great

https://www.androidfilehost.com/?fid=745849072291700495
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] foon5796:
So sad ? failure.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
thanks for testing. I'll need to check what might cause this.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
[MENTION=7817397]foon5796[/MENTION]

could you try these two versions and tell me which one works or not with the secondary screen? Thanks!

A, https://www.androidfilehost.com/?fid=673791459329073215 CleanSlate-uultra-v1.7.3_no_bl_dimmer.zip (no backlight dimmer) version

B, https://www.androidfilehost.com/?fid=817906626617958532 CleanSlate-uultra-v1.7.3_no_kcal_unblank.zip (no kcal set after each screen on) version
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] foon5796:
A. CleanSlate-uultra-v1.7.3_no_bl_dimmer.zip (no backlight dimmer) version

Confirm working. ?

But, B didn't working
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
OK, cool, now i need to think about this, why it work in some case, and not in another. I'll try to come up with some idea how to enable this on devices where Dimmer works, and if you leave it disabled, it should then just works.

Thanks for testing
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] foon5796:
Welcome~thanks for trying to solve the my problem :good:

Now HTc U Ultra just a little developers to focus it~ thanksgiving:good:
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
[MENTION=7817397]foon5796[/MENTION]

could you please try this one? I've modified backlight dimmer slightly, let's see if this solves the problem.

If it happens, make sure that you don't have backlight dimmer enabled (in any kernel tweak app if you use some more)

Link: https://www.androidfilehost.com/?fid=817906626617958689

Thanks
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] c2781130:
Second screen works when screen off

Thx!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] foon5796:
Finally work! But I don't have enabled the backlight dimmer. If enabled it cannot show second screen timer when off screen. Thanks.
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Will think about it. I now know what the problem is related to but not sure how to resolve. I'll release this for now, as stable. On leedroid it works, so that's it for now

Thanks for testing!
[HTC U Ultra ROMs, Kernels, Recoveries, & Other Dev] tbalden:
Thanks for testing and reporting