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

Support for CM12 #52

Open
x1nable opened this issue Dec 14, 2014 · 30 comments
Open

Support for CM12 #52

x1nable opened this issue Dec 14, 2014 · 30 comments

Comments

@x1nable
Copy link

x1nable commented Dec 14, 2014

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

@Abzie
Copy link

Abzie commented Jan 17, 2015

Confirmed not working on CM12 official nightlies or any AOSP lollipop rom for i9505 too

@AlexanderArvidsson
Copy link

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.
But we will have to wait and see what they can come up with.

@habeIchVergessen
Copy link
Contributor

we have to wait for LID_STATE_CHANGED support adapted from CM11.

@habeIchVergessen
Copy link
Contributor

next 12.1 nightly contains support for FLAG_TURN_SCREEN_ON

@axiel7
Copy link

axiel7 commented May 10, 2015

Works on CM12-20150503-NIGHTLY S4 mini with MagnetOff xposed module!!

@ghost
Copy link

ghost commented May 20, 2015

@axiel7 what settings die you enable in the MagnetOff APP. I cant get it to work yet.

@axiel7
Copy link

axiel7 commented May 20, 2015

Enable: Sleep off, wakeup on ring and wakeup on dock
Disable: wakeup off

@ghost
Copy link

ghost commented May 21, 2015

@axiel7 And in Hall Monitor, did you enable 'use real hall'?

@axiel7
Copy link

axiel7 commented May 21, 2015

@ThomasJSVos It doesn't appear that option, but I use it with root permissions

@bhabba
Copy link

bhabba commented Sep 24, 2015

@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?

@habeIchVergessen
Copy link
Contributor

my fork works with CM12.1

@bhabba
Copy link

bhabba commented Oct 28, 2015

@habeIchVergessen commented on 28. Okt. 2015 15:46 MEZ:

my fork works with CM12.1

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).

@habeIchVergessen
Copy link
Contributor

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.

@SolaRayvelation
Copy link

@habeIchVergessen
Thank you very much for your work. I missed HallMonitor for a long time since I used it on CM9 or CM10 until CM decided to implement the smartcover feature.
Unfortunately your fork doesn't work reliabely yet. And on my Galaxy S4 LTE+ with CM12.1 (Temaseks unofficial ROM) the hall sensor status seems to be vice versa to the status the app recognizes. So HallMonitor is activating when I open the S View Cover and disappears when I close it again.
Hope you find some time to improve would love to see it working correctly.

@habeIchVergessen
Copy link
Contributor

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.
if the file not appears than i need the output off logcat. can be run from console.

@SolaRayvelation
Copy link

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

@habeIchVergessen
Copy link
Contributor

can't see any output from cover actions.
please enable debug, disable Hall monitor and reenable it. do some cover actions again. when you use a magnet than also trigger proximity. disable debug and post output here.

@axiel7
Copy link

axiel7 commented Nov 3, 2015

@habeIchVergessen works for me on cm12.1 based rom!! thx.

@habeIchVergessen
Copy link
Contributor

@axiel7 please post the first part of debug output (hard- and software related stuff). maybe help others.
which layout do you use?
how does the menu work (feedback for usability)?

@axiel7
Copy link

axiel7 commented Nov 3, 2015

@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.
hardware: samsung GT-I9195 (serranoltexx)
build: 5.1-20151102-NIGHTLY-serranoltexx
os: exodus_serranoltexx-userdebug 5.1.1 LMY48W 608b5c9719 test-keys (Dalvik)
kernel: 3.4.0-exodus-gf3130f6

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 CEST 2015
cert: CN=habeIchVergessen,OU=privat,O=privat (serial: 63491813)
version: 1.0.0 (Framework Test) (10)
install: Tue Nov 03 16:14:56 CET 2015 (Tue Nov 03 16:14:56 CET 2015)

preferences:
pref_default_fgcolor = '-1'
pref_runasroot = 'true'
pref_phone_controls_tts_delay = '500'
pref_phone_controls = 'true'
pref_flash_controls = 'false'
pref_alarm_controls = 'true'
pref_dim = 'true'
pref_default_bgcolor = '-16777216'
pref_gyroscope_enabled = 'false'
pref_camera_controls = 'false'
version = '10'
pref_do_notifications = 'true'
pref_media_widget = 'false'
prefDefaultLayoutClassName = 'ComponentDefaultHabeIchVergessen'
pref_write_logcat_output = 'true'
pref_default_widget = 'false'
pref_dev_opts_debug = 'true'
pref_phone_controls_tts = 'false'
pref_phone_controls_user = 'true'
pref_delay = '20148'
pref_phone_controls_speaker = 'false'
pref_enabled = 'true'

