Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always On Display Widget - Testers wanted #1625

Closed
jamorham opened this issue Jan 28, 2021 · 82 comments
Closed

Always On Display Widget - Testers wanted #1625

jamorham opened this issue Jan 28, 2021 · 82 comments
Assignees
Labels
enhancement ui User interface related

Comments

@jamorham
Copy link
Collaborator

I'm looking for some testers for a new feature which is to display the xDrip widget on the Always On Display.

Some phones which have (AM)OLED technology screens support an Always On Display feature. I have seen this on several Samsung phones as well as phones like the Pixel 3a (controlled under Lockscreen settings)

If your phone has the ability to display, for example, a clock even when it is locked and the screen is "off" and not just during charging then you may be able to make use of this feature. Check your Android settings for AOD, Always On Display or Lockscreen settings that allow a clock to be displayed always.

If you'd like to help me with the testing of this, please comment on this issue with:

  1. The Make and Model of your phone, eg Samsung S9
  2. Android version in use, eg 8/9/10/11 etc

I'll follow up with more instructions on how to activate the feature as soon as it is ready for testing. It looks roughly as shown in the photo below:

xdrip-aod-example

@jamorham jamorham self-assigned this Jan 28, 2021
@gregtcm
Copy link

gregtcm commented Jan 28, 2021

I would love to help test this! I recently upgraded to a

  • Samsung Galaxy S20+ and have since upgraded the OS to
  • Android 11 and
  • One UI 3.0.

Thank you!

@belfastraven
Copy link

I can help test:

  • Oneplus 8 Pro
  • Android 11

@rudysroost
Copy link

rudysroost commented Jan 29, 2021 via email

@redman8
Copy link

redman8 commented Jan 29, 2021

I will test please. I use the widget now. Works fine. TY
Samsung S20 Ultra, Android 11

@st0ber
Copy link

st0ber commented Jan 29, 2021

Nokia 8 Android 9

@user-hash
Copy link

I can test on Samsung S9, Android 9

@rudysroost
Copy link

rudysroost commented Jan 29, 2021 via email

@jiresongit
Copy link

This would be great!

Pocofone F2 Pro
Android 11

@jamorham
Copy link
Collaborator Author

Okay here are the instructions to try the feature out:

  • Install the latest xDrip from the Nightly update channel. Make sure you are on the Nightly channel in xDrip update settings and select Check for Updated version from the xDrip 3 dot menu if it doesn't immediately pop up. It is the Jan 29th 2021 version or above which includes the feature.
  • Go in to Android system settings and select Accessibility find where it mentions services and look for xDrip and select to enable it. How this is laid out varies quite a bit between handsets.
  • Also within Android system settings if you are not already using the Always on Display feature then make sure that it is enabled and, for example, shows the time on the always on display. On Samsung phones this feature is called Always On Display or AOD and on Pixel phones it is under Lockscreen and will have some wording about always displaying time or similar. Often Android system settings will have a search feature which can help to locate it if you can't find it.

Now that you have done this you should be able to lock your phone and a few seconds after the always on display clock appears you should see the xDrip widget showing glucose number and graph as shown in the photo I posted.

If you want to save additional pixels/power you can disable the graph via the xDrip setting Hide widget graph

