yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Original Android Development] sweetbinodray:
I was reading some Pages and came up with this from HTC Touch HD forum. I thought I should post it. It might help you guys.

Someone said.

I've solved the touchscreen problem... It works fine...

Code:

diff --git a/drivers/input/touchscreen/synaptics_3k.c b/drivers/input/touchscreen/synaptics_3k.c
index 7591a03..60b6907 100644
--- a/drivers/input/touchscreen/synaptics_3k.c
+++ b/drivers/input/touchscreen/synaptics_3k.c
@@ -280,11 +280,14 @@ static void synaptics_ts_work_func(struct work_struct *work)
if (finger_pressed == 0) {
#ifdef CONFIG_TOUCHSCREEN_COMPATIBLE_REPORT
input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0);
+ input_report_abs(ts->input_dev, ABS_MT_PRESSURE, 0);
+ input_report_key(ts->input_dev, BTN_TOUCH, 0);
+ input_mt_sync(ts->input_dev);
#else
input_report_abs(ts->input_dev, ABS_MT_AMPLITUDE, 0);
input_report_abs(ts->input_dev, ABS_MT_POSITION, 1 << 31);
#endif
- if (ts->debug_log_level & 0x2)
+// if (ts->debug_log_level & 0x2)
printk(KERN_INFO "Finger leave\n");
}
if (ts->pre_finger_data[0][0] < 2 || finger_pressed) {
@@ -321,6 +324,8 @@ static void synaptics_ts_work_func(struct work_struct *work)
finger_data[loop_i][0]);
input_report_abs(ts->input_dev, ABS_MT_POSITION_Y,
finger_data[loop_i][1]);
+ input_report_abs(ts->input_dev, ABS_MT_PRESSURE, 255);
+ input_report_key(ts->input_dev, BTN_TOUCH, 1);
input_mt_sync(ts->input_dev);
#else
input_report_abs(ts->input_dev, ABS_MT_AMPLITUDE,
@@ -341,7 +346,7 @@ static void synaptics_ts_work_func(struct work_struct *work)
ts->pre_finger_data[0][0] = 1;
}
}
- if (ts->debug_log_level & 0x2)
+// if (ts->debug_log_level & 0x2)
printk(KERN_INFO "Finger %d=> X:%d, Y:%d w:%d, z:%d\n",
loop_i + 1, finger_data[loop_i][0],
finger_data[loop_i][1], finger_data[loop_i][2],
@@ -516,6 +521,7 @@ static int synaptics_ts_probe(

input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
input_set_abs_params(ts->input_dev, ABS_MT_WIDTH_MAJOR, 0, 30, 0, 0);
+ input_set_abs_params(ts->input_dev, ABS_MT_PRESSURE, 0, 255, 0, 0);
#ifndef CONFIG_TOUCHSCREEN_COMPATIBLE_REPORT
input_set_abs_params(ts->input_dev, ABS_MT_AMPLITUDE,
0, ((255 << 16) | 15), 0, 0);

It's based on several kernel source investigation

the kernel side

and add this line's to the original idc:

# Set Gesture Mode to disable pointer
touch.gestureMode = spots

# Set DeviceType
touch.deviceType = touchScreen

# Set orientation awareness
# Thanks to SGS2 team
touch.orientationAware = 1
[Optimus One, P500 Original Android Development] SWEATTAIMI:
Does wifi gsm and touch work properly and data and audio :D that's cool for me that's a daily Rom :) please share it as its stock atm .
[Optimus One, P500 Original Android Development] sweetbinodray:
He said until those work. Now I think Audio and GSM is working.
[Optimus One, P500 Original Android Development] teddybig:
which is superduper good. (and fast too :D)
[Optimus One, P500 Original Android Development] SWEATTAIMI:
I think he said its those who's working, or Andy am i correct ?

at least GSM, 2G/3G, WiFi, Audio, Video and Touchscreen is working

Is working , in my country English that means its working ;) idk what it means in your country but i maybe learnt wrong
[Optimus One, P500 Original Android Development] andy572:
i meant, i dont release until listed things are working.