@habeIchVergessen
Copy link
Contributor

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.

@axiel7
Copy link

axiel7 commented Nov 3, 2015

@habeIchVergessen only back button works for me... but thanks!

@SolaRayvelation
Copy link

@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:
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-11 19:55:31.394 D/OpenGLRenderer( 1357): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
11-11 19:55:31.402 D/Atlas ( 1357): Validating map...
11-11 19:55:31.431 I/Adreno-EGL( 1357): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: ()
11-11 19:55:31.431 I/Adreno-EGL( 1357): OpenGL ES Shader Compiler Version: E031.25.03.06
11-11 19:55:31.431 I/Adreno-EGL( 1357): Build Date: 05/29/15 Fri
11-11 19:55:31.431 I/Adreno-EGL( 1357): Local Branch: LA.BF.1.1.1_RB1.05.01.00.042.029
11-11 19:55:31.431 I/Adreno-EGL( 1357): Remote Branch:
11-11 19:55:31.431 I/Adreno-EGL( 1357): Local Patches:
11-11 19:55:31.431 I/Adreno-EGL( 1357): Reconstruct Branch:
11-11 19:55:31.434 I/OpenGLRenderer( 1357): Initialized EGL, version 1.4
11-11 19:55:31.474 D/OpenGLRenderer( 1357): Enabling debug mode 0
11-11 19:55:31.586 I/Timeline( 1357): Timeline: Activity_idle id: android.os.BinderProxy@2babe193 time:30415784
11-11 19:55:48.675 I/TextToSpeech( 1357): Sucessfully bound to com.svox.pico
11-11 19:55:48.721 I/Timeline( 1357): Timeline: Activity_idle id: android.os.BinderProxy@2babe193 time:30432918
11-11 19:55:48.773 I/TextToSpeech( 1357): Connected to ComponentInfo{com.svox.pico/com.svox.pico.PicoService}
11-11 19:55:48.778 I/TextToSpeech( 1357): Set up connection to ComponentInfo{com.svox.pico/com.svox.pico.PicoService}
11-11 19:55:53.994 D/PreferenceFragmentLoader-oSPC( 1357): changed key pref_dev_opts_debug
11-11 19:55:54.205 D/PreferenceFragmentLoader-oSPC( 1357): changed key pref_write_logcat_output
11-11 19:55:54.205 D/PreferenceFragmentLoader-oSPC( 1357): toggling check box
11-11 19:55:54.405 D/PreferenceFragmentLoader-oSPC( 1357): changed key pref_write_logcat_output
11-11 19:55:54.405 D/PreferenceFragmentLoader-oSPC( 1357): toggling check box
11-11 19:55:55.235 D/PreferenceFragmentLoader-oSPC( 1357): changed key pref_write_logcat_output
11-11 19:55:55.235 D/PreferenceFragmentLoader-oSPC( 1357): toggling check box
11-11 19:56:02.817 D/PreferenceFragmentLoader( 1357): onPause:
11-11 19:56:12.592 I/Timeline( 1357): Timeline: Activity_launch_request id:org.durka.hallmonitor_framework_test time:30456553
11-11 19:56:12.692 D/PreferenceFragmentLoader( 1357): onResume:
11-11 19:56:12.695 D/PreferenceFragmentLoader( 1357): versionCode = 10
11-11 19:56:12.716 D/PreferenceFragmentLoader( 1357): onPause:
11-11 19:56:12.779 D/ComponentFramework.Container( 1357): setDebugMode: true, #0
11-11 19:56:12.779 D/ComponentFramework.Container( 1357): setDebugMode: false true
11-11 19:56:12.899 D/ComponentTestActivity( 1357): onCreate: suppress screen on handling
11-11 19:56:12.907 D/ComponentTestActivity( 1357): onStart
11-11 19:56:12.907 D/ComponentTestActivity( 1357): onResume: screen on
11-11 19:56:12.907 D/ComponentTestActivity( 1357): onStartScreenOffTimer
11-11 19:56:12.910 D/ComponentFramework.Activity( 1357): onResume:
11-11 19:56:12.910 D/ComponentFramework.Activity( 1357): dumpBackStack:
11-11 19:56:12.910 D/ComponentFramework.Activity( 1357): key: '0' -> 'org.durka.hallmonitor_framework_test.ComponentDefaultDurka{74e8e97 V.E..... ......ID 0,0-0,0 #7f080019 app:id/componentContainer}'
11-11 19:56:12.910 D/ComponentFramework.Container( 1357): setDebugMode: true, #3
11-11 19:56:12.911 D/ComponentFramework.Container( 1357): onResume: #1 -> org.durka.hallmonitor_framework_test.ComponentDefaultDurka
11-11 19:56:12.911 D/ComponentDefaultDurka( 1357): onResume
11-11 19:56:12.911 D/ComponentFramework.Container( 1357): onResume: #2 -> org.durka.hallmonitor_framework_test.ComponentPhone
11-11 19:56:12.911 D/ComponentPhone( 1357): onResume
11-11 19:56:12.914 D/ComponentPhone( 1357): initPhoneWidget: enter
11-11 19:56:12.915 D/ComponentPhone( 1357): initPhoneWidget: leave
11-11 19:56:12.915 D/ComponentFramework.Container( 1357): onResume: leave
11-11 19:56:12.919 D/ComponentTestActivity( 1357): onPause
11-11 19:56:12.919 D/ComponentPhone( 1357): onPause
11-11 19:56:12.919 D/ComponentDefaultDurka( 1357): onPause
11-11 19:56:12.919 D/ComponentFramework.Container( 1357): onPause: save in intent extras #0
11-11 19:56:12.919 D/ComponentFramework.Activity( 1357): onPause:
11-11 19:56:12.919 D/ComponentFramework.Activity( 1357): dumpBackStack:
11-11 19:56:12.919 D/ComponentFramework.Activity( 1357): key: '0' -> 'org.durka.hallmonitor_framework_test.ComponentDefaultDurka{74e8e97 V.E..... ......ID 0,0-0,0 #7f080019 app:id/componentContainer}'
11-11 19:56:12.919 D/ComponentTestActivity( 1357): onStopScreenOffTimer
11-11 19:56:12.919 D/F.Act.stopScreenOffTimer( 1357): active: true
11-11 19:56:12.959 D/ComponentTestActivity( 1357): onStop
11-11 19:56:13.000 D/ComponentTestActivity( 1357): onStart
11-11 19:56:13.000 D/ComponentTestActivity( 1357): onResume: screen on
11-11 19:56:13.000 D/ComponentTestActivity( 1357): onStartScreenOffTimer
11-11 19:56:13.001 D/F.Act.stopScreenOffTimer( 1357): active: false (called from rearmScreenOffTimer)
11-11 19:56:13.001 D/F.Act.rearmScreenOffTimer( 1357): cover_closed = true
11-11 19:56:13.002 D/F.Act.rearmScreenOffTimer( 1357): Delay set to: 10000
11-11 19:56:13.002 D/ComponentFramework.Activity( 1357): onResume:
11-11 19:56:13.002 D/ComponentFramework.Activity( 1357): dumpBackStack:
11-11 19:56:13.002 D/ComponentFramework.Activity( 1357): key: '0' -> 'org.durka.hallmonitor_framework_test.ComponentDefaultDurka{74e8e97 V.E..... ......I. 0,0-945,375 #7f080019 app:id/componentContainer}'
11-11 19:56:13.003 D/ComponentFramework.Container( 1357): onResume: enter
11-11 19:56:13.003 D/ComponentFramework.Container( 1357): onResume: load from intent extras
11-11 19:56:13.003 D/ComponentFramework.Container( 1357): initApplicationState: restore prior application state #0
11-11 19:56:13.003 D/ComponentFramework.Container( 1357): initApplicationState: false, false
11-11 19:56:13.003 D/ComponentFramework.Container( 1357): setDebugMode: true true
11-11 19:56:13.003 D/ComponentFramework.Container( 1357): onResume: #1 -> org.durka.hallmonitor_framework_test.ComponentDefaultDurka
11-11 19:56:13.003 D/ComponentDefaultDurka( 1357): onResume
11-11 19:56:13.003 D/ComponentFramework.Container( 1357): onResume: #2 -> org.durka.hallmonitor_framework_test.ComponentPhone
11-11 19:56:13.003 D/ComponentPhone( 1357): onResume
11-11 19:56:13.005 D/ComponentPhone( 1357): initPhoneWidget: enter
11-11 19:56:13.006 D/ComponentPhone( 1357): initPhoneWidget: leave
11-11 19:56:13.006 D/ComponentFramework.Container( 1357): onResume: leave
11-11 19:56:13.020 D/ImplPhoneStateListener( 1357): onCallForwardingIndicatorChanged: false
11-11 19:56:13.020 D/ImplPhoneStateListener( 1357): onCallStateChanged: idle
11-11 19:56:13.020 D/ComponentPhone( 1357): setGyroscopeListener: false, true
11-11 19:56:13.020 D/VCS ( 1357): unregisterOnGyroscopeChangedListenerPrivate: false, 0
11-11 19:56:13.020 D/VCS ( 1357): unregisterOnGyroscopeChangedListenerPrivate: stop gyroscope sensor
11-11 19:56:13.020 D/ComponentTestActivity( 1357): onStartScreenOffTimer
11-11 19:56:13.020 D/F.Act.stopScreenOffTimer( 1357): active: true (called from rearmScreenOffTimer)
11-11 19:56:13.020 D/F.Act.rearmScreenOffTimer( 1357): cover_closed = true
11-11 19:56:13.021 D/F.Act.rearmScreenOffTimer( 1357): Delay set to: 10000
11-11 19:56:13.021 I/Timeline( 1357): Timeline: Activity_idle id: android.os.BinderProxy@28798516 time:30456983
11-11 19:56:13.021 I/Timeline( 1357): Timeline: Activity_idle id: android.os.BinderProxy@28798516 time:30456983
11-11 19:56:13.598 D/PartialWakeLockThread( 1357): release wakeLock after 1002 (1000) ms
11-11 19:56:16.083 D/ComponentFramework.Container( 1357): addView: view
11-11 19:56:16.085 D/ComponentFramework.Container( 1357): onMenuOpen: #1
11-11 19:56:17.405 D/ComponentTestActivity( 1357): onPause
11-11 19:56:17.405 D/ComponentPhone( 1357): onPause
11-11 19:56:17.406 D/ComponentDefaultDurka( 1357): onPause
11-11 19:56:17.406 D/ComponentFramework.Container( 1357): onPause: save in intent extras #0
11-11 19:56:17.406 D/ComponentFramework.Activity( 1357): onPause:
11-11 19:56:17.406 D/ComponentFramework.Activity( 1357): dumpBackStack:
11-11 19:56:17.406 D/ComponentFramework.Activity( 1357): key: '0' -> 'org.durka.hallmonitor_framework_test.ComponentDefaultDurka{74e8e97 V.E..... ........ 0,0-945,375 #7f080019 app:id/componentContainer}'
11-11 19:56:17.406 D/ComponentTestActivity( 1357): onStopScreenOffTimer
11-11 19:56:17.406 D/F.Act.stopScreenOffTimer( 1357): active: true
11-11 19:56:17.426 D/PreferenceFragmentLoader( 1357): onResume:
11-11 19:56:17.427 D/PreferenceFragmentLoader( 1357): versionCode = 10
11-11 19:56:17.427 D/F.Is.service_running( 1357): Is service running called.
11-11 19:56:17.439 D/F.Is.service_running( 1357): The org.durka.hallmonitor_framework_test.ViewCoverService is running.
11-11 19:56:17.439 D/F.Is.service_running( 1357): Is service running called.
11-11 19:56:17.444 D/F.Is.service_running( 1357): The org.durka.hallmonitor_framework_test.NotificationService is running.
11-11 19:56:17.444 D/F.Is.wid_enabled( 1357): Is default widget enabled called with widgetType: default
11-11 19:56:17.444 D/HMAWM.doesWidgetExist( 1357): Checking for Widget of type: default
11-11 19:56:17.444 D/F.Is.wid_enabled( 1357): default widget enabled state is: false
11-11 19:56:17.444 D/F.Is.wid_enabled( 1357): Is default widget enabled called with widgetType: media
11-11 19:56:17.444 D/HMAWM.doesWidgetExist( 1357): Checking for Widget of type: media
11-11 19:56:17.444 D/F.Is.wid_enabled( 1357): media widget enabled state is: false
11-11 19:56:17.546 I/Timeline( 1357): Timeline: Activity_idle id: android.os.BinderProxy@2babe193 time:30461507
11-11 19:56:17.547 D/ComponentTestActivity( 1357): onStop
11-11 19:56:17.547 D/ComponentTestActivity( 1357): onDestroy
11-11 19:56:17.553 D/VCS ( 1357): unregisterOnCoverStateChangedListenerPrivate
11-11 19:56:19.910 D/VCS ( 1357): proximity: 0.0
11-11 19:56:20.031 D/PreferenceFragmentLoader( 1357): onPause:
11-11 19:56:20.877 D/VCS ( 1357): proximity: 8.0
11-11 19:56:20.900 D/VCS ( 1357): onCoverStateChanged: false
11-11 19:56:20.900 D/F.Act.stopScreenOffTimer( 1357): active: false
11-11 19:56:20.902 D/F.Act ( 1357): wakeUpScreen: false
11-11 19:56:20.902 D/F.Act ( 1357): wakeUpScreen
11-11 19:56:20.954 D/VCS ( 1357): startTouchScreenCoverThread: false
11-11 19:56:20.955 D/VCS ( 1357): stopPartialWakeLockThread:
11-11 19:56:20.957 D/F.Act.setTouchScreenCoverMode( 1357): coverMode: false
11-11 19:56:20.957 D/F.Act.setTouchScreenCoverMode( 1357): We're root enabled so lets revert the sensitivity...
11-11 19:56:21.024 D/F.Act.run_comm_as_root( 1357): Running command: echo clear_cover_mode,0 > /sys/class/sec/tsp/cmd && cat /sys/class/sec/tsp/cmd_result
11-11 19:56:21.050 D/VCS ( 1357): proximity: 0.0
11-11 19:56:21.168 D/VCS ( 1357): proximity: 8.0
11-11 19:56:21.361 D/F.Act.run_comm_as_root( 1357): Have output: clear_cover_mode,0:OK
11-11 19:56:21.361 D/F.Act.run_comm_as_root( 1357): Have error:
11-11 19:56:21.361 D/F.Act.setTouchScreenCoverMode( 1357): ...Sensitivity reverted, sanity is restored!
11-11 19:56:22.325 D/PreferenceFragmentLoader( 1357): onResume:
11-11 19:56:22.326 D/PreferenceFragmentLoader( 1357): versionCode = 10
11-11 19:56:22.326 D/F.Is.service_running( 1357): Is service running called.
11-11 19:56:22.342 D/F.Is.service_running( 1357): The org.durka.hallmonitor_framework_test.ViewCoverService is running.
11-11 19:56:22.342 D/F.Is.service_running( 1357): Is service running called.
11-11 19:56:22.346 D/F.Is.service_running( 1357): The org.durka.hallmonitor_framework_test.NotificationService is running.
11-11 19:56:22.346 D/F.Is.wid_enabled( 1357): Is default widget enabled called with widgetType: default
11-11 19:56:22.346 D/HMAWM.doesWidgetExist( 1357): Checking for Widget of type: default
11-11 19:56:22.346 D/F.Is.wid_enabled( 1357): default widget enabled state is: false
11-11 19:56:22.346 D/F.Is.wid_enabled( 1357): Is default widget enabled called with widgetType: media
11-11 19:56:22.346 D/HMAWM.doesWidgetExist( 1357): Checking for Widget of type: media
11-11 19:56:22.346 D/F.Is.wid_enabled( 1357): media widget enabled state is: false
11-11 19:56:22.391 I/Timeline( 1357): Timeline: Activity_idle id: android.os.BinderProxy@2babe193 time:30466352
11-11 19:56:23.895 D/PreferenceFragmentLoader( 1357): onPause:
11-11 19:56:25.067 D/VCS ( 1357): proximity: 0.0
11-11 19:56:25.427 D/VCS ( 1357): proximity: 8.0
11-11 19:56:25.911 D/VCS ( 1357): proximity: 0.0
11-11 19:56:26.033 D/VCS ( 1357): onCoverStateChanged: true
11-11 19:56:26.035 D/F.Act.stopScreenOffTimer( 1357): active: false (called from rearmScreenOffTimer)
11-11 19:56:26.035 D/F.Act.rearmScreenOffTimer( 1357): cover_closed = true
11-11 19:56:26.037 D/VCS ( 1357): proximity: 8.0
11-11 19:56:26.039 D/F.Act.rearmScreenOffTimer( 1357): Delay set to: 10000
11-11 19:56:26.040 D/VCS ( 1357): startTouchScreenCoverThread: true
11-11 19:56:26.040 D/VCS ( 1357): startPartialWakeLockThread:
11-11 19:56:26.040 D/VCS ( 1357): restartFrameworkTest: null
11-11 19:56:26.041 I/Timeline( 1357): Timeline: Activity_launch_request id:org.durka.hallmonitor_framework_test time:30470002
11-11 19:56:26.050 D/F.Act.setTouchScreenCoverMode( 1357): coverMode: true
11-11 19:56:26.050 D/F.Act.setTouchScreenCoverMode( 1357): We're root enabled so lets boost the sensitivity... (Build.Device: 'ks01lte')
11-11 19:56:26.110 D/F.Act.run_comm_as_root( 1357): Running command: echo clear_cover_mode,1 > /sys/class/sec/tsp/cmd
11-11 19:56:26.393 D/F.Act.run_comm_as_root( 1357): Have output:
11-11 19:56:26.393 D/F.Act.run_comm_as_root( 1357): Have error:
11-11 19:56:26.393 D/F.Act.setTouchScreenCoverMode( 1357): ...Sensitivity boosted, hold onto your hats!
11-11 19:56:26.474 D/PreferenceFragmentLoader( 1357): onResume:
11-11 19:56:26.475 D/PreferenceFragmentLoader( 1357): versionCode = 10
11-11 19:56:26.475 D/F.Is.service_running( 1357): Is service running called.
11-11 19:56:26.480 D/F.Is.service_running( 1357): The org.durka.hallmonitor_framework_test.ViewCoverService is running.
11-11 19:56:26.480 D/F.Is.service_running( 1357): Is service running called.
11-11 19:56:26.486 D/F.Is.service_running( 1357): The org.durka.hallmonitor_framework_test.NotificationService is running.
11-11 19:56:26.487 D/F.Is.wid_enabled( 1357): Is default widget enabled called with widgetType: default
11-11 19:56:26.487 D/HMAWM.doesWidgetExist( 1357): Checking for Widget of type: default
11-11 19:56:26.487 D/F.Is.wid_enabled( 1357): default widget enabled state is: false
11-11 19:56:26.487 D/F.Is.wid_enabled( 1357): Is default widget enabled called with widgetType: media
11-11 19:56:26.487 D/HMAWM.doesWidgetExist( 1357): Checking for Widget of type: media
11-11 19:56:26.487 D/F.Is.wid_enabled( 1357): media widget enabled state is: false
11-11 19:56:26.549 D/PreferenceFragmentLoader( 1357): onPause:
11-11 19:56:26.613 D/ComponentFramework.Container( 1357): setDebugMode: true, #0
11-11 19:56:26.613 D/ComponentFramework.Container( 1357): setDebugMode: false true
11-11 19:56:26.634 D/VCS ( 1357): registerOnCoverStateChangedListenerPrivate
11-11 19:56:26.639 D/ComponentTestActivity( 1357): onCreate: suppress screen on handling
11-11 19:56:26.640 D/ComponentTestActivity( 1357): onStart
11-11 19:56:26.640 D/ComponentTestActivity( 1357): onResume: screen on
11-11 19:56:26.640 D/ComponentTestActivity( 1357): onStartScreenOffTimer
11-11 19:56:26.640 D/F.Act.stopScreenOffTimer( 1357): active: true (called from rearmScreenOffTimer)
11-11 19:56:26.640 D/F.Act.rearmScreenOffTimer( 1357): cover_closed = true
11-11 19:56:26.641 D/F.Act.rearmScreenOffTimer( 1357): Delay set to: 10000
11-11 19:56:26.641 D/ComponentFramework.Activity( 1357): onResume:
11-11 19:56:26.641 D/ComponentFramework.Activity( 1357): dumpBackStack:
11-11 19:56:26.641 D/ComponentFramework.Activity( 1357): key: '0' -> 'org.durka.hallmonitor_framework_test.ComponentDefaultDurka{c232868 V.E..... ......ID 0,0-0,0 #7f080019 app:id/componentContainer}'
11-11 19:56:26.641 D/ComponentFramework.Container( 1357): setDebugMode: true, #3
11-11 19:56:26.641 D/ComponentFramework.Container( 1357): onResume: #0 -> org.durka.hallmonitor_framework_test.ComponentPhone
11-11 19:56:26.641 D/ComponentPhone( 1357): onResume
11-11 19:56:26.648 D/ComponentPhone( 1357): initPhoneWidget: enter
11-11 19:56:26.649 D/ComponentPhone( 1357): initPhoneWidget: leave
11-11 19:56:26.649 D/ComponentFramework.Container( 1357): onResume: #2 -> org.durka.hallmonitor_framework_test.ComponentDefaultDurka
11-11 19:56:26.649 D/ComponentDefaultDurka( 1357): onResume
11-11 19:56:26.649 D/ComponentFramework.Container( 1357): onResume: leave
11-11 19:56:26.654 D/ComponentTestActivity( 1357): onPause
11-11 19:56:26.655 D/ComponentPhone( 1357): onPause
11-11 19:56:26.660 D/ComponentDefaultDurka( 1357): onPause
11-11 19:56:26.660 D/ComponentFramework.Container( 1357): onPause: save in intent extras #0
11-11 19:56:26.660 D/ComponentFramework.Activity( 1357): onPause:
11-11 19:56:26.660 D/ComponentFramework.Activity( 1357): dumpBackStack:
11-11 19:56:26.660 D/ComponentFramework.Activity( 1357): key: '0' -> 'org.durka.hallmonitor_framework_test.ComponentDefaultDurka{c232868 V.E..... ......ID 0,0-0,0 #7f080019 app:id/componentContainer}'
11-11 19:56:26.660 D/ComponentTestActivity( 1357): onStopScreenOffTimer
11-11 19:56:26.660 D/F.Act.stopScreenOffTimer( 1357): active: true
11-11 19:56:26.730 D/ComponentTestActivity( 1357): onStop
11-11 19:56:26.777 I/Timeline( 1357): Timeline: Activity_idle id: android.os.BinderProxy@2f960f8b time:30470738
11-11 19:56:26.789 I/Timeline( 1357): Timeline: Activity_idle id: android.os.BinderProxy@2babe193 time:30470751
11-11 19:56:26.974 D/ComponentTestActivity( 1357): onStart
11-11 19:56:26.975 D/ComponentTestActivity( 1357): onResume: screen on
11-11 19:56:26.975 D/ComponentTestActivity( 1357): onStartScreenOffTimer
11-11 19:56:27.002 D/F.Act.stopScreenOffTimer( 1357): active: false (called from rearmScreenOffTimer)
11-11 19:56:27.002 D/F.Act.rearmScreenOffTimer( 1357): cover_closed = true
11-11 19:56:27.016 D/F.Act.rearmScreenOffTimer( 1357): Delay set to: 10000
11-11 19:56:27.017 D/ComponentFramework.Activity( 1357): onResume:
11-11 19:56:27.017 D/ComponentFramework.Activity( 1357): dumpBackStack:
11-11 19:56:27.017 D/ComponentFramework.Activity( 1357): key: '0' -> 'org.durka.hallmonitor_framework_test.ComponentDefaultDurka{c232868 V.E..... ........ 0,0-945,375 #7f080019 app:id/componentContainer}'

@habeIchVergessen
Copy link
Contributor

from your log

11-11 19:56:25.067 D/VCS ( 1357): proximity: 0.0
11-11 19:56:25.427 D/VCS ( 1357): proximity: 8.0
11-11 19:56:25.911 D/VCS ( 1357): proximity: 0.0
11-11 19:56:26.033 D/VCS ( 1357): onCoverStateChanged: true
11-11 19:56:26.035 D/F.Act.stopScreenOffTimer( 1357): active: false (called from rearmScreenOffTimer)
11-11 19:56:26.035 D/F.Act.rearmScreenOffTimer( 1357): cover_closed = true
11-11 19:56:26.037 D/VCS ( 1357): proximity: 8.0
11-11 19:56:26.033 D/VCS ( 1357): onCoverStateChanged: true

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.
the only possible solution is LID_STATE_CHANGED support on os.

@real-or-random
Copy link

@habeIchVergessen Thanks for the working fork.
Do you plan to create a proper release? I think it would make a lot of sense to try to integrate the different forks (assuming that you are willing to spend time on that, of course).

@habeIchVergessen
Copy link
Contributor

it's durkas part to plan a release.
it's nice to hear that it works for others too. but my premise is to make the required changes for myself.

@real-or-random
Copy link

I'm not sure if he plans to continue to work on this project.
@durka Do you have any plans?

@pdeboer1987
Copy link

@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.

@habeIchVergessen
Copy link
Contributor

please post a debug output (see Nov 1, 2015 post).

@pdeboer1987
Copy link

My mistake, it does work. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants