Page 1 of 1

Logitech M570 trackball don't work in Salix64 14.1 [SOLVED]

Posted: 3. Oct 2015, 17:44
by ibka
Just installed Salix64 14.1 XFCE on a new computer and the Logitech trackball M570 don't work.
If i pair it wih solaar it works untill reboot or coldboot.
It worked perfect on Salix64 14.0 without the need to do anything.
If i updgrade the kernel to 4.14 from http://forum.salixos.org/viewtopic.php?f=20&t=6628 the trackball works.

The problem with kernel 4.1.4 is that i can't get Virtualbox to work either with install it with spi or use the binary from virtualbox homepage.

I have downgraded the kernel to get the virtualbox working.

Any ideas on how to get the Logitech M570 trackball to work with default kernel (kernel-huge 3.10.17).

Re: Logitech M570 trackball don't work in Salix64 14.1

Posted: 3. Oct 2015, 20:35
by gapan
Got the same trackball here. Works fine with the default kernel.

See the reply from maximus on the kernel 4.1.4 thread for things you have to do to make the kernel source available:
http://forum.salixos.org/viewtopic.php? ... 628#p38352

Virtualbox will build with no problems after that.

Re: Logitech M570 trackball don't work in Salix64 14.1

Posted: 4. Oct 2015, 10:21
by ibka
gapan wrote:Got the same trackball here. Works fine with the default kernel.

See the reply from maximus on the kernel 4.1.4 thread for things you have to do to make the kernel source available:
http://forum.salixos.org/viewtopic.php? ... 628#p38352

Virtualbox will build with no problems after that.
After some search i found that the trackball seems to work on computers with kernel 3.10.x that only has USB 2 mine has both USB2 and USB3.

Virtualbox-kernel fails.

Code: Select all

*** Building 'vboxpci' module ***
make[1]: Entering directory `/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci'
make KBUILD_VERBOSE= SUBDIRS=/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci SRCROOT=/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci CONFIG_MODULE_SIG= -C /lib/modules/4.1.4/build modules
make[2]: Entering directory `/usr/src/linux-4.1.4'

  WARNING: Symbol version dump ./Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci/linux/VBoxPci-linux.o
/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci/linux/VBoxPci-linux.c: In function 'vboxPciOsDevRegisterIrqHandler':
/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci/linux/VBoxPci-linux.c:889:22: error: 'IRQF_DISABLED' undeclared (first use in this function)
                      IRQF_DISABLED, /* keep irqs disabled when calling the action handler */
                      ^
/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci/linux/VBoxPci-linux.c:889:22: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci/linux/VBoxPci-linux.o] Error 1
make[2]: *** [_module_/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci] Error 2
make[2]: Leaving directory `/usr/src/linux-4.1.4'
make[1]: *** [vboxpci] Error 2
make[1]: Leaving directory `/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxpci'
cp: cannot stat 'vboxpci/vboxpci.ko': No such file or directory

install: cannot stat 'vboxpci.ko': No such file or directory
fakeroot -- sh virtualbox-kernel.SlackBuild Failed
And trying with the binay makes the computer to crash totaly on vboxdrv setup

Re: Logitech M570 trackball don't work in Salix64 14.1

Posted: 4. Oct 2015, 13:59
by gapan
You probably need a newer virtualbox version for using with newer kernels.

Don't use the virtualbox slackbuilds. Get the latest binary from the virtualbox.org website and use that.

Re: Logitech M570 trackball don't work in Salix64 14.1

Posted: 4. Oct 2015, 14:52
by ibka
Tried the latest (5.0.6) the computer crash when start virtualbox :(
Locks like i have to chose either virtualbox or a working trackball.

Re: Logitech M570 trackball don't work in Salix64 14.1

Posted: 4. Oct 2015, 16:02
by gapan
What do you mean the computer crashes? The entire OS? If so, you might have more problems than virtualbox/trackball not working.

Re: Logitech M570 trackball don't work in Salix64 14.1

Posted: 4. Oct 2015, 17:04
by ibka
Yes the OS stop responding, need to press the reset button on the computer.
Everything else work perfect nothing else makes the computer to crash.
And if i use the default kernel virtualbox works, it only crash when using kernel 4.1.4.

I will probably go back to default kernel and live with the trackball problem.

Re: Logitech M570 trackball don't work in Salix64 14.1

Posted: 17. Oct 2015, 13:24
by ibka
Finally i found a way to fix that the trackball don't work with the default kernel on my computer.
I found the solution on this forum https://bbs.archlinux.org/viewtopic.php ... 0#p1309910
So i wrote a small bash script and just run that on login.

Code: Select all

#!/bin/sh

strHID=$(ls -l /sys/class/hidraw/hidraw*/device/driver | awk -F/ '/receiver/{print $5}')

printf '\x20\xff\x81\0\0\0\0\0\0\0\0\0\0\0\0' | tee /dev/${strHID} >/dev/null &