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

Diggro DI01 tilt to wake and AOD not working and also power off not working in normal way. #25

Open
MeVsGOD opened this issue Mar 2, 2021 · 18 comments
Labels
(in)harmony MTK6580 watches

Comments

@MeVsGOD
Copy link

MeVsGOD commented Mar 2, 2021

Please 🙏 fix one out of two as soon as possible.reflashed stock room but love to use asteroidos.

@MeVsGOD MeVsGOD changed the title Diggro DI01 tilt to wake and AOD not working Diggro DI01 tilt to wake and AOD not working and also power off not working in normal way. Mar 2, 2021
@MagneFire
Copy link
Member

I had a look into this some time ago.
For Always-on-Display we depend on a backend function from Android. This unfortunately does not support the Always-on-Display functionality.

When it comes to Tilt-to-Wake. Looking again at AsteroidOS/meta-mtk6580-hybris#13, I can see different sensors that may be responsible for Tilt-to-Wake. I can build a different image that uses one of those sensors as input for the current Tilt-to-Wake implementation. I should mention that I can't test this, because I don't own a mtk6580 based watch.

Meanwhile, can you send logs of your current stock rom? I'm mainly interested in the (full) dmesg and logcat output.

@MeVsGOD
Copy link
Author

MeVsGOD commented Mar 5, 2021

Sir I will test it on my DiggroDI01. Sir as I mentioned reflashed stock one but I will flash asteroidos again this weekend then I will send you log file.

@MagneFire
Copy link
Member

I actually would like the log files from your stock rom 😄
Also, can you confirm that the stock roms has Tilt-to-Wake working?

@MeVsGOD
Copy link
Author

MeVsGOD commented Mar 5, 2021

Yes sir on stock tilt to wake working fine. That's why returned to stock.cause no AOD on stock but need battery as well so tilt to wake works.sir should I use app to get log or please suggest me.

@MagneFire
Copy link
Member

Great!
You can use adb for this, you can install it from here: http://download.clockworkmod.com/test/UniversalAdbDriverSetup.msi.
Then you'll need to enable adb debugging on the watch, this is an option in the developer options.
Once enabled you should be able to open a shell connection to the watch using the command: adb shell in the (assuming) Windows command prompt.
From there you'll be able to execute the dmesg and logcat commands.

@MeVsGOD
Copy link
Author

MeVsGOD commented Mar 5, 2021

Sir found this app on play store I have rooted my watch should I send you only kernel log or all log?
20210305_202241
20210305_202220

@MagneFire
Copy link
Member

It looks like these contain the dmesg log and logcat log. So yes, you can send me all of it 😄

@MagneFire
Copy link
Member

I went ahead and build two images based on the test_sensors output from AsteroidOS/meta-mtk6580-hybris#13.
Basically the tilt to wake sensor used within sensorfw now is either one of the following:

=== Sensor 7 ==
Name: BOSCH Tilt Detector Sensor
Vendor: Bosch Sensortec GmbH
Version: 0x1
Handle: 0x1c46
Type: 22
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0

=== Sensor 8 ==
Name: BOSCH Wake Gesture Sensor
Vendor: Bosch Sensortec GmbH
Version: 0x1
Handle: 0x1c47
Type: 23
maxRange: 1
resolution: 1
power: 0 mA
minDelay: -1

Can you test them both and report if they fix tilt-to-wake for you? Also, if both work, can you tell me which works better?
Only the ext4: https://www.dropbox.com/sh/ehsizm6lwqhemym/AABYNBQYB2am6jsnNCrggNR3a
For the other files you can use the ones from https://asteroidos.org/install/harmony/

@MeVsGOD
Copy link
Author

MeVsGOD commented Mar 6, 2021

2021-03-05_21.08.zip

@MeVsGOD
Copy link
Author

MeVsGOD commented Mar 6, 2021

Sir tilt to wake working on tilt version but wake version didn't worked.one more thing app opening lags on both version, power off and reboot hangs had to long press power button to reboot.at first boot everything was upsidedown but after opening one app it's got fixed.

@MagneFire
Copy link
Member

