Synaptics Touchpad

294 views
Skip to first unread message

Cristian Gonzalez

unread,
May 28, 2014, 3:15:08 PM5/28/14
to andro...@googlegroups.com
Can someone help me , to get it working? On RC2 it works only as a ps2 mouse. 

[    2.477713] psmouse serio1: synaptics: Touchpad model: 1, fw: 8.1, id: 0x1e2b1, caps: 0xd00123/0x840300/0x126c00, board id: 2334, fw id: 1214756

This is my dmseg from ubuntu, interestingly on android-ia it's works perfect, besides the ugly cursors...

My notebook is a Lenovo Flex14, everything works perfect (touchscreen, graphics, resume, etc) besides the touchpad (and the light sensor).


Thanks


Somebody

unread,
May 30, 2014, 8:32:29 AM5/30/14
to andro...@googlegroups.com
Isn't that how a touchpad is *supposed* to work? What kind of difference are you expecting from it?

Cristián González

unread,
May 30, 2014, 9:12:20 AM5/30/14
to andro...@googlegroups.com
Multitouch Gestures 

3sparks llc

Cristián Marcelo González / Consultor SAP
+569 84438351/ cris...@felitech.com

http://www.felitech.com



--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/41eilhTzByI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

Somebody

unread,
May 30, 2014, 10:16:36 AM5/30/14
to andro...@googlegroups.com, cris...@felitech.com
Hmm, does the touchpad process its own gestures? Or does the driver pass through multiple contact points like a touchscreen multitouch driver does?

Cristián González

unread,
May 30, 2014, 10:30:38 AM5/30/14
to andro...@googlegroups.com
No sure. But on Android-ia  (where it works!), If I made a dual touch on the Pad,  the screen cursor become two circles, to show the gesture...


Somebody

unread,
May 30, 2014, 12:50:51 PM5/30/14
to andro...@googlegroups.com
Very interesting. I think its supposed to be built in, at least to AOSP.
Could be a missing driver.
Synaptics seems to have some android utilities.

I wonder how it is supposed to work? By your description, it sounds like it might be switching between mouse mode (while showing the pointer), and touchscreen mode (while showing the circles). If it is able to do that, then it would be able to use Android's gestures.

Cristian Gonzalez

unread,
May 30, 2014, 3:05:02 PM5/30/14
to andro...@googlegroups.com
If you need more info, log, etc, just ask...

mike r

unread,
Jun 1, 2014, 11:50:57 AM6/1/14
to andro...@googlegroups.com
HEY I really know nothing about this, But been searching a way to get Multi Touch Working, And Kinda Simulate a Touch Screen With the TocuhPad On My Dell 1750, Just to Get Zoom In and out working,,,, I ran across this https://wiki.debian.org/SynapticsTouchpad#Override_options_in_.2Fetc.2FX11.2Fxorg.conf.d.2Fsynaptics.conf so I searched the System Fukes For Synaptics and Fount this....

system/lib/modules/3.10.40-android-x86+/kernel/drivers/input/mouse/synaptics_i2c.ko 11552 2014-05-22 10:10:38
system/lib/modules/3.10.40-android-x86+/kernel/drivers/input/mouse/synaptics_usb.ko 10900 2014-05-22 10:10:38
system/lib/modules/3.10.40-android-x86+/kernel/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.ko 14022 2014-05-22 10:10:39

Dunno What a .ko file is, But it's not text, and not a config, So I'm kinda assuming it's the Module, I'm Lost here... Anyone with any ideas?

Mike

mike r

unread,
Jun 1, 2014, 1:45:09 PM6/1/14
to andro...@googlegroups.com
Hey went over to my Ubuntu 12.04 and Tried to Use touchegg, It didn't work, But when I set Trackpad to 2 finger scroll in the System settings it works, What I'm trying to figure is what module I need and How to get it to Android X86......Really Know nothing about Linux (Very little anyway, Getting there SLOWLY) and Learning a little more About Manipulating Android Do to this project.....

Mike

mike r

unread,
Jun 1, 2014, 3:13:05 PM6/1/14
to andro...@googlegroups.com
Ok found this, But as I said My Knpowledge on this stuff is basically nil, Maybe someone can figure somehhing we can do with this...

http://tools.android.com/tips/hardware-emulation

mike r

unread,
Jun 1, 2014, 4:04:48 PM6/1/14
to andro...@googlegroups.com
Ok Found some more, anbd nbow this is really over my head, I guess this Is a Java Script To Do A Touch screen emulator, anyone with knowledge on any of this nows the time, lol


GoogleGitSign in
android / platform/sdk / b95755a3463e122869a8442613ca572d32e5f00a / . / apps / SdkController / SdkControllerMultitouch / src / com / android / tools / sdkcontroller / sdkcontrollermultitouch / MultiTouchView.java
blob: fc3f994b5050eaad38bf411d2373212594ce084d [file] [log] [blame]
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.android.tools.sdkcontroller.sdkcontrollermultitouch;
import java.io.InputStream;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
/**
* Implements a main view for the application providing multi-touch emulation.
*/
public class MultiTouchView extends View {
/** Tag for logging messages. */
private static final String TAG = "SdkControllerMultitouch";
/**
* Back-end bitmap. Initialized in onSizeChanged(), updated in
* onTouchEvent() and drawn in onDraw().
*/
private Bitmap mBitmap;
/** Default Paint instance for drawing the bitmap. */
private final Paint mPaint = new Paint();
/** Canvas instance for this view. */
private Canvas mCanvas;
/** Emulator screen width to this view width ratio. */
private float mDx = 1;
/** Emulator screen height to this view height ratio. */
private float mDy = 1;
/**
* Flags whether or not image received from the emulator should be rotated.
* Rotation is required when display orientation state of the emulator and
* the device doesn't match.
*/
private boolean mRotateDisplay;
/** Base matrix that keep emulator->device display scaling */
private Matrix mBaseMatrix = new Matrix();
/** Matrix that is used to draw emulator's screen on the device. */
private Matrix mDrawMatrix = new Matrix();
/**
* Simple constructor to use when creating a view from code.
*
* @see View#View(Context)
*/
public MultiTouchView(Context context) {
this(context, null);
}
/**
* Constructor that is called when inflating a view from XML.
*
* @see View#View(Context, AttributeSet)
*/
public MultiTouchView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
/**
* Perform inflation from XML and apply a class-specific base style.
*
* @see View#View(Context, AttributeSet, int)
*/
public MultiTouchView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
// TODO Add constructor-time code here.
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
mBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
mCanvas = new Canvas(mBitmap);
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
// Just draw the back-end bitmap without zooming or scaling.
if (mBitmap != null) {
canvas.drawBitmap(mBitmap, 0, 0, null);
}
}
/**
* Sets emulator screen width and height to this view width and height
* ratio.
*
* @param dx Emulator screen width to this view width ratio.
* @param dy Emulator screen height to this view height ratio.
* @param rotateDisplay Flags whether image received from the emulator
* should be rotated when drawn on the device.
*/
public void setDxDy(float dx, float dy, boolean rotateDisplay) {
mDx = dx;
mDy = dy;
mRotateDisplay = rotateDisplay;
mBaseMatrix.setScale(dx, dy);
if (mRotateDisplay) {
mBaseMatrix.postRotate(90);
mBaseMatrix.postTranslate(getWidth(), 0);
}
}
/**
* Computes draw matrix for the emulator screen update.
*
* @param x Left screen coordinate of the bitmap on emulator screen.
* @param y Top screen coordinate of the bitmap on emulator screen.
*/
private void computeDrawMatrix(int x, int y) {
mDrawMatrix.set(mBaseMatrix);
if (mRotateDisplay) {
mDrawMatrix.postTranslate(-y * mDy, x * mDx);
} else {
mDrawMatrix.postTranslate(x * mDx, y * mDy);
}
}
/**
* Draws a bitmap on the screen.
*
* @param x Left screen coordinate of the bitmap on emulator screen.
* @param y Top screen coordinate of the bitmap on emulator screen.
* @param w Width of the bitmap on the emulator screen.
* @param h Height of the bitmap on the emulator screen.
* @param colors Bitmap to draw.
*/
public void drawBitmap(int x, int y, int w, int h, int[] colors) {
if (mCanvas != null) {
final Bitmap bmp = Bitmap.createBitmap(colors, 0, w, w, h, Bitmap.Config.ARGB_8888);
computeDrawMatrix(x, y);
/* Draw the bitmap and invalidate the updated region. */
mCanvas.drawBitmap(bmp, mDrawMatrix, mPaint);
invalidate();
}
}
/**
* Draws a JPEG bitmap on the screen.
*
* @param x Left screen coordinate of the bitmap on emulator screen.
* @param y Top screen coordinate of the bitmap on emulator screen.
* @param w Width of the bitmap on the emulator screen.
* @param h Height of the bitmap on the emulator screen.
* @param jpeg JPEG bitmap to draw.
*/
public void drawJpeg(int x, int y, int w, int h, InputStream jpeg) {
if (mCanvas != null) {
final Bitmap bmp = BitmapFactory.decodeStream(jpeg);
computeDrawMatrix(x, y);
/* Draw the bitmap and invalidate the updated region. */
mCanvas.drawBitmap(bmp, mDrawMatrix, mPaint);
invalidate();
}
}
/**
* Constructs touch event message to be send to emulator.
*
* @param sb String builder where to construct the message.
* @param event Event for which to construct the message.
* @param ptr_index Index of the motion pointer for which to construct the
* message.
*/
void constructEventMessage(StringBuilder sb, MotionEvent event, int ptr_index) {
sb.append(" pid=").append(event.getPointerId(ptr_index));
if (mRotateDisplay == false) {
sb.append(" x=").append((int) (event.getX(ptr_index) / mDx));
sb.append(" y=").append((int) (event.getY(ptr_index) / mDy));
} else {
sb.append(" x=").append((int) (event.getY(ptr_index) / mDy));
sb.append(" y=").append((int) (getWidth() - event.getX(ptr_index) / mDx));
}
// At the system level the input reader takes integers in the range
// 0 - 100 for the pressure.
int pressure = (int) (event.getPressure(ptr_index) * 100);
// Make sure it doesn't exceed 100...
if (pressure > 100) {
pressure = 100;
}
sb.append(" pressure=").append(pressure);
}
/***************************************************************************
* Logging wrappers
**************************************************************************/
private void Loge(String log) {
Log.e(TAG, log);
}
private void Logw(String log) {
Log.w(TAG, log);
}
private void Logv(String log) {
Log.v(TAG, log);
}
}
Powered by Gitiles

