[ONE Original Android Development] tofu:
Hi there! V -gesture for torch gets detected (phone vibrates every time), but torch doesn't light up until I either press the power off button once or make > -gesture (or another gesture).

However, when my phone is connected via usb to my computer in order to make a logcat, the V -gesture lights up the torch every time.

I did see a punch of erros though in the logcat triggered by the V -gesture. Are they of any help? Anyone else facing the same issue?

-------

02-18 13:33:00.756 4523 5310 I qti_sensors_hal: TMG-3993 IR_Gesture & Proximity: batch 1000.00 inf

02-18 13:33:00.757 4523 5310 I qti_sensors_hal: TMG-3993 IR_Gesture & Proximity: activate=1

02-18 13:33:00.863 4523 4523 I qti_sensors_hal: TMG-3993 IR_Gesture & Proximity: activate=0

02-18 13:33:00.901 4523 4684 W LegacyMetadataMapper: mapScalerStreamConfigs - failed to find any preview size matching JPEG aspect ratio 1.3487179

02-18 13:33:00.910 3282 4607 I CameraFlashlight: Opening camera 0

02-18 13:33:00.911 3282 4607 E QCamera2HWI: [KPI Perf] int qcamera::QCamera2HardwareInterface::openCamera(hw_device_t**): E PROFILE_OPEN_CAMERA camera id 0

02-18 13:33:00.925 3288 1088 E hdr : Session id 0x1 started

02-18 13:33:00.980 3282 4607 E mm-jpeg-intf: mm_jpeg_init:1746] Launch jobmgr thread rc 0

02-18 13:33:00.980 3282 4607 E mm-jpeg-intf: Max picture size 4208 x 3120, WorkBufSize = 19869696

02-18 13:33:00.984 3282 4607 E qomx_image_core: OMX_Init:94] Complete 2

02-18 13:33:00.985 3282 4607 E QCameraHWI_Mem: int qcamera::QCameraMemory::alloc(int, int, int) : No memory pool available

02-18 13:33:00.988 3282 4607 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(int, int, int, int): E minFps = 7500, maxFps = 30000 , vid minFps = 7500, vid maxFps = 30000

02-18 13:33:00.989 3282 4607 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(int, int, int, int): Setting preview fps range 7500,30000

02-18 13:33:00.989 3282 4607 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(int, int, int, int): Updated: minFps = 7500, maxFps = 30000 , vid minFps = 7500, vid maxFps = 30000

02-18 13:33:00.993 3282 4607 E QCameraParameters: int32_t qcamera::QCameraParameters::enableFlash(bool, bool):Wrong saved led mode

02-18 13:33:01.007 3282 4607 E QCamera2HWI: [KPI Perf] static int qcamera::QCamera2HardwareInterface::start_preview(camera_device*): E PROFILE_START_PREVIEW

02-18 13:33:01.010 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemory::alloc(int, int, int) : No memory pool available

02-18 13:33:01.014 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemory::alloc(int, int, int) : No memory pool available

02-18 13:33:01.030 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemory::alloc(int, int, int) : No memory pool available

02-18 13:33:01.036 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.036 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.037 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.037 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.038 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.038 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.047 3282 1081 E QCameraParameters: int qcamera::QCameraParameters::getPreviewHalPixelFormat() const: format 17

02-18 13:33:01.126 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.126 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.126 3282 1081 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.154 3282 1121 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.154 3282 1121 E QCameraHWI_Mem: int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!

02-18 13:33:01.156 3282 1081 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(const qcamera::QCameraParameters&): FpsRange Values:(7500, 30000)

02-18 13:33:01.156 3282 1081 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(const qcamera::QCameraParameters&): Requested FpsRange Values:(7500, 30000)

02-18 13:33:01.156 3282 1081 E QCameraParameters: bool qcamera::QCameraParameters::UpdateHFRFrameRate(const qcamera::QCameraParameters&): CameraParameters - : minFps = 7500, maxFps = 30000

02-18 13:33:01.156 3282 1081 E QCameraParameters: bool qcamera::QCameraParameters::UpdateHFRFrameRate(const qcamera::QCameraParameters&): Requested params - : minFps = 7500, maxFps = 30000

02-18 13:33:01.157 3282 1081 E QCameraParameters: bool qcamera::QCameraParameters::UpdateHFRFrameRate(const qcamera::QCameraParameters&): prevHfrMode - 0, currentHfrMode = 0

02-18 13:33:01.157 3282 1081 E QCameraParameters: HFR mode is OFF

02-18 13:33:01.157 3282 1081 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(const qcamera::QCameraParameters&): UpdateHFRFrameRate 0

02-18 13:33:01.157 3282 1081 E QCameraParameters: int32_t qcamera::QCameraParameters::setPreviewFpsRange(const qcamera::QCameraParameters&): No change in FpsRange

02-18 13:33:01.157 3282 1081 E QCameraParameters: int32_t qcamera::QCameraParameters::setSnapshotHDR(const qcamera::QCameraParameters&) :E 0. Snapshot HDR set to: off

02-18 13:33:01.157 3282 1081 E QCameraParameters: int32_t qcamera::QCameraParameters::setSnapshotHDR(const qcamera::QCameraParameters&) :X 3. Snapshot HDR set to: prev_str off, prop off

02-18 13:33:01.162 3282 4607 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=2

02-18 13:33:01.269 3282 1112 E QCamera2HWI: [KPI Perf] static void qcamera::QCamera2HardwareInterface::preview_stream_cb_routine(mm_camera_super_buf_t*, qcamera::QCameraStream*, void*) : PROFILE_FIRST_PREVIEW_FRAME

02-18 13:33:01.452 4523 4751 D BluetoothManagerService: Message: 401