Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
trackpad freezing after waking ibook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
b0j3
n00b
n00b


Joined: 25 Dec 2004
Posts: 20

PostPosted: Wed Apr 05, 2006 6:35 pm    Post subject: trackpad freezing after waking ibook Reply with quote

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
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Wed Apr 05, 2006 8:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
b0j3
n00b
n00b


Joined: 25 Dec 2004
Posts: 20

PostPosted: Wed Apr 05, 2006 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
b0j3
n00b
n00b


Joined: 25 Dec 2004
Posts: 20

PostPosted: Tue Apr 11, 2006 6:32 am    Post subject: Reply with quote

I've tried another sleep/wakeup cycle and it still doesn't work. Connecting USB mouse always works.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Apr 11, 2006 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
magnum@paranoia
n00b
n00b


Joined: 16 Jan 2005
Posts: 33
Location: Munich

PostPosted: Tue Apr 11, 2006 6:57 pm    Post subject: Re: trackpad freezing after waking ibook Reply with quote

Which iBook model exactly?
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Wed Apr 12, 2006 7:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Wed Apr 12, 2006 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Apr 12, 2006 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
magnum@paranoia
n00b
n00b


Joined: 16 Jan 2005
Posts: 33
Location: Munich

PostPosted: Wed Apr 12, 2006 11:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
magnum@paranoia
n00b
n00b


Joined: 16 Jan 2005
Posts: 33
Location: Munich

PostPosted: Fri Apr 14, 2006 10:11 am    Post subject: Reply with quote

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
View user's profile Send private message
b0j3
n00b
n00b


Joined: 25 Dec 2004
Posts: 20

PostPosted: Thu Apr 20, 2006 8:37 am    Post subject: Reply with quote

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
View user's profile Send private message
magnum@paranoia
n00b
n00b


Joined: 16 Jan 2005
Posts: 33
Location: Munich

PostPosted: Thu Apr 20, 2006 9:11 am    Post subject: Reply with quote

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
View user's profile Send private message
b0j3
n00b
n00b


Joined: 25 Dec 2004
Posts: 20

PostPosted: Thu Apr 20, 2006 10:42 am    Post subject: Reply with quote

Great site magnum.
When I'll have some time I'll try some of your solutions.
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Wed Apr 26, 2006 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Apr 26, 2006 10:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Thu Apr 27, 2006 8:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum