Blog Forum Wiki Links Contact Us NetbookUser

You are not logged in.

#1 2008-05-28 9:26:22 pm

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Ubuntu 8.04 Eee 900 Elantech touchpad driver port

As promised, here is a version of the mouse driver for Ubuntu 8.04, kernel 2.6.24.17.  Warning - I am not a kernel developer, just a console developer who was tired of the tap to click...so your mileage may vary.  This is most definitely a hack...

http://rapidshare.com/files/118458404/mouse.tar.gz.html

It is compiled with the latest kernel, so you probably want to update first.  It may work with the older one.

Unzip the tarball into your home folder.  Backup and replace your existing kernel mouse driver with this one...

cd /lib/modules/2.6.24-17-generic/kernel/drivers/input/mouse
sudo cp psmouse.ko psmouse.ko.sav
sudo cp /home/username/mouse/psmouse.ko .
sudo reboot

If you want the Elantech graphical touchpad program, download and install the following package:

http://update.eeepc.asus.com/p900/pool/ … 4_i386.deb

You should also be able to use the standard gsynaptics package if you want.

Please be my guest if you want to package this up nicer or give it a permanent home!

Offline

 

#2 2008-05-29 12:22:08 am

dgoodisi
Member
Registered: 2007-12-05
Posts: 85

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

What exactly is this supposed to do?  I read the other threads you participating on this and all I got was "900 uses the Elantech touchpad and not the Synaptic".  However my touchpad works just fine as is.  What is broken that this fixes?

Not trying to be argumentative, just consider me clueless wink

Offline

 

#3 2008-05-29 12:05:38 pm

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

Yes, the touchpad works.  But if you want to turn off the tap-to-click, adjust sensitivity, turn on horizontal/vertical edge scrolling, for example, you are out of luck unless you use this driver.

Offline

 

#4 2008-05-29 2:37:02 pm

dgoodisi
Member
Registered: 2007-12-05
Posts: 85

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

Ahh, now I get it.  Will this also remove the two finger scrolling?

Offline

 

#5 2008-05-29 3:53:34 pm

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

If you want.  You can turn any feature on or off.

Offline

 

#6 2008-05-30 3:26:33 am

ZilverZurfarn
ExtrEmE User
From: Gothenburg, Sweden
Registered: 2008-03-06
Posts: 1393

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

Looks like it works with kernel 2.6.24.16 too. At least the mouse still moves after replacing the module and rebooting.

The gsynaptics app seems a little temperamental - After tweaking (trying to) some settings, my mouse suddenly freezes as soon as X starts.
Had to revert to my backed up xorg.conf

/Zilver

Last edited by ZilverZurfarn (2008-05-30 3:44:01 am)


eee PC 900 2/20GB - 16GB SDHC - Debian Stable -  Chromium OS jagochmineee.blogspot.com

Offline

 

#7 2008-05-30 11:20:49 am

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

ZilverZurfarn wrote:

Looks like it works with kernel 2.6.24.16 too. At least the mouse still moves after replacing the module and rebooting.

The gsynaptics app seems a little temperamental - After tweaking (trying to) some settings, my mouse suddenly freezes as soon as X starts.
Had to revert to my backed up xorg.conf

/Zilver

Did you use gsynaptics or gsynaptics_elantech?

Offline

 

#8 2008-05-30 11:48:04 am

elbecko
Member
Registered: 2008-01-26
Posts: 15
Website

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

The driver worked on Arch Linux (kernel-eee 2.6.24.4) as well by recompiling psmouse module with tweaking a source code a bit. On Arch, vertical/horizontal scroll works fine. Although multi-touch functions don't work, it doesn't matter. Enabling old-style edge scroll is a great improvement for me. Thanks!!

BTW, does Ubuntu (Hardy) implement some multi-touch functions by its own way? They work out of the box despite that touchpad is misrecognized as Logitech and loading synaptics driver fails on X.

Last edited by elbecko (2008-05-30 2:53:01 pm)

Offline

 

#9 2008-05-30 2:41:33 pm

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

Not sure if Ubuntu (or other distros) have any multi touch functionality.

If you are having config problems, make sure you have the following section in your xorg.conf file.  It may not be in there by default...

Section "InputDevice"
    Identifier    "Synaptics Touchpad"
    Driver        "synaptics"
    Option        "SendCoreEvents"    "true"
    Option        "Device"        "/dev/input/mouse1"
    Option        "Protocol"        "auto-dev"
    Option        "HorizEdgeScroll"    "0"
    Option        "SHMConfig"        "true"
    Option        "MaxTapTime"        "0"
EndSection

The line for the device may be specific to having used the graphical config file.  So you may want to start off with:

Option "Device" "/dev/psaux"

I did test the driver with other USB mice plugged in as well.  I am not having any config problems on my Eee 900, but I am using gsynaptics_elantech from the Eee 900 repository.

Offline

 

#10 2008-05-31 9:44:10 pm

threehundredfps
New member
Registered: 2008-05-23
Posts: 3

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

Thanks for your work! This has saved me alot of trouble. I put your compiled driver on my blog server, so it can be downloaded and extracted with the following:

wget 'http://corey-m.com/blog/wp-content/uploads/2008/05/mouse.tar.gz'

tar zxvf mouse.tar.gz

Last edited by threehundredfps (2008-05-31 9:48:16 pm)

Offline

 

#11 2008-06-01 2:32:53 pm

elbecko
Member
Registered: 2008-01-26
Posts: 15
Website

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

I found that the driver causes some call trace shown in dmesg after resume (See output below). This happens on both Ubuntu and Arch. Practically it's harmless, I guess, but a bit annoying.

Is the guy who wrote the code planning to update it?

Code:

sysfs: duplicate filename 'reg_10' can not be created
WARNING: at /build/buildd/linux-2.6.24/fs/sysfs/dir.c:424 sysfs_add_one()
Pid: 5956, comm: pm-suspend Tainted: PF       2.6.24-16-generic #1
 [<c01d29af>] sysfs_add_one+0x9f/0xe0
 [<c01d22af>] sysfs_add_file+0x4f/0x90
 [<c01d3ef4>] sysfs_create_group+0x54/0xf0
 [<f8b6255a>] elantech_init+0x1fa/0x3c0 [psmouse]
 [<f8b5da94>] psmouse_extensions+0xd4/0x250 [psmouse]
 [<f8b5e3de>] psmouse_reconnect+0xbe/0x110 [psmouse]
 [<c028ca90>] atkbd_reconnect+0x50/0xe0
 [<c0284bc1>] serio_reconnect_driver+0x41/0x50
 [<c028555d>] serio_resume+0x3d/0x50
 [<c028101a>] dpm_resume+0x5a/0x170
 [<c0281144>] device_resume+0x14/0x20
 [<c0152f98>] suspend_devices_and_enter+0x58/0x100
 [<c015319e>] enter_state+0x15e/0x190
 [<c0153262>] state_store+0x92/0xe0
 [<c01531d0>] state_store+0x0/0xe0
 [<c01d1c42>] subsys_attr_store+0x32/0x50
 [<c01d1fe1>] sysfs_write_file+0xc1/0x110
 [<c01d1f20>] sysfs_write_file+0x0/0x110
 [<c018d7e9>] vfs_write+0xb9/0x170
 [<c018df21>] sys_write+0x41/0x70
 [<c01043c2>] sysenter_past_esp+0x6b/0xa9
 [<c0310000>] vcc_getsockopt+0x150/0x170
 =======================
elantech.c: failed to create sysfs attributes, error: -17

Offline

 

#12 2008-06-01 9:03:00 pm

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

Good find!!!

The version we are using is from Xandros, so they don't sleep or hibernate because of the fast init and shutdown code.

Debugging this - the driver was leaking memory - it is possible to either run out of kernel memory or crash with a leak upon resuming from sleep too many times.

Here is my patched version...give it a try.  It should reinit correctly from sleeping.

http://rapidshare.com/files/119439376/m … ar.gz.html