Cristian Gonzalez

unread,
Jun 2, 2014, 5:01:52 PM6/2/14
to andro...@googlegroups.com
Android-IA have this implemented, so maybe someone can check its repositories for it or some kernel config/patch.

mike r

unread,
Jun 2, 2014, 7:02:22 PM6/2/14
to andro...@googlegroups.com
Ok, I'll Check into It.... I Looked (Briefly) Into Android-IA a couple days ago but got side tracked...

Mike

mike r

unread,
Jun 2, 2014, 8:40:59 PM6/2/14
to andro...@googlegroups.com
Went over to their Web Site and Searched You Thinj That Multitouch Driver would do it?

Mouse, Keyboard & Input devices
================================
Dell Touchpad
Windows Driver: Dell Touchpad Driver
***Linux Driver: hid_multitouch
Intel Serial IO Drivers
Windows Driver: Intel I2C BUS driver for Touch screen and Touchpad
Linux Driver: i2c_hid
Intel® Dual Band Wireless-AC 7260
Windows Driver: Intel(R) Dual Band Wireless 7260 Driver
Linux Driver: compat, iwlmvm, mac80211, iwlwifi, cfg80211
Intel® Dual Band Wireless 7260 Bluetooth
Windows Driver: Intel® Dual Band Wireless 7260 Bluetooth Driver
Linux Driver: compat, iwlmvm, mac80211, iwlwifi, cfg80211
Intel Corporation Intel(R) Sensor Solution
EHCI Host Controller
xHCI Host Controller
Reply all
Reply to author
Forward
0 new messages