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

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #30 on: October 25, 2015, 10:04:13 am »
Sorry mate, had to rush out...

anyway, mate sure you're booted to the 3.16 kernel and run:
Code: [Select]
sudo apt-get remove --purge linux-image-4.2.3-040203-generic linux-headers-4.2.3-040203  linux-headers-4.2.3-040203-genericthen reboot without doing anything to choose a specific kernel.

did it boot into the 3.16 kernel automatically ?
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 #31 on: October 25, 2015, 10:40:22 am »
Don't be sorry you're the one helping me

Anyway it's still booting into the 4.2.3 kernel we haven't got as far as removing it yet




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

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #32 on: October 25, 2015, 10:41:37 am »
sorry forget that last post  :-[
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #33 on: October 25, 2015, 10:51:26 am »
Ok i followed you instructions and it's now booting straight into the 3.16.0-51-generic kernel




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: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #34 on: October 25, 2015, 11:14:55 am »
OK do you wanna have a go at compiling the kernel again (with an extension to the version number) on your own, or would you like me to do a trial run, then post instructions ?
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 #35 on: October 25, 2015, 11:55:30 am »
Sorry mark but I don't feel confident to do this on my own,


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

Offline emegra

  • Administrator
  • Veteran
  • *****
  • Posts: 1946
  • Karma: 450
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 64bit
Re: Holtek mouse support
« Reply #36 on: October 25, 2015, 11:58:09 am »
I don't want to be a PITA here so if you edit the original instructions I'll follow that if you want




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: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #37 on: October 25, 2015, 11:59:09 am »
No worries mate .. I'll build a kernel over the next hour or two (to check the process) then post intructions .. they may not be up till tomorrow morning though ;)
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 #38 on: October 25, 2015, 12:01:40 pm »
Quote
No worries mate .. I'll build a kernel over the next hour or two (to check the process) then post intructions .. they may not be up till tomorrow morning though


Thank you :)



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: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #39 on: October 25, 2015, 07:43:43 pm »
Before I post these instruction, is this a UEFI system ? .. I'm not sure if this will work with a UEFI system as the kernel is signed under UEFI
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 #40 on: October 25, 2015, 10:55:12 pm »
Quote
is this a UEFI system ?

No it's BIOS (InsydeH20 v6.3)




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: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #41 on: October 26, 2015, 02:56:44 am »
Download the current kernel source to your home folder:
Code: [Select]
cd ~/then
Code: [Select]
mkdir ~/my-custom-kernelthen
Code: [Select]
cd ~/my-custom-kernelthen
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 edit this file:
Code: [Select]
gedit ~/my-custom-kernel/linux-lts-utopic-3.16.0/include/linux/hid.hfind the line (337) that reads

#define HID_MAX_USAGES                        12288

and change it to

#define HID_MAX_USAGES                        34000

SAVE the file and exit gedit.

Now edit this file:
Code: [Select]
gedit ~/my-custom-kernel/linux-lts-utopic-3.16.0/debian.utopic/changelogand add these 6 new lines at the very beginning (top) of the file
Code: [Select]
linux-lts-utopic (3.16.0-51.69~14.04.1+emegra) trusty; urgency=low

  [ emegra ]

  * Custom Kernel - Fix for USB game mouse

SAVE the file and exit gedit.

Now edit this file:
Code: [Select]
gedit ~/my-custom-kernel/linux-lts-utopic-3.16.0/debian/changelogand add these 6 new lines at the very beginning (top) of the file
Code: [Select]
linux-lts-utopic (3.16.0-51.69~14.04.1+emegra) trusty; urgency=low

  [ emegra ]

  * Custom Kernel - Fix for USB game mouse

SAVE the file and exit gedit.

then compile the kernel:
Code: [Select]
cd ~/my-custom-kernel/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

Now install the kernel:
Code: [Select]
cd ~/my-custom-kernelthen
Code: [Select]
sudo dpkg -i linux-image-3.16.0-51-generic_3.16.0-51.69~14.04.1+emegra_amd64.deb linux-headers-3.16.0-51-generic_3.16.0-51.69~14.04.1+emegra_amd64.deb linux-headers-3.16.0-51_3.16.0-51.69~14.04.1+emegra_all.debNow REBOOT
« Last Edit: October 26, 2015, 08:39:23 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 #42 on: October 26, 2015, 06:13:01 am »
OK I'll do this when I get home this evening

just one question I'm obviously misunderstanding something here but I only make that 3 lines

Quote
and add these 6 new lines at the very beginning of the file
Code: [Select]

linux-lts-utopic (3.16.0-51.69~14.04.1+emegra) trusty; urgency=low

  [ emegra ]

  * Custom Kernel - Fix for USB game mouse


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: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Holtek mouse support
« Reply #43 on: October 26, 2015, 08:35:49 am »
6 lines including the blank lines.

there should also be a blank line underneath the line
  * Custom Kernel - Fix for USB game mouse

You'll understand it when you edit the files .. basically you're adding a new section at the top in the same format as those already present.
« Last Edit: October 26, 2015, 08:37:30 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 (SOLVED)
« Reply #44 on: October 26, 2015, 01:29:23 pm »
The edited title says it all, that was a tough one Mark but you come good yet again

 thank you very much :)




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