f*ck,f*ck,f*ck :(

we need a new thing in kernel to get ICS full working, its a device

named "ion", this is a memory manager used for the gpu. i hope, this is the magic

thing that gives us the hw acceleration back to ICS :/

currently playing with kernel as we need the new touchscreen driver too ...

BTW: Wifi module can be loaded, but i cant register my router because the UI is crashing

because of a framebuffer error ... i think, we have to solve a lot of things the next time.
[Optimus One, P500 Original Android Development] lupohirp:
I have founded a melfas-touchscreen.idc file but i cannot try if it work( in addition with cyanogen patch) to solve touchscreen isuess 'cause this ******ing rom doesn't want to start grrrr howewer now it connect to usb but showing nothing in logcat...think to revert original lg. 35 kernel...also you andy had problems with franco kernel right???
[Optimus One, P500 Original Android Development] Bytecode:
Franco's is a great kernel,but it's kinda too patched/tweaked for this situations,so better use LG's .35 stock ;)

@SWEATTAIMI: Seems you're abusing of saxon genitive :D (sorry,wanted to say this from a looooong time :))
[Optimus One, P500 Original Android Development] andy572:
indeed, i have problems with franco's kernel too, currently working with LG sources,

added the "ion" memory driver, recompiled the new gralloc & copybit driver (found by CM: android_hardware_display)

and ow i try & err to get a running system after a lot of patching the new display driver from CM^^

### EDIT:

here are the patched gralloc & libcopybit, we dont need longer the local module in device/lge/thunderg.

ATTENTION: my repo is currently a work in progress, you need to download the bionic project (its fixed for ion,ashmem and pmem)

https://github.com/andy572/android_hardware_qcom

ATTENTION II: dont compile the libs in hardware/msm7k/libcopybit and gralloc, its now deprecated. Later i remove that old ****.

BTW:

the new modules dont bring us the hw acceleration back nor gives us a small better graphic (colorbanding isnt gone) :(

### EDIT II: some logcat outputs, the **** is at least working^^

D/libEGL ( 2435): loaded /system/lib/egl/libGLES_android.so
D/libEGL ( 2435): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL ( 2435): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL ( 2435): loaded /system/lib/egl/libGLESv2_adreno200.so
D/memalloc( 2416): init_pmem_area: Initializing pmem area
D/memalloc( 2416): init_pmem_area_locked: Opening master pmem FD
D/memalloc( 2416): init_pmem_area_locked: Total pmem size: 28794880
D/memalloc( 2416): /dev/pmem: Allocated buffer base:0x48ad0000 size:614400 offset:0 fd:60
D/memalloc( 2435): /dev/pmem: Mapped buffer base:0x40a40000 size:614400 offset:0 fd:15
D/memalloc( 2416): /dev/pmem: Allocated buffer base:0x48ad0000 size:614400 offset:614400 fd:59
D/memalloc( 2435): /dev/pmem: Mapped buffer base:0x40b28000 size:1228800 offset:614400 fd:17
D/memalloc( 2435): /dev/pmem: Unmapping buffer base:0x40a40000 size:614400 offset:0
D/memalloc( 2435): /dev/pmem: Unmapping buffer base:0x40b28000 size:1228800 offset:614400
[Optimus One, P500 Original Android Development] lupohirp:
Andy can you give me the lg .35 original boot.img ???i can't find anywhere and now i can't compile it from sources 'cause i'm not at home :-((( thanks in advice :-)
[Optimus One, P500 Original Android Development] andy572:
here it is :)
[Optimus One, P500 Original Android Development] lupohirp:
Thank you very much andyy :-)))
[Optimus One, P500 Original Android Development] andy572:
press "thanks" button! :D
[Optimus One, P500 Original Android Development] vienti:
Andy you can lay out in the collected kind? It is curious to look
[Optimus One, P500 Original Android Development] Arjen:
Wow, you have been very busy last days Andy!

