Difference between revisions of "Logitech G300"

From ArchWiki
Jump to: navigation, search
(Created page with "== How to Make G300 Work Correctly == This Wiki page will show you how to get your G00 mouse working as desired. G300 is recognized as both mouse and keyboard by system, you co...")
 
m (+ category + i18n)
Line 1: Line 1:
 +
[[Category:Mice (English)]]
 +
{{i18n|Logitech G300}}
 +
 
== How to Make G300 Work Correctly ==
 
== How to Make G300 Work Correctly ==
  

Revision as of 14:12, 22 November 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

How to Make G300 Work Correctly

This Wiki page will show you how to get your G00 mouse working as desired.

G300 is recognized as both mouse and keyboard by system, you could check by execute:

xinput list | grep G300

We have to disable the G300 keyboard to make it work correctly.

Here's the code:

#!/bin/sh
DEVICE_ID=`xinput list |  grep "Logitech Gaming Mouse G300" | grep keyboard | sed 's/.*id=\([0-9]*\).*/\1/'`

if xinput -list-props $DEVICE_ID | grep "Device Enabled" | grep "1$" > /dev/null
then
   xinput set-int-prop $DEVICE_ID "Device Enabled" 8 0
fi

Simply execute the code above to see if it's working.

And you could put it into your xinitrc.d to make it load automatically.