Things I am interested to know about:

  • Does it work? What do you think?
  • Does the widget stay in sync with xDrip (there may be a delay of up to 60s between updates)
  • How often does the widget get in the way of other things on the screen. (It should fit better after a few minutes usually)
  • Do you notice any significant power drain when using it?
  • Any suggestions for improvements? (I can't guarantee anything!)

I've only tested this on phones with Android 9 and above. It may work on Android 6+ but that hasn't been tested at all.

@redman8
Copy link

redman8 commented Jan 29, 2021 via email

@redman8
Copy link

redman8 commented Jan 29, 2021 via email

@jiresongit
Copy link

Works great on Poco f2 pro also

@crazysugarnl
Copy link

I would also like to use it!

Samsung galaxy S20,
Android 11

@jamorham
Copy link
Collaborator Author

@crazysugarnl just follow the instructions I wrote above, it is ready to try out now

@redman8 I can make it jump around less. It is just to ensure that it doesn't get screen burn in.

@crazysugarnl
Copy link

Yes i have it already, on always on display it jumps sometimes at the fingerprint sensor or above the clock so you cannot see good the widget or the clock

@crazysugarnl
Copy link

Widget it self is working is updating every 5 minutes

@kenkolden
Copy link

Samsung S20 Ultra Android 11
not always displayed, tends to overlap clock, will flash and disappear, sometimes cropped only see part of widget
xDrip Version 2021.01.29

Number wall on lock screen worked on Motorola zForce but Samsung puts a lock screen over it, this would fix that when working

@belfastraven
Copy link

On Oneplus 8 Pro, android 11, beta 5 stock unrooted, I can see xdrip icon on screen but no "widget/graph/number".
This is message appearing constantly in event log:
AlwaysOnDisplay
(time) Cannot get root view.

@jamorham , do you want other logs, logcats, etc?

@JMgithubdex
Copy link

My Smartphone is a Galaxy SM-A520F (2017), with Android version 8.0.0 and Always-On-lockscreen used since months. The new Always On Display Widget worked well within a minute after its installation. Of course it keeps moving around which seems quite sensible. Many underlying additional infos coming from the xdrip home screen are quite acceptable, but not really necessary. Very nice new gadget. Thanks! JeMo

@jamorham
Copy link
Collaborator Author

@belfastraven What do you mean icon on screen but no widget? Something new appears on the always on display but it isn't the widget or do you mean something else?

@mistermintsgh
Copy link

I may be missing the point here, but what's the difference between setting xDrip as an AOD item and a screensaver? I've enabled AOD, but I get quite a lot of flicker (the NG value appears for a second, then disappears for some reason) whereas using the screensaver option I get a larger, constant, slow floating BG value when my screen is locked

@belfastraven
Copy link

@belfastraven What do you mean icon on screen but no widget? Something new appears on the always on display but it isn't the widget or do you mean something else?

I was not using the AOD much before; what I mean is that the little "drip" icon shows up, probably because there is a permanent notification on my phone when Xdrip is in use, but I don't see the widget, and get the error message I indicated. I think the Oneplus software is kind of "wonky" and I am just waiting for additional roms that work on Verizon to switch--not a big deal for me, just a point of info for you.

@tolot27 tolot27 added enhancement ui User interface related labels Jan 31, 2021
@master3395
Copy link

OnePlus 8 Pro EU
Android Version 11

It works in the Preview button for AOD, but not on the real lock screen.
I have the setting set to show AOD if I put my phone on docking or charger.
No xdrip+.

@old-square-eyes
Copy link

old-square-eyes commented Feb 1, 2021

Samsung S20+
Android 11

Looks good. Though not sure how useful it is as already getting BG value.

I wake up and tend to diabetes like many. Sleepy eyes. S20+ allows double tap to wake phone, I get big BG. So with this enabled I now get 3 BG readings with a similar process. Guess AOD means I no longer need to double tap. Will edit and drop in a video shortly.

Other feedback is the xDrip AOD starts overlayed on the fingerprint scanner. Hopefully I can capture that too.

@jamorham
Copy link
Collaborator Author

jamorham commented Feb 1, 2021

@mistermintsgh AOD works when the phone is not charging. It is always visible when phone is locked. When charging you can use the screensaver feature.

So far reading comments it seems it is working on Samsung and Poco F2. Any Pixel user's tried it yet?

If someone could send a screenshot for the S20 when it overlays the fingerprint sensor so I can understand that issue. Like many things on Android, the API's respond inconsistently and there are implementation variations between manufacturers making it harder to make things work universally.

@crazysugarnl
Copy link

IMG_20210201_120254
IMG_20210201_120259
IMG_20210201_120320
IMG_20210201_120315
IMG_20210201_120351
IMG_20210201_120406
IMG_20210201_120449
IMG_20210201_120433

@crazysugarnl
Copy link

Also screenshots / photos from jumping around clock and notification area's, these are on Samsung galaxy S20 Android 11

@Saquron
Copy link

Saquron commented Apr 10, 2022

it is time to give up on this idea, it is unreliable, unpredictable, simple it is not working. Not on OnePlus 6 or OnePlus 9 Pro both Android 11, nice idea, but what's the point if it just works randomly or not at all and just on few devices.

I can't have it so no one can have it? That's a great mindset 😂

@ssavage1977
Copy link

ssavage1977 commented Apr 11, 2022 via email

@Richspiral
Copy link

I've been using this feature for about a year on my Samsung Note 9 and it is an absolute life saver. One of xdrip's best and most impressive features IMO.

I have one issue though. When I go low the font colour changes to red and because I have my screen automatically dimmed at night I cannot see the red against the black background. Hence when I wake up low (and therefore confused) I glance at my phone to check my number and there's nothing there. Could we have an option to change the font colour? Or more precisely an option so that we can stop the font colour changing to red when it detects a low? I believe its using the widget for display purposes however I can't see any widget colour settings for the font colour.

Thanks for all your incredible work!

@bobrob69
Copy link

bobrob69 commented Nov 6, 2022

Success! I use this for driving & cycling to keep xdip+ open on screen full time. Just use Google maps to any destination, press Start & then open xdrip+. Maps will appear as an icon in bottom rhs. (You can push the icon around). I use Quadlock to mount the phone on 2 cars & my bike. I use Garmin GPS for directions & speed.

@KeijoMika
Copy link

Thank you. Working great on Samsung Galaxy Z Fold4.

Could it be possible to include an option to put date&time into the widget? Then it would be possible to hide the OEM clock widget to prevent the overlapping that occurs sometimes. Would be useful in the home screen widget also.

Or an option to adjust the area where the AOD widget is randomly generating.

Great work.

@Navid200
Copy link
Collaborator

Navid200 commented Jun 2, 2023

I don't know how to enable this on Pixel 6a.
This is what I see under Accessibility.
Screenshot_20230601-215506

Tapping on xDrip on that page, i get this:
Screenshot_20230601-222132

The always ion display is enabled and shows the clock when the screen is locked and the phone is not charging.

@BPavol
Copy link

BPavol commented Jun 3, 2023

@Navid200 you need to open app info and click on three dots in right upper corner and click on "Allow restricted settings". Then you can enable xDrip+ accessibility option.

@Navid200
Copy link
Collaborator

Navid200 commented Jun 3, 2023

@BPavol Thanks
Any way to remove the clock or make it smaller or reduce its contrast?

@lynass
Copy link

lynass commented Jul 25, 2023

Hi jamorham,
I would be happy to test this.
Samsung Galaxy S21 Ultra SM-G998B/DS
Android 13
Thanks!

@Liverpool4
Copy link

Working as expected (nice, fantastic!!) on Galaxy Flip 3 (SM-F711B) running Android 13 on August 2023 update.

Yes, it would be wonderful to limit the movement so it doesn't overlay the clock area - Samsung limits the movement of their AOD clock to the top third of the screen, from what I can see.

@Der-Schubi
Copy link
Contributor

Der-Schubi commented Sep 1, 2023

@Liverpool4
I've restricted the Widget to only use the lower half of the screen (e.g. for vanilla Android 12 & 13) in my fork, but that's not right for all brands and versions..

@Der-Schubi
Copy link
Contributor

Der-Schubi commented Sep 1, 2023

@Navid200 I removed the link...
The problem is, that the AOD screens of different Android versions and distributors are totally different.
On vanilla Android 12 and 13 the clock is in the top third and the notifications a bit below. So one could limit the widget to the second half or two last thirds of the screen to get it away from the clock.
But this is not true for other manufacturers like Samsung or LG.
So the described issue of the widget colliding with the clock is not really solvable unless with a lot of customizability in the settings. This is why I did that change for me alone and not as PR.

@rudysroost
Copy link

I wish I could have @Der-Schubi 's modification; I often can not read the clock or the glucose values because they overlap each other on the display.

@Navid200
Copy link
Collaborator

Navid200 commented Sep 1, 2023

@Der-Schubi Thanks for your contributions. The following is just a thought and I don't have approval from the lead developer.
This feature, AOD, already occupies some real estate in the settings.
Screenshot_20230901-150308

I wonder if we can change this existing setting to open a page. On the page, we can have this existing setting at the top as well as any required settings like the area of the screen AOD moves around in, or may be better the area it will avoid.

This way, we will not add any new settings to xDrip display settings page. Rather we use an existing setting and we add anything relevant to a page under it.

For example, under cloud upload, there is a single setting that opens a page where you can enter all the needed settings for setting up Nightscout. This will be the same concept.

@jamorham Would this idea be acceptable?

@Der-Schubi
Copy link
Contributor

@Navid200 Sounds reasonable to me!
To select what should be avoided there are only two sliders that would really be needed. Avoid between min and max Y of screen. X is negligible.
So for vanilla Android it would be 0-30 or 50%, for Samsung I belief the clock is (was?) in the middle, it would be something like 35-65% to avoid.

@jamorham
Copy link
Collaborator Author

jamorham commented Sep 1, 2023

@Navid200 yes we could have an AOD settings page if there are more settings. Its very hard to get the AOD feature right on all handsets as the behavior is not consistent between android versions and screen types.

@Navid200
Copy link
Collaborator

Navid200 commented Sep 1, 2023

@Der-Schubi If you have time, please go ahead and open a PR to do the changes I suggested. Otherwise, I am happy to collaborate putting the PR up together.

I don't know what the resolution is.
We can have 3 checkboxes on a single screen on the new settings page.
The screen description could read "Widget position".
The three titles could be "Top", "Center" and "Bottom".
The user can enable any or all of the three settings.

Enabling all would be the default, which is what we have now.
Only enabling top would let it move around only at the top avoiding center and bottom.
etc.

In the future if more settings become necessary for AOD, they can be placed on this page.

I would change the title of the setting on the screen page to "Always On Display".
I would set its summary to something like "Only if the phone has the feature".
One of the settings on the new settings page will be the existing setting currently on the display settings. So, the user will need to go to the settings page to enable the xDrip accessibility.

Edit:
We will have to decide what to do if the user disables all three checkboxes.
For example, we can show a message that says: to disable the widget on the AOD, you will need to disable the setting under accessibility at the top; you cannot disable all three checkboxes.

Edit 2: It's not just the clock. There is also the fingerprint scanner.

@Der-Schubi
Copy link
Contributor

@Navid200 Yes, onscreen fingerprint sensor and battery status can also be somewhere on the screen, normally near bottom.
I don't know if we should ignore that for now and just address the clock issue.
Otherwise we would need the user to be able to define two areas where the widget should be shown or where it shouldn't. Would that be to much?
This is what I meant when I wrote there would be a lot of customizability needed in the settings.

@KeijoMika
Copy link

How about percentage values how much screen area to avoid from top and bottom? Two different values. As all values seem to be related to screen size.

@Der-Schubi
Copy link
Contributor

That could work. But I think there are devices with the clock in the vertical middle of the screen.

@Navid200
Copy link
Collaborator

Navid200 commented Sep 2, 2023

@Der-Schubi If you are certain your code will work if we increase the resolution, we can have 5 checkboxes instead of just 3. Top, Top Center, Center, Center Bottom, and Bottom. Every checkbox will have a very short summary so that on most devices, the summary will take only one line, Then, the size of each checkbox on the screen will be very small.
But, these all will be on the new sub page. Everything on this new subpage is related to AOD. So, it should be OK.

We can also add a note to the screen category containing the checkboxes with a few words about how on old devices showing the same object on the screen without moving it may cause burn-in.

@Der-Schubi
Copy link
Contributor

@Navid200 Sounds good to me, I'll try to implement it next week.

@Liverpool4
Copy link

@Navid200 Sounds good to me, I'll try to implement it next week.

I'm sorry, I took my eye of this thread, is the aod enhancement in the xdrip nightly, or in a separate fork?

@gdc27health
Copy link

gdc27health commented Oct 20, 2023 via email

@Navid200
Copy link
Collaborator

There has been no recent enhancement. This is how you can enable AOD: https://navid200.github.io/xDrip/docs/Display/AOD.html

If you have questions or concerns about anything other than AOD, please open a discussions (not an issue) here: https://github.com/NightscoutFoundation/xDrip/discussions

@Der-Schubi
Copy link
Contributor

Took me a while, but here is my PR to select where to show AOD Widget: #3153
@rudysroost @Navid200

@Navid200
Copy link
Collaborator

Navid200 commented Feb 7, 2024

Thanks to @Der-Schubi, you can now (as of the February 07, 2024 release) control where on screen the widget moves.
I have summarized everything here: https://navid200.github.io/xDrip/docs/Display/AOD.html

@Navid200
Copy link
Collaborator

Navid200 commented Mar 2, 2024

I hope you don't mind me closing this. The only issue I am aware of remaining is it disabling when Android auto is on. But, that can be dealt with outside of this. We can always reopen this if needed.

@Navid200 Navid200 closed this as completed Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ui User interface related
Projects
None yet
Development

No branches or pull requests