Nice to see the progress you have made.

Don't forget the familytime ;)

Didn't have time to work on it, had a deadline for some websites, but will continue tonight :rolleyes:
[Optimus One, P500 Original Android Development] SWEATTAIMI:
Finally i can work on my "port" i found how to setup to compile Android on mac os x .___________.
[Optimus One, P500 Original Android Development] franciscofranco:
Don't use my kernel for this ****, I already said that I have all the debug removed and it's too changed to be used for this kind of testing. Use LG ****.
[Optimus One, P500 Original Android Development] lupohirp:
after ported the boot.img here what i have...

[2011-11-29 15:19:44 - DeviceMonitor]Adb connection Error:EOF
[2011-11-29 15:19:44 - DeviceMonitor]Connection attempts: 1
[2011-11-29 15:20:27 - Unexpected error while launching logcat. Try reselecting the device.]device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:736)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:319)
at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:100)
at java.lang.Thread.run(Thread.java:679)

damn.....now i'm going to recompile and see what happen

EDIT!!!!!

wait!!!!modified ro.secure to 0 now i have logcat.....FINALLY!!!!

here my pastebin....http://pastebin.com/W96fkKPk...logcat finish here.....
[Optimus One, P500 Original Android Development] andy572:
nooooo! i'm sure the rom is ok, its your working environment on your computer!

update the sdk and adb drivers before recompiling a lot of hours :)
[Optimus One, P500 Original Android Development] lupohirp:
andy i had logcat by modifying ro.secure to 0....in the prevoius post i've added my logcat to pastebin.....it ends here!:(
[Optimus One, P500 Original Android Development] andy572:
yes, thats right. ro.secure must be "0" and ro.persist.debugging have to be "1" to

enable adb at boot time. my posted boot.img have all needed things for debug enabled, you

have only to copy the boot.img to the kitchen (make sure you copy it to both the places

"original_update" and WORKING_XXX" because the kitchen is decompressing the boot.img

(dunno from which place in file system)
[Optimus One, P500 Original Android Development] lupohirp:
howewer andy seems that i missed your patch for pageflipping.....now i'm going to recompile to see if it can solved :) but now finally i have logcat!!!thanks man!:)
[Optimus One, P500 Original Android Development] andy572:
Is this a usable touchscreen idc file or do we have change things?

can we damage the display with a wrong file???

https://github.com/CyanogenMod/android_device_samsung_tuna/blob/ics/Melfas_MMSxxx_Touchscreen.idc
[Optimus One, P500 Original Android Development] andy572:
dont take care about pageflipping, gralloc can handle that self,

we dont need it to disable.

better look into build.prop if there is the line debug.sf.hw=0 ;)
[Optimus One, P500 Original Android Development] lupohirp:
no 'cause we have a melfas_MCS not mms....seems that HTC eris have also our touchscreen and in his ICS port touchscreen work!:)

http://xdaforums.com/showthread.php?p=19800288&highlight=melfas#post19800288
[Optimus One, P500 Original Android Development] lupohirp:
yes there's already :(
[Optimus One, P500 Original Android Development] andy572:
ok, can you try again to post a logcat to pastebin.com? i'll have a look at this;)
[Optimus One, P500 Original Android Development] lupohirp:
here andy :) http://pastebin.com/W96fkKPk
[Optimus One, P500 Original Android Development] andy572:
Ok, you hang (not loop i think) on the place as me for some days.

1.) make sure you only load the compiled gralloc and libcopybit files from ICS, not the ones from gingerbread (even not LG):

1.1.) load gralloc.default and gralloc.thunderg, not the gralloc.msm7k file

1.2.) load only the copybit.thunderg file, not the copybit.msm7k

2.) make sure you dont copy these files from the prebuilt folder, you can look in

device_thunderg.mk to avoid that. if the files are copied, you can copy the compiled files

