[Q] CM7 final camera not working - EVO 4G Q&A, Help & Troubleshooting
I've had this issue before, and it fixed itself. Can't seem to get it to work now..
My camera works fine in most apps (i.e. barcode scanner/etc) - but the actual camera app doesn't work. It brings up the preview screen, but the controls are missing, and attempting to navigate away from the camera app (home button of back button) gives a FC.
In my attempt to fix this, I've factory reset (no dice). I've also switched back to a sense rom - camera works fine. restore nandroid w/ cm7, camera's broken again
Has anyone seen this and know how to fix it? I have a toddler, so the camera is very important to me.. It was working fine a few days back.. and now doesn't.. I've also tried two different kernels (the stock one that comes w/ cm7, and savagezen 1.0)
I'm attaching the logcat below -
Code:
D/QualcommCameraHardware( 140): createInstance: E
D/QualcommCameraHardware( 140): Storing the current target type as 1
D/QualcommCameraHardware( 140): constructor EX
D/QualcommCameraHardware( 140): startCamera E
D/QualcommCameraHardware( 140): loading liboemcamera at 0xb000dc88
I/QualcommCameraHardware( 140): Set main cam
I/QualcommCameraHardware( 140): Open Device node : /dev/msm_camera/control1
I/QualcommCameraHardware( 140): startCamera: camsensor name ov8810, flash 1
D/QualcommCameraHardware( 140): startCamera X
D/QualcommCameraHardware( 140): initDefaultParameters E
D/QualcommCameraHardware( 140): product 3
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 1, length 32
E/QualcommCameraHardware( 140): native_access_parm: error (No such file or directory): fd 15, type 1, length 32, status 0
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 64, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 65, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 66, length 4
D/QualcommCameraHardware( 140): requested preview size 768 x 432
D/QualcommCameraHardware( 140): requested picture size 3264 x 2448
D/QualcommCameraHardware( 140): value:31000, country value:310, country code:310
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 21, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 14, length 4
D/QualcommCameraHardware( 140): setFlash 0
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 49, length 4
I/QualcommCameraHardware( 140): Set zoom=0 30
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 2, length 4
I/QualcommCameraHardware( 140): Setting Contrast is 5
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 6, length 4
I/QualcommCameraHardware( 140): Setting Brightness is 3
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 7, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 12, length 4
D/QualcommCameraHardware( 140): not defined touch-focus yet, or AP without touch-focus function
I/QualcommCameraHardware( 140): Before Setting coordinate x:384 y:216
I/QualcommCameraHardware( 140): Setting coordinate x:2 y:2
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 60, length 28
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 26, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 62, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 8, length 4
D/QualcommCameraHardware( 140): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
D/QualcommCameraHardware( 140): initDefaultParameters X
D/QualcommCameraHardware( 140): createInstance: X created hardware=0x19c90
D/QualcommCameraHardware( 140): requested preview size 640 x 480
D/QualcommCameraHardware( 140): requested picture size 3264 x 2448
D/QualcommCameraHardware( 140): value:31000, country value:310, country code:310
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 21, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 14, length 4
D/QualcommCameraHardware( 140): setFlash 0
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 49, length 4
I/QualcommCameraHardware( 140): Set zoom=0 30
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 2, length 4
I/QualcommCameraHardware( 140): Setting Contrast is 5
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 6, length 4
I/QualcommCameraHardware( 140): Setting Brightness is 3
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 7, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 12, length 4
D/QualcommCameraHardware( 140): not defined touch-focus yet, or AP without touch-focus function
I/QualcommCameraHardware( 140): Before Setting coordinate x:320 y:240
I/QualcommCameraHardware( 140): Setting coordinate x:2 y:2
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 60, length 28
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 26, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 62, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 8, length 4
D/QualcommCameraHardware( 140): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
D/QualcommCameraHardware( 140): requested preview size 640 x 480
D/QualcommCameraHardware( 140): requested picture size 3264 x 2448
D/QualcommCameraHardware( 140): value:31000, country value:310, country code:310
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 21, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 14, length 4
D/QualcommCameraHardware( 140): setFlash 1
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 49, length 4
I/QualcommCameraHardware( 140): Set zoom=0 30
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 2, length 4
I/QualcommCameraHardware( 140): Setting Contrast is 5
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 6, length 4
I/QualcommCameraHardware( 140): Setting Brightness is 3
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 7, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 12, length 4
D/QualcommCameraHardware( 140): not defined touch-focus yet, or AP without touch-focus function
I/QualcommCameraHardware( 140): Before Setting coordinate x:320 y:240
I/QualcommCameraHardware( 140): Setting coordinate x:2 y:2
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 60, length 28
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 26, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 62, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 8, length 4
D/QualcommCameraHardware( 140): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
D/QualcommCameraHardware( 140): startPreview E
D/QualcommCameraHardware( 140): initPreview E: preview size=640x480
D/QualcommCameraHardware( 140): initPreview E: preview size=640x480 videosize = 640 x 480
D/QualcommCameraHardware( 140): initPreview cam_mode 0
D/QualcommCameraHardware( 140): initPreview : preview size=640x480 videosize = 640 x 480
I/QualcommCameraHardware( 140): pmem pool /dev/pmem_adsp ioctl(fd = 38, PMEM_GET_SIZE) is 2097152
D/QualcommCameraHardware( 140): mBufferSize=460800, mAlignedBufferSize=524288
E/QualcommCameraHardware( 140): num_buffers = 4
I/QualcommCameraHardware( 140): register_buf: camfd = 36, reg = 0 buffer = 0x41a7e000
I/QualcommCameraHardware( 140): register_buf: camfd = 36, reg = 0 buffer = 0x41afe000
I/QualcommCameraHardware( 140): register_buf: camfd = 36, reg = 0 buffer = 0x41b7e000
I/QualcommCameraHardware( 140): register_buf: camfd = 36, reg = 0 buffer = 0x41bfe000
D/QualcommCameraHardware( 140): initREcord E
I/QualcommCameraHardware( 140): pmem pool /dev/pmem_adsp ioctl(fd = 41, PMEM_GET_SIZE) is 4194304
D/QualcommCameraHardware( 140): mBufferSize=460800, mAlignedBufferSize=524288
E/QualcommCameraHardware( 140): num_buffers = 8
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 0 buffer = 0x421f8000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 0 buffer = 0x42278000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 0 buffer = 0x422f8000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 0 buffer = 0x42378000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 0 buffer = 0x423f8000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 0 buffer = 0x42478000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 0 buffer = 0x424f8000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 0 buffer = 0x42578000
D/QualcommCameraHardware( 140): initRecord : record heap , video buffers buffer=1109360640 fd=41 y_off=0 cbcr_off=307200
D/QualcommCameraHardware( 140): initRecord : record heap , video buffers buffer=1109884928 fd=41 y_off=0 cbcr_off=307200
D/QualcommCameraHardware( 140): initRecord : record heap , video buffers buffer=1110409216 fd=41 y_off=0 cbcr_off=307200
D/QualcommCameraHardware( 140): initRecord : record heap , video buffers buffer=1110933504 fd=41 y_off=0 cbcr_off=307200
D/QualcommCameraHardware( 140): initRecord : record heap , video buffers buffer=1111457792 fd=41 y_off=0 cbcr_off=307200
D/QualcommCameraHardware( 140): initRecord : record heap , video buffers buffer=1111982080 fd=41 y_off=0 cbcr_off=307200
D/QualcommCameraHardware( 140): initRecord : record heap , video buffers buffer=1112506368 fd=41 y_off=0 cbcr_off=307200
D/QualcommCameraHardware( 140): initRecord : record heap , video buffers buffer=1113030656 fd=41 y_off=0 cbcr_off=307200
D/QualcommCameraHardware( 140): initREcord X
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 1, length 32
D/QualcommCameraHardware( 140): initpreview before cam_frame thread carete , video frame buffer=1110933504 fd=41 y_off=0 cbcr_off=307200
D/QualcommCameraHardware( 140): initPreview X: 1
D/QualcommCameraHardware( 140): frame_thread E
D/QualcommCameraHardware( 140): startPreview X
D/QualcommCameraHardware( 140): requested preview size 640 x 480
D/QualcommCameraHardware( 140): requested picture size 3264 x 2448
D/QualcommCameraHardware( 140): value:31000, country value:310, country code:310
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 21, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 15, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 14, length 4
D/QualcommCameraHardware( 140): setFlash 1
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 49, length 4
I/QualcommCameraHardware( 140): Set zoom=0 30
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 2, length 4
I/QualcommCameraHardware( 140): Setting Contrast is 5
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 6, length 4
I/QualcommCameraHardware( 140): Setting Brightness is 3
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 7, length 4
I/QualcommCameraHardware( 140): Setting Saturation is 5
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 11, length 4
I/QualcommCameraHardware( 140): Setting Sharpness is 10
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 9, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 12, length 4
D/QualcommCameraHardware( 140): not defined touch-focus yet, or AP without touch-focus function
I/QualcommCameraHardware( 140): Before Setting coordinate x:320 y:240
I/QualcommCameraHardware( 140): Setting coordinate x:2 y:2
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 60, length 28
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 26, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 62, length 4
D/QualcommCameraHardware( 140): native_access_parm: fd 15, type 8, length 4
D/QualcommCameraHardware( 140): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
D/QualcommCameraHardware( 140): stopPreview: E
D/QualcommCameraHardware( 140): stopPreviewInternal E: 1
I/QualcommCameraHardware( 140): deinitPreview E
D/QualcommCameraHardware( 140): launch_watchdog_thread:
D/QualcommCameraHardware( 140): watchdog_thread_id = 557488
I/QualcommCameraHardware( 140): deinitPreview X
D/QualcommCameraHardware( 140): stopPreviewInternal X: 0
D/QualcommCameraHardware( 140): stopPreview: X
D/QualcommCameraHardware( 140): release E
D/QualcommCameraHardware( 140): deinitRaw E
D/QualcommCameraHardware( 140): deinitRaw X
I/QualcommCameraHardware( 140): register_buf: camfd = 36, reg = 1 buffer = 0x41a7e000
I/QualcommCameraHardware( 140): register_buf: camfd = 36, reg = 1 buffer = 0x41afe000
I/QualcommCameraHardware( 140): register_buf: camfd = 36, reg = 1 buffer = 0x41b7e000
I/QualcommCameraHardware( 140): register_buf: camfd = 36, reg = 1 buffer = 0x41bfe000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 1 buffer = 0x421f8000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 1 buffer = 0x42278000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 1 buffer = 0x422f8000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 1 buffer = 0x42378000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 1 buffer = 0x423f8000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 1 buffer = 0x42478000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 1 buffer = 0x424f8000
I/QualcommCameraHardware( 140): register_buf: camfd = 39, reg = 1 buffer = 0x42578000
D/QualcommCameraHardware( 140): frame_thread X
D/QualcommCameraHardware( 140): watchdog_thread_id = 557488
D/QualcommCameraHardware( 140): release_watchdog_thread: frame_thread_released = 1
D/QualcommCameraHardware( 140): dlclose(libqcamera)
D/QualcommCameraHardware( 140): release X
D/QualcommCameraHardware( 140): void* watchdog(void*), frame_thread_released = 1, cnt = 0
D/QualcommCameraHardware( 140): void* watchdog(void*), exit, frame_thread_released=1
D/QualcommCameraHardware( 140): void release_watchdog_thread(): pthread_join succeeded on watchdog.
D/QualcommCameraHardware( 140): ~QualcommCameraHardware E
D/QualcommCameraHardware( 140): ~QualcommCameraHardware X
Taking a weeklong vacation trip this saturday, so really hoping to fix this prior..
Thanks,
-mark
Try doing a full wipe, again, and flash with the latest gapps.
Is you camera like not showing up, or its got the distortion of the purple-y and green colors? If so, your camera is toast and would have to send the phone in/get a new one.
teh roxxorz said:
Try doing a full wipe, again, and flash with the latest gapps.
Is you camera like not showing up, or its got the distortion of the purple-y and green colors? If so, your camera is toast and would have to send the phone in/get a new one.
Click to expand...
Click to collapse
I did a full wipe. no go. will try the latest gapps.
The camera image shows up (i.e. I can see the preview image in the camera app), but the controls don't show up, and the gallery thumb that's in the corner doesn't show up.. and trying to click anything causes a FC.
-mark
diomark said:
I did a full wipe. no go. will try the latest gapps.
The camera image shows up (i.e. I can see the preview image in the camera app), but the controls don't show up, and the gallery thumb that's in the corner doesn't show up.. and trying to click anything causes a FC.
-mark
Click to expand...
Click to collapse
Alright, let me know what happens.
Fixed the problem. Came down to a corrupted sd card.. (although checking the card didn't find any issues)
Noticed the problem went away when I switched out SD cards. I moved the DCIM/Camera folder, but that wasn't enough. The fix was to delete the DCIM/.thumbnails folder.
-mark
Ah I see. Well glad you were able to fix it and have your camera for your vacation.
Related
Help! Camera crashed
what is the original value for HKLM\SOFTWARE\HTC\Camera\P8\MainCamCaptSize value and HKLM\SOFTWARE\HTC\Camera\P8\MainCamSupportCaptSize? i tweaked it and it messed up the camera. The camera app crashed when i take the photo in sports mode after the tweak
Hi.... here the values: HKLM\SOFTWARE\HTC\Camera\P8\MainCamCaptSize = 64 as decimal HKLM\SOFTWARE\HTC\Camera\P8\MainCamSupportCaptSize = 80 as decimal
Thanks bro!
problem on screen orientation
Hi all, i want to lock the screen orientation in portrait mode. how can i do it in programming?? Thank you
try this, is not too clean sorry: Code: Public Class display 'DEVICEMODE <Runtime.InteropServices.DllImport("coredll.dll")> _ Friend Shared Function ChangeDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet End Function 'Declare Function ChangeDisplaySettingsEx Lib "coredll.dll" (ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet Public Shared Function ChangeDisplayOrientation(ByVal degree As Integer) As String Dim devMode As New devicemodeW() devMode.dmFields = DM_Fields.DM_DISPLAYORIENTATION If degree = 0 Then devMode.dmDisplayOrientation = DMD.DMDO_0 ElseIf degree = 90 Then devMode.dmDisplayOrientation = DMD.DMDO_90 ElseIf degree = 180 Then devMode.dmDisplayOrientation = DMD.DMDO_180 ElseIf degree = 270 Then devMode.dmDisplayOrientation = DMD.DMDO_270 End If Dim ret As CDSRet = ChangeDisplaySettingsEx(Nothing, devMode.Data, IntPtr.Zero, 0, IntPtr.Zero) Return (ret.ToString()) End Function ' from pinvoke.net Public Enum DMD DMDO_0 = 0 DMDO_90 = 1 DMDO_180 = 2 DMDO_270 = 4 End Enum Public Enum DM_Fields DM_DISPLAYORIENTATION = 8388608 DM_DISPLAYQUERYORIENTATION = 16777216 End Enum Public Enum DM_Orient DMORIENT_PORTRAIT = 1 DMORIENT_LANDSCAPE = 2 End Enum ' Flags for ChangeDisplaySettings Enum CDSFlags CDS_VIDEOPARAMETERS = &H20 CDS_RESET = &H40000000 End Enum ' Return values for ChangeDisplaySettings Enum CDSRet DISP_CHANGE_SUCCESSFUL = 0 DISP_CHANGE_RESTART = 1 DISP_CHANGE_FAILED = -1 DISP_CHANGE_BADMODE = -2 DISP_CHANGE_NOTUPDATED = -3 DISP_CHANGE_BADFLAGS = -4 DISP_CHANGE_BADPARAM = -5 End Enum Public Class devicemodeW Inherits SelfMarshalledStruct Private _DM_Orient As DM_Orient Private _DM_Fields As DM_Fields Private _DMD As DMD Public Sub New() MyBase.New(192) dmSize = CUShort(Data.Length) End Sub Public Property dmDeviceName() As String Get Return GetStringUni(0, 64) End Get Set(ByVal value As String) SetStringUni(value, 0, 64) End Set End Property Public Property dmSpecVersion() As UShort Get Return GetUInt16(64) End Get Set(ByVal value As UShort) SetUInt16(64, value) End Set End Property Public Property dmDriverVersion() As UShort Get Return GetUInt16(66) End Get Set(ByVal value As UShort) SetUInt16(66, value) End Set End Property Public Property dmSize() As UShort Get Return GetUInt16(68) End Get Set(ByVal value As UShort) SetUInt16(68, value) End Set End Property Public Property dmDriverExtra() As UShort Get Return GetUInt16(70) End Get Set(ByVal value As UShort) SetUInt16(70, value) End Set End Property Public Property dmFields() As DM_Fields Get 'Return DirectCast(GetUInt32(72), DM_Fields) Return _DM_Fields End Get Set(ByVal value As DM_Fields) _DM_Fields = value SetUInt32(72, CInt(value)) End Set End Property Public Property dmOrientation() As DM_Orient Get 'Return DirectCast(GetInt16(76), DM_Orient) Return _DM_Orient End Get Set(ByVal value As DM_Orient) SetInt16(76, CShort(value)) End Set End Property Public Property dmPaperSize() As Short Get Return GetInt16(78) End Get Set(ByVal value As Short) SetInt16(78, value) End Set End Property Public Property dmPaperLength() As Short Get Return GetInt16(80) End Get Set(ByVal value As Short) SetInt16(80, value) End Set End Property Public Property dmPaperWidth() As Short Get Return GetInt16(82) End Get Set(ByVal value As Short) SetInt16(82, value) End Set End Property Public Property dmScale() As Short Get Return GetInt16(84) End Get Set(ByVal value As Short) SetInt16(84, value) End Set End Property Public Property dmCopies() As Short Get Return GetInt16(86) End Get Set(ByVal value As Short) SetInt16(86, value) End Set End Property Public Property dmDefaultSource() As Short Get Return GetInt16(88) End Get Set(ByVal value As Short) SetInt16(88, value) End Set End Property Public Property dmPrintQuality() As Short Get Return GetInt16(90) End Get Set(ByVal value As Short) SetInt16(90, value) End Set End Property Public Property dmColor() As Short Get Return GetInt16(92) End Get Set(ByVal value As Short) SetInt16(92, value) End Set End Property Public Property dmDuplex() As Short Get Return GetInt16(94) End Get Set(ByVal value As Short) SetInt16(94, value) End Set End Property Public Property dmYResolution() As Short Get Return GetInt16(96) End Get Set(ByVal value As Short) SetInt16(96, value) End Set End Property Public Property dmTTOption() As Short Get Return GetInt16(98) End Get Set(ByVal value As Short) SetInt16(98, value) End Set End Property Public Property dmCollate() As Short Get Return GetInt16(100) End Get Set(ByVal value As Short) SetInt16(100, value) End Set End Property Public Property dmFormName() As String Get Return GetStringUni(102, 64) End Get Set(ByVal value As String) SetStringUni(value, 102, 64) End Set End Property Public Property dmLogPixels() As UShort Get Return GetUInt16(166) End Get Set(ByVal value As UShort) SetUInt16(166, value) End Set End Property Public Property dmBitsPerPel() As UInteger Get Return GetUInt32(168) End Get Set(ByVal value As UInteger) SetUInt32(168, value) End Set End Property Public Property dmPelsWidth() As UInteger Get Return GetUInt32(172) End Get Set(ByVal value As UInteger) SetUInt32(172, value) End Set End Property Public Property dmPelsHeight() As UInteger Get Return GetUInt32(176) End Get Set(ByVal value As UInteger) SetUInt32(176, value) End Set End Property Public Property dmDisplayFlags() As UInteger Get Return GetUInt32(180) End Get Set(ByVal value As UInteger) SetUInt32(180, value) End Set End Property Public Property dmDisplayFrequency() As UInteger Get Return GetUInt32(184) End Get Set(ByVal value As UInteger) SetUInt32(184, value) End Set End Property Public Property dmDisplayOrientation() As DMD Get 'Return DirectCast(GetUInt32(188), DMD) Return _DMD End Get Set(ByVal value As DMD) _DMD = value SetUInt32(188, CInt(value)) End Set End Property End Class Public Class ScreenMode 'DEVICEMODE <Runtime.InteropServices.DllImport("coredll.dll")> _ Friend Shared Function ChangeDisplaySettingsEx(ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet End Function 'Declare Function ChangeDisplaySettingsEx Lib "coredll.dll" (ByVal lpszDeviceName As String, ByVal lpDevMode As Byte(), ByVal hwnd As IntPtr, ByVal dwflags As CDSFlags, ByVal lParam As IntPtr) As CDSRet Public Function ChangeMode(ByVal degree As Integer) As String Dim devMode As New devicemodeW() devMode.dmFields = DM_Fields.DM_DISPLAYORIENTATION If degree = 0 Then devMode.dmDisplayOrientation = DMD.DMDO_0 ElseIf degree = 90 Then devMode.dmDisplayOrientation = DMD.DMDO_90 ElseIf degree = 180 Then devMode.dmDisplayOrientation = DMD.DMDO_180 ElseIf degree = 270 Then devMode.dmDisplayOrientation = DMD.DMDO_270 End If Dim ret As CDSRet = ChangeDisplaySettingsEx(Nothing, devMode.Data, IntPtr.Zero, 0, IntPtr.Zero) Return (ret.ToString()) End Function Public Sub SetLandscape() Try ChangeMode(90) Catch ex As Exception 'MsgBox(ex.ToString) End Try End Sub Public Sub SetPortrait() Try ChangeMode(0) Catch ex As Exception 'MsgBox(ex.ToString) End Try End Sub End Class End Class usage: Code: display.ChangeMode(angle)
i use Win32API to write my app. But , your code is VB. i will try my best to understand it. Thank alessandroame so much =]
logcat question "..Allocate Cursor Window, size = 4096 KB"
Hi i've a question about my logcat entry, which is may affecting battry i thing: Code: D/SyncProvider(11454): match settings D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/NativeCrypto(11342): returned from sslSelect() with result 1, error code 2 D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/NativeCrypto(11342): returned from sslSelect() with result 1, error code 2 D/NativeCrypto(11342): returned from sslSelect() with result 1, error code 2 D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/NativeCrypto(11342): returned from sslSelect() with result 1, error code 2 D/NativeCrypto(11342): returned from sslSelect() with result 1, error code 2 D/NativeCrypto(11342): returned from sslSelect() with result 1, error code 2 D/NativeCrypto(11342): returned from sslSelect() with result 1, error code 2 D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB It really spamming with this "D/CursorWindow(11342): Allocate Cursor Window, size = 4096 KB" is that "OK" (for battery) or not? if not what can i do? Thanks
S-View timeout settings
Is it possible to change the S-View timeout settings? I haven't found any settings for this and would like to extend or disable the timout completely
fg said: Is it possible to change the S-View timeout settings? I haven't found any settings for this and would like to extend or disable the timout completely Click to expand... Click to collapse What timeout are you referring to? Like, how long it takes once you look away?
elesbb said: What timeout are you referring to? Like, how long it takes once you look away? Click to expand... Click to collapse I think that's smart screen (smart stay, smart pause). S-View is the small portion of the display activated by the S-View flip case and visible through the window. Currently it stays on for less than 10 seconds. I can press power or open/close the flap to reactivate temporarily. Ideally I'd like it on for longer (at least a minute), and would prefer the option to have it remain on unless I manually turn it off.
fg said: I think that's smart screen (smart stay, smart pause). S-View is the small portion of the display activated by the S-View flip case and visible through the window. Currently it stays on for less than 10 seconds. I can press power or open/close the flap to reactivate temporarily. Ideally I'd like it on for longer (at least a minute), and would prefer the option to have it remain on unless I manually turn it off. Click to expand... Click to collapse Where can i find that in the settings? I don't use the Flip cover but im sure through smali its customizable.
elesbb said: Where can i find that in the settings? I don't use the Flip cover but im sure through smali its customizable. Click to expand... Click to collapse There are no obvious settings, that's what I'm trying to find.
dmesg when closing the flip cover <6>[ 7612.792632] [SSP]: MSG From MCU - PUP <6>[ 7612.792632] PCK <6>[ 7612.792663] PST1 83 <6>[ 7612.792663] P4 <6>[ 7612.792663] Close 73 60 <6>[ 7612.792663] ssp_sensorhub_list: 1, 1, 14, 1 <6>[ 7612.792785] ssp_sensorhub_read: 1, 1, 14, 1 <6>[ 7612.797637] cypress_touchkey 16-0020: flip_cover_mode_enable 1 <6>[ 7612.797668] [Touchkey] IC id 20065 <6>[ 7612.811950] [NACB:6]< <6>[ 7612.816009] [CHKRA:6]> <6>[ 7612.816009] [0ns]READ :01 15 00 80 03 01 04 00 00 51 00 09 00 14 06 00 <6>[ 7612.816772] Write: 01 0c 00 00 03 01 00 f4 09 4f 00 00 00 <6>[ 7612.827972] [NACB:6]< <6>[ 7612.832000] [CHKRA:6]> <6>[ 7612.832000] [30518ns]READ :01 21 00 80 03 01 02 f4 09 4f 00 15 00 02 04 00 <7>[ 7612.907165] [keys_no_delay] flip_cover_work : 0 <6>[ 7612.909606] cypress_touchkey 16-0020: [Touchkey] flip_mode Enabled <6>[ 7612.909637] cypress_touchkey 16-0020: glove_mode_enable 0 <6>[ 7612.909698] cypress_touchkey 16-0020: [Touchkey] Enabled flip cover mode. <6>[ 7612.909698] synaptics_rmi4_i2c 3-0020: cmd_store: Command = clear_cover_mode,2 <6>[ 7612.909728] synaptics_rmi4_i2c 3-0020: synaptics_rmi4_glove_mode_enables: [02]: only flip cover enable <6>[ 7612.910217] cypress_touchkey 16-0020: flip_cover_mode_enable 1 <6>[ 7612.910247] [Touchkey] IC id 20065 <6>[ 7613.019653] cypress_touchkey 16-0020: [Touchkey] flip_mode Enabled <6>[ 7613.019714] cypress_touchkey 16-0020: glove_mode_enable 0 <6>[ 7613.019744] synaptics_rmi4_i2c 3-0020: cmd_store: Command = clear_cover_mode,3 <6>[ 7613.019775] cypress_touchkey 16-0020: [Touchkey] Enabled flip cover mode. <6>[ 7613.019775] synaptics_rmi4_i2c 3-0020: synaptics_rmi4_glove_mode_enables: [03]: only clear cover enable <6>[ 7613.021301] set_freq_limit: 0x2 1890000, min 1890000, max 1890000 <6>[ 7613.119903] synaptics_rmi4_i2c 3-0020: [0][P] 0x06 <6>[ 7613.119964] set_freq_limit: 0x1 1134000, min 1890000, max 1890000 <6>[ 7613.120147] cypress_touchkey 16-0020: glove_mode_enable 0 <6>[ 7613.120178] cypress_touchkey 16-0020: [Touchkey] Enabled flip cover mode. <6>[ 7613.226928] synaptics_rmi4_i2c 3-0020: [0][R] 0x00 M[9] V[55] <6>[ 7613.300628] brightness_control brightness_level : 98, candela : 119, auto : 0 <6>[ 7613.318298] set_freq_limit: 0x1 810000, min 1890000, max 1890000 <6>[ 7613.331634] mipi_samsung_disp_backlight 122 <6>[ 7613.331725] brightness_control brightness_level : 119, candela : 143, auto : 0 <6>[ 7613.364898] mipi_samsung_disp_backlight 143 <6>[ 7613.518279] set_freq_limit: 0x1 -1, min 1890000, max 1890000 <6>[ 7613.779937] [NACB:6]< <6>[ 7613.783965] [CHKRA:6]> <6>[ 7613.783996] [30518ns]READ :01 15 00 80 03 01 04 00 00 51 00 09 00 14 06 00 <6>[ 7613.784728] Write: 01 0c 00 00 03 01 00 f5 09 4f 00 00 00 <6>[ 7613.795959] [NACB:6]< <6>[ 7613.799987] [CHKRA:6]> <6>[ 7613.799987] [0ns]READ :01 21 00 80 03 01 02 f5 09 4f 00 15 00 02 04 00 logcat | grep -i cover D/SContextService( 765): resetSContextService() : service = Flip Cover Action V/CAE ( 765): enable(FlipCoverActionRunner.java:109) I/CAE ( 765): showListenerList(ContextAwareService.java:228) - Listener : and[email protected]44a82300, Service : FLIP_COVER_ACTION D/SContextService( 765): addSContextService() : service = Flip Cover Action D/SContextService( 765): Listener : [email protected], Service : Flip Cover Action D/SContextManager( 765): .registerListener : service=Flip Cover Action D/CAE ( 765): display(ContextProvider.java:430) - ================= FLIP_COVER_ACTION ================= D/SContextService( 765): sendEvent() : event = Flip Cover Action D/SContextUpdateContext( 765): reportMessage : Service : Flip Cover Action D/SContextService( 765): updateSContext() : event = Flip Cover Action D/InputReader( 765): setFlipCoverTouchEnabled/clearCoverOpen/adjustTouch: 0,0, 0 D/MotionRecognitionService( 765): [ FLIP_COVER_ACTION_CLOSE ] D/MotionRecognitionService( 765): setFlipCoverTouchEnabled to false D/InputReader( 765): tsp/touchkey sysfs don't update because setting value is not enabled or clear cover closed, not flip cover. I/CAE ( 765): showListenerList(ContextAwareService.java:228) - Listener : and[email protected]44a82300, Service : FLIP_COVER_ACTION D/SContextService( 765): Listener : [email protected], Service : Flip Cover Action V/CAE ( 765): disable(FlipCoverActionRunner.java:122) D/SContextService( 765): removeSContextService() : service = Flip Cover Action D/SContextManager( 765): .unregisterListener : service =Flip Cover Action D/PhoneStatusBarView( 1129): marqueeStatusBar:24, mClearCover:102 logcat | grep -i cover with cover closed, activating s-view with the power button V/WindowManager( 765): rotationForOrientationLw(orient=-1, last=0); user=0 sensorRotation=-1 isCoverOpen=false mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false D/GestureService( 1651): clearCoverChangeReceiver: onReceive - com.samsung.cover.OPEN D/GestureService( 1651): bClearCoverOpened: false D/PhoneApp( 1319): receive isCoverOpen : false V/SmartFaceService( 765): onReceive: com.samsung.cover.OPEN E/SmartFaceService( 765): mClearCoverOpened: false D/PowerManagerService( 765): [api] mCoverIntentReceiver : mIsCoverClosed = true V/WindowManager( 765): rotationForOrientationLw(orient=1, last=0); user=0 sensorRotation=-1 isCoverOpen=false mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false D/PhoneStatusBarView( 1129): clear cover closed : 102 D/PhoneStatusBarView( 1129): marqueeStatusBar:12, mClearCover:102 I/CAE ( 765): showListenerList(ContextAwareService.java:228) - Listener : and[email protected]43339320, Service : FLIP_COVER_ACTION D/SContextService( 765): Listener : [email protected], Service : Flip Cover Action V/CAE ( 765): disable(FlipCoverActionRunner.java:122) D/SContextService( 765): removeSContextService() : service = Flip Cover Action D/SContextManager( 765): .unregisterListener : service =Flip Cover Action D/PhoneStatusBarView( 1129): marqueeStatusBar:6, mClearCover:102
For anyone looking, I haven't looked further for solutions.
Not really wanting to bump this older thread, but looking for a solution to this for my Galaxy S5 for this same issue and haven't found anything...
[Test] Need some registry values
Hi! I wanna run some tests and i need some registry values under HKEY_LOCAL_MACHINE\System\Touch\Buttons What i need is the keys and the values(better if the device is 4.7" or more) Thanks
content of "Buttons" from 950XL "0" key String = Name, Value = Back Integer = VKey, Value = 27 "1" key String = Name, Value = Start Integer = VKey, Value = 113 "2" key String = Name, Value = Search Integer = VKey, Value = 114 Integer = Count, Value = 3 Integer = Duration, Value = 20 Integer = Intensity, Value = 100 Integer = Vibrate, Value = 1
For 640xl., All the values are same...except, Duration(value=41) Intensity(value=99) previously i disabled vibration for navigation keys under touch and gestures settings so, Vibrate(value=0)
dxdy said: content of "Buttons" from 950XL "0" key String = Name, Value = Back Integer = VKey, Value = 27 "1" key String = Name, Value = Start Integer = VKey, Value = 113 "2" key String = Name, Value = Search Integer = VKey, Value = 114 Integer = Count, Value = 3 Integer = Duration, Value = 20 Integer = Intensity, Value = 100 Integer = Vibrate, Value = 1 Click to expand... Click to collapse Sai Chrisna said: For 640xl., All the values are same...except, Duration(value=41) Intensity(value=99) previously i disabled vibration for navigation keys under touch and gestures settings so, Vibrate(value=0) Click to expand... Click to collapse Intensity around 50 saves some battery