MOUSE TRUST 20718 _ [SOLVED]

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

MOUSE TRUST 20718 _ [SOLVED]

Post by pp4mnklinux »

https://www.trust.com/en/corporate/medi ... ery=20718
Hello, everybody:

I has been using this mouse for years, it is useful for me, its size is adequate for my hand and I obtain good results with it.

It has got 5 buttons, and It gives me good results with xenialpup 7.5

Now in F96CE_XFCE_FUSILLI 4.4 I found a "problem".

Button works when in a browser (slimjet) but on desktop I can configure the two at the sides (the red ones)

In xenial they works as right and left button, but now they don't work.

Can any help me with the drivers for this mouse ?

It is not very important, I can live without them, jajja... but in case you want to start a simple project , I will be thankful for your help with this drivers.

THANKS A LOT IN ADVANCE.

CHEERS.- :thumbup2: :thumbup2: :thumbup2:

Last edited by pp4mnklinux on Tue Dec 12, 2023 6:58 pm, edited 4 times in total.
User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by Jasper »

The configuration file for the mouse is located here

/root/etc/X11/xorg.conf

If it had worked in Xenial you could have simply copied the relevant sections to your current OS to enable functionality

User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by pp4mnklinux »

Hi @Jasper , I went to this file in my old xenial and I copied the code relative to the mouse:

Code: Select all

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option      "Protocol" "IMPS/2" #mouse0protocol
	Option      "Device" "/dev/mouse"
	Option      "Emulate3Buttons"
	Option      "Emulate3Timeout" "50"
	Option      "ZAxisMapping" "4 5" #scrollwheel
EndSection

Y copied it to the same file in my F96CE_XFCE_FUSILLI, but nothing happens.

I'll continue trying. (should I try with "Emulate5Buttons"? )

Thanks a lot

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by Jasper »

I am unsure as my settings are different to yours.

I will look for a GUI based application.

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by Jasper »

Untested by me, but there is a tutorial here:

https://www.howtoforge.com/tutorial/map-mouse-on-linux/

Good luck :thumbup:

User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

THANKS

Post by pp4mnklinux »

Thanks @Jasper and the rest of users who tried to help me.

I practices, tried, make tests... and I don't know how to configure the two lateral buttons to act to advance and go back beween browser tabs (or give at least, some funcitionality)

I don't mark this post as SOLVED... because it is not... I hope some day anybody can solve this problems (I hope before I'll spend all my trust mouse hardware..jajjaj)

Have a nice day u all

THANKS ( any help are welcome :)

Have a nice day.

https://www.trust.com/es/corporate/medi ... uery=20718

]https://www.trust.com/en/product/20718 ... less-mouse

I followed this instructions one time and another...and,.... OOOOOOOH https://www.howtoforge.com/tutorial/map-mouse-on-linux/
[/url]

User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

6 months.... : MOUSE TRUST 20718 (drivers for puppy)

Post by pp4mnklinux »

Hello everybody:

I didn't work on this problem all this period, but from time to time I go back and try and try and try .... and NO SOLUTION.

You are my last resource, PLEASE, can any of you make the drivers for my trust mouse so I can use the lateral buttons ??

Till now, my maximum conqueer was use the middle weel button as I want, but it is more confortable using the lateral ones (what I need is to use this buttons as left and right click, because this way I can click with my thumb instead of using the index, what is much more better for my hands an wrist)

Please, as I said you are my last resource to use my mice (I have 3 of this model) the way I want.

Thanks in advance.

https://www.trust.com/es/corporate/medi ... uery=20718

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by fredx181 »

@pp4mnklinux

I went to this file in my old xenial and I copied the code relative to the mouse:

Code: Select all

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2" #mouse0protocol
Option "Device" "/dev/mouse"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
Option "ZAxisMapping" "4 5" #scrollwheel
EndSection