from out/product/thunderg/symbols/system/lib/hw to the rom folder and remove the lines

in the device config file, its not working anymore because of missing symbols in libcutils.

i hope, that helps you to boot to the GUI :)
[Optimus One, P500 Original Android Development] lupohirp:
ok andy now i don't have time unfortunately tomorrow i'll try that!:) thanks

EDITTTTTT!!!!MY ROMMM BOOOOOOTEEEEDDD TO THE GUIIIIIIIIII GREATTTTTTTT thanks andyyyy!!!:) and you want know a thing?????? we don't have blackscreen bug anymore!!!uahuahuahauha
[Optimus One, P500 Original Android Development] Bytecode:
Andy,could you please tell us what's working and what's not? I'm curious :) great job to both! I'm gonna help you soon,but first: I'll be working on CM6 and my secret project/s (still have to choose)! :p
[Optimus One, P500 Original Android Development] fserve:
wtf, so it was rom bug?
[Optimus One, P500 Original Android Development] andy572:
rom bug or not, dont know that. i'm sure we have used every time the LG libs, and

now we use open source libs -possible cant LG libs works together with open source

surfaceflinger/pixelflinger/libEGL...
[Optimus One, P500 Original Android Development] Arjen:
Andy, followed the guidelines you left for lupohirp and I succeeded too :D

Nice to see it boot :p

Let's continue the rest of the hard work :D
[Optimus One, P500 Original Android Development] Lycan:
Here's the list of phones/threads which got ICS ports..

http://www.xda-developers.com/announcements/ice-cream-sandwich-ports-progress-report/

Dunno, could be useful? !
[Optimus One, P500 Original Android Development] adfad666:
I suspect it could be true.

I was playing with building CM7 recently (last week, I've started learning android ;) ) and I made some builds using pure CM7 sources and the two thunderg folders on mik's git. Bluetooth and some other things didn't work and I found a couple of small mistakes there. In one of the builds the blackscreen bug was completely gone, but I didn't keep it or save the exact build configuration, but I remember it was an early build before I started adding things back from miks' sources to get things working again.

I'm not an expert (yet) so it may have just been a coincidence and I might be talking **** :D

I'm still way behind you guys on building ICS :(
[Optimus One, P500 Original Android Development] andy572:
where is our device? :D

thanks for the link, possibly we can read some posts from samsung cap. - as i know this have a msm7x27 too ?
[Optimus One, P500 Original Android Development] vlt96:
HTC G1 and hero have it??? And O1 still in massive development:)
[Optimus One, P500 Original Android Development] lupohirp:
Going to see my favourite team (naples <3 vs juventus) at stadium tomorrow i 'll try to fix this weird touchscreen!! :-))
[Optimus One, P500 Original Android Development] Lycan:
I told svetius to add it. Hope he does it soon !!

p.s. - I've been wanting to ask this for a long time, how old are you andy? :)

---------- Post added at 11:58 PM ---------- Previous post was at 11:55 PM ----------

You need to release the rom in the dev section for it to get displayed..lulz !!

---------- Post added 30th November 2011 at 12:02 AM ---------- Previous post was 29th November 2011 at 11:58 PM ----------

Sorry for OT..

^^Congrats on getting recognised dev title !

So now we officially have 6, eh?

1.andy

2.franco

3.ciaox

4.fserve

5.lupohirp

6.mik - {dunno bout him :/}
[Optimus One, P500 Original Android Development] andy572:
I'm a very old man ... i'm 39 years young :D

Wwwwwoooooooot ... whats this??? i've copied a idc file, patched the kernel and now i can unlock the screen with only 1 finger :D

I/EventHub( 1617): New device: id=6, fd=116, path='/dev/input/event1', name='touch_mcs6000', classes=0x14, configuration='/system/usr/idc/touch_mcs6000.idc', keyLayout='', keyCharacterMap='', builtinKeyboard=false

... updating my repo asap :)
[Optimus One, P500 Original Android Development] SWEATTAIMI:
when i execute SWEATTAIMI:thunderg-user eriktaiminen$ ./extract-files.sh

