-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support for CM12 #52
Comments
Confirmed not working on CM12 official nightlies or any AOSP lollipop rom for i9505 too |
I don't think there is much he can do due to the fact that Android 5.0 AOSP has a built in feature to lock your screen when any cover is closed. However, there might be a way to disable this through terminal, the same way the app toggles higher sensitivity mode. |
we have to wait for LID_STATE_CHANGED support adapted from CM11. |
next 12.1 nightly contains support for FLAG_TURN_SCREEN_ON |
Works on CM12-20150503-NIGHTLY S4 mini with MagnetOff xposed module!! |
@axiel7 what settings die you enable in the MagnetOff APP. I cant get it to work yet. |
Enable: Sleep off, wakeup on ring and wakeup on dock |
@axiel7 And in Hall Monitor, did you enable 'use real hall'? |
@ThomasJSVos It doesn't appear that option, but I use it with root permissions |
@axiel7 You would have to press on "Enable" in the config screen (on the text not the checkbox) and then the option to "use real hall" appears ;) But at least for me it doesn't work on CM12.1 with MagnetOff installed. Only proximity sensor works (which is a real gadfly 😒 ) Did anyone test the fork of manusfreedom? He added several new features (but last commit is still quite old, from 21 Sep 2014). Or any other news about development revival? |
my fork works with CM12.1 |
@habeIchVergessen commented on 28. Okt. 2015 15:46 MEZ:
Thank you! By "work" you mean the hall sensor works, right? I'll give your fork a try as soon as I have access to a compatible Samsung phone again (don't own it myself). |
not sure if cm12.1 supports LID_STATE_CHANGED yet. Otherwise proximity Sensor is used to detect cover actions and hal state is read from kernel device. |
@habeIchVergessen |
try to enable debugging (hit 7 times "About Hall Monitor") in preferences. open and close the cover (can be simulated with a magnet). disable debugging. a new text file will written in Download folder. |
hardware: samsung GT-I9506 (ks01lte) build: 12.1-20150928-UNOFFICIAL-temasek-ks01lte os: LMY48P test-keys (Dalvik) kernel: 3.4.109-arter97-9.0-g051a6c4-02029-g964e6eb apk: file: base.apk (/data/app/org.durka.hallmonitor_framework_test-1) package: org.durka.hallmonitor_framework_test md5: 0c298281dc7619ffa9b3707862bafc9b build: Sun Sep 27 13:50:04 MESZ 2015 cert: CN=habeIchVergessen,OU=privat,O=privat (serial: 63491813) version: 1.0.0 (Framework Test) (10) install: Sat Oct 31 13:57:53 MEZ 2015 (Sat Oct 31 13:57:53 MEZ 2015) preferences: pref_default_fgcolor = '-1' pref_runasroot = 'true' pref_phone_controls = 'true' pref_write_logcat_output = 'true' pref_default_widget = 'false' pref_dev_opts_debug = 'true' pref_default_bgcolor = '-16777216' pref_dim = 'true' pref_phone_controls_user = 'true' pref_delay = '10000' version = '10' pref_do_notifications = 'true' prefDefaultLayoutClassName = '' pref_media_widget = 'false' pref_enabled = 'true' 11-01 18:53:59.299 I/Timeline(32306): Timeline: Activity_idle id: android.os.BinderProxy@316127d1 time:30480002 11-01 18:54:12.034 D/SKP (32306): SDD called, mValue = 10000, super = false 11-01 18:54:31.833 I/Timeline(32306): Timeline: Activity_idle id: android.os.BinderProxy@10b975e7 time:30512535 11-01 18:54:57.432 I/Timeline(32306): Timeline: Activity_idle id: android.os.BinderProxy@10b975e7 time:30538134 11-01 18:55:00.399 D/PreferenceFragmentLoader-oSPC(32306): changed key pref_dev_opts_debug 11-01 18:55:00.410 D/PreferenceFragmentLoader-oSPC(32306): changed key pref_write_logcat_output 11-01 18:55:00.410 D/PreferenceFragmentLoader-oSPC(32306): toggling check box 11-01 18:55:09.920 D/PreferenceFragmentLoader(32306): onPause: 11-01 18:55:19.440 D/PreferenceFragmentLoader(32306): onResume: 11-01 18:55:19.441 D/PreferenceFragmentLoader(32306): versionCode = 10 11-01 18:55:19.504 I/Timeline(32306): Timeline: Activity_idle id: android.os.BinderProxy@10b975e7 time:30560207 11-01 18:55:25.307 D/PreferenceFragmentLoader(32306): onPause: 11-01 18:55:29.693 D/PreferenceFragmentLoader(32306): onResume: 11-01 18:55:29.694 D/PreferenceFragmentLoader(32306): versionCode = 10 11-01 18:55:29.734 I/Timeline(32306): Timeline: Activity_idle id: android.os.BinderProxy@10b975e7 time:30570437 11-01 18:55:50.197 I/Timeline(32306): Timeline: Activity_idle id: android.os.BinderProxy@10b975e7 time:30590900 11-01 18:57:24.917 I/Timeline(32306): Timeline: Activity_idle id: android.os.BinderProxy@10b975e7 time:30685620 11-01 18:57:28.048 D/PreferenceFragmentLoader-oSPC(32306): changed key pref_dev_opts_debug 11-01 18:57:28.315 D/PreferenceFragmentLoader-oSPC(32306): changed key pref_write_logcat_output 11-01 18:57:28.315 D/PreferenceFragmentLoader-oSPC(32306): toggling check box 11-01 18:57:35.848 D/PreferenceFragmentLoader(32306): onPause: 11-01 18:57:40.284 D/PreferenceFragmentLoader(32306): onResume: 11-01 18:57:40.285 D/PreferenceFragmentLoader(32306): versionCode = 10 11-01 18:57:40.326 I/Timeline(32306): Timeline: Activity_idle id: android.os.BinderProxy@10b975e7 time:30701028 |
can't see any output from cover actions. |
@habeIchVergessen works for me on cm12.1 based rom!! thx. |
@axiel7 please post the first part of debug output (hard- and software related stuff). maybe help others. |
@habeIchVergessen sometimes when I open the cover the ui isn't disappears, I have to close and open again the cover, but that, everything works perfectly. apk: preferences: |
you can wipe over proximity sensor or press back button to get ui back. this behavior can't be solved until LID_STATE_CHANGED have been implemented in os. |
@habeIchVergessen only back button works for me... but thanks! |
@habeIchVergessen Sorry for the long pause. It still doesn't work correctly for me. In the following there are the first lines of the logfile. If there is not enough information I can send more. Thank you in adcance for your help! preferences: 11-11 19:55:31.394 D/OpenGLRenderer( 1357): Use EGL_SWAP_BEHAVIOR_PRESERVED: true |
from your log
you close (proximity 0.0) and open (8.0) the cover two times within a second. but the kernel device needs a little bit time to get the correct status from hall sensor (look at class CoverThread in ViewCoverService.java). we make 4 attempts to read status and check against proximity. onCoverStateChanged is called, when status change has been detected. this task is asynchron. |
@habeIchVergessen Thanks for the working fork. |
it's durkas part to plan a release. |
I'm not sure if he plans to continue to work on this project. |
@habeIchVergessen I tried your fork. My screen goes into the windowed view when closed appropriately, but the touch screen doesn't seem to work. I'm using a Galaxy S5 CM12.1. |
please post a debug output (see Nov 1, 2015 post). |
My mistake, it does work. thanks |
hello,
great piece of software,thanks for your work. Today i installed CM12 unstable ROM for my S4 mini.So far so good, but the only major thing i cant get running is Hallmonitor (but maybe im doing something wrong). Do you plan support for lollipop?
thx
The text was updated successfully, but these errors were encountered: