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

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
ibka
Posts: 159
Joined: 12. Sep 2010, 13:14
Location: Sweden
Contact:

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

Post 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).
Last edited by ibka on 17. Oct 2015, 13:25, edited 1 time in total.
Image
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

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

Post 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.
Image
Image
User avatar
ibka
Posts: 159
Joined: 12. Sep 2010, 13:14
Location: Sweden
Contact:

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

Post 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
Image
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

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

Post 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.
Image
Image
User avatar
ibka
Posts: 159
Joined: 12. Sep 2010, 13:14
Location: Sweden
Contact:

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

Post 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.
Image
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

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

Post by gapan »

What do you mean the computer crashes? The entire OS? If so, you might have more problems than virtualbox/trackball not working.
Image
Image
User avatar
ibka
Posts: 159
Joined: 12. Sep 2010, 13:14
Location: Sweden
Contact:

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

Post 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.
Image
User avatar
ibka
Posts: 159
Joined: 12. Sep 2010, 13:14
Location: Sweden
Contact:

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

Post 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 &

Image
Post Reply