mwyborski / Linux-Magic-Trackpad-2-Driver

499 stars 84 forks source link

mtrack: cannot open device #20

Closed gzm55 closed 6 years ago

gzm55 commented 6 years ago

OS: Ubuntu 18.04 Kernel: 4.15

After install the driver and the mtrack config, my trackpad2 can't be loaded, with the error Cannot open device /dev/input/event* Permission denied. I have tested usb and bt, the error log is the same.

Full log:

[  1076.764] (II) config/udev: Adding input device Apple Inc. Magic Trackpad 2 (/dev/input/mouse2)
[  1076.764] (II) No input driver specified, ignoring this device.
[  1076.764] (II) This device may have been added with another device file.
[  1076.799] (II) config/udev: Adding input device Apple Inc. Magic Trackpad 2 (/dev/input/event18)
[  1076.799] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "evdev pointer catchall"
[  1076.799] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "libinput pointer catchall"
[  1076.800] (**) Apple Inc. Magic Trackpad 2: Applying InputClass "Touchpads"
[  1076.800] (II) Using input driver 'mtrack' for 'Apple Inc. Magic Trackpad 2'
[  1076.800] (**) Apple Inc. Magic Trackpad 2: always reports core events
[  1076.800] (**) Apple Inc. Magic Trackpad 2: always reports core events
[  1076.800] (**) Option "FingerHigh" "10"
[  1076.800] (**) Option "FingerLow" "10"
[  1076.800] (**) Option "ButtonIntegrated" "true"
[  1076.800] (**) Option "TapButton1" "1"
[  1076.800] (**) Option "TapButton2" "3"
[  1076.800] (**) Option "TapButton3" "2"
[  1076.800] (**) Option "TapButton4" "0"
[  1076.800] (**) Option "ClickTime" "25"
[  1076.800] (**) Option "ScrollDistance" "75"
[  1076.800] (**) Option "ScrollUpButton" "5"
[  1076.800] (**) Option "ScrollDownButton" "4"
[  1076.800] (**) Option "ScrollLeftButton" "7"
[  1076.800] (**) Option "ScrollRightButton" "6"
[  1076.800] (**) Option "SwipeDistance" "1"
[  1076.800] (**) Option "SwipeUpButton" "1"
[  1076.800] (**) Option "SwipeDownButton" "1"
[  1076.800] (**) Option "SwipeLeftButton" "1"
[  1076.800] (**) Option "SwipeRightButton" "1"
[  1076.800] (**) Option "TapDragEnable" "false"
[  1076.800] (**) Option "Sensitivity" "0.55"
[  1076.800] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.1/0003:05AC:0265.000C/input/input25/event18"
[  1076.800] (II) XINPUT: Adding extended input device "Apple Inc. Magic Trackpad 2" (type: TOUCHPAD, id 16)
[  1076.800] (II) device control: init
[  1076.800] (**) Option "Device" "/dev/input/event18"
[  1076.800] (EE) xf86OpenSerial: Cannot open device /dev/input/event18
    Permission denied.
[  1076.800] (EE) mtrack: cannot open device
[  1076.801] (EE) Couldn't init device "Apple Inc. Magic Trackpad 2"
[  1076.802] (II) UnloadModule: "mtrack"
gzm55 commented 6 years ago

fixed by adding $USER into input group