| View previous topic :: View next topic |
| Author |
Message |
b0j3 n00b

Joined: 25 Dec 2004 Posts: 20
|
Posted: Wed Apr 05, 2006 1:35 pm Post subject: trackpad freezing after waking ibook |
|
|
Helo!
When I wake ibook from sleep (while in X) the trackpad doesn't work.
I tried to do init1 and removed all the modules but it doesn't help.
After reboot it works again.
Any ideas?
B. |
|
| Back to top |
|
 |
Cenrim Tux's lil' helper


Joined: 04 Dec 2004 Posts: 142 Location: Germany
|
Posted: Wed Apr 05, 2006 3:44 pm Post subject: |
|
|
USB or ADB base trackpad?
maybe its a usb/sleep problem.
you should try another sleep/wakeup-cycle when it's frozen and check, if it works again.
would be typical for a usb/sleep-problem _________________ [/garbage] |
|
| Back to top |
|
 |
b0j3 n00b

Joined: 25 Dec 2004 Posts: 20
|
Posted: Wed Apr 05, 2006 4:09 pm Post subject: |
|
|
| Cenrim wrote: | USB or ADB base trackpad?
maybe its a usb/sleep problem.
you should try another sleep/wakeup-cycle when it's frozen and check, if it works again.
would be typical for a usb/sleep-problem |
Hm, I don't know what ADB base trackpad is? |
|
| Back to top |
|
 |
b0j3 n00b

Joined: 25 Dec 2004 Posts: 20
|
Posted: Tue Apr 11, 2006 1:32 am Post subject: |
|
|
| I've tried another sleep/wakeup cycle and it still doesn't work. Connecting USB mouse always works. |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2652
|
Posted: Tue Apr 11, 2006 10:25 am Post subject: |
|
|
ADB is an older input bus, used by most macs. If you're using the "Appletouch" driver, then you don't have an ADB mouse. If you are, you're using a USB mouse.
In your Xorg.conf, what device is the mouse input driver pointing to? If it's not already set, try /dev/input/mice. Are you using mouseemu? If so, try disabiling it and see if the problem stops. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
| Back to top |
|
 |
magnum@paranoia n00b

Joined: 16 Jan 2005 Posts: 33 Location: Munich
|
Posted: Tue Apr 11, 2006 1:57 pm Post subject: Re: trackpad freezing after waking ibook |
|
|
| Which iBook model exactly? |
|
| Back to top |
|
 |
oumpah-pah Guru


Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Wed Apr 12, 2006 2:10 pm Post subject: |
|
|
| I have the same problem. It's a USB trackpad, on a recent iBook (one week), and the device is set to /dev/input/mice in xorg.conf. I don't use mouseemu, only pbbuttonsd. I'm not sure where I should begin. I'll try tweaking the kernel and the latest pbbuttonsd, and see if it works. Any suggestion? |
|
| Back to top |
|
 |
oumpah-pah Guru


Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Wed Apr 12, 2006 2:42 pm Post subject: |
|
|
| OK, it worked. I just emerged pbbuttonsd-0.7.5, and now the trackpad works perfectly after wakeup. (Note: pbbuttonsd-0.7.5 is not in portage yet, but you can use the 0.7.4 ebuild without any modifications, simply rename it to pbbuttonsd-0.7.5.ebuild.) |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2652
|
Posted: Wed Apr 12, 2006 3:01 pm Post subject: |
|
|
Well, that's annoying. Usually Matthias makes announcements on the mailing list when there's a new pbbuttonsd version. :p I've added the latest to portage. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
| Back to top |
|
 |
magnum@paranoia n00b

Joined: 16 Jan 2005 Posts: 33 Location: Munich
|
Posted: Wed Apr 12, 2006 6:21 pm Post subject: |
|
|
So I assume, that you both do not use the synaptics driver in X11. I use the synaptics driver and usually notap works allright.
Some months ago I tested it withmout the synaptics driver and found no way to disable tapping. But tapping was active all the time, not only after wakeup from sleep.
Ok, I'm going to test the new pbbuttons with synaptics and without. |
|
| Back to top |
|
 |
magnum@paranoia n00b

Joined: 16 Jan 2005 Posts: 33 Location: Munich
|
Posted: Fri Apr 14, 2006 5:11 am Post subject: |
|
|
Ok, I tested now.
Without the synaptics driver:
- Suspend-to-ram and suspend-to-disk both work fine.
- But tapping is always active, although in pbbuttonsd.conf I have "TPMode = notap".
With synaptics driver:
- Suspend-to-ram works fine.
- Suspend-to-disk works also, but after resume the pointer moves slowly. I have to switch to console and back to X then to make it move like it should.
- The trackpad does not set the dim counter, so I have to press a key to undim to screen. |
|
| Back to top |
|
 |
b0j3 n00b

Joined: 25 Dec 2004 Posts: 20
|
Posted: Thu Apr 20, 2006 3:37 am Post subject: |
|
|
It seems that compilation of usb stuff (usbcore, appletouch, ...) as modules solved the problem.
There is another issue with synaptic driver for X which is not started. I guess it's the appletouch's fault.
I'll try to remove appletouch and see what happens. |
|
| Back to top |
|
 |
magnum@paranoia n00b

Joined: 16 Jan 2005 Posts: 33 Location: Munich
|
Posted: Thu Apr 20, 2006 4:11 am Post subject: |
|
|
| b0j3 wrote: | | It seems that compilation of usb stuff (usbcore, appletouch, ...) as modules solved the problem. |
I have appletouch and usbcore running as modules.
| b0j3 wrote: | | There is another issue with synaptic driver for X which is not started. I guess it's the appletouch's fault. I'll try to remove appletouch and see what happens. |
You may have a look at my webpage about installing linux on this iBook:
http://cmr.forestfactory.de/ibook/linux/ibook_linux.html
Most things on the iBook work well, but I still have some annoying problems. Please post your experiences and if you also have the same remaining problems as me. Thank you,
Magnum _________________ http://cmr.forestfactory.de/ibook/linux/ |
|
| Back to top |
|
 |
b0j3 n00b

Joined: 25 Dec 2004 Posts: 20
|
Posted: Thu Apr 20, 2006 5:42 am Post subject: |
|
|
Great site magnum.
When I'll have some time I'll try some of your solutions. |
|
| Back to top |
|
 |
oumpah-pah Guru


Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Wed Apr 26, 2006 3:01 pm Post subject: |
|
|
It turns out pbbuttonsd-0.7.5 didn't solve anything. In fact, I realized that if my iBook sleeps for less than 10 minutes, the touchpad wakes up fine, but if it sleeps longer, it's frozen until I reboot. I now use the synaptics driver, and I've enabled CONFIG_USB_SUSPEND in the kernel. Now it seems to work (compiling usbcore and appletouch as modules was not necessary).
Thanks a lot for your suggestions, magnum@paranoia. Now the only problem left is that the touchpad does not reset the dim timer, but I think it's a known issue that is likely to be fixed in the next pbbuttonsd realese. |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2652
|
Posted: Wed Apr 26, 2006 5:11 pm Post subject: |
|
|
It's not because of pbbuttonsd, it's because of synaptics not passing the events so pbbuttonsd can see them.
This patch from the pbbuttonsd mailing list should fix it:
http://sourceforge.net/mailarchive/forum.php?thread_id=9973470&forum_id=40677
| Code: |
diff -uNrp synaptics-0.14.2/eventcomm.c synaptics-0.14.2.new/eventcomm.c
--- synaptics-0.14.2/eventcomm.c 2005-03-28 11:29:50.000000000 -0500
+++ synaptics-0.14.2.new/eventcomm.c 2006-03-19 12:35:03.000000000 -0500
@@ -39,12 +39,14 @@ static void
EventDeviceOnHook(LocalDevicePtr local)
{
/* Try to grab the event device so that data don't leak to /dev/input/mice */
+ /*
int ret;
SYSCALL(ret = ioctl(local->fd, EVIOCGRAB, (pointer)1));
if (ret < 0) {
xf86Msg(X_WARNING, "%s can't grab event device, errno=%d\n",
local->name, errno);
}
+ */
}
static void
|
_________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
| Back to top |
|
 |
oumpah-pah Guru


Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Thu Apr 27, 2006 3:33 am Post subject: |
|
|
You were right, JoseJX. I modified synaptics-0.14.4-r2.ebuild to include the patch (which I also modified a bit, so that epatch would apply it correctly), and now everything works like a charm. Thank you very much!
Here are the two files I used:
synaptics-0.14.4-r2.ebuild
| Code: | # Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/synaptics/synaptics-0.14.4-r2.ebuild,v 1.2 2006/02/15 22:30:02 corsair Exp $
inherit toolchain-funcs eutils
DESCRIPTION="Driver for Synaptics touchpads"
HOMEPAGE="http://w1.894.telia.com/~u89404340/touchpad/"
SRC_URI="http://w1.894.telia.com/~u89404340/touchpad/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="dlloader"
RDEPEND="|| ( x11-libs/libXext virtual/x11 )"
DEPEND="${RDEPEND}
|| ( x11-base/xorg-server virtual/x11 )
>=sys-apps/sed-4"
src_unpack() {
unpack ${A} ; cd ${S}
epatch ${FILESDIR}/${PF}-makefile.patch
if use ppc
then
epatch ${FILESDIR}/${PF}-dont_grab_events.patch
fi
if use dlloader || has_version ">=x11-base/xorg-x11-6.8.99.15" || has_version ">=x11-base/xorg-server-0.99"
then
epatch ${FILESDIR}/${PF}-makefile-fpic.patch
fi
# Switch up the CC and CFLAGS stuff.
sed -i \
-e "s:CC = gcc:CC = $(tc-getCC):g" \
-e "s:CDEBUGFLAGS = -O2:CDEBUGFLAGS = ${CFLAGS}:g" \
${S}/Makefile
}
src_compile() {
emake || die
if use dlloader || has_version ">=x11-base/xorg-x11-6.8.99.15" || has_version ">=x11-base/xorg-server-0.99"
then
$(tc-getCC) -shared -nostdlib -o synaptics_drv.so synaptics_drv.o -Bstatic -lgcc
fi
}
src_install() {
make DESTDIR=${D} install || die
if use dlloader || has_version ">=x11-base/xorg-x11-6.8.99.15" || has_version ">=x11-base/xorg-server-0.99"
then
if has_version ">=x11-base/xorg-x11-7.0" || has_version ">=x11-base/xorg-server-0.99"
then
exeinto /usr/$(get_libdir)/xorg/modules/input
doexe synaptics_drv.so
else
exeinto /usr/$(get_libdir)/modules/input
doexe synaptics_drv.so
fi
rm ${D}/usr/$(get_libdir)/modules/input/synaptics_drv.o
fi
dodoc script/usbmouse alps.patch
dodoc COMPATIBILITY FILES INSTALL* LICENSE NEWS TODO README*
# Stupid new daemon, didn't work for me because of shm issues
newinitd ${FILESDIR}/rc.init syndaemon
newconfd ${FILESDIR}/rc.conf syndaemon
} |
synaptics-0.14.4-r2-dont_grab_events.patch
| Code: | --- eventcomm.c.old 2005-08-07 21:44:04.000000000 +0200
+++ eventcomm.c 2006-04-27 06:38:22.000000000 +0200
@@ -39,12 +39,14 @@ static void
EventDeviceOnHook(LocalDevicePtr local)
{
/* Try to grab the event device so that data don't leak to /dev/input/mice */
+ /*
int ret;
SYSCALL(ret = ioctl(local->fd, EVIOCGRAB, (pointer)1));
if (ret < 0) {
xf86Msg(X_WARNING, "%s can't grab event device, errno=%d\n",
local->name, errno);
}
+ */
}
static void |
|
|
| Back to top |
|
 |
|