I also applied a later Xandros patch - not sure why they added their extra code.  It does reset unknown registers to a default state upon initialization.  The original patch was from the version that we all got with our Eee 900's.

Offline

 

#13 2008-06-02 12:07:19 am

elbecko
Member
Registered: 2008-01-26
Posts: 15
Website

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

StewieGriffin wrote:

Here is my patched version...give it a try.  It should reinit correctly from sleeping.
http://rapidshare.com/files/119439376/m … ar.gz.html

Call trace issue has gone. Memory leaking looks fixed as far as I checked the source. Thanks!!

Offline

 

#14 2008-06-02 7:42:43 am

ZilverZurfarn
ExtrEmE User
From: Gothenburg, Sweden
Registered: 2008-03-06
Posts: 1393

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

StewieGriffin wrote:

Did you use gsynaptics or gsynaptics_elantech?

gsynaptics_elantech - Tried again today with new psmouse.ko with the same result. Mouse froze as soon as I tried gsynaptics. Had to revert to old xorg.conf and original psmouse.ko to at least get my twofinger vert scroll back...

/Zilver

Last edited by ZilverZurfarn (2008-06-02 7:43:11 am)


eee PC 900 2/20GB - 16GB SDHC - Debian Stable -  Chromium OS jagochmineee.blogspot.com

Offline

 

#15 2008-06-02 12:46:03 pm

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

threehundredfps wrote:

Thanks for your work! This has saved me alot of trouble. I put your compiled driver on my blog server, so it can be downloaded and extracted with the following:

wget 'http://corey-m.com/blog/wp-content/uploads/2008/05/mouse.tar.gz'

tar zxvf mouse.tar.gz

Can you make a new tar with the latest?  Thanks!

Offline

 

#16 2008-06-02 1:40:22 pm

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

ZilverZurfarn wrote:

StewieGriffin wrote:

Did you use gsynaptics or gsynaptics_elantech?

gsynaptics_elantech - Tried again today with new psmouse.ko with the same result. Mouse froze as soon as I tried gsynaptics. Had to revert to old xorg.conf and original psmouse.ko to at least get my twofinger vert scroll back...

/Zilver

What kernel are you running under?

Offline

 

#17 2008-06-02 10:41:36 pm

ironclaw
Member
Registered: 2008-05-13
Posts: 43

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

Is there any way to get two finger scrolling working with this driver? Looking at 'symclient -m 100', it seems that up to three fingers are detected, but no touchpad movement registers for two and three fingers.

Offline

 

#18 2008-06-03 2:40:21 am

ZilverZurfarn
ExtrEmE User
From: Gothenburg, Sweden
Registered: 2008-03-06
Posts: 1393

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

StewieGriffin wrote:

What kernel are you running under?

The "original" 8.04 kernel - 2.6.24.16

/Zilver


eee PC 900 2/20GB - 16GB SDHC - Debian Stable -  Chromium OS jagochmineee.blogspot.com

Offline

 

#19 2008-06-03 11:56:39 am

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

ZilverZurfarn wrote:

StewieGriffin wrote:

What kernel are you running under?

The "original" 8.04 kernel - 2.6.24.16

/Zilver

I suspect that is the problem you are having with this precompiled driver for 2.6.24.17.  If you know how to recompile it, you can try that for 2.6.24.16.  There is some magic that goes on when modules communicate with the kernel to set parameters that I suspect is going bad on your box.

If you do update to 2.6.24.17, you will have to recompile your madwifi driver and your acpi driver.

Offline

 

#20 2008-06-03 3:09:06 pm

fuji001
New member
Registered: 2008-06-03
Posts: 8

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

I have replaced the original psmouse.ko with the one provided. Yet I am still not sure how to configure the 3-finger multi-touch function. Any clue? Thanks for helping!

I keep receiving the following error message when using gsynaptics

** (gsynaptics:6119): WARNING **: Using synclient

(gsynaptics:6119): Gtk-CRITICAL **: gtk_toggle_button_set_active: assertion `GTK_IS_TOGGLE_BUTTON (toggle_button)' failed

(gsynaptics:6119): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(gsynaptics:6119): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

AND

Unknown parameter RotateRight
Unknown parameter RotateLeft
Unknown parameter ZoomIn
Unknown parameter ZoomOut

PLEASE HELP!

EEEPC 900

Offline

 

#21 2008-06-03 4:15:17 pm

ZilverZurfarn
ExtrEmE User
From: Gothenburg, Sweden
Registered: 2008-03-06
Posts: 1393

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

StewieGriffin wrote:

If you know how to recompile it, you can try that for 2.6.24.16.

I tried "make" from the package (that's as fas as my Linux compile skills takes me!) but that didn't work...

/Zilver


eee PC 900 2/20GB - 16GB SDHC - Debian Stable -  Chromium OS jagochmineee.blogspot.com

Offline

 

#22 2008-06-03 6:01:55 pm

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

fuji001 wrote:

I have replaced the original psmouse.ko with the one provided. Yet I am still not sure how to configure the 3-finger multi-touch function. Any clue? Thanks for helping!

I keep receiving the following error message when using gsynaptics

** (gsynaptics:6119): WARNING **: Using synclient

(gsynaptics:6119): Gtk-CRITICAL **: gtk_toggle_button_set_active: assertion `GTK_IS_TOGGLE_BUTTON (toggle_button)' failed

(gsynaptics:6119): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(gsynaptics:6119): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

AND

Unknown parameter RotateRight
Unknown parameter RotateLeft
Unknown parameter ZoomIn
Unknown parameter ZoomOut

PLEASE HELP!

EEEPC 900

Make sure you are using kernel 2.6.24.17 (run Update Manager) and using the gynaptics_elantech package.

Let me know if you are still having troubles after that.

Offline

 

#23 2008-06-04 11:45:02 am

fuji001
New member
Registered: 2008-06-03
Posts: 8

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

StewieGriffin wrote:

fuji001 wrote:

I have replaced the original psmouse.ko with the one provided. Yet I am still not sure how to configure the 3-finger multi-touch function. Any clue? Thanks for helping!

I keep receiving the following error message when using gsynaptics

** (gsynaptics:6119): WARNING **: Using synclient

(gsynaptics:6119): Gtk-CRITICAL **: gtk_toggle_button_set_active: assertion `GTK_IS_TOGGLE_BUTTON (toggle_button)' failed

(gsynaptics:6119): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(gsynaptics:6119): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

AND

Unknown parameter RotateRight
Unknown parameter RotateLeft
Unknown parameter ZoomIn
Unknown parameter ZoomOut

PLEASE HELP!

EEEPC 900

Make sure you are using kernel 2.6.24.17 (run Update Manager) and using the gynaptics_elantech package.

Let me know if you are still having troubles after that.

Yes, I am using 2.6.24-17-generic and gsynaptics-elantech_0.9.7-3asus4_i386.deb has been installed on my eeepc 900. It would be much appreciated if you would be able to help, Thanks!

Offline

 

#24 2008-06-04 12:04:07 pm

fuji001
New member
Registered: 2008-06-03
Posts: 8

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

Hello StewieGriffin,

Would it be possible for you to provide us instructions of compiling the driver from source and configuring after installing the driver? Thank you very much!

Offline

 

#25 2008-06-04 12:33:00 pm

StewieGriffin
Senior Member
Registered: 2007-11-08
Posts: 151

Re: Ubuntu 8.04 Eee 900 Elantech touchpad driver port

fuji001 wrote:

Hello StewieGriffin,

Would it be possible for you to provide us instructions of compiling the driver from source and configuring after installing the driver? Thank you very much!

Sure, first set up your machine to compile your Linux kernel...

https://help.ubuntu.com/community/Kernel/Compile

...the following is a bit simplified on purpose...

Run make menuconfig, and make sure you turn off debugging, otherwise you will have a slow, long compile.

Unzip my files into drivers/input/mouse.  They will replace the files that are there.  If there were any code changes/patches, you may have to merge instead of unzipping.  You should whack all the .o and .ko and any other intermediate files.

Then run make modules - it will build everything the first time, then if you change your mouse stuff, it will only build that much quicker.

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson