how exactly do i use this patch? i've tried a lot of things over the last couple hours and nothing is working. i got my touchscreen working using this thread but it's still glitchy, and single touch.
how exactly do i use this patch? i've tried a lot of things over the last couple hours and nothing is working. i got my touchscreen working using this thread but it's still glitchy, and single touch.
You'll need to install the Ubuntu kernel source first (see here: https://help.ubuntu.com/community/Kernel/Compile ) Then, change to the source directory and use patch -p1 < touchscreen.patch to apply. After that, rebuild the kernel once and install it (I've used the "old-fashioned Debian way" described on that page).
Note: around line 218 in hid-cando.c, you might need to change
ret = hid_hw_start(hdev,HID_CONNECT_DEFAULT);
to
ret = hid_hw_start(hdev,HID_CONNECT_DEFAULT|HID_CONNECT_ HIDINPUT_FORCE);
This somewhat depends on the base kernel version you're using - I had to add the FORCE flag for 2.6.31.9.
Floe
awesome, thanks a lot. i was tearing my hair out messing around with git. i'll start over with a fresh install and try it with 2.6.31-9
so, now, just applaying this patch to kernel, we get dual touch working withot 3rd party hidtouch and netbook-launcher patching, yeah?
ps and, if it is not difficult for you, please upload separate patch file somewhere.. i just can't understand, from where to where copy (never patching anything before)
Last edited by zythar; April 18th, 2010 at 11:38 PM.
make is giving this output:
drivers/hid/hid-cando.c: In function ‘cando_probe’:
drivers/hid/hid-cando.c:217: error: ‘HID_CONNECT_’ undeclared (first use in this function)
drivers/hid/hid-cando.c:217: error: (Each undeclared identifier is reported only once
drivers/hid/hid-cando.c:217: error: for each function it appears in.)
drivers/hid/hid-cando.c:217: error: expected ‘)’ before ‘HID_INPUT_FORCE’
make[2]: *** [drivers/hid/hid-cando.o] Error 1
make[1]: *** [drivers/hid] Error 2
make: *** [drivers] Error 2
i'm not getting the error after changing that line back to the default. here's hoping the rest goes well.
god i wish i was smarter.
Last edited by jeffeulogy; April 19th, 2010 at 03:11 AM. Reason: updated
[deleted]
i've applied patch that was suggested in previous page to kernel and comile kernel without any problems.
now, how i can enable dual touch?
Last edited by zythar; April 19th, 2010 at 04:12 PM.
Oops, sorry, I've just seen that there was an error in my post. There's no space to be supposed between HID_CONNECT_HIDINPUT_FORCE, it's all one word.
Basically, there's nothing to enable, it's there from the start. Now you just need some software that's able to use the new data - AFAICT in Lucid, you'll be able to use xf86-input-evdev and get two mouse cursors as soon as you touch the screen with two fingers.Originally Posted by zythar
Floe
here is my xorg.conf. what should i change?Code:Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Cando TouchScreen" "SendCoreEvents" InputDevice "dummy" EndSection Section "Files" ModulePath "/usr/lib/xorg/modules" ModulePath "/usr/local/lib/xorg/modules" FontPath "/usr/share/fonts/X11/misc" FontPath "/usr/share/fonts/X11/cyrillic" FontPath "/usr/share/fonts/X11/100dpi/:unscaled" FontPath "/usr/share/fonts/X11/75dpi/:unscaled" FontPath "/usr/share/fonts/X11/Type1" FontPath "/usr/share/fonts/X11/100dpi" FontPath "/usr/share/fonts/X11/75dpi" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" FontPath "built-ins" EndSection Section "Module" Load "record" Load "dri" Load "extmod" Load "dri2" Load "glx" Load "dbe" Load "hidtouch" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5 6 7" EndSection Section "InputDevice" Identifier "Cando TouchScreen" Driver "hidtouch" Option "SendCoreEvents" "true" Option "ReportingMode" "Raw" Option "Device" "/dev/usb/cando_touch" Option "PacketCount" "13" Option "OpcodePressure" "852018" Option "OpcodeX" "65584" Option "OpcodeY" "65585" Option "CalibrationModel" "1" Option "CornerTopLeftX" "80" Option "CornerTopLeftY" "80" Option "CornerTopRightX" "4020" Option "CornerTopRightY" "80" Option "CornerBottomLeftX" "80" Option "CornerBottomLeftY" "4020" Option "CornerBottomRightX" "4020" Option "CornerBottomRightY" "4020" Option "CornerScreenWidth" "1024" Option "CornerScreenHeight" "600" EndSection Section "InputDevice" Identifier "dummy" Driver "void" Option "Device" "/dev/input/mice" EndSection Section "Device" ### Available Driver options are:- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional #Option "NoAccel" # [<bool>] #Option "SWcursor" # [<bool>] #Option "ColorKey" # <i> #Option "CacheLines" # <i> #Option "Dac6Bit" # [<bool>] #Option "DRI" # [<bool>] #Option "NoDDC" # [<bool>] #Option "ShowCache" # [<bool>] #Option "XvMCSurfaces" # <i> #Option "PageFlip" # [<bool>] Identifier "Card0" Driver "intel" VendorName "Intel Corporation" BoardName "Pineview Integrated Graphics Controller" BusID "PCI:0:2:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection
package of evdev (xserver-xorg-input-evdev) is installed.
support of hid, evdev, cando dual touch are enabled in kernel.
Last edited by zythar; April 20th, 2010 at 03:29 PM.
I believe you can remove the entire "Cando Touchscreen" section. In fact, I don't even have an xorg.conf anymore, the entire configuration is done through HAL.
At first, the synaptics driver tried to handle my touchscreen and failed, but I've added the snippet from my earlier post to /etc/hal/fdi/policy/preferences.fdi. This switched the driver to evdev and it's working fine since.
Floe
Bookmarks