You are not logged in.

#1 2007-11-10 16:04:59

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Macbook touchpad

I'm trying to set up the touchpad of my Macbook and have followed the instructions in the wiki:

*  First you must add, appletouch, usbhid, and tsdev modules to the MOD_BLACKLIST array in rc.conf
    * Then add appletouch, usbhid to MODULES array IN THAT ORDER.

But isn't that setup conflicting? First blacklist the modules and them load them again?

Offline

#2 2007-11-10 16:16:25

royrocks
Member
Registered: 2007-07-27
Posts: 6

Re: Macbook touchpad

udev loads the modules in random order.   
Nevertheless its working also without this instruction.

Offline

#3 2007-11-11 10:35:22

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Re: Macbook touchpad

Ah, okay. I had a look in the Debian Wiki to see what to put in the xorg.conf to enable reight-clicking. (That's what I should have asked for in the first place...)

Offline

#4 2008-02-10 14:19:42

tianyu263
Member
Registered: 2008-02-10
Posts: 7

Re: Macbook touchpad

i have the same problem with my Macbook3,1.
and i have tried the following methods, but it still do not work:
1. *  First you must add, appletouch, usbhid, and tsdev modules to the MOD_BLACKLIST array in rc.conf
    * Then add appletouch, usbhid to MODULES array IN THAT ORDER.
2.  installed pommed, it do not work.
3. installed pommed-svn, it do not work.
4. changed the xorg.conf (all methods i can find on line).

I have also gotten following error in the Xorg.0.log:
--------------------------------------------------------------------------
(EE) Synaptics Touchpad no synaptics touchpad detected and no repeater device
(EE) Synaptics Touchpad Unable to query/initialize Synaptics hardware.
(EE) PreInit failed for input device "Synaptics Touchpad"
--------------------------------------------------------------------------

Offline

#5 2008-02-10 14:24:32

tianyu263
Member
Registered: 2008-02-10
Posts: 7

Re: Macbook touchpad

additionally, my laptop is intel macbook 3th generation, MB061.

Offline

#6 2008-02-12 11:05:11

abstracity
Member
From: Houston, USA
Registered: 2007-08-08
Posts: 83

Re: Macbook touchpad

tianyu263, could you please post the contents of your xorg.conf file, the output of "lsmod," and the output of "grep MOD /etc/rc.conf?"

You have indicated that the installation of pommed was part of the process you took to configure the touchpad, but yet pommed is not an application that is designed to control it.  The MacBook's touchpad is able to work through the "appletouch" driver and proper configuration of the X server.  In addition, it makes sense to blacklist "tsdev" from udev's auto-detection, but I do not know why you deem it necessary to load "appletouch" before "usbhid."  In fact, I think it makes more sense to load "usbhid" before the "appletouch" driver.


Without error there can be no brilliancy. ― Emanuel Lasker

Offline

#7 2008-02-13 14:04:21

tianyu263
Member
Registered: 2008-02-10
Posts: 7

Re: Macbook touchpad

a lot of thanks for your reply. following is my configuration terms:
xorg.conf file:

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    InputDevice    "Generic Keyboard"
    InputDevice "Synaptics Touchpad" "SendCoreEvents" #"CorePointer"
    InputDevice    "Configured Mouse" "CorePointer" #"SendCoreEvents"

# Uncomment if you have a wacom tablet
#    InputDevice     "stylus"    "SendCoreEvents"
#    InputDevice     "cursor"    "SendCoreEvents"
#    InputDevice     "eraser"    "SendCoreEvents"
EndSection

Section "Files"
    RgbPath         "/usr/share/X11/rgb"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc/"
    FontPath        "/usr/share/fonts/Type1/"
    FontPath        "/usr/share/fonts/TTF/"
    FontPath        "/usr/share/fonts/OTF"
    FontPath        "/usr/share/fonts/vista/"
EndSection

Section "Module"
  Load "GLcore"
  Load "bitmap"
  Load "dbe"
  Load "ddc"
  Load "dri"
  Load "extmod"
  Load "freetype"
  Load "glx"
  Load "int10"
  Load "record"
  Load "vbe"
  Load "synaptics"
EndSection

Section "Extensions"
    Option "Composite" "Enable"
EndSection

# Section "InputDevice"
#         Identifier      "Generic Keyboard"
#         Driver          "kbd"
#         Option          "CoreKeyboard"
#         Option          "XkbRules"      "xorg"
#         Option          "XkbModel"      "mac"
#         Option          "XkbLayout"     "us"
#         #Option          "XkbOptions"    "lv3:lwin_switch"
# EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "us"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ImPS/2"
    Option        "ZAxisMapping"        "4 5"
    Option        "Emulate3Buttons"    "true"
EndSection

Section "InputDevice"
      Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"

        Option          "LeftEdge"              "100"
        Option          "RightEdge"             "1100"
        Option          "TopEdge"               "50"
        Option          "BottomEdge"            "300"
        Option          "FingerLow"             "20"
        Option          "FingerHigh"            "30"

        Option          "MaxTapTime"            "100"
        Option          "MaxTapMove"            "220"
        Option          "SingleTapTimeout"      "100"
        Option          "MaxDoubleTapTime"      "180"
        Option          "LockedDrags"           "false"
        Option          "MinSpeed"              "1.10"
        Option          "MaxSpeed"              "1.30"
        Option          "AccelFactor"           "0.08"

        Option          "TapButton1"            "1"
        Option          "TapButton2"            "3"
        Option          "TapButton3"            "2"

        Option          "RTCornerButton"        "0"
        Option          "RBCornerButton"        "2"
        Option          "LTCornerButton"        "0"
        Option          "LBCornerButton"        "3"

        Option          "VertScrollDelta"       "20"
        Option          "HorizScrollDelta"      "50"

        Option          "HorizEdgeScroll"       "1"
        Option          "VertEdgeScroll"        "1"

    Option "VertTwoFingerScroll" "true"
    Option "HorizTwoFingerScroll" "0"
    Option "FastTaps" "true"
    Option "MaxSpeed" "3.5"
    Option "AccelFactor" "0.05"
    Option "AccelFactor" "0.05"
  Option  "SHMConfig"   "on"
  Option  "Emulate3Buttons"   "on"
EndSection

Section "Device"
    Identifier    "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
    Driver        "intel"
    BusID        "PCI:0:2:0"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection "Display"
        Viewport 0 0
        Depth    16
        Modes        "1280x800" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Viewport    0 0
        Depth       24
        Modes       "1280x800" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "DRI"
#    Group 0
    Mode 0666
EndSection

the "lsmod" output:

[tianyu@tianyu X11]$ lsmod
Module                  Size  Used by
i915                   22144  2
drm                    70548  3 i915
eeprom                  6032  0
i2c_dev                 6276  0
appletouch              9088  0
ipv6                  248388  16
coretemp                6016  0
fuse                   42260  2
sg                     26640  0
fan                     3844  0
st                     36380  0
sky2                   40324  0
snd_seq_oss            29440  0
snd_seq_midi_event      6528  1 snd_seq_oss
snd_seq                47056  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6924  2 snd_seq_oss,snd_seq
snd_hda_intel         289952  7
snd_hwdep               7300  1 snd_hda_intel
snd_pcm_oss            37024  0
snd_pcm                68996  4 snd_hda_intel,snd_pcm_oss
snd_timer              19204  4 snd_seq,snd_pcm
snd_page_alloc          8072  2 snd_hda_intel,snd_pcm
snd_mixer_oss          14464  1 snd_pcm_oss
snd                    44772  19 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               6368  1 snd
rtc_cmos                7584  0
rtc_core               15496  1 rtc_cmos
rtc_lib                 2944  1 rtc_core
shpchp                 29460  0
pci_hotplug            26528  1 shpchp
pcspkr                  2944  0
psmouse                36496  0
i2c_i801                8848  0
i2c_core               19328  3 eeprom,i2c_dev,i2c_i801
uinput                  7680  1
joydev                  9664  0
evdev                   9344  11
applesmc               21684  0
led_class               3332  1 applesmc
input_polldev           3720  1 applesmc
firewire_ohci          16128  0
firewire_core          36544  1 firewire_ohci
crc_itu_t               2304  1 firewire_core
intel_agp              21780  1
agpgart                27352  3 drm,intel_agp
video                  16016  0
output                  3200  1 video
thermal                13084  0
processor              29400  3 thermal
button                  6544  0
battery                10756  0
ac                      4612  0
ext3                  121992  3
jbd                    43412  1 ext3
mbcache                 6912  1 ext3
usbhid                 40896  0
hid                    33920  1 usbhid
ff_memless              5128  1 usbhid
sd_mod                 22656  6
sr_mod                 14884  0
cdrom                  33824  1 sr_mod
uhci_hcd               22672  0
ehci_hcd               32524  0
usbcore               125292  5 appletouch,usbhid,uhci_hcd,ehci_hcd
ata_piix               14724  5
ata_generic             5252  0
pata_acpi               5248  0
libata                137712  3 ata_piix,ata_generic,pata_acpi
[tianyu@tianyu X11]$

the output of "grep MOD /etc/rc.conf?"

[tianyu@tianyu etc]$ grep MOD /etc/rc.conf
MOD_AUTOLOAD="yes"
MOD_BLACKLIST=(tsdev)
MODULES=(ac battery button processor thermal video cdrom agpgart intel-agp firewire-core firewire-ohci hid applesmc uinput usbhid i2c-i801 i2c-core evdev psmouse ff-memless joydev pcspkr pci_hotplug shpchp rtc-cmos rtc-core rtc-lib output crc-itu-t snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore pata_acpi ata_generic ata_piix sky2 usbhid usbcore ehci-hcd uhci-hcd firewire-core firewire-ohci !ieee1394 !ohci1394 appletouch sd_mod sr_mod st)
[tianyu@tianyu etc]$

thanks very much and a million.
-------------------------------------------------------
Please excuse me for my non-native English

Offline

#8 2008-02-13 14:17:38

tianyu263
Member
Registered: 2008-02-10
Posts: 7

Re: Macbook touchpad

BWT. now i add following shell command  to rc.local for the correct load-order:

rmmod appletouch usbhid >/dev/null 2>&1
modprobe appletouch
sleep 2
modprobe usbhid

but, I do not work, too.

additionally, the "FN" key is not work, too.  and i don't have the "HOME, END, PAGEUP PAGEDOWN" key for my work.

"options snd_hda_intel model=w2jc" is used for my sound, and no Headphone work.
i have tried following configuration in the /etc/modprobe.conf, but they all don't work:

#options snd-hda-intel position_fix=1
#options snd-hda-intel model=macbook
#options snd_hda_intel model=intel_mac_v4
#options snd_hda_intel model=w2jc position_fix=1
#options snd-hda-intel model=laptop
#options snd-hda-intel model=asus position_fix=1

and today I have updated my arch linux all package used in my MB, and kernel26 version is "kernel26 2.6.24.1-2 (base)".
but all is still there. sad

Last edited by tianyu263 (2008-02-13 14:28:08)

Offline

#9 2008-02-13 14:19:40

augustob
Member
From: Florianópolis, Brazil
Registered: 2006-03-17
Posts: 135

Re: Macbook touchpad

Usbhid is probably being loaded before appletouch. As you read before, this is a no-no. Add both modules to MOD_BLACKLIST, take them out of MODULES, add this to rc.local:

/sbin/modprobe appletouch
sleep 2
/sbin/modprobe usbhid

And use this xorg.conf:

Section "InputDevice"
    # updated 2007-12-07
    # use command "synclient -m 1" to see raw output
    # common stuff
    Identifier      "Synaptics Touchpad"
    Driver          "synaptics"
    Option          "CorePointer"
    Option          "Device"                "/dev/input/mouse0"
    Option          "Protocol"              "auto-dev"

    # not using edge scrolling
    Option          "HorizEdgeScroll"       "0"
    Option          "VertEdgeScroll"        "0"

    # use two finger scrolling
    Option          "VertTwoFingerScroll"   "1"
    Option          "HorizTwoFingerScroll"  "0" # set to 0 if you don't want horizontal scrolling

    # scroll speed, lower is faster
    Option          "HorizScrollDelta"      "15"
    Option          "VertScrollDelta"       "15"

    # minimum pressure motion factor
    Option          "PressureMotionMinZ"    "10"

    # touch and untouch thresholds, higher numbers if you like to push hard
    Option          "FingerLow"             "10"
    Option          "FingerHigh"            "20" # change to 30 or 40 if you like

    # borders based on output from synclient
    Option          "LeftEdge"              "20"
    Option          "RightEdge"             "1200"
    Option          "TopEdge"               "20"
    Option          "BottomEdge"            "370"

    # speeds, smaller number for a slower mouse
    Option          "MinSpeed"              "1" # 0.5 is very slow, 1.5 is very fast
    Option          "MaxSpeed"              "1.4" # up to 1.5 works ok
    Option          "AccelFactor"           "0.10"

    # tap times, change to suit your tapping habits
    Option          "MaxTapMove"            "100"
    Option          "MaxTapTime"            "100"
    Option          "MaxDoubleTapTime"      "200"

    # don't change these or two finger tap stops working
    Option          "TapButton2"            "3"
    Option          "TapButton3"            "2"

    # must be commented out or normal tapping wont work
    #Option         "TapButton1"            "0"

    # needed for disabled while typing fix 
    Option          "SHMConfig"             "on"
EndSection

Section "InputDevice"
    Identifier      "Bluetooth Mouse"
    Driver          "mouse"
    Option          "Device"           "/dev/input/mice"

    Option         "Buttons" "6"
    Option         "Protocol" "auto"
    Option        "ZAxisMapping" "4 5"
    Option        "ButtonMapping" "1 2 3 6"

EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option      "CoreKeyboard"
    Option "XkbRules" "xorg"
    #Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    Option "XkbVariant" "intl"
EndSection

Section "Device"
    Identifier    "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
    Driver        "intel"
    BusID        "PCI:0:2:0"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection "Display"
        Modes        "1280x800"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    InputDevice    "Keyboard0"
    InputDevice     "Synaptics Touchpad"
    InputDevice     "Bluetooth Mouse"
EndSection

Offline

#10 2008-02-13 14:24:55

augustob
Member
From: Florianópolis, Brazil
Registered: 2006-03-17
Posts: 135

Re: Macbook touchpad

Wow, two minutes apart. For best results (and fn key support), use my kernel, linked in this thread:

http://bbs.archlinux.org/viewtopic.php?id=36408

Sound should work with: options snd-hda-intel model=mbp3

Last edited by augustob (2008-02-13 14:25:55)

Offline

#11 2008-02-13 14:31:10

tianyu263
Member
Registered: 2008-02-10
Posts: 7

Re: Macbook touchpad

thanks. i will immediately try it now.

Offline

#12 2008-02-13 15:32:59

tianyu263
Member
Registered: 2008-02-10
Posts: 7

Re: Macbook touchpad

thanks very very much.
my MB all is ok, including sound and Headphone, fn and touchpad.

thanks again to augustob.

Offline

#13 2010-04-10 08:13:45

commander_keen
Member
From: europe
Registered: 2009-12-26
Posts: 14

Re: Macbook touchpad

hello,
did anyone of you manage to get the trackpad working on a new macbook (gen.6 white). On older macbooks theres seem to be basics like navigating an left clicking out of the box but my trackpad is simply "dead". The only thing working now is a usb-mice. I have a /dev/mouse linking to /dev/input/mice. I think this is the usb-mice, since cat of this "thing" prints out lots of cryptic symbols when moving around the external mice. I also have /dev/input/mouse0,1 and 2. mouse2 behaves as mice but none of these 4 prints things using cat when moving around on the trackpad.

Another strange thing is the output of
# cat /proc/bus/input/devices
showing kbd but not mouse

[...]
I: Bus=0003 Vendor=05ac Product=0236 Version=0111
N: Name="Apple Inc. Apple Internal Keyboard / Trackpad"
P: Phys=usb-0000:00:04.0-6/input0
S: Sysfs=/devices/pci0000:00/0000:00:04.0/usb3/3-6/3-6:1.0/input/input6
U: Uniq=
H: Handlers=kbd event6 
B: EV=120013
B: KEY=10000 0 0 0 0 0 0 1007b 11007 ff9f217a c14057ff ffbeffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=1f
[...]

Any experience, hints, ideas?

keen

Last edited by commander_keen (2010-04-10 08:21:05)

Offline

#14 2010-04-10 10:45:11

commander_keen
Member
From: europe
Registered: 2009-12-26
Posts: 14

Re: Macbook touchpad

ok never mind.
Just a missing kernel option. -> touchpad -> apple multitouch (bcm5974)
This enables basic functionality. Xorg.conf helps with gestures.

keen

Offline

Board footer

Powered by FluxBB