Guest TigTex Posted June 5, 2011 Report Posted June 5, 2011 (edited) It uses a modified source. Blade + mooncake files. That's the source that I need, it makes the touchscreen work also. sebastian404 made one similar to that https://github.com/sebastian404/blade-kernel but touchscreen won't work like all the others. I bet that msm_ts.c needs to be modified If they had respected the GPL, we wouldn't be having this trouble right now... i'm using this config right now, touchscreen doesnt work (check attachment)test1.config.txt Edited June 5, 2011 by TigTex
Guest deadlink Posted June 6, 2011 Report Posted June 6, 2011 (edited) I wrote a simple script to compare configs. I think many will be useful. And i found how to make the touchscreen work without editing msm_ts. If possible, lay out the sources later. A tool for comparing configs by deadlink Upd: updated link Edited June 6, 2011 by deadlink
Guest rickywyatt Posted June 6, 2011 Report Posted June 6, 2011 I wrote a simple script to compare configs. I think many will be useful. And i found how to make the touchscreen work without editing msm_ts. If possible, lay out the sources later. A tool for comparing configs by deadlink hi could you upload your build kernel so we can test it for you
Guest deadlink Posted June 6, 2011 Report Posted June 6, 2011 hi could you upload your build kernel so we can test it for you Camera doesn't work. And touchscreen have some bugs. I fix msm_ts yesterday, but today i found another way to fix touchscreen without changing msm_ts driver. If possible with a touchscreen, maybe upload it tonight
Guest deadlink Posted June 6, 2011 Report Posted June 6, 2011 New experimental kernel based on zte blade 2.6.32.9 improved touchscreen calibration improved system performance Known issues: - camera doesn't work on any racer This is still very experimental code!! Try at your own risk! test_kernel.zip
Guest buzzhaina Posted June 7, 2011 Report Posted June 7, 2011 New experimental kernel based on zte blade 2.6.32.9 improved touchscreen calibration improved system performance Known issues: - camera doesn't work on any racer This is still very experimental code!! Try at your own risk! test_kernel.zip Just tried it... noticeable improvement with touchscreen n performance:d camera no go:-Pas u mentioned it
Guest rickywyatt Posted June 7, 2011 Report Posted June 7, 2011 @deadlink i tryed your kernel its the best so far but i still find the touchscreen still no good when typing will you be able to fix the home home,menu,back without having touch_to_key?
Guest Sebastian404 Posted June 7, 2011 Report Posted June 7, 2011 Camera doesn't work. And touchscreen have some bugs. I fix msm_ts yesterday, but today i found another way to fix touchscreen without changing msm_ts driver. If possible with a touchscreen, maybe upload it tonight you care to share the changes you made? so others might improve on your work?
Guest deadlink Posted June 7, 2011 Report Posted June 7, 2011 will you be able to fix the home home,menu,back without having touch_to_key? I can rewrite the driver, but do not think it reasonable. Touch_to_key is a good decision. Maybe I'll do this later. you care to share the changes you made? so others might improve on your work? Of course I share the sources. Can you add them to your repository? sources.zip
Guest Sebastian404 Posted June 7, 2011 Report Posted June 7, 2011 Of course I share the sources. Can you add them to your repository? Ok, I have added the changes.... commit
Guest TigTex Posted June 7, 2011 Report Posted June 7, 2011 (edited) I've compiled a new kernel, based on the current cyanogenmod blade kernel because sebastian404's kernel is incomplete (smartass for example, doesn't work, corrupts the boot). Using this kernel https://github.com/TomGiordano/kernel_zte_blade And the mooncake files, I've made one optimized version, with PERFECT SCREEN CALIBRATION!. 1 problem that needs to be solved: camera still doesn't work. No more problems apart that one. The config is almost equal to the blade's .config. So this is using the smartass cpu governor by default for best performance ever. Attach below. feel free to test the kernel. Make sure you have the old kernel ready to reflash if you need it.update.zip Edited June 7, 2011 by TigTex
Guest Sebastian404 Posted June 7, 2011 Report Posted June 7, 2011 (edited) I've compiled a new kernel, based on the current cyanogenmod blade kernel because sebastian404's kernel is incomplete (smartass for example, doesn't work, corrupts the boot). Its not really 'my' kernel, its a fork from KK's... who is a Cyanogenmod developer...... I'd assume his was the same as TomG's Using this kernel https://github.com/TomGiordano/kernel_zte_blade And the mooncake files, I've made one optimized version, with PERFECT SCREEN CALIBRATION!. would you care to share what files you have modified from TomG's kernel? Edited June 7, 2011 by Sebastian404
Guest TigTex Posted June 7, 2011 Report Posted June 7, 2011 (edited) Its not really 'my' kernel, its a fork from KK's... would you care to share what files you have modified from TomG's kernel? Just use the tomg's kernel + the zipped files and you get a perfect working kernel. No camera though. config and files attachedkernel_mooncake.zipconfig.txt Edited June 7, 2011 by TigTex
Guest buzzhaina Posted June 8, 2011 Report Posted June 8, 2011 I've compiled a new kernel, based on the current cyanogenmod blade kernel because sebastian404's kernel is incomplete (smartass for example, doesn't work, corrupts the boot). Using this kernel https://github.com/TomGiordano/kernel_zte_blade And the mooncake files, I've made one optimized version, with PERFECT SCREEN CALIBRATION!. 1 problem that needs to be solved: camera still doesn't work. No more problems apart that one. The config is almost equal to the blade's .config. So this is using the smartass cpu governor by default for best performance ever. Attach below. feel free to test the kernel. Make sure you have the old kernel ready to reflash if you need it. Yep best performance:D
Guest deadlink Posted June 8, 2011 Report Posted June 8, 2011 Just use the tomg's kernel + the zipped files and you get a perfect working kernel. No camera though. You use old mooncake-board :P In my fresh mooncake-board, which I have upload above, the camera works. There is a device /dev/msm_camera/. But I do not know why app not working. And i think that using smartass reduce battery life... ;)
Guest deadlink Posted June 8, 2011 Report Posted June 8, 2011 (edited) There is a device /dev/msm_camera/. kernel with msm_camera in /dev/: test_kernel.zip Maybe something is wrong with init? Edited June 8, 2011 by deadlink
Guest rickywyatt Posted June 8, 2011 Report Posted June 8, 2011 when opening the camera i get this from logcat V/CameraHolder( 1040): open camera 0 D/QualcommCameraHardware( 135): createInstance: E E/QualcommCameraHardware( 135): startCamera X: /dev/msm_camera/control0 open fa iled: Unknown error: 0! E/QualcommCameraHardware( 135): createInstance: startCamera failed! D/QualcommCameraHardware( 135): ~QualcommCameraHardware E D/QualcommCameraHardware( 135): ~QualcommCameraHardware X E/CameraService( 135): Fail to open camera hardware (id=0) E/CameraHolder( 1040): fail to connect Camera E/CameraHolder( 1040): java.lang.RuntimeException: Fail to connect to camera ser vice E/CameraHolder( 1040): at android.hardware.Camera.native_setup(Native Method) E/CameraHolder( 1040): at android.hardware.Camera.<init>(Camera.java:258) E/CameraHolder( 1040): at android.hardware.Camera.open(Camera.java:220) E/CameraHolder( 1040): at com.android.camera.CameraHolder.open(CameraHolder.jav a:124) E/CameraHolder( 1040): at com.android.camera.Camera.ensureCameraDevice(Camera.j ava:1794) E/CameraHolder( 1040): at com.android.camera.Camera.startPreview(Camera.java:18 46) E/CameraHolder( 1040): at com.android.camera.Camera.access$5900(Camera.java:94) E/CameraHolder( 1040): at com.android.camera.Camera$3.run(Camera.java:938) E/CameraHolder( 1040): at java.lang.Thread.run(Thread.java:1019) I/ActivityManager( 213): Displayed com.android.camera/.Camera: +1s358ms (total[/code]
Guest TigTex Posted June 8, 2011 Report Posted June 8, 2011 (edited) Can you post a dmesg output here? try to do "dmesg | grep camera > /sdcard/dmesg.log" The error in the logcat is different than with my kernel (not found vs open failed). deadlink, the smartass makes the phone run at lower speeds when the screen is off and always run at full speed when it's on (i read that somewhere, hope it's correct). That's why maybe the battery drains more when using. But you have better performance, that's what matters ;) also, did you made that new board-mooncake? Edited June 8, 2011 by TigTex
Guest deadlink Posted June 8, 2011 Report Posted June 8, 2011 did you made that new board-mooncake? I replaced some code of the 29 core from zte sources. If you read /proc/devices you will see msm_camera! Its mean that camera work... Does not it?
Guest TigTex Posted June 8, 2011 Report Posted June 8, 2011 (edited) I replaced some code of the 29 core from zte sources. If you read /proc/devices you will see msm_camera! Its mean that camera work... Does not it? it means that the device is there, doesn't mean it works... see the "dmesg" output. There is something there related to the camera that might help you. Also, i see you've deleted the sections related to the brasilian zte camera... we want their camera to work... i think you need this code #ifdef CONFIG_MSM_CAMERA static uint32_t camera_off_gpio_table[] = { #if 0 GPIO_CFG(0, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT0 */ GPIO_CFG(1, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT1 */ GPIO_CFG(2, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT2 */ GPIO_CFG(3, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT3 */ Edited June 8, 2011 by TigTex
Guest Sebastian404 Posted June 8, 2011 Report Posted June 8, 2011 Just use the tomg's kernel + the zipped files and you get a perfect working kernel. No camera though. looking at the files, there is no real difference between TigTex's and Deadline's updates to my first commit, tho the TS_OFFSET_X & TS_OFFSET_Y in msm_ts.c seems to be different, the fix for the camera seems to be in the config.... # CONFIG_MT9D115 is not set # CONFIG_MT9D113 is not set[/code] is now: [code]CONFIG_MT9D115=y CONFIG_MT9D115_QTECH_SUNNY_SOCKET=y # CONFIG_MT9D115_QTECH_SUNNY_FPC is not set CONFIG_MT9D113=y CONFIG_MT9D113_QTECH_SUNNY_SOCKET=y and # CONFIG_SENSOR_ADAPTER is not set is now CONFIG_SENSOR_ADAPTER=y I managed to loose my Racer a few weeks ago so I can really test this.....
Guest TigTex Posted June 8, 2011 Report Posted June 8, 2011 About the calibration, you can use msm_ts.c new offsets and also new values on my board-mooncake.c . I am sure it's perfectly calibrated. About the config, the MT9D115 and MT9D113 are the 2 differences between my stock rom (tmn softstone) and the brazilian x850 (the camera doesnt work on 2.2/2.3 roms because the kernel doesn't have that modules enabled). I've been testing the camera with and without that modules. No change. So it's something that deadlink did on it's file that made this work (well, the msm_camera is in /dev). But he removed support for mt9d115, the main reason for me to make a custom kernel... also he's board-mooncake has wrong calibration values and battery voltages. This night I'll try to skype with deadlink and have a better look at all of this. Maybe tomorow we have a fully working kernel ;)
Guest rickywyatt Posted June 8, 2011 Report Posted June 8, 2011 @ Sebastian404 could you build a kernel ill be happy to test it
Guest electricdel Posted June 8, 2011 Report Posted June 8, 2011 Any chance of a complete update.zip to try? Many Thanks
Guest deadlink Posted June 8, 2011 Report Posted June 8, 2011 I build kernel with working camera! ;) Maybe kernel config not optimized, and touchscreen without tigtex offsets, but all work now =) Tigtex, i don't know what is the difference in brazilian Racer. Try to fix it with my config and board. test_kernel.zip And config: config_camera_work.txt
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now