Excellent! Great to see it working already 😄

That being said I have some more questions:
-asteroid-image-harmony-tilt.ext4: Is the behavior exactly the same as with the stock rom? Or is it only at a specific angle as suggested by the documentation that Google provides for this sensor.
-asteroid-image-harmony-wakegesture.ext4: Did this version not work because you couldn't install this or does the it actually not wake the screen when doing the tilt-to-wake gesture? (I was hoping that this would be the best solution, that's why I ask this very specific question 😄)
-Lags: We recently upgraded the base system to the most recent version (AsteroidOS/meta-asteroid#57). Unfortunately, it seems that this introduces the issue where the system can be laggier than before. Can you confirm that after a few minutes the lag goes away?
-Power off and reboot: This was also true with the images provided on the install page (https://asteroidos.org/install/harmony/)?
-Upside down issue: You mentioned this on IRC too right? Not sure what would be the exact reason for this can you try the inhamony (https://asteroidos.org/install/inharmony/) version to see if this fixes the issue? (in actually refers to inverted screen)

@MeVsGOD
Copy link
Author

MeVsGOD commented Mar 7, 2021

Sir I didn't understand first question about behavior u mean how I tilt the watch ? And sir I did installed both.u made this for us there's no reason to lie 🤭and sir yes lag goes after few minutes. Sir upside down launcher get fix when open any app.sir I will download inharmony image this weekend and let you know about the result. And forgive my poor english.

@MagneFire
Copy link
Member

I mean if the wrist movement is the same for waking the screen. The specification of this sensor is very specific:

A tilt event should be generated if the direction of the 2-seconds window average gravity changed by at least 35 degrees since the activation of the sensor.

Full available here: https://android.googlesource.com/platform/hardware/libhardware/+/6f1a00e29a43ca449ae10eb16ff4dfda3c4cd619/include/hardware/sensors.h#586

Also, with regards to the lag, I think I have a solution for this which will implemented in the next build.

Don't worry about your English, we understand each other perfectly 😄

Thanks for testing btw. It's great to see the support for this watch improving 👍

@MeVsGOD
Copy link
Author

MeVsGOD commented Mar 13, 2021

Sir wrist movement same as stock and in your both version it's not lag it's actually camera app not working I thought maybe be it's lag but it's not I waited few minutes to see it opens up or not but it doesn't.and can't open wifi I mean I can switch wifi on off but can't go there to input ssid and pass.

@MeVsGOD
Copy link
Author

MeVsGOD commented Mar 13, 2021

Sir one more thing after few times when watch goes to idle mode and tried to wake the screen with tilt or power button it doesn't wake up but it's running as dark light appears . How to fix this issue if this is fix asteroidos will be fixed totally for me as I don't use camera so much ☺️

@MagneFire
Copy link
Member

Thanks for letting me know about the wrist movement behavior 😄

How do you mean the dark light appears? Is this AOD mode? In that case, does this also happen when you disable Always-on-Display in the settings app?

With regards to the camera app, can you try to get a log? What you do is connect the watch to your computer and open a shell using the adb shell command in the command prompt or powershell. Launch the camera app. Next type in the adb shell the command: journalctl --no-pager and copy the entire log here 😄

@ChandlerSwift
Copy link
Contributor

ChandlerSwift commented May 8, 2021

It looks like this thread is tracking several separate issues:

@MagneFire
Copy link
Member

MagneFire commented May 9, 2021

It looks like we now have dedicated separate issues for everything mentioned in this issue.
Once we have clarification on what "after few times when watch goes to idle mode and tried to wake the screen with tilt or power button it doesn't wake up but it's running as dark light appears" means we can close this issue.

Always-on-Display is now also listed in this issue: #26
Tilt-to-Wake has now also been fixed as of AsteroidOS/meta-mtk6580-hybris@7ca4e66.

@MagneFire MagneFire transferred this issue from AsteroidOS/meta-mtk6580-hybris Mar 6, 2022
@MagneFire MagneFire added the (in)harmony MTK6580 watches label Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(in)harmony MTK6580 watches
Projects
None yet
Development

No branches or pull requests

3 participants