Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

configure magic mouse 2 scrolling

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
rsherry
Posts: 1
Joined: 2017-10-19 03:03

configure magic mouse 2 scrolling

#1 Post by rsherry »

I am pretty new to debian and I am trying to get my magic mouse 2 gestures (mainly just scrolling) to work.

Someone developed a script for ubuntu to get the magic mouse 2 gestures to work:

https://github.com/biggreenogre/mm2

I've tried to figure out what needs to be changed in order to do what's needed but I'm at a loss. Can anyone with more experience chime in and explain what needs to be changed.

Here's the output in the terminal after running the script:

Code: Select all

root@debianMachine29:/home/rsherry/Downloads/mm2-master/mm2# ./magicmouse2_build.sh
Reading package lists... Done
NOTICE: 'linux' packaging is maintained in the 'Git' version control system at:
https://anonscm.debian.org/git/kernel/linux.git
Please use:
git clone https://anonscm.debian.org/git/kernel/linux.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 97.0 MB of source archives.
Get:1 http://ftp.us.debian.org/debian stretch/main linux 4.9.51-1 (dsc) [123 kB]
Get:2 http://ftp.us.debian.org/debian stretch/main linux 4.9.51-1 (tar) [94.5 MB]
Get:3 http://ftp.us.debian.org/debian stretch/main linux 4.9.51-1 (diff) [2,402 kB]
Fetched 97.0 MB in 52s (1,846 kB/s)                                            
sh: 1: dpkg-source: not found
W: Download is performed unsandboxed as root as file 'linux_4.9.51-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Unpack command 'dpkg-source --no-check -x linux_4.9.51-1.dsc' failed.
N: Check if the 'dpkg-dev' package is installed.
cp: cannot stat 'dist_src/linux-4.9.0/drivers/hid': No such file or directory
./magicmouse2_build.sh: line 25: cd: hid: No such file or directory
./magicmouse2_build.sh: line 28: ../hid-ids.diff: No such file or directory
./magicmouse2_build.sh: line 29: ../hid-core.diff: No such file or directory
./magicmouse2_build.sh: line 30: ../hid-magicmouse.diff: No such file or directory
./magicmouse2_build.sh: line 33: make: command not found
sudo: make: command not found
cp: cannot stat '/lib/modules/4.9.0-4-amd64/extra/*': No such file or directory
modprobe: ERROR: ../libkmod/libkmod-module.c:192 kmod_module_parse_depline() ctx=0x55d70267d010 path=/lib/modules/4.9.0-4-amd64/kernel/drivers/hid/hid.ko error=No such file or directory
modprobe: ERROR: ../libkmod/libkmod-module.c:192 kmod_module_parse_depline() ctx=0x55d70267d010 path=/lib/modules/4.9.0-4-amd64/kernel/drivers/hid/hid.ko error=No such file or directory
modprobe: ERROR: could not insert 'hid_magicmouse': Unknown symbol in module, or unknown parameter (see dmesg)

Magicmouse module failed to load. Time to debug?
sudo: lsinput: command not found

Magicmouse module loaded but no MM2 input device detected. Check udev hwdb for MM2 exists in /etc/udev/hwdb.d/
root@debianMachine29:/home/rsherry/Downloads/mm2-master/mm2# lsinput
bash: lsinput: command not found

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: configure magic mouse 2 scrolling

#2 Post by debiman »

from the git repo readme:
These tools are intended for use by developers familiar with kernel module development and tinkerers who wish to experiment with the Linux hid_magicmouse kernel module on Ubuntu Trusty. If you are comfortable writing BASH scripts and are familiar with the process for compiling and debugging custom kernels and modules, please read on. Otherwise, STOP HERE, STOP NOW.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: configure magic mouse 2 scrolling

#3 Post by GarryRicketson »

The OP sure is much braver the I am, running a random script, without understanding what it does, and how it works,
and then :
Someone developed a script for ubuntu
Post by rsherry » 2017-10-18 21:13
I am pretty new to debian
Are you using Debian ? If you are then why ? "a script for ubuntu",...
rsherry :Here's the output in the terminal after running the script
To late now, they all ready ran the script,... :mrgreen:
@ OP, kind of kidding here, based on the output, it does not look like
the script was able to do anything.

But any way, for future reference please read:
https://wiki.debian.org/DontBreakDebian

Post Reply