You are not logged in.

#1 2014-03-21 09:32:30

blackshark
Member
From: France
Registered: 2012-01-06
Posts: 6
Website

Middle click on Logitech T400 mouse

Hello guys,

I'm looking for a solution to get the normal function of the middle button on my T400 mouse. There is two "middle buttons", the first is perfectly bind to the windows button and the other simply put a 'd' when I click on. I would like to have the classical "copy/past" effect.

Did you have some clue about it ?

Thx smile

Offline

#2 2014-03-23 18:26:41

Octoploid
Member
From: Berlin, Germany
Registered: 2009-10-13
Posts: 64

Re: Middle click on Logitech T400 mouse

Download and build http://linuxgazette.net/153/misc/ziemann/xevent.c

Edit ~/.xbindkeysrc:

~ % cat .xbindkeysrc
"xevent -b 2"
  c:133

Add xbindkeys to your ~/.xinitrc

Offline

#3 2014-03-23 20:35:36

blackshark
Member
From: France
Registered: 2012-01-06
Posts: 6
Website

Re: Middle click on Logitech T400 mouse

Thx Octoploid for your solution that really help me!

Unfortunately, that doesn't work... I actually found a workaround, but that doesn't satisfy me. Let me explain.

In fact, the middle button on the T400 is bind to Super+D. So, I bind this in Gnome parameters (keyboard, etc.). But that simply doesn't work at all! The only solution I found was to bind Ctrl+Super+D. It seems like I lost the focus be just Super+X, but not when I bind XXX+Super+X... That's pretty weird :-(

Btw, I found you can use xdotool (available on AUR) to do same as xevent.c

Could I directly hacked the mouse driver to bind an other key to this button ?

Thanks for your help!

Offline

#4 2014-03-24 07:34:32

Octoploid
Member
From: Berlin, Germany
Registered: 2009-10-13
Posts: 64

Re: Middle click on Logitech T400 mouse

blackshark wrote:

Could I directly hacked the mouse driver to bind an other key to this button ?

It should be theoretically possible, but there is no application that does it yet.
So you'll have to hack for yourself. Solaar could be a start:

 % sudo ./solaar show
Unifying Receiver
  Device path  : /dev/hidraw0
  USB id       : 046d:c52b
  Serial       : FE289917
    Firmware   : 12.01.B0019
    Bootloader : 02.14
  Has 1 paired device(s) out of a maximum of 6.
  Notifications: (none)
  Device activity counters: 1=14

  1: Zone Touch Mouse T400
     Codename     : T400
     Kind         : mouse
     Wireless PID : 4026
     Protocol     : HID++ 2.0
     Polling rate : 8 ms (125Hz)
     Serial number: 75073760
          Firmware: RQM 39.00.B0029
        Bootloader: BL  03.00
          Hardware: 72
             Other: 
     The power switch is located on the base.
     Supports 28 HID++ 2.0 features:
         0: ROOT                   {0000}   
         1: FEATURE SET            {0001}   
         2: FEATURE INFO           {0002}   
         3: DEVICE FW VERSION      {0003}   
         4: DEVICE NAME            {0005}   
         5: DFUCONTROL             {00C0}   
         6: BATTERY STATUS         {1000}   
         7: unknown:1802           {1802}   internal, hidden
         8: unknown:1810           {1810}   internal, hidden
         9: unknown:1830           {1830}   internal, hidden
        10: unknown:1850           {1850}   internal, hidden
        11: unknown:1860           {1860}   internal, hidden
        12: unknown:1890           {1890}   internal, hidden
        13: unknown:18A0           {18A0}   internal, hidden
        14: unknown:18E3           {18E3}   internal, hidden
        15: REPROG CONTROLS        {1B00}   
        16: WIRELESS DEVICE STATUS {1D4B}   
        17: unknown:1DF3           {1DF3}   internal, hidden
        18: unknown:1E00           {1E00}   hidden
        19: unknown:1E80           {1E80}   internal, hidden
        20: unknown:1F03           {1F03}   internal, hidden
        21: unknown:1F04           {1F04}   internal, hidden
        22: VERTICAL SCROLLING     {2100}   
        23: unknown:2101           {2101}   hidden
        24: HI RES SCROLLING       {2120}   
        25: MOUSE POINTER          {2200}   
        26: TOUCHMOUSE RAW POINTS  {6110}   hidden
        27: REPROG CONTROLS V3     {1B03}   
     Has 7 reprogrammable keys:
         0: LEFT CLICK                 => LeftClick                     mse, reprogrammable
         1: RIGHT CLICK                => RightClick                    mse, reprogrammable
         2: MIDDLE BUTTON              => MiddleMouseButton             mse, reprogrammable
         3: METRO START SCREEN         => MetroStartScreen              mse, reprogrammable
         4: ZOOMIN                     => Do Nothing                    mse, reprogrammable
         5: ZOOMOUT                    => Do Nothing                    mse, reprogrammable
         6: BACK HSCROLL               => TouchBackForwardHorzScroll    
     Battery: 100%, discharging.

Offline

#5 2014-03-24 08:36:35

blackshark
Member
From: France
Registered: 2012-01-06
Posts: 6
Website

Re: Middle click on Logitech T400 mouse

Hi

Thanks for your advice. By curiosity, wish version of solaar did you use ? Because the AUR version do not have the "show" parameter. I see you have a T400 so I assume that you make it works normally. So, a question comes to me. Wish display manager did you use ? Certainly Openbox ?

Offline

#6 2014-03-24 08:51:59

Octoploid
Member
From: Berlin, Germany
Registered: 2009-10-13
Posts: 64

Re: Middle click on Logitech T400 mouse

blackshark wrote:

Hi

Thanks for your advice. By curiosity, wish version of solaar did you use ? Because the AUR version do not have the "show" parameter. I see you have a T400 so I assume that you make it works normally. So, a question comes to me. Wish display manager did you use ? Certainly Openbox ?

I'm using the latest git version: https://github.com/pwr/Solaar
And yes the xbindkeys trick works for me. I've tested it with KDE, xmonad and wmii.

Offline

#7 2014-03-24 08:57:11

blackshark
Member
From: France
Registered: 2012-01-06
Posts: 6
Website

Re: Middle click on Logitech T400 mouse

Thanks, that's what I thought. I think the problem come from GnomeShell, because the 'Super' key is be default bind to the 'shell view' (I don't know how they named that...). So, I lost the focus.

I'm gonna open an issue on the solaar repo and get you in touch.

Thanks a lot!

Offline

Board footer

Powered by FluxBB