-bash: ./extract-files.sh: No such file or directory

???

on that ; New device: id=6, fd=116, path='/dev/input/event1', name='touch_mcs6000', classes=0x14, configuration='/system/usr/idc/touch_mcs6000.idc', keyLayout='', keyCharacterMap='', builtinKeyboard=false

is it ment to add keulayout=", keycharactermap=", bultinkeyboard=false ???
[Optimus One, P500 Original Android Development] vlt96:
Do you know how to get rid of that circle you need to move on the screen?

I guess that is a bit annoying:(:(:(:(:(:(
[Optimus One, P500 Original Android Development] SWEATTAIMI:
yes, its an edited file that is in there as stock, just need to make it transparent
[Optimus One, P500 Original Android Development] andy572:
arrrgggghhhhhhhhhhhhh :D

yes, put a black wallpaper on the screen to make it "Screen Blank" as Screensaver :D

We dont need to remove/edit the cursor file, its gone when we have - as now - a working touchscreen :)
[Optimus One, P500 Original Android Development] vlt96:
But doesn't that stop multitouch?

And shouldn't it be moved from the place it was, or it's just an indicator of where the finger is?

Sorry if these questions were stupid:D
[Optimus One, P500 Original Android Development] SWEATTAIMI:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

@mikegapinski make following images full transparent and you will never see this 'circle' again

pointer_arrow.png

pointer_spot_anchor.png

pointer_spot_hover.png

pointer_spot_touch.png

or go to /values open styles.xml

look for

<style name="Theme">

and replace

<item name="pointerStyle">@style/Pointer</item>

with

<item name="pointerStyle">@null</item>

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Here's how to ;)

so andy if i add this line to the idc of my port, will the touch work properly? :D
[Optimus One, P500 Original Android Development] andy572:
no, it wont. you need the idc file and a kernel with modified input drivers.
[Optimus One, P500 Original Android Development] SWEATTAIMI:
no because its an png, ZDUNEX25 told so and it worked for LGO

---------- Post added at 08:25 PM ---------- Previous post was at 08:23 PM ----------

argh =/ then i guess i have to for AOSP then, as i am still not 100% sure how to do this =/
[Optimus One, P500 Original Android Development] Arjen:
39? Ouch, I'm only 36 :D

Well, time goes faster in Münich :D

Nice to see you accidently fixed touchscreen :eek:
[Optimus One, P500 Original Android Development] solefero69:
About the circle on the screen when you touch : on a video, I saw that is an ICS option that can be disabled from the menu ( youtube.com/watch?v=pnZ1R64w5UY&feature=player_embedded @ 9:40)...Correct me if I'm wrong or saying bullshits xD
[Optimus One, P500 Original Android Development] SWEATTAIMI:
yes but in this case it was already there by default :P and its corrected when the kernel and touchscreen is working together so we can use one finger (as Andy said)
[Optimus One, P500 Original Android Development] jobankler:
Andy will the rom be based of .35 or .32?
[Optimus One, P500 Original Android Development] solefero69:
Thanks for the explanation :D
[Optimus One, P500 Original Android Development] andy572:
no, no ... in Munich we still drink a lot of beer and are looking very young:

- no gray hairs

- no old skin

- fresh eyes

... allways very sexy :D

btw:

i dont come from Munich, i was going from Berlin to Munich because of much better

jobs and money ;) ... and ... you said you're developing web pages? Me too - by the 3th best agency in germany (webguerillas) :D
[Optimus One, P500 Original Android Development] DaXmax:
:eek::eek::eek::eek::eek: Ok, enuffs with the drinks... Now we should think how to get the acc. meter working... And please, i dont read few pages back, so is the rotation working?
[Optimus One, P500 Original Android Development] SWEATTAIMI:
not yet )=
[Optimus One, P500 Original Android Development] andy572:
hmmm, since i got RIL working, the display is crashing: memory error/bad memory address.

First, i try to fix that instead of fix sensor ****...
[Optimus One, P500 Original Android Development] SWEATTAIMI:
Andy can you provide the extract-files.sh ?
[Optimus One, P500 Original Android Development] andy572:
no i cant - i'm working on windows as i wrote^^
[Optimus One, P500 Original Android Development] SWEATTAIMI:
are u able to share work or something ?
[Optimus One, P500 Original Android Development] andy572:
my work is on github and almost complete (but the kernel, just uploading), i dont provide a rom currently

because its very unstable.
[Optimus One, P500 Original Android Development] SWEATTAIMI:
i saw you just updated ^___^so this means i can compile and get what u got working touch etc etc? (if i do it correct)
[Optimus One, P500 Original Android Development] jobankler:
no one answered my question? Will it be ran on a .35 kernel or .32?
[Optimus One, P500 Original Android Development] MaKTaiL:
.35 kernel and old baseband (for now).
[Optimus One, P500 Original Android Development] jobankler:
aww is there anyway to make it run on the .32? Because I have a P505 with my kernel and all I do is flash my kernel on top after P500 roms. So Andy if you can, please release a .32 too? And ill try to patch my kernel too make it work on my P505
[Optimus One, P500 Original Android Development] SWEATTAIMI:
hm, you need to get a .32 kernel maybe andy can help you ^__^ hes a got dev :D

かんぱい！
[Optimus One, P500 Original Android Development] MaKTaiL:
He might do it in the future but for now his main focus is to make a workable build for daily use.

The first step is to make ICS fully available for our phones and I know it's not easy.
[Optimus One, P500 Original Android Development] andy572:
sorry, but i dont support kernel developing anymore,

my uploaded kernel is in no way optimized and only to run the next time ICS on the P500 device

for development purposes, it only supports the new touchscreen driver needed by android - all other is stock LG kernel.
[Optimus One, P500 Original Android Development] adfad666:
Hi andy, can you just confirm please, do we still need the four lib folders in the device/lge/thunderg folder? my last build failed on libgralloc so I took it out and started it again...

Also the kernel source you just uploaded, is it the source for the prebuilt one or do I need to compile that too :rolleyes:

fingers crossed this build goes to completion :)
[Optimus One, P500 Original Android Development] SWEATTAIMI:
And i failed to set up again :(
[Optimus One, P500 Original Android Development] terratrix:
Blah Blah Blah - better get another rom like cm9 with .32 kernel if released. This is a AOSP port so only .35 kernel will be supported. Or not, go port yourself an AOSP
[Optimus One, P500 Original Android Development] jobankler:
why soo harsh buddy? :(
[Optimus One, P500 Original Android Development] terratrix:
Dont you think its too harsh to ask a dev to recreate and patch with .32 kernel?
[Optimus One, P500 Original Android Development] DaXmax:
Ask our man?? Franco? But if this cant boot or that, dont blame him as he doesnt have the optimus one...
[Optimus One, P500 Original Android Development] fserve:
Which file have this patch? Just want to check what's new.

EDIT: gotcha :-) Tks!
[Optimus One, P500 Original Android Development] andy572:
I dont understand why users are requesting useless things, the kernel .32 is very old,

dont supports all new things in gingerbread and ics - its a lot of work to patch this

kernel version to run under the newer Androids.

btw @all:

if someone want to learn how to make/compile a system, learn it by your self - every dev have

to do so, i dont provide a mega big tutorial about how to compile Android as there are

a lot of useful informations to find by google ... dont be lazy ... and, its not meat sad to others here

but i'm not dumb - i dont bring up the P500 device and fix all things so others have only to download

my sources and to compile ... and ... get a nice rom! (its not meant to the real dev's here, they are

welcome because they are doing a big nice job too!)
[Optimus One, P500 Original Android Development] andy572:
look into the input driver folder for the touchscreen and sensors - there are only 4 or 5 files changed to do the magic ;)