Closed jesse-osiecki closed 2 years ago
give the result of adb shell dumpsys sensorservice
Le mer. 27 avr. 2022 à 17:24, Jesse Osiecki @.***> a écrit :
I've got a CAT S22 Flip phone, which as the name suggests has a flip up touch screen. When opening the flip in the stock firmware the screen turns on, and when closing it turns off, so in a sense it acts as the power button.
I've done a grab of /dev/input/event*, the hall_sensor is what I suspect is operating the lid function (hall effect sensor)
-> adb shell getevent add device 1: /dev/input/event6 name: "msm8952-snd-card-mtp Button Jack" add device 2: /dev/input/event5 name: "msm8952-snd-card-mtp Headset Jack" could not get driver version for /dev/input/mice, Inappropriate ioctl for device add device 3: /dev/input/event2 name: "chsc_cap_touch" add device 4: /dev/input/event0 name: "qpnp_pon" could not get driver version for /dev/input/mouse0, Inappropriate ioctl for device add device 5: /dev/input/event1 name: "soc:matrix_keypad" add device 6: /dev/input/event4 name: "soc:gpio_keys" add device 7: /dev/input/event3 name: "hall_sensor"
however no events stream out when opening and closing the device. I may try to re-install the stock firmware if I can find it, to compare output.
— Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/2295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OUKG6XBFYWLQLV45Y3VHFLZNANCNFSM5UPQD5IQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hey! Thanks for taking the time @phhusson to help me.
-> adb shell dumpsys sensorservice
Captured at: 15:31:13.871
Sensor Device:
Total 23 h/w sensors, 23 running 0 disabled clients:
0x0000000d) active-count = 1; sampling_period(ms) = {1.0}, selected = 1.00 ms; batching_period(ms) = {0.0}, selected = 0.00 ms
Sensor List:
0x00000001) stk8ba50 Accelerometer | Sensortek | ver: 1 | type: android.sensor.accelerometer(1) | perm: n/a | flags: 0x00000000
continuous | minRate=1.00Hz | maxRate=200.00Hz | FIFO (max,reserved) = (10000, 0) events | non-wakeUp |
0x00000002) stk8ba50 Accelerometer Uncalibrated | Sensortek | ver: 1 | type: android.sensor.accelerometer_uncalibrated(35) | perm: n/a | flags: 0x00000000
continuous | minRate=1.00Hz | maxRate=200.00Hz | FIFO (max,reserved) = (10000, 0) events | non-wakeUp |
0x00000003) stk3x1x alsprx | Sensortek | ver: 2 | type: android.sensor.proximity(8) | perm: n/a | flags: 0x00000003
on-change | minRate=0.02Hz | minDelay=0us | FIFO (max,reserved) = (8204, 100) events | wakeUp |
0x00000004) stk3x1x alsprx | Sensortek | ver: 1 | type: android.sensor.light(5) | perm: n/a | flags: 0x00000002
on-change | minRate=0.02Hz | minDelay=0us | FIFO (max,reserved) = (50, 0) events | non-wakeUp |
0x00000005) ICP-10100 Pressure | InvenSense | ver: 1 | type: android.sensor.pressure(6) | perm: n/a | flags: 0x00000000
continuous | minRate=0.02Hz | maxRate=30.00Hz | FIFO (max,reserved) = (300, 0) events | non-wakeUp |
0x00000006) stk8ba50 Accelerometer -Wakeup Secondary | Sensortek | ver: 1 | type: android.sensor.accelerometer(1) | perm: n/a | flags: 0x00000001
continuous | minRate=1.00Hz | maxRate=200.00Hz | FIFO (max,reserved) = (10000, 0) events | wakeUp |
0x00000007) stk8ba50 Accelerometer Uncalibrated -Wakeup Secondary | Sensortek | ver: 1 | type: android.sensor.accelerometer_uncalibrated(35) | perm: n/a | flags: 0x00000001
continuous | minRate=1.00Hz | maxRate=200.00Hz | FIFO (max,reserved) = (10000, 0) events | wakeUp |
0x00000008) stk3x1x alsprx -Non Wakeup Secondary | Sensortek | ver: 2 | type: android.sensor.proximity(8) | perm: n/a | flags: 0x00000002
on-change | minRate=0.02Hz | minDelay=0us | FIFO (max,reserved) = (8204, 100) events | non-wakeUp |
0x00000009) stk3x1x alsprx -Wakeup Secondary | Sensortek | ver: 1 | type: android.sensor.light(5) | perm: n/a | flags: 0x00000003
on-change | minRate=0.02Hz | minDelay=0us | FIFO (max,reserved) = (50, 0) events | wakeUp |
0x0000000a) ICP-10100 Pressure -Wakeup Secondary | InvenSense | ver: 1 | type: android.sensor.pressure(6) | perm: n/a | flags: 0x00000001
continuous | minRate=0.02Hz | maxRate=30.00Hz | FIFO (max,reserved) = (300, 0) events | wakeUp |
0x0000000b) Step Detector | QTI | ver: 2 | type: android.sensor.step_detector(18) | perm: android.permission.ACTIVITY_RECOGNITION | flags: 0x00000006
special-trigger | maxDelay=0us | minDelay=0us | FIFO (max,reserved) = (8204, 100) events | non-wakeUp |
0x0000000c) Step Counter | QTI | ver: 2 | type: android.sensor.step_counter(19) | perm: android.permission.ACTIVITY_RECOGNITION | flags: 0x00000002
on-change | minRate=0.00Hz | minDelay=0us | FIFO (max,reserved) = (8204, 100) events | non-wakeUp |
0x0000000d) Significant Motion Detector | QTI | ver: 2 | type: android.sensor.significant_motion(17) | perm: n/a | flags: 0x00000005
one-shot | maxDelay=0us | minDelay=-1us | no batching | wakeUp |
0x0000000e) Tilt Detector | QTI | ver: 2 | type: android.sensor.tilt_detector(22) | perm: n/a | flags: 0x00000007
special-trigger | maxDelay=0us | minDelay=0us | FIFO (max,reserved) = (24613, 0) events | wakeUp |
0x0000000f) Step Detector -Wakeup Secondary | QTI | ver: 2 | type: android.sensor.step_detector(18) | perm: android.permission.ACTIVITY_RECOGNITION | flags: 0x00000007
special-trigger | maxDelay=0us | minDelay=0us | FIFO (max,reserved) = (8204, 100) events | wakeUp |
0x00000010) Step Counter -Wakeup Secondary | QTI | ver: 2 | type: android.sensor.step_counter(19) | perm: android.permission.ACTIVITY_RECOGNITION | flags: 0x00000003
on-change | minRate=0.00Hz | minDelay=0us | FIFO (max,reserved) = (8204, 100) events | wakeUp |
0x00000011) AMD | QTI | ver: 2 | type: com.qti.sensor.amd(33171006) | perm: n/a | flags: 0x00000002
on-change | minRate=0.00Hz | minDelay=0us | no batching | non-wakeUp |
0x00000012) RMD | QTI | ver: 2 | type: com.qti.sensor.rmd(33171007) | perm: n/a | flags: 0x00000002
on-change | minRate=0.00Hz | minDelay=0us | no batching | non-wakeUp |
0x00000013) Basic Gestures | QTI | ver: 2 | type: com.qti.sensor.basic_gestures(33171000) | perm: n/a | flags: 0x00000003
on-change | minRate=0.00Hz | minDelay=0us | no batching | wakeUp |
0x00000014) Facing | QTI | ver: 2 | type: com.qti.sensor.facing(33171002) | perm: n/a | flags: 0x00000003
on-change | minRate=0.00Hz | minDelay=0us | no batching | wakeUp |
0x00000015) Pedometer | QTI | ver: 2 | type: com.qti.sensor.pedometer(33171009) | perm: n/a | flags: 0x00000002
on-change | minRate=0.00Hz | minDelay=0us | FIFO (max,reserved) = (8204, 100) events | non-wakeUp |
0x00000016) Motion Accel | QTI | ver: 2 | type: com.qti.sensor.motion_accel(33171011) | perm: n/a | flags: 0x00000006
special-trigger | maxDelay=0us | minDelay=0us | no batching | non-wakeUp |
0x00000017) Coarse Motion Classifier | QTI | ver: 3 | type: com.qti.sensor.cmc(33171012) | perm: n/a | flags: 0x00000003
on-change | minRate=0.00Hz | minDelay=0us | FIFO (max,reserved) = (2344, 0) events | wakeUp |
Fusion States:
9-axis fusion disabled (0 clients), gyro-rate= 200.00Hz, q=< 0, 0, 0, 0 > (0), b=< 0, 0, 0 >
game fusion(no mag) disabled (0 clients), gyro-rate= 200.00Hz, q=< 0, 0, 0, 0 > (0), b=< 0, 0, 0 >
geomag fusion (no gyro) disabled (0 clients), gyro-rate= 200.00Hz, q=< 0, 0, 0, 0 > (0), b=< 0, 0, 0 >
Recent Sensor events:
Significant Motion Detector: last 2 events
1 (ts=257115.044129191, wall=10:18:58.478) 1.00,
2 (ts=261108.804800397, wall=11:25:32.064) 1.00,
stk3x1x alsprx: last 19 events
1 (ts=66.197517485, wall=10:54:42.161) 5.00, 0.00, 0.00,
2 (ts=189456.217497404, wall=15:31:18.738) 5.00, 0.00, 0.00,
3 (ts=257064.732234340, wall=10:18:07.253) 5.00, 0.00, 0.00,
4 (ts=257102.089237067, wall=10:18:44.613) 5.00, 0.00, 0.00,
5 (ts=257312.127546824, wall=10:22:14.656) 5.00, 0.00, 0.00,
6 (ts=259728.620869316, wall=11:02:31.142) 5.00, 0.00, 0.00,
7 (ts=259740.807238364, wall=11:02:43.328) 5.00, 0.00, 0.00,
8 (ts=259858.626642154, wall=11:04:41.149) 5.00, 0.00, 0.00,
9 (ts=259861.299731958, wall=11:04:43.821) 5.00, 0.00, 0.00,
10 (ts=260157.333267829, wall=11:09:39.857) 5.00, 0.00, 0.00,
11 (ts=260357.677502666, wall=11:13:00.198) 5.00, 0.00, 0.00,
12 (ts=260450.135157593, wall=11:14:32.657) 5.00, 0.00, 0.00,
13 (ts=260452.595759400, wall=11:14:35.119) 0.00, 0.00, 0.00,
14 (ts=260454.206263550, wall=11:14:36.727) 5.00, 0.00, 0.00,
15 (ts=260457.378741875, wall=11:14:39.903) 0.00, 0.00, 0.00,
16 (ts=260486.442069817, wall=11:15:08.963) 5.00, 0.00, 0.00,
17 (ts=260497.060145568, wall=11:15:19.582) 5.00, 0.00, 0.00,
18 (ts=261039.520675772, wall=11:24:22.042) 5.00, 0.00, 0.00,
19 (ts=261044.204602859, wall=11:24:26.726) 5.00, 0.00, 0.00,
stk8ba50 Accelerometer: last 50 events
1 (ts=264847.010259444, wall=12:27:49.558) 0.54, 0.69, 9.35,
2 (ts=264847.050542647, wall=12:27:49.588) 0.54, 0.69, 9.35,
3 (ts=264847.090825850, wall=12:27:49.622) 0.54, 0.69, 9.35,
4 (ts=264847.131109053, wall=12:27:49.655) 0.54, 0.69, 9.35,
5 (ts=264847.171392256, wall=12:27:49.720) 0.54, 0.69, 9.35,
6 (ts=264847.211675460, wall=12:27:49.752) 0.54, 0.69, 9.35,
7 (ts=264847.251958663, wall=12:27:49.784) 0.54, 0.69, 9.35,
8 (ts=264847.292241866, wall=12:27:49.817) 0.54, 0.69, 9.35,
9 (ts=264847.332525069, wall=12:27:49.879) 0.54, 0.69, 9.35,
10 (ts=264847.372808272, wall=12:27:49.913) 0.54, 0.69, 9.35,
11 (ts=264847.413091475, wall=12:27:49.946) 0.54, 0.69, 9.35,
12 (ts=264847.453374678, wall=12:27:49.978) 0.54, 0.69, 9.35,
13 (ts=264847.493657881, wall=12:27:50.043) 0.54, 0.69, 9.35,
14 (ts=264847.533941085, wall=12:27:50.075) 0.54, 0.69, 9.35,
15 (ts=264847.574224288, wall=12:27:50.107) 0.54, 0.69, 9.35,
16 (ts=264847.614507491, wall=12:27:50.139) 0.54, 0.69, 9.42,
17 (ts=264847.654790694, wall=12:27:50.204) 0.54, 0.69, 9.35,
18 (ts=264847.695073897, wall=12:27:50.233) 0.54, 0.69, 9.35,
19 (ts=264847.735357100, wall=12:27:50.268) 0.54, 0.69, 9.35,
20 (ts=264847.775640303, wall=12:27:50.302) 0.54, 0.69, 9.35,
21 (ts=264847.815923506, wall=12:27:50.365) 0.54, 0.69, 9.35,
22 (ts=264847.856206710, wall=12:27:50.397) 0.54, 0.69, 9.35,
23 (ts=264847.896489913, wall=12:27:50.430) 0.54, 0.69, 9.35,
24 (ts=264847.936773116, wall=12:27:50.462) 0.54, 0.69, 9.35,
25 (ts=264847.977056319, wall=12:27:50.526) 0.54, 0.69, 9.35,
26 (ts=264848.017339522, wall=12:27:50.555) 0.54, 0.69, 9.35,
27 (ts=264848.057622725, wall=12:27:50.591) 0.54, 0.69, 9.35,
28 (ts=264848.097905928, wall=12:27:50.624) 0.54, 0.69, 9.35,
29 (ts=264848.138189131, wall=12:27:50.686) 0.54, 0.69, 9.35,
30 (ts=264848.178472335, wall=12:27:50.720) 0.54, 0.69, 9.35,
31 (ts=264848.218755538, wall=12:27:50.752) 0.54, 0.74, 9.35,
32 (ts=264848.259038741, wall=12:27:50.785) 0.54, 0.77, 9.35,
33 (ts=264848.299321944, wall=12:27:50.848) 0.54, 0.69, 9.35,
34 (ts=264848.339605147, wall=12:27:50.879) 0.54, 0.69, 9.35,
35 (ts=264848.379888350, wall=12:27:50.913) 0.54, 0.69, 9.40,
36 (ts=264848.420171553, wall=12:27:50.945) 0.54, 0.69, 9.43,
37 (ts=264848.460454756, wall=12:27:51.010) 0.54, 0.69, 9.43,
38 (ts=264848.500737960, wall=12:27:51.043) 0.54, 0.69, 9.39,
39 (ts=264848.541021163, wall=12:27:51.074) 0.54, 0.69, 9.35,
40 (ts=264848.581304366, wall=12:27:51.106) 0.54, 0.69, 9.35,
41 (ts=264848.621587569, wall=12:27:51.171) 0.54, 0.69, 9.35,
42 (ts=264848.661870772, wall=12:27:51.203) 0.54, 0.69, 9.35,
43 (ts=264848.702153975, wall=12:27:51.235) 0.54, 0.69, 9.35,
44 (ts=264848.742437178, wall=12:27:51.268) 0.54, 0.69, 9.35,
45 (ts=264848.782720381, wall=12:27:51.333) 0.54, 0.69, 9.35,
46 (ts=264848.823003585, wall=12:27:51.365) 0.54, 0.69, 9.35,
47 (ts=264848.863286788, wall=12:27:51.398) 0.54, 0.69, 9.35,
48 (ts=264848.903569991, wall=12:27:51.431) 0.54, 0.69, 9.35,
49 (ts=264848.943853194, wall=12:27:51.494) 0.54, 0.69, 9.35,
50 (ts=264848.984136397, wall=12:27:51.527) 0.54, 0.69, 9.35,
Active sensors:
Significant Motion Detector (handle=0x0000000d, connections=1)
Socket Buffer size = 984 events
WakeLock Status: not held
Mode : NORMAL
Sensor Privacy: disabled
1 active connections
Connection Number: 0
Operating Mode: NORMAL
com.android.server.DeviceIdleController | WakeLockRefCount 0 | uid 1000 | cache size 0 | max cache size 0
Significant Motion Detector 0x0000000d | status: active | pending flush events 0
0 direct connections
Previous Registrations:
12:27:51 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.AnyMotionDetector
12:27:48 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.AnyMotionDetector samplingPeriod=40000us batchingPeriod=0us
12:27:43 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.AnyMotionDetector
12:27:41 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.AnyMotionDetector samplingPeriod=40000us batchingPeriod=0us
11:30:41 + 0x0000000d pid= 1710 uid= 1000 package=com.android.server.DeviceIdleController samplingPeriod=0us batchingPeriod=0us
11:26:15 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:24:30 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:24:26 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:24:26 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:24:26 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:24:26 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:24:22 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:24:21 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:20:15 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:15:25 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:15:19 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:15:19 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:15:19 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:15:18 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:15:08 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:15:08 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:14:42 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:14:42 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:14:32 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:14:32 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:13:10 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:13:10 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:13:00 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:13:00 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:12:10 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:09:47 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:09:40 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:09:39 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:07:47 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:04:48 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:04:43 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:04:43 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:04:43 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:04:43 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:04:41 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:04:41 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:04:27 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:02:47 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:02:43 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:02:43 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
11:02:41 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
11:02:40 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
11:02:31 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
11:02:31 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
10:24:41 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
10:24:41 + 0x0000000d pid= 1710 uid= 1000 package=com.android.server.DeviceIdleController samplingPeriod=0us batchingPeriod=0us
10:22:19 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
10:22:14 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
10:22:14 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
10:20:36 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
10:18:59 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
10:18:59 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
10:18:55 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
10:18:44 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
10:18:44 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
10:18:44 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
10:18:14 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
10:18:07 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
10:18:07 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
15:31:31 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
15:31:30 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
15:31:18 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
15:31:18 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
10:54:54 - 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector
10:54:53 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
10:54:42 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
10:54:42 - 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl
10:54:42 + 0x00000003 pid= 1948 uid=10096 package=com.android.systemui.util.sensors.ThresholdSensorImpl samplingPeriod=20000us batchingPeriod=0us
10:54:36 + 0x0000000d pid= 1710 uid= 1000 package=com.android.server.DeviceIdleController samplingPeriod=0us batchingPeriod=0us
10:54:35 + 0x00000001 pid= 1710 uid= 1000 package=com.android.server.power.FaceDownDetector samplingPeriod=200000us batchingPeriod=2000000us
is the wakeUp
vs non-wakeUp
the interesting portion?
I'm not seeing any sensor that seem related to LID, do you?
No I don't, and given the lack of events when closing the lid, that makes sense I guess. I would suspect then they're either using proximity/light sensors in OEM rom or that we're missing the driver entirely and the kernel doesn't create a /dev/input device.
I'll do what I suggested above and re-flash (if I can find the rom) and compare output
I did find this when I dumped out everything from adb shell dumpsys
WINDOW MANAGER POLICY STATE (dumpsys window policy)
mSafeMode=false mSystemReady=true mSystemBooted=true
mCameraLensCoverState=CAMERA_LENS_COVER_ABSENT
mWakeGestureEnabledSetting=true
mUiMode=UI_MODE_TYPE_NORMALmEnableCarDockHomeCapture=true
mLidKeyboardAccessibility=0 mLidNavigationAccessibility=0 getLidBehavior=LID_BEHAVIOR_NONE
....
DisplayPolicy
mCarDockEnablesAccelerometer=true mDeskDockEnablesAccelerometer=true
mDockMode=EXTRA_DOCK_STATE_UNDOCKED mLidState=LID_OPEN
mAwake=false mScreenOnEarly=false mScreenOnFully=false
mKeyguardDrawComplete=false mWindowManagerDrawComplete=false
mHdmiPlugged=false
mLastBehavior=SHOW_TRANSIENT_BARS_BY_SWIPE
mShowingDream=false mDreamingLockscreen=true
mStatusBar=Window{f7381fb u0 StatusBar}
mExpandedPanel=Window{8b4e583 u0 NotificationShade}
isKeyguardShowing=true
mNavigationBar=Window{6b6fc6b u0 NavigationBar0}
mNavBarOpacityMode=2
mNavigationBarCanMove=false
mNavigationBarPosition=4
mFocusedWindow=Window{8b4e583 u0 NotificationShade}
mTopIsFullscreen=false
mForceStatusBar=false mAllowLockscreenWhenOn=false
mRemoteInsetsControllerControlsSystemBars=false
SystemGestures:
mDisplayCutoutTouchableRegionSize=0
mSwipeStartThreshold=Rect(31, 31 - 31, 31)
mSwipeDistanceThreshold=31
Looper state:
Looper (android.ui, tid 21) {2ef29d7}
(Total messages: 0, polling=true, quitting=false)
Let's try with uevent
(run uevent
in rooted shell, close/open, check if there was some relevant uevent value)
hey! thanks for chiming in, I was excited to see phh
on that hackernews thread
looks like we have a winner
change@/devices/virtual/switch_hall/hall_switch
ACTION=change
DEVPATH=/devices/virtual/switch_hall/hall_switch
SUBSYSTEM=switch_hall
SWITCH_NAME=hall_switch
SWITCH_STATE=0
SEQNUM=3891
You should feel free to ping me like once a week if i don't answer.
Is SWITCH_STATE=0 when closing or opening? Can you check that it goes to =1 when doing the opposite?
Can you show a photo of which screen does what on GSI?
I don't want to abuse the free labors of open-source devs, hopefully this can be of use to more people than just me.
opening
change@/devices/virtual/switch_hall/hall_switch
ACTION=change
DEVPATH=/devices/virtual/switch_hall/hall_switch
SUBSYSTEM=switch_hall
SWITCH_NAME=hall_switch
SWITCH_STATE=1
SEQNUM=4786
closing
change@/devices/virtual/switch_hall/hall_switch
ACTION=change
DEVPATH=/devices/virtual/switch_hall/hall_switch
SUBSYSTEM=switch_hall
SWITCH_NAME=hall_switch
SWITCH_STATE=0
SEQNUM=4683
Can you show a photo of which screen does what on GSI?
You mean the mentioned issue with the front screen showing the T-Mobile logo? I can take a picture sure
Pre IMS APK install
Post IMS APK install
Post IMS APK install during reboot
Uh... Why do you mention IMS apk? The state of the screen depends on IMS APK...? We're speaking of the VoLTE IMS APK?
Get me the result of:
lshal
ls /sys/class/leds /sys/class/lights /sys/class/backlight
lightsctl
getprop ro.vendor.build.fingerprint
WRT LID, I'll just implement to go to sleep when lid closes, and to wake up when lid opens, ok?
The state of the screen depends on IMS APK...?
Yes that's exactly it (for the small screen). The one installed in the Phh Treble Settings
Get me the result of:
* `lshal`
:/data/data # lshal
| All HIDL binderized services (registered with hwservicemanager)
VINTF R Interface Thread Use Server Clients
FM Y android.frameworks.cameraservice.service@2.0::ICameraService/default 0/2 1212 355
FM Y android.frameworks.cameraservice.service@2.1::ICameraService/default 0/2 1212 355
FM Y android.frameworks.cameraservice.service@2.2::ICameraService/default 0/2 1212 355
FM Y android.frameworks.displayservice@1.0::IDisplayService/default 0/1 1426 355
DC,FM Y android.frameworks.schedulerservice@1.0::ISchedulingPolicyService/default 0/5 1676 355
DC,FM Y android.frameworks.sensorservice@1.0::ISensorManager/default 0/5 1676 355
FM Y android.frameworks.stats@1.0::IStats/default 0/5 1676 355
DM,FC Y android.hardware.atrace@1.0::IAtraceDevice/default N/A N/A
DM,FC Y android.hardware.audio.effect@6.0::IEffectsFactory/default N/A N/A
DM,FC Y android.hardware.audio@6.0::IDevicesFactory/default N/A N/A
DM,FC Y android.hardware.bluetooth.audio@2.0::IBluetoothAudioProvidersFactory/default N/A N/A
DM,FC Y android.hardware.bluetooth@1.0::IBluetoothHci/default N/A N/A
DM,FC Y android.hardware.camera.provider@2.4::ICameraProvider/legacy/0 N/A N/A
DM Y android.hardware.configstore@1.0::ISurfaceFlingerConfigs/default N/A N/A
DM,FC Y android.hardware.configstore@1.1::ISurfaceFlingerConfigs/default N/A N/A
DM,FC Y android.hardware.gatekeeper@1.0::IGatekeeper/default N/A N/A
DM Y android.hardware.gnss@1.0::IGnss/default N/A N/A
DM Y android.hardware.gnss@1.0::IGnss/gnss_vendor N/A N/A
DM Y android.hardware.gnss@1.1::IGnss/default N/A N/A
DM,FC Y android.hardware.gnss@2.0::IGnss/default N/A N/A
DM,FC Y android.hardware.gnss@2.1::IGnss/default N/A N/A
DM,FC Y android.hardware.graphics.allocator@2.0::IAllocator/default N/A N/A
DM,FC Y android.hardware.graphics.composer@2.1::IComposer/default N/A N/A
DM,FC Y android.hardware.health@2.0::IHealth/default N/A N/A
DM,FC Y android.hardware.keymaster@4.0::IKeymasterDevice/default N/A N/A
FM Y android.hardware.media.c2@1.0::IComponentStore/software 0/14 1316 1905 1676 1213 355
FM Y android.hardware.media.c2@1.1::IComponentStore/software 0/14 1316 1905 1676 1213 355
FM Y android.hardware.media.c2@1.2::IComponentStore/software 0/14 1316 1905 1676 1213 355
DM,FC Y android.hardware.media.omx@1.0::IOmx/default N/A N/A
DM,FC Y android.hardware.media.omx@1.0::IOmxStore/default N/A N/A
DM,FC Y android.hardware.memtrack@1.0::IMemtrack/default N/A N/A
DM Y android.hardware.radio.config@1.0::IRadioConfig/default N/A N/A
DM,FC Y android.hardware.radio.config@1.1::IRadioConfig/default N/A N/A
DM Y android.hardware.radio@1.0::IRadio/slot1 N/A N/A
DM Y android.hardware.radio@1.0::ISap/slot1 N/A N/A
DM Y android.hardware.radio@1.1::IRadio/slot1 N/A N/A
DM Y android.hardware.radio@1.1::ISap/slot1 N/A N/A
DM Y android.hardware.radio@1.2::IRadio/slot1 N/A N/A
DM,FC Y android.hardware.radio@1.2::ISap/slot1 N/A N/A
DM Y android.hardware.radio@1.3::IRadio/slot1 N/A N/A
DM,FC Y android.hardware.radio@1.4::IRadio/slot1 N/A N/A
DM,FC Y android.hardware.secure_element@1.0::ISecureElement/SIM1 N/A N/A
DM,FC Y android.hardware.secure_element@1.1::ISecureElement/SIM1 N/A N/A
DM,FC Y android.hardware.secure_element@1.2::ISecureElement/SIM1 N/A N/A
DM,FC Y android.hardware.sensors@1.0::ISensors/default N/A N/A
DM,FC Y android.hardware.soundtrigger@2.0::ISoundTriggerHw/default N/A N/A
DM,FC Y android.hardware.soundtrigger@2.1::ISoundTriggerHw/default N/A N/A
DM,FC Y android.hardware.wifi.supplicant@1.0::ISupplicant/default N/A N/A
DM,FC Y android.hardware.wifi.supplicant@1.1::ISupplicant/default N/A N/A
DM,FC Y android.hardware.wifi.supplicant@1.2::ISupplicant/default N/A N/A
DM,FC Y android.hardware.wifi.supplicant@1.3::ISupplicant/default N/A N/A
DM,FC Y android.hardware.wifi@1.0::IWifi/default N/A N/A
DM,FC Y android.hardware.wifi@1.1::IWifi/default N/A N/A
DM,FC Y android.hardware.wifi@1.2::IWifi/default N/A N/A
DM,FC Y android.hardware.wifi@1.3::IWifi/default N/A N/A
DM,FC Y android.hardware.wifi@1.4::IWifi/default N/A N/A
DC,FM Y android.hidl.allocator@1.0::IAllocator/ashmem 0/1 870 355
X Y android.hidl.base@1.0::IBase/SIM1 N/A N/A
X Y android.hidl.base@1.0::IBase/Uim0 N/A N/A
X Y android.hidl.base@1.0::IBase/UimLpa0 N/A N/A
X Y android.hidl.base@1.0::IBase/ashmem 0/1 870 355
X Y android.hidl.base@1.0::IBase/com.qualcomm.qti.uceservice N/A N/A
X Y android.hidl.base@1.0::IBase/default 0/1 2077
X Y android.hidl.base@1.0::IBase/dspservice N/A N/A
X Y android.hidl.base@1.0::IBase/gnss_vendor N/A N/A
X Y android.hidl.base@1.0::IBase/imsradio0 N/A N/A
X Y android.hidl.base@1.0::IBase/imsrtpservice N/A N/A
X Y android.hidl.base@1.0::IBase/legacy/0 N/A N/A
X Y android.hidl.base@1.0::IBase/oemhook0 N/A N/A
X Y android.hidl.base@1.0::IBase/qti.ims.connectionmanagerservice N/A N/A
X Y android.hidl.base@1.0::IBase/slot1 N/A N/A
X Y android.hidl.base@1.0::IBase/software 0/14 1316 1905 1676 1213 355
X Y android.hidl.base@1.0::IBase/uimRemoteClient0 N/A N/A
X Y android.hidl.base@1.0::IBase/uimRemoteServer0 N/A N/A
DC,FM Y android.hidl.manager@1.0::IServiceManager/default 1/1 355 3370 2142 1676
FM Y android.hidl.manager@1.1::IServiceManager/default 1/1 355 3370 2142 1676
FM Y android.hidl.manager@1.2::IServiceManager/default 1/1 355 3370 2142 1676
DC,FM Y android.hidl.token@1.0::ITokenManager/default 1/1 355
FM Y android.system.net.netd@1.0::INetd/default 0/1 1279 1306 355
FM Y android.system.net.netd@1.1::INetd/default 0/1 1279 1306 355
FM Y android.system.suspend@1.0::ISystemSuspend/default 0/1 714 882 361 1676 1423 1372 1306 355
DC,FM Y android.system.wifi.keystore@1.0::IKeystore/default 0/1 1214 355
DM Y com.qualcomm.qti.imscmservice@2.0::IImsCmService/qti.ims.connectionmanagerservice N/A N/A
DM Y com.qualcomm.qti.imscmservice@2.1::IImsCmService/qti.ims.connectionmanagerservice N/A N/A
DM Y com.qualcomm.qti.imscmservice@2.2::IImsCmService/qti.ims.connectionmanagerservice N/A N/A
DM Y com.qualcomm.qti.uceservice@2.0::IUceService/com.qualcomm.qti.uceservice N/A N/A
DM Y com.qualcomm.qti.uceservice@2.1::IUceService/com.qualcomm.qti.uceservice N/A N/A
DM Y com.qualcomm.qti.uceservice@2.2::IUceService/com.qualcomm.qti.uceservice N/A N/A
DM Y com.qualcomm.qti.uceservice@2.3::IUceService/com.qualcomm.qti.uceservice N/A N/A
DM Y vendor.display.config@2.0::IDisplayConfig/default N/A N/A
DM Y vendor.mmax.mdlog@1.0::IModemLog/default N/A N/A
DM Y vendor.qti.data.factory@2.0::IFactory/default N/A N/A
DM Y vendor.qti.data.factory@2.1::IFactory/default N/A N/A
DM Y vendor.qti.data.factory@2.2::IFactory/default N/A N/A
DM Y vendor.qti.gnss@1.0::ILocHidlGnss/gnss_vendor N/A N/A
DM Y vendor.qti.gnss@1.1::ILocHidlGnss/gnss_vendor N/A N/A
DM Y vendor.qti.gnss@1.2::ILocHidlGnss/gnss_vendor N/A N/A
DM Y vendor.qti.gnss@2.0::ILocHidlGnss/gnss_vendor N/A N/A
DM Y vendor.qti.gnss@2.1::ILocHidlGnss/gnss_vendor N/A N/A
DM Y vendor.qti.gnss@3.0::ILocHidlGnss/gnss_vendor N/A N/A
DM Y vendor.qti.gnss@4.0::ILocHidlGnss/gnss_vendor N/A N/A
DM Y vendor.qti.hardware.bluetooth_audio@2.0::IBluetoothAudioProvidersFactory/default N/A N/A
DM Y vendor.qti.hardware.btconfigstore@2.0::IBTConfigStore/default N/A N/A
DM Y vendor.qti.hardware.cacert@1.0::IService/default 0/1 2077
DM Y vendor.qti.hardware.data.latency@1.0::ILinkLatency/default N/A N/A
DM Y vendor.qti.hardware.dsp@1.0::IDspService/dspservice N/A N/A
DM Y vendor.qti.hardware.fm@1.0::IFmHci/default N/A N/A
DM Y vendor.qti.hardware.perf@2.0::IPerf/default N/A N/A
DM Y vendor.qti.hardware.perf@2.1::IPerf/default N/A N/A
DM Y vendor.qti.hardware.perf@2.2::IPerf/default N/A N/A
DM Y vendor.qti.hardware.qseecom@1.0::IQSEECom/default N/A N/A
DM Y vendor.qti.hardware.radio.am@1.0::IQcRilAudio/slot1 N/A N/A
DM Y vendor.qti.hardware.radio.ims@1.0::IImsRadio/imsradio0 N/A N/A
DM Y vendor.qti.hardware.radio.ims@1.1::IImsRadio/imsradio0 N/A N/A
DM Y vendor.qti.hardware.radio.ims@1.2::IImsRadio/imsradio0 N/A N/A
DM Y vendor.qti.hardware.radio.ims@1.3::IImsRadio/imsradio0 N/A N/A
DM Y vendor.qti.hardware.radio.ims@1.4::IImsRadio/imsradio0 N/A N/A
DM Y vendor.qti.hardware.radio.ims@1.5::IImsRadio/imsradio0 N/A N/A
DM Y vendor.qti.hardware.radio.ims@1.6::IImsRadio/imsradio0 N/A N/A
DM Y vendor.qti.hardware.radio.lpa@1.0::IUimLpa/UimLpa0 N/A N/A
DM Y vendor.qti.hardware.radio.qcrilhook@1.0::IQtiOemHook/oemhook0 N/A N/A
DM Y vendor.qti.hardware.radio.qtiradio@1.0::IQtiRadio/slot1 N/A N/A
DM Y vendor.qti.hardware.radio.qtiradio@2.0::IQtiRadio/slot1 N/A N/A
DM Y vendor.qti.hardware.radio.qtiradio@2.1::IQtiRadio/slot1 N/A N/A
DM Y vendor.qti.hardware.radio.qtiradio@2.2::IQtiRadio/slot1 N/A N/A
DM Y vendor.qti.hardware.radio.qtiradio@2.3::IQtiRadio/slot1 N/A N/A
DM Y vendor.qti.hardware.radio.qtiradio@2.4::IQtiRadio/slot1 N/A N/A
DM Y vendor.qti.hardware.radio.uim@1.0::IUim/Uim0 N/A N/A
DM Y vendor.qti.hardware.radio.uim@1.1::IUim/Uim0 N/A N/A
DM Y vendor.qti.hardware.radio.uim@1.2::IUim/Uim0 N/A N/A
DM Y vendor.qti.hardware.radio.uim_remote_client@1.0::IUimRemoteServiceClient/uimRemoteClient0 N/A N/A
DM Y vendor.qti.hardware.radio.uim_remote_server@1.0::IUimRemoteServiceServer/uimRemoteServer0 N/A N/A
DM Y vendor.qti.hardware.wifi.supplicant@2.0::ISupplicantVendor/default N/A N/A
DM Y vendor.qti.hardware.wifi.supplicant@2.1::ISupplicantVendor/default N/A N/A
DM Y vendor.qti.hardware.wifi.supplicant@2.2::ISupplicantVendor/default N/A N/A
DM Y vendor.qti.ims.callinfo@1.0::IService/default N/A N/A
DM Y vendor.qti.ims.factory@1.0::IImsFactory/default N/A N/A
DM Y vendor.qti.imsrtpservice@3.0::IRTPService/imsrtpservice N/A N/A
| All HIDL interfaces getService() has ever returned as a passthrough interface;
| PIDs / processes shown below might be inaccurate because the process
| might have relinquished the interface or might have died.
| The Server / Server CMD column can be ignored.
| The Clients / Clients CMD column shows all process that have ever dlopen'ed
| the library and successfully fetched the passthrough implementation.
VINTF R Interface Thread Use Server Clients
FC ? android.hardware.audio.effect@6.0::IEffectsFactory/default N/A N/A 1400
FC ? android.hardware.audio@6.0::IDevicesFactory/default N/A N/A 1400
FC ? android.hardware.bluetooth.audio@2.0::IBluetoothAudioProvidersFactory/default N/A N/A 1400
FC ? android.hardware.bluetooth@1.0::IBluetoothHci/default N/A 2261 2261
FC ? android.hardware.camera.provider@2.4::ICameraProvider/legacy/0 N/A 871 871
FC ? android.hardware.gatekeeper@1.0::IGatekeeper/default N/A 719 719
FC ? android.hardware.gnss@2.1::IGnss/default N/A 873 873
FC ? android.hardware.graphics.allocator@2.0::IAllocator/default N/A 874 874
DM,FC ? android.hardware.graphics.mapper@2.1::IMapper/default N/A N/A 877 1426 1676 1905 2368 3284 3344 3370
FC ? android.hardware.memtrack@1.0::IMemtrack/default N/A 880 880
FC ? android.hardware.sensors@1.0::ISensors/default N/A 882 882
FC ? android.hardware.soundtrigger@2.1::ISoundTriggerHw/default N/A N/A 1400
X ? vendor.qti.gnss@4.0::ILocHidlGnss/gnss_vendor N/A 873 873
X ? vendor.qti.hardware.bluetooth_audio@2.0::IBluetoothAudioProvidersFactory/default N/A 1400 1400
X ? vendor.qti.hardware.bluetooth_audio@2.1::IBluetoothAudioProvidersFactory/default N/A 1400 1400
X ? vendor.qti.hardware.btconfigstore@2.0::IBTConfigStore/default N/A 2261 2261
X ? vendor.qti.hardware.fm@1.0::IFmHci/default N/A 2261 2261
X ? vendor.qti.hardware.qseecom@1.0::IQSEECom/default N/A 360 360
| All available HIDL passthrough implementations (all -impl.so files).
| These may return subclasses through their respective HIDL_FETCH_I* functions.
VINTF R Interface Thread Use Server Clients
X ? android.hardware.audio.effect@2.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? android.hardware.audio.effect@4.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? android.hardware.audio.effect@5.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? android.hardware.audio.effect@6.0::I*/* (/vendor/lib/hw/) N/A N/A 1400
X ? android.hardware.audio@2.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? android.hardware.audio@4.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? android.hardware.audio@5.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? android.hardware.audio@6.0::I*/* (/vendor/lib/hw/) N/A N/A 1400
X ? android.hardware.bluetooth.audio@2.0::I*/* (/vendor/lib/hw/) N/A N/A 1400
X ? android.hardware.bluetooth@1.0::I*/* (/vendor/lib/hw/) (-qti) N/A N/A 2261
X ? android.hardware.camera.provider@2.4::I*/* (/vendor/lib/hw/) N/A N/A 871
X ? android.hardware.gatekeeper@1.0::I*/* (/vendor/lib/hw/) (-qti) N/A N/A 719
X ? android.hardware.gnss@2.1::I*/* (/vendor/lib/hw/) (-qti) N/A N/A 873
X ? android.hardware.graphics.allocator@2.0::I*/* (/vendor/lib/hw/) N/A N/A 874
X ? android.hardware.graphics.mapper@2.0::I*/* (/vendor/lib/hw/) (-2.1) N/A N/A 877 1230 1426 1676 1887 1905 2001 2077 2138 2141 2142 2189 2338 2368 2546 2753 2799 2865 2941 3162 3243 3261 3284 3320 3344 3370 3433 3451 3472 3497 3542 3562 3583 3606 3718
X ? android.hardware.keymaster@3.0::I*/* (/vendor/lib/hw/) (-qti) N/A N/A
X ? android.hardware.memtrack@1.0::I*/* (/vendor/lib/hw/) N/A N/A 880
X ? android.hardware.renderscript@1.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? android.hardware.sensors@1.0::I*/* (/vendor/lib/hw/) N/A N/A 882
X ? android.hardware.soundtrigger@2.1::I*/* (/vendor/lib/hw/) N/A N/A 1400
X ? android.hidl.memory@1.0::I*/* (/apex/com.android.vndk.v30/lib/hw/) N/A N/A
X ? android.hidl.memory@1.0::I*/* (/system/lib/hw/) N/A N/A
X ? com.dsi.ant@1.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? vendor.qti.gnss@4.0::I*/* (/vendor/lib/hw/) N/A N/A 873
X ? vendor.qti.hardware.alarm@1.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? vendor.qti.hardware.bluetooth_audio@2.0::I*/* (/vendor/lib/hw/) N/A N/A 1400
X ? vendor.qti.hardware.bluetooth_audio@2.1::I*/* (/vendor/lib/hw/) N/A N/A 1400
X ? vendor.qti.hardware.btconfigstore@1.0::I*/* (/vendor/lib/hw/) N/A N/A
X ? vendor.qti.hardware.btconfigstore@2.0::I*/* (/vendor/lib/hw/) N/A N/A 2261
X ? vendor.qti.hardware.fm@1.0::I*/* (/vendor/lib/hw/) N/A N/A 2261
X ? vendor.qti.hardware.qseecom@1.0::I*/* (/vendor/lib/hw/) N/A N/A 360
* `ls /sys/class/leds /sys/class/lights /sys/class/backlight`
/data/data # ls /sys/class/leds /sys/class/lights /sys/class/backlight ls: /sys/class/lights: No such file or directory ls: /sys/class/backlight: No such file or directory flashlight keyboard_light lcd-backlight lcd-backlight2 mmc0:: mmc1:: red vibrator
- lightsctl
130|:/data/data # lightsctl
Segmentation fault
- getprop ro.vendor.build.fingerprint
:/data/data # getprop ro.vendor.build.fingerprint
Cat/S22FLIP/S22FLIP:11/RKQ1.210416.002/LTE_S02113.11_N_S22Flip_0.028.00:user/release-keys
WRT LID, I'll just implement to go to sleep when lid closes, and to wake up when lid opens, ok?
Yes, that would be great! Would you mind linking the diff so that I can take a look to understand what's going on?
I think it's not in the release yet, can you check if lightsctl-aidl
says something?
sh: lightsctl-aidl: inaccessible or not found
Install this apk https://phh.freeboxos.fr:38503/share/SJvNAUCagQknoF-C/TrebleApp.apk then go in treble settings (don't do nothing) and test lid and sure i'll share the patch once i confirmed it's working
No change after installing the apk
Can I provide you with some debugging output?
Yup do adb logcat -b all -d > log.txt
and attach it
24 mai 2022 23:15:55 Jesse Osiecki @.***>:
No change after installing the apk
Can I provide you with some debugging output?
— Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/2295#issuecomment-1136439769], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OTP6NVVV3MAHVD4E5DVLVBIVANCNFSM5UPQD5IQ]. You are receiving this because you were mentioned.[Image de pistage][https://github.com/notifications/beacon/AAAA4OSYJQFE4JHOXJ5CRDLVLVBIVA5CNFSM5UPQD5I2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIO6LDWI.gif]
Merry Christmas log.txt
I daresay this is beautiful, it's working as expected
please let me know how I can buy you a beer/wine/coffee in appreciation
For the beer, that'll be https://github.com/sponsors/phhusson/
For the other issues, please open individual tickets (do make a ticket about T9 input, we can discuss even though it's borderline offtopic)
Thanks doubly so! I will make some tickets today
Hello guys, I was trying to apply the fix to my own CAT S22 but the apk isn't downloading for me. Can one of you provide that apk file, thanks!!
I believe this should be part of the latest releases since sometime ealier this year. E.g. you don't need to download anything, just update/flash a recent build of the GSI. What version of the app and GSI are you running?
Im actually running Lineage OS 19.1 on Android 12 which is based from Phh's latest gsi on my s22 CAT. So the problem I get is that the t-mobile symbol is on the tinnier screen but dimmed and it looks like y'all found a fix to either turn off the screen or customize it with that APK. Or maybe its somewhere in the settings already where you can fix this?
I think this issue is what you're looking for, not the one you're commenting in. Happy to help if it doesn't make sense (scroll to the bottom for the resolution) https://github.com/phhusson/treble_experimentations/issues/2338
ah thanks, totally wrong topic opps..
This is super helpful! I plan on installing GSI and then this apk on my cat s22.
Did you end up needing to install anything else for full functionality of the cat s22? Do you still like running lineage?
I tried installing GSI last night, but I'm getting an error with the partition that there apparently is not enough room
I believe it's the recovery partition? You need to delete it. All is pretty good on the phone. It's worth noting that @phhusson has moved development to https://github.com/TrebleDroid/treble_experimentations/releases which are more up to date
Thanks Jesse. I'm excited to learn about this, but am running into some trouble. Could you help point me in the right direction?
When I try to flash the system.img to "system" I get the following error 'partition table doesn't exist'
I've tried researchign it, but am having trouble finding out how to get my paritions right. I did delete the recovery partition already
don't delete recovery partition, you will not able to boot into fastbootd (required to flash image). What is needed is to delete product partition, using "fastboot delete-logical-partition product" after that you can flash system. If you have already deleted recovery you need to reflash it see this https://xdaforums.com/t/cat-s22-flip-revert-to-stock.4626603/post-89019345
I've got a CAT S22 Flip phone, which as the name suggests has a flip up touch screen. When opening the flip in the stock firmware the screen turns on, and when closing it turns off, so in a sense it acts as the power button.
I've done a grab of /dev/input/event*, the hall_sensor is what I suspect is operating the lid function (hall effect sensor)
however no events stream out when opening and closing the device. I may try to re-install the stock firmware if I can find it, to compare output.