raphael / linux-samus

Linux 4.16 on Chromebook Pixel 2015
GNU General Public License v2.0
181 stars 36 forks source link

Help getting touchpad-cmt driver to work #123

Open godlikemouse opened 8 years ago

godlikemouse commented 8 years ago

Has anyone been able to install the touchpad-cmt driver located under scripts/setup/touchpad and get it to work properly? I've had no luck however, I would really like to use the cmt touchpad driver instead of the synaptic driver due to the click/mouse jumpiness. Any help would be greatly appreciated. Thanks in advance.

ehegnes commented 8 years ago

Why yes, indeed! I've been happily using the cmt port since before the Pixel :). Can you provide some information regarding your specific issues with installing it? If it does install properly, but you can't seem to get it to work, can you post your most recent Xorg.0.log file?

godlikemouse commented 8 years ago

Thank you @ehegnes, here's my Xorg.0.log:

[   107.675] 
X.Org X Server 1.17.4
Release Date: 2015-10-28
[   107.675] X Protocol Version 11, Revision 0
[   107.675] Build Operating System: Linux 4.2.5-1-ARCH x86_64 
[   107.675] Current Operating System: Linux jgraves-chromebook 4.2.6-9ph #1 SMP Wed Nov 18 22:05:10 PST 2015 x86_64
[   107.675] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-samus4 root=UUID=0dc5ee22-ac82-443c-bc1e-394d7f558bb7 rw quiet
[   107.675] Build Date: 01 November 2015  10:36:50AM
[   107.675]  
[   107.675] Current version of pixman: 0.32.8
[   107.675]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   107.675] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   107.675] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Nov 18 23:18:02 2015
[   107.675] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   107.675] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   107.675] (==) No Layout section.  Using the first Screen section.
[   107.675] (==) No screen section available. Using defaults.
[   107.675] (**) |-->Screen "Default Screen Section" (0)
[   107.675] (**) |   |-->Monitor "<default monitor>"
[   107.675] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[   107.675] (**) |   |-->Device "Intel Graphics"
[   107.675] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   107.676] (==) Automatically adding devices
[   107.676] (==) Automatically enabling devices
[   107.676] (==) Automatically adding GPU devices
[   107.676] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   107.676]    Entry deleted from font path.
[   107.676]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   107.676] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   107.676]    Entry deleted from font path.
[   107.676]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   107.676] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/OTF/,
    /usr/share/fonts/Type1/
[   107.676] (==) ModulePath set to "/usr/lib/xorg/modules"
[   107.676] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[   107.676] (II) Loader magic: 0x817d60
[   107.676] (II) Module ABI versions:
[   107.676]    X.Org ANSI C Emulation: 0.4
[   107.676]    X.Org Video Driver: 19.0
[   107.676]    X.Org XInput driver : 21.1
[   107.676]    X.Org Server Extension : 9.0
[   107.678] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c9
[   107.679] (II) xfree86: Adding drm device (/dev/dri/card0)
[   107.679] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 9 paused 0
[   107.680] (--) PCI:*(0:0:2:0) 8086:1616:8086:1616 rev 9, Mem @ 0xe0000000/16777216, 0xd0000000/268435456, I/O @ 0x00001800/64
[   107.680] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   107.680] (II) LoadModule: "glx"
[   107.681] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   107.682] (II) Module glx: vendor="X.Org Foundation"
[   107.682]    compiled for 1.17.4, module version = 1.0.0
[   107.682]    ABI class: X.Org Server Extension, version 9.0
[   107.682] (==) AIGLX enabled
[   107.682] (II) LoadModule: "intel"
[   107.682] (WW) Warning, couldn't open module intel
[   107.682] (II) UnloadModule: "intel"
[   107.682] (II) Unloading intel
[   107.682] (EE) Failed to load module "intel" (module does not exist, 0)
[   107.682] (EE) No drivers available.
[   107.682] (EE) 
Fatal server error:
[   107.682] (EE) no screens found(EE) 
[   107.682] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[   107.682] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   107.682] (EE) 

Also, here is the what xinput is showing:

⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Atmel maXTouch Touchscreen                id=9    [slave  pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
    ↳ Power Button                                id=6    [slave  keyboard (3)]
    ↳ Power Button                                id=7    [slave  keyboard (3)]
    ↳ NCM-G102                                    id=8    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard                id=10   [slave  keyboard (3)]

These are the files I have currently in the /etc/X11/xorg.conf.d:

10-evdev.conf
20-touchscreen.conf
50-touchpad-cmt-samus.conf
10-quirks.conf
40-touchpad-cmt.conf
20-mouse.conf

When I logout and log back in the mouse doesn't work at all and I can't figure out how to get it working. Everything appears to install correctly, I'm not seeing any errors during the install. Any advice would help, thanks.

defrex commented 8 years ago

I seem to be having the exact same issue. One thing of note: /etc/X11/xorg.conf.d/40-touchpad-cmt.conf symlinks to /usr/share/xf86-input-cmt/40-touchpad.conf. But /usr/share/xf86-input-cmt/40-touchpad.conf doesn't exist.

defrex commented 8 years ago

I take it back, mine was a different issue.

I noticed an "ABI version mismatch" in my xorg log. I added an IgnoreABI option to xorg which kinda solved the issue. That solution was from here.

However, the touchpad still doesn't work 100%.

godlikemouse commented 8 years ago

@defrex Out of curiosity, what did you do to install the driver to begin with? I can't get mine to load at all.

defrex commented 8 years ago

The included script to compile it didn't work for me either. I'm on Arch though, so I just used the version in the AUR, which installed fine.

That said, my trackpad doesn't work. The touchscreen works quick well though, and I'm not getting random clicks anymore.

godlikemouse commented 8 years ago

I'm on arch as well on a Chromebook Pixel 2. I was able to get the script to compile the driver and all looked like it installed correctly however, when I go to use the trackpad I get nothing. I can't for the life of me figure this one out.