Are you sure you did it correctly ?
In Xenial /root/.etc is a symlink to /etc (/root/.etc doesn't exist in recent Puppies)
The "real" file to add this section to is /etc/X11/xorg.conf in fusilli (and perhaps a reboot is required (or at least restart X))

User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by pp4mnklinux »

Hi @fredx181 and thanks for your comment.

Yeah, I used this configfile in the addecuate location.- Restart, turned off.... and nothing works...

Then I changed the instructions to 5 buttons mouse, 4 buttons mouse..... buffffffffff.... and nothing.

.....

so I am looking for some new idea.... because I thought it is possible there is any conflict among files.

User avatar
MochiMoppel
Posts: 1239
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 440 times

Re: 6 months.... : MOUSE TRUST 20718 (drivers for puppy)

Post by MochiMoppel »

pp4mnklinux wrote: Mon Dec 11, 2023 7:38 am

Till now, my maximum conqueer was use the middle weel button as I want,

Means what? Middle click and scroll-up and scroll-down work as intended or did you configure them to do something else?

but it is more confortable using the lateral ones (what I need is to use this buttons as left and right click, because this way I can click with my thumb instead of using the index, what is much more better for my hands an wrist)

Jasper already pointed you in the right direction, but you didn't gave feedback... other than "tried, make tests" which doesn't tell us anything.

Could you please run the xinput command, which will tell you the ID of your mouse, then use this ID with the xinput --get-button-map <ID> command?
This is how this looks in my case:

Code: Select all

# xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Mouse0                                  	id=6	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Keyboard0                               	id=7	[slave  keyboard (3)]
# xinput --get-button-map 6
1 2 3 4 5 6 7 8 9

Please post the output of the last command because we still don't know how your mouse buttons are mapped.

User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by pp4mnklinux »

@MochiMoppel and the rest of you.- thanks for you answer and excuse me if I don't continue my info far away of "continue testing" because I know how difficult is to help when you are using a specific software.

Apart of this, I run xinput and the info is image 13

There are so many id, that I dont know which one I must use....

Let me know what ID is the most appropriate and I give you the required information.

Thanks a lot for your interest and for being so helpful

CU

n.b.- I didn't configure the wheel button, but it act with its normal functions, but when clicked it gives you the different programs used at each virtual desktop (xfce basic function)

Lateral buttons work when on browsers to go back and front on pages, but I don't need this function but the right left click, becuase I navigate with gestures..

User avatar
MochiMoppel
Posts: 1239
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 440 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by MochiMoppel »

pp4mnklinux wrote: Mon Dec 11, 2023 2:54 pm

Apart of this, I run xinput and the info is image 13
There are so many id, that I dont know which one I must use....

Many? We are talking about the Trust mouse, right? I see only 2 "virtual core pointers" that refer to the Trust mouse.
Why not test all that have "Mouse" in them? I guess that 13 is your lucky number, but I could be wrong and I'm curious if any of the other result in button maps. That's for you to find out. I only have a plain vanilla 3-button mouse to test.

User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by pp4mnklinux »

MochiMoppel wrote: Tue Dec 12, 2023 1:43 am
pp4mnklinux wrote: Mon Dec 11, 2023 2:54 pm

Apart of this, I run xinput and the info is image 13
There are so many id, that I dont know which one I must use....

Many? We are talking about the Trust mouse, right? I see only 2 "virtual core pointers" that refer to the Trust mouse.
Why not test all that have "Mouse" in them? I guess that 13 is your lucky number, but I could be wrong and I'm curious if any of the other result in button maps. That's for you to find out. I only have a plain vanilla 3-button mouse to test.

Code: Select all

xinput --get-button-map <ID>

WITH NUMBERS 8, 13 , 14.

img 25, img 23 and image 24

Thanks a lot for your support.

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by Jasper »

Try entering the commands like this

Image

User avatar
MochiMoppel
Posts: 1239
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 440 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by MochiMoppel »

@pp4mnklinux Looks normal to me. Are you sure that the side buttons do nothing at all?
Anyway let's try this with ID 13 first:

Code: Select all

xinput --set-button-map 13 1 2 3 4 5 1 3 1 3

Button numbers 1 to 5 should remain unchanged because you reported that your middle button and the scroll-up and scroll-down buttons (= the wheel) work normallly. Button numbers 6 and 7 refer to the scroll-left and scroll-right buttons and 8 and 9 are something I haven't figured out apart from noticing that the scroll bars can be shifted with them. So what this command does is assigning the left and right button values (number 1 and 3) also to number 6 and 7 buttons and - just in case - to 8 and 9. If all goes well your red side buttons will act as additional left and right buttons.

You can switch back to your present state with

Code: Select all

xinput --set-button-map 13 1 2 3 4 5 6 7 8 9
User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

Re: MOUSE TRUST 20718 (drivers for puppy)

Post by pp4mnklinux »

Thanks a lot.....
It is not "exactly" what I want, but with your help , now, I know what I must do... so I only need to change numbers (i'll post the solution if someday I will find it..jajjaj)

As I said.- THANKS A LOT....

xinput --set-button-map 13 1 2 3 4 5 1 3 1 3 (IT'S TIME TO TRY COMBINATIONS)

Have a nice day u all

-------------------- edited ------------------------

Partially solved

Code: Select all

xinput --set-button-map 13 1 2 3 4 5 2 3 2 3



There is a small problem.......

Changes are not saved.- After restart, they go back to the previous configuration. How can I made this changes permanent ??




Have a nice day.



(Only a question, You can answer or not, doesn't matter... Is English your mother tongue or is it Japanese? ) @MochiMoppel

CHEERS

User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

Re: MOUSE TRUST 20718

Post by pp4mnklinux »

@MochiMoppel I thought your solution was the final, and it really works, but as I edit at the previous post (I write it here again so it appears in new posts), the modification is not permanent.- When you restart puppy it looses modifications (puppy mode 13 working here), frugal install.

Partially solved

Code: Select all

xinput --set-button-map 13 1 2 3 4 5 2 3 2 3



There is a small problem.......

Changes are not saved.- After restart, they go back to the previous configuration. How can I made this changes permanent ??

Last edited by pp4mnklinux on Tue Dec 12, 2023 6:53 pm, edited 1 time in total.
User avatar
pp4mnklinux
Posts: 1139
Joined: Wed Aug 19, 2020 5:43 pm
Has thanked: 637 times
Been thanked: 284 times

SOLVED

Post by pp4mnklinux »

For sure there will be more elegant solutions, but this one is the best in 7 months:

As I told you, @MochiMoppel orientations were what I needed, so with this instructions and modifying them to my necessities I found the code to use.

Code: Select all

xinput --set-button-map 13 1 2 3 4 5 2 3 2 3

The problem was when saving them, so I asked you for your proposed solution.

Meanwhile I created a script to make this code be executed each time I start puppy.

As I said, coders could tell me that is not the most adequate, but till they give me their suggestions, It is the best in ,as I said, 7 months.

Thanks again, @MochiMoppel you guided me in the adequate direction.

My script (in startup)

Code: Select all

#!/bin/bash
xinput --set-button-map 13 1 2 3 4 5 2 3 2 3

(attached file.- delete .txt)

User avatar
MochiMoppel
Posts: 1239
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 440 times

Re: MOUSE TRUST 20718 _ [SOLVED]

Post by MochiMoppel »

pp4mnklinux wrote: Tue Dec 12, 2023 6:48 pm

The problem was when saving them, so I asked you for your proposed solution.
Meanwhile I created a script to make this code be executed each time I start puppy.

There wasn't a problem in the first place because you know how to place this script into your startup folder. A startup script has a couple of advantages compared to a fix configuration file in /etc/X11 (or wherever your distro expects it to be) and it is in no way inferior to a saved config file. Both are saved, both run at startup, both need no user interaction. One of them is obscure and hard to maintain, especially when you want it to work in various distros, the other is easy, you understand it and you can fix it if something goes wrong, and you can use it in any distro.

Now that you have figured out the name of your mouse I suggest that you use it in your script. IDs may change easily but the mouse name doesn't.
Therefore try

Code: Select all

#!/bin/bash
xinput --set-button-map 'Telink Trust Wireless Mouse' 1 2 3 4 5 2 3 2 3
Post Reply

Return to “Users”