You are not logged in.

#1 2020-11-09 18:28:34

Mcmirande
Member
Registered: 2020-11-09
Posts: 4

Remapping Logitech G27 wheel buttons

Hello all.
I need to remap the order of the buttons of a Logitech G27 racing wheel, to be correctly recognized in a racing sim via Wine.
Basically I need the buttons 12, 13…17 to be read as buttons 1, 2…6.
I guess I should remap it in xorg.conf and that the wheel uses evdev driver, so I modified that file following xorg and evdev available online helps… but nothing happens with the order of the buttons.

This is my xorg.conf. Please, let me know if you need some additional information.

I tested several different alternatives to modify the xorg.conf but had no success

Thanks a lot in advance! Marcos.

---------------------

That's how I modified the etc/X11/xorg.conf file

code 

    Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice	   "Wheel0"  
EndSection
	
Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc"
	FontPath     "/usr/share/fonts/TTF"
	FontPath     "/usr/share/fonts/OTF"
	FontPath     "/usr/share/fonts/Type1"
	FontPath     "/usr/share/fonts/100dpi"
	FontPath     "/usr/share/fonts/75dpi"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "Backlight"          	# <str>
        #Option     "CustomEDID"         	# <str>
        #Option     "DRI"                	# <str>
        #Option     "Present"            	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "Tiling"             	# [<bool>]
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "HWRotation"         	# [<bool>]
        #Option     "VSync"              	# [<bool>]
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
        #Option     "TripleBuffer"       	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "HotPlug"            	# [<bool>]
        #Option     "ReprobeOutputs"     	# [<bool>]
        #Option     "XvMC"               	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "VirtualHeads"       	# <i>
        #Option     "TearFree"           	# [<bool>]
        #Option     "PerCrtcPixmaps"     	# [<bool>]
        #Option     "FallbackDebug"      	# [<bool>]
        #Option     "DebugFlushBatches"  	# [<bool>]
        #Option     "DebugFlushCaches"   	# [<bool>]
        #Option     "DebugWait"          	# [<bool>]
        #Option     "BufferCache"        	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "InputDevice"
  Identifier "Wheel0"
  Driver "evdev"
  Option "Device" "/dev/input/event16"
  Option "ButtonMapping" "12 13 14 15 16 17 18 0 1 2 3 4 5 6 7 8 9 10 11 19 20 21 22"
EndSection

tags

Last edited by Mcmirande (2020-11-12 13:01:01)

Offline

#2 2020-11-12 09:36:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,626

Re: Remapping Logitech G27 wheel buttons

Please wrap outputs and file contents in

[code]code tags[/code]

and edit the post to reflect accordingly.

Hoping that the device is always event16 is a gamble I wouldn't take, and in any case unless you consciously installed the evdev driver, the driver that's used in our modern times will be libinput https://wiki.archlinux.org/index.php/Libinput note the xorg config file and the button remapping section for something you could do on the fly.

Offline

#3 2020-11-12 13:02:40

Mcmirande
Member
Registered: 2020-11-09
Posts: 4

Re: Remapping Logitech G27 wheel buttons

V1del wrote:

Please wrap outputs and file contents in

[code]code tags[/code]

and edit the post to reflect accordingly.

Hoping that the device is always event16 is a gamble I wouldn't take, and in any case unless you consciously installed the evdev driver, the driver that's used in our modern times will be libinput https://wiki.archlinux.org/index.php/Libinput note the xorg config file and the button remapping section for something you could do on the fly.

Thanks! I'll research about that driver

Marcos.

Offline

Board footer

Powered by FluxBB