Author Topic: Holtek mouse support (SOLVED)  (Read 11477 times)

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Holtek mouse support (SOLVED)
« on: October 23, 2015, 02:46:41 am »
Hi guys

Recently I installed PM6 to a friends Toshiba Satellite and it works fine but he's asked me to see if I can get his USB mouse working,

The mouse is a Holtek gaming mouse there's no model name or number I can see but it's listed in lsusb as a Holtek

when plugged in it lights up but no activity

any ideas ?

Code: [Select]
scott@Scotts-Laptop ~ $ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b307 Chicony Electronics Co., Ltd
Bus 001 Device 005: ID 04d9:a071 Holtek Semiconductor, Inc.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
scott@Scotts-L
aptop ~ $


Many thanks


Graeme
« Last Edit: October 26, 2015, 01:27:24 pm by emegra »
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: Holtek mouse support
« Reply #1 on: October 23, 2015, 06:38:04 am »
Well, their site is certainly no help.  They have one driver for all of their peripherals and it's an .exe file.   ::)

Have you tried the Ubuntu or Mint forums to see if anyone has started a thread about this brand of mouse before?  It may be worth a look in case there is a posted solution.

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #2 on: October 23, 2015, 06:54:50 am »
Hi scifidude

Thanks for your reply

You're right their site is useless at least as far as Linux support is concerned

Quote
Have you tried the Ubuntu or Mint forums to see if anyone has started a thread about this brand of mouse before?  It may be worth a look in case there is a posted solution.

I've been all over the internet, and I can't find a solution anywhere at least not one that doesn't require a computer science degree, there was a similar question on the Mint forums but it ended inconclusively and to make matters even more complicated I'm not 100% sure of the model but I think it's a Sharkoon Draconia.

this post here will give some idea what I mean by "in depth"


Many thanks


Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline scifidude79

  • Hero
  • *****
  • Posts: 4029
  • Karma: 870
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: Holtek mouse support
« Reply #3 on: October 23, 2015, 07:56:36 am »
Hm, sounds like a huge PITA. I wish I could be some help, bro, but all of my peripherals are plug and play compatible.  Though, I'll know to stay away from that brand of gaming mouse.  ;)  I suppose your friend wouldn't want to buy a different brand of mouse.  I mean, I know how we gamers are about our stuff, we want certain things and nothing else will do.

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #4 on: October 23, 2015, 08:17:29 am »
Quote
I mean, I know how we gamers are about our stuff, we want certain things and nothing else will do.

The thing is I told him from the get go he wouldn't be able to game on Linux at least not the games he might be used to and he said he didn't care about that, he just wanted off Windows,

You're right this is a pain in the arse if he's not going to game with it the mouse has no advantages over any other normal mouse, as far as I can see, but that said I would still like to get it to work for pride sake if nothing else but if it's not to be then  I'll just have to tell him to get another mouse or go back to Windows


Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline darknet

  • Member
  • ***
  • Posts: 76
  • Karma: 29
  • /home/darknet
    • View Profile
  • Peppermint version(s): Peppermint 10 respin 64-bit

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #6 on: October 23, 2015, 09:09:55 am »
Hi Drum

I've seen at least one of the sites you posted but I really don't know what to make of that info or what to do with it  it's a bit out of my depth but it does give some hope it might be possible to get this mouse working, hopefully someone can make sense of the information and guide me

Anyway thanks for taking the time to help and post the links


Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #7 on: October 23, 2015, 09:28:14 am »
OK, it seems like it's probably quite an easy fix:
https://forums.opensuse.org/showthread.php/473200-USB-Gaming-Mouse-04d9-a078-not-working-in-linux-plus-workaround

Just change a single value in hid.h, then recompile the kernel.

Erm, who said Linux was easier  :o
« Last Edit: October 23, 2015, 09:29:52 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #8 on: October 23, 2015, 09:52:04 am »
ok couple of problems

there is no hid.h file at /usr/src/linux/include/linux instead I have 6 linux-headers folders 3.16.0-46 + generic, 3.16.0-50 + generic & 3.16.0-51 + generic

presumably I have to follow these instructions in one of these folders the question is which one ?

Quote
In /usr/src/linux/include/linux/hid.h
change the value of the constant in line 344

Code:

#define HID_MAX_USAGES                        12288

from 12288 to a value greater than 32k,
recompile and install the new kernel.

and then how do I recompile the kernel ?


many thanks


Graeme

If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #9 on: October 23, 2015, 10:52:10 am »
Download the current kernel source to your home folder:
Code: [Select]
cd ~/then
Code: [Select]
apt-get source linux-image-$(uname -r)now install the build dependencies:
Code: [Select]
sudo apt-get build-dep linux-image-$(uname -r)now make your edit to this file:
Code: [Select]
gedit ~/linux-lts-utopic-3.16.0/include/linux/hid.hthen compile the kernel:
Code: [Select]
cd ~/linux-lts-utopic-3.16.0then
Code: [Select]
fakeroot debian/rules cleanthen
Code: [Select]
fakeroot debian/rules binary-headers binary-genericand go to the pub whilst it compiles

see here:
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #10 on: October 23, 2015, 11:23:46 am »
ok before I head off to the pub

this will probably be a stupid question but I'm gonna ask it anyway

why couldn't I just make the same edit to the current kernel at  /usr/src/linux/include/linux ?


Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #11 on: October 23, 2015, 11:42:43 am »
because that's not the kernel .. it's just the header files (info that applications you may manually compile need to compile correctly), it is NOT the complete kernel source code.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #12 on: October 23, 2015, 12:42:40 pm »
Ok I followed your instructions and rebooted but still no mouse activity, is there anything I have to do ?



Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #13 on: October 23, 2015, 01:00:38 pm »
Did you install the generated .deb packages ?

Have you rebooted to the new kernel ?

Is it running your custom kernel ?

What's the output from:
Code: [Select]
uname -a
« Last Edit: October 23, 2015, 01:03:25 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #14 on: October 23, 2015, 01:10:27 pm »
Quote
Did you install the generated .deb packages ?

No i Didn't install anything, there's a few .deb packages in my home folder, do I have to install all these packages ?

Quote
Have you rebooted to the new kernel ?

I rebooted immediately after it finished recompiling buit I don't know what kernel I booted into

Quote
Is it running your custom kernel ?

I have no idea

I will post post the out put to uname -a in a few minutes by edit to this post

Code: [Select]
scott@Scotts-Laptop ~ $ uname -a
Linux Scotts-Laptop 3.16.0-51-generic #69~14.04.1-Ubuntu SMP Wed Oct 7 15:32:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
scott@Scotts-Laptop ~ $






Graeme
« Last Edit: October 23, 2015, 01:22:11 pm by emegra »
If you can keep your head while all around are losing theirs then you're not quite grasping the situation