The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    anyone have the logitech G9 mouse and linux?

    Discussion in 'Linux Compatibility and Software' started by Fittersman, Mar 29, 2008.

  1. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    im just wondering if anyone has the G9 and linux. I read somewhere (i cant recall where now though) that you can set up the side mouse buttons and the tilt scroll wheel to act as a tab changer for firefox, and use those extra buttons for other things in other applications. Anyone have any idea how to do this? I think it would be great to have the tilt wheel as back/forward and the side buttons to switch between firefox tabs.

    i couldnt find anything in Edit -> preferences that helped this either.
     
  2. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
  3. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
  4. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    yeah i saw those guides but neither of them worked for me. It seems the problem is that the extra buttons are just registering as one of the normal 3 for me. So, for example when i hit the back side button, it registers as the mouse3 button.

    any idea how to fix that?
     
  5. jamesoswan

    jamesoswan Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    Take a Look at this.. www.hidpoint.com. Seems they have done all the Job. Just download and use it.
     
  6. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    that doesnt have the G9 supported, and the only ubuntu system they have support for is 6.06

    (although im sure if i used the driver for the G7 or G5 and ubuntu 6.06 im sure it would work, i just wont yet. I hve to get rid of ubuntu 8.04 soon so ill check it out later after im done that)
     
  7. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    it seems im having problems with this mouse again after the latest kernel upgrade. Scroll wheel is back/forward instead of scrolling up/down

    i have tried both
    Option "ZAxisMapping" "4 5"
    AND
    Option "ZAxisMapping" "6 7"
    with no luck on getting the scroll wheel back to its previous state.

    here is the section of my xorg.conf file

    Code:
    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ImPS/2"
    Option "ZAxisMapping" "4 5" # i tried this with "6 7" instead of "4 5" already, same problem
    Option "Emulate3Buttons" "true"
    EndSection
     
  8. D-EJ915

    D-EJ915 Notebook Consultant

    Reputations:
    123
    Messages:
    161
    Likes Received:
    0
    Trophy Points:
    30
    use evdev as the driver instead of mouse, also you can get rid of the protocol and device options.

    Code:
    Section "InputDevice"
        # generated from default
        Identifier     "Mouse0"
    #    Driver         "mouse"
    #    Option         "Protocol" "auto"
    #    Option         "Device" "/dev/psaux"
    #    Option         "Emulate3Buttons" "no"
    #    Option         "ZAxisMapping" "4 5"
    #    Option        "ButtonMapping" "1 2 3 6 7"
            Driver          "evdev"
            Option          "CorePointer"
            Option          "Name" "Logitech USB Gaming Mouse"
    EndSection

    that's mine, granted it's a G5 and I map most everything manually but all the stuff works.
     
  9. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    ive tried that evdev driver a few times before, it seems to destroy the x server for some reason and i have to work in low graphics mode. It does however allow the scroll wheel to work partially (it only works while you hold the mouse on the scroll bar, not if you have the mouse inside the window)
     
  10. FFZERO

    FFZERO Notebook Evangelist

    Reputations:
    23
    Messages:
    321
    Likes Received:
    1
    Trophy Points:
    31
    Can you post your entire xorg file? I have the g9/rev/nano/razer working with evdev (including side scrolling/buttons) in the newest kernel.
     
  11. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    here it is:

    Code:
    # xorg.conf (xorg X Window System server configuration file)
    #
    # This file was generated by dexconf, the Debian X Configuration tool, using
    # values from the debconf database.
    #
    # Edit this file with caution, and see the xorg.conf manual page.
    # (Type "man xorg.conf" at the shell prompt.)
    #
    # This file is automatically updated on xserver-xorg package upgrades *only*
    # if it has not been modified since the last upgrade of the xserver-xorg
    # package.
    #
    # If you have edited this file but would like it to be automatically updated
    # again, run the following command:
    #   sudo dpkg-reconfigure -phigh xserver-xorg
    
    Section "Files"
    EndSection
    
    Section "InputDevice"
    	Identifier	"Generic Keyboard"
    	Driver		"kbd"
    	Option		"CoreKeyboard"
    	Option		"XkbRules"	"xorg"
    	Option		"XkbModel"	"pc105"
    	Option		"XkbLayout"	"us"
    EndSection
    
    Section "InputDevice"
    	Identifier "Configured Mouse"
    	Driver "mouse"
    	Option "CorePointer"
    	Option "Device" "/dev/input/mice"
    	Option "Protocol" "ImPS/2"
    	Option "ZAxisMapping" "4 5" # i tried this with "6 7" instead of "4 5" already, same problem
    	Option "Emulate3Buttons" "true"
    EndSection
    
    Section "InputDevice"
    	Identifier	"Synaptics Touchpad"
    	Driver		"synaptics"
    	Option		"SendCoreEvents"	"true"
    	Option		"Device"	"/dev/psaux"
    	Option		"Protocol"	"auto-dev"
    	Option		"HorizEdgeScroll"	"0"
    EndSection
    
    Section "Device"
    	Identifier	"nVidia Corporation G80 [GeForce 8600M GS]"
    	Driver		"nvidia"
    	Busid		"PCI:1:0:0"
    	Option		"AddARGBVisuals"	"True"
    	Option		"NoLogo"	"True"
    EndSection
    
    Section "Monitor"
    	Identifier	"Generic Monitor"
    	Option		"DPMS"
    	Horizsync	28-72
    	Vertrefresh	43-60
    EndSection
    
    Section "Screen"
    	Identifier	"Default Screen"
    	Device		"nVidia Corporation G80 [GeForce 8600M GS]"
    	Monitor		"Generic Monitor"
    	Defaultdepth	24
    	SubSection "Display"
    		Modes		"1440x1440"
    	EndSubSection
    	Option		"AddARGBGLXVisuals"	"True"
    EndSection
    
    Section "ServerLayout"
    	Identifier	"Default Layout"
      screen "Default Screen"
    	Inputdevice	"Generic Keyboard"
    	Inputdevice	"Configured Mouse"
    	
    	# Uncomment if you have a wacom tablet
    	#	InputDevice     "stylus"	"SendCoreEvents"
    	#	InputDevice     "cursor"	"SendCoreEvents"
    	#	InputDevice     "eraser"	"SendCoreEvents"
    	Inputdevice	"Synaptics Touchpad"
    EndSection
    Section "Module"
    	Load		"glx"
    EndSection
    Section "Extensions"
    	Option		"Composite"	"Enable"
    EndSection
     
  12. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    ill just use the old kernel then :eek:
     
  13. FFZERO

    FFZERO Notebook Evangelist

    Reputations:
    23
    Messages:
    321
    Likes Received:
    1
    Trophy Points:
    31
    Sorry for the delay, my notebook was out of service (tinkering with openbox :cool:)

    Here what you need to do and require: (This will be a guide to enable every buttons of the g9 and can be use for other mouse)

    Make sure you have evdev install by looking into synaptic or use the command below.

    # apt-get xserver-xorg-input-evdev

    Backup your xorg file as we will be doing some editing. You will need to replace config mouse back to its generic setting as we will create a separate "driver" for the g9.

    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection

    Next, add InputDevice "G9" "SendCoreEvents" to the "ServerLayout" at the bottom of your xorg file.

    "G9" is what X will use for event when using the g9 itself. But we will need to have a InputDevice with the G9 name in order for X to know its existent. With the G9 plug in use the command below to find your device ID.

    # find /dev/input/by-id

    You will have two ids with the G9 in it. You want the one with events in its name. In my case (which should be yours as well), my id is:

    # /dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse

    We need to find the name of the device as well. There will be two with the same name. Either one will be fine ;) .

    # cat /proc/bus/input/devices

    You should have "Logitech G9 Laser Mouse" as the name.

    Checklist:
    evdev is install
    We know our device ID and name.

    With everything above, your "InputDevice" will look like this:

    Section "InputDevice"
    Identifier "G9"
    Driver "evdev"
    Option "Protocol" "evdev"
    Option "Name" "Logitech G9 Laser Mouse"
    Option "Buttons" "5"
    Option "Device" "/dev/input/by-id/usb-Logitech_G9_Laser_Mouse_8E53E82AA70029-event-mouse"
    Option "RelHWHEELMapTo" "Buttons 7 6" # side scrolling in the new kernel
    EndSection

    Restart X!

    Run xev and confirm your buttons. Let me know how it go and we will go to the next step - binding keys!
     
  14. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    nope, still no luck.. the scroll wheel is still back/forward. Herre is my new xorg.conf. Although, on the positive side using the evdev driver didnt destroy my x server

    Code:
    # xorg.conf (xorg X Window System server configuration file)
    #
    # This file was generated by dexconf, the Debian X Configuration tool, using
    # values from the debconf database.
    #
    # Edit this file with caution, and see the xorg.conf manual page.
    # (Type "man xorg.conf" at the shell prompt.)
    #
    # This file is automatically updated on xserver-xorg package upgrades *only*
    # if it has not been modified since the last upgrade of the xserver-xorg
    # package.
    #
    # If you have edited this file but would like it to be automatically updated
    # again, run the following command:
    #   sudo dpkg-reconfigure -phigh xserver-xorg
    
    Section "Files"
    EndSection
    
    Section "InputDevice"
    	Identifier	"Generic Keyboard"
    	Driver		"kbd"
    	Option		"CoreKeyboard"
    	Option		"XkbRules"	"xorg"
    	Option		"XkbModel"	"pc105"
    	Option		"XkbLayout"	"us"
    EndSection
    
    Section "InputDevice"
    	Identifier "G9"
    	Driver 		"evdev"
    	Option 		"Protocol" 	"evdev"
    	Option 		"Name" 		"Logitech G9 Laser Mouse"
    	Option 		"Buttons" 	"5"
    	Option 		"Device"	"/dev/input/by-id/usb-Logitech_G9_Laser_Mouse_06D0CEE1B80029-event-mouse"
    	Option 		"RelHWHEELMapTo" 	"Buttons 7 6" # side scrolling in the new kernel
    	Option 		"ZAxisMapping" "4 5"
    EndSection
    
    
    Section "InputDevice"
    	Identifier	"Synaptics Touchpad"
    	Driver		"synaptics"
    	Option		"SendCoreEvents"	"true"
    	Option		"Device"	"/dev/psaux"
    	Option		"Protocol"	"auto-dev"
    	Option		"HorizEdgeScroll"	"0"
    EndSection
    
    Section "Device"
    	Identifier	"nVidia Corporation G80 [GeForce 8600M GS]"
    	Driver		"nvidia"
    	Busid		"PCI:1:0:0"
    	Option		"AddARGBVisuals"	"True"
    	Option		"NoLogo"	"True"
    EndSection
    
    Section "Monitor"
    	Identifier	"Generic Monitor"
    	Option		"DPMS"
    	Horizsync	28-72
    	Vertrefresh	43-60
    EndSection
    
    Section "Screen"
    	Identifier	"Default Screen"
    	Device		"nVidia Corporation G80 [GeForce 8600M GS]"
    	Monitor		"Generic Monitor"
    	Defaultdepth	24
    	SubSection "Display"
    		Modes		"1440x1440"
    	EndSubSection
    	Option		"AddARGBGLXVisuals"	"True"
    EndSection
    
    Section "ServerLayout"
    	Identifier	"Default Layout"
      	screen "Default Screen"
    	Inputdevice	"Generic Keyboard"
    	#Inputdevice	"Configured Mouse"
    	InputDevice 	"G9" 	"SendCoreEvents"
    	
    	# Uncomment if you have a wacom tablet
    	#	InputDevice     "stylus"	"SendCoreEvents"
    	#	InputDevice     "cursor"	"SendCoreEvents"
    	#	InputDevice     "eraser"	"SendCoreEvents"
    	Inputdevice	"Synaptics Touchpad"
    EndSection
    Section "Module"
    	Load		"glx"
    EndSection
    Section "Extensions"
    	Option		"Composite"	"Enable"
    EndSection
     
  15. FFZERO

    FFZERO Notebook Evangelist

    Reputations:
    23
    Messages:
    321
    Likes Received:
    1
    Trophy Points:
    31
    Hmm, what color is the led on the g9? Change it back to red if you can. Can you run xev and tell me what button number is the scrolling?
     
  16. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    i believe the scrolling was 6/7 but i dont remember, ill check later. (it was either that or 4 5)

    and i dont think that the color of the led will matter, the color is changable and i know i was changing it around at the start, but ill try other profiles.

    did you make a special profile just for linux? did you do anything special like that?
     
  17. FFZERO

    FFZERO Notebook Evangelist

    Reputations:
    23
    Messages:
    321
    Likes Received:
    1
    Trophy Points:
    31
    No profile was necessary, just the default setting should be fine.

    Do you by any chance have xbindkey install and/or have created a file call .xbindkeysrc? I know most guide you find online do not have 9/8 as back/forward.

    The scrollng issue is system wide, right? Not just firefox?
     
  18. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    yah, scrolling issue is system wide and i have never heard of this "xbindkey install," so i doubt i have it.
     
  19. FFZERO

    FFZERO Notebook Evangelist

    Reputations:
    23
    Messages:
    321
    Likes Received:
    1
    Trophy Points:
    31
    Very stump, the only other option is to use/edit the .Xmodmap file in your home directory. I need to know what xev report the scroll button as. Does your touchpad and other mouse do the same?
     
  20. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    forward/up scrolling is 4 and backward/down scrolling is 5. The touchpad scrolls ok, and well... it seems the G9 mouse is scrolling now again, possibly the latest updates?
     
  21. FFZERO

    FFZERO Notebook Evangelist

    Reputations:
    23
    Messages:
    321
    Likes Received:
    1
    Trophy Points:
    31
    Could be a number of reason, kernal was fix, evdev kicking in, tweaks to the xorg files, etc.


    Since scrolling (up/down) work, can you side scroll with the wheel as well? Evdev should take care of that. Do you still want to know how to bind those keys to do something else?
     
  22. Fittersman

    Fittersman Wanna trade?

    Reputations:
    225
    Messages:
    1,306
    Likes Received:
    0
    Trophy Points:
    55
    im actually using the mouse driver again (not evdev)

    Code:
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver 		"mouse"
    	Option 		"CorePointer"
    	Option 		"Device" "/dev/input/mice"
    	Option 		"Protocol" "ImPS/2"
    	Option 		"ZAxisMapping" "6 7" # i tried this with "6 7" instead of "4 5" already, same problem
    	Option 		"Emulate3Buttons" "true"
    EndSection
    hey, whatever works :)