Unfortunately, I can't seem to get it to find the hidraw device path automatically. If I hardcode the path to "/dev/hidraw0" it successfully changes the colours on the mouse, otherwise it generates:
I inserted pdb into find_hidraw_device_path to figure out how far along it gets. It finds the device model, but none of the subsystems match "hidraw", just "usb" and "input". Here's a dump of the device for each iteration:
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7')
[(u'BUSNUM', u'002'), (u'DEVNAME', u'/dev/bus/usb/002/005'), (u'DEVNUM', u'005'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7'), (u'DEVTYPE', u'usb_device'), (u'DRIVER', u'usb'), (u'ID_BUS', u'usb'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_FROM_DATABASE', u'SteelSeries ApS'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'189'), (u'MINOR', u'132'), (u'PRODUCT', u'1038/1710/40'), (u'SUBSYSTEM', u'usb'), (u'TYPE', u'0/0/0'), (u'USEC_INITIALIZED', u'10742')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2')
[(u'ABS', u'30000000000'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2'), (u'EV', u'1f'), (u'ID_BUS', u'usb'), (u'ID_FOR_SEAT', u'input-pci-0000_00_1d_0-usb-0_1_7_1_1'), (u'ID_INPUT', u'1'), (u'ID_INPUT_MOUSE', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.1'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_1'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'01'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'KEY', u'ff0000 0 0 0 0'), (u'MODALIAS', u'input:b0003v1038p1710e0111-e0,1,2,3,4,k110,111,112,113,114,115,116,117,r0,1,8,a28,29,m4,lsfw'), (u'MSC', u'10'), (u'NAME', u'"SteelSeries SteelSeries Rival 300 Gaming Mouse"'), (u'PHYS', u'"usb-0000:00:1d.0-1.7/input1"'), (u'PRODUCT', u'3/1038/1710/111'), (u'PROP', u'0'), (u'REL', u'103'), (u'SUBSYSTEM', u'input'), (u'TAGS', u':seat:'), (u'UNIQ', u'""'), (u'USEC_INITIALIZED', u'16384')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2/event0')
[(u'DEVLINKS', u'/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_300_Gaming_Mouse-if01-event-mouse /dev/input/by-path/pci-0000:00:1d.0-usb-0:1.7:1.1-event-mouse'), (u'DEVNAME', u'/dev/input/event0'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2/event0'), (u'ID_BUS', u'usb'), (u'ID_INPUT', u'1'), (u'ID_INPUT_MOUSE', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.1'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_1'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'01'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'13'), (u'MINOR', u'64'), (u'SUBSYSTEM', u'input'), (u'USEC_INITIALIZED', u'55722')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2/mouse0')
[(u'DEVLINKS', u'/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_300_Gaming_Mouse-if01-mouse /dev/input/by-path/pci-0000:00:1d.0-usb-0:1.7:1.1-mouse'), (u'DEVNAME', u'/dev/input/mouse0'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2/mouse0'), (u'ID_BUS', u'usb'), (u'ID_INPUT', u'1'), (u'ID_INPUT_MOUSE', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.1'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_1'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'01'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'13'), (u'MINOR', u'32'), (u'SUBSYSTEM', u'input'), (u'USEC_INITIALIZED', u'16420')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.2/0003:1038:1710.0003/input/input3')
[(u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.2/0003:1038:1710.0003/input/input3'), (u'EV', u'100013'), (u'ID_BUS', u'usb'), (u'ID_FOR_SEAT', u'input-pci-0000_00_1d_0-usb-0_1_7_1_2'), (u'ID_INPUT', u'1'), (u'ID_INPUT_KEY', u'1'), (u'ID_INPUT_KEYBOARD', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.2'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_2'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'02'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'KEY', u'1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe'), (u'MODALIAS', u'input:b0003v1038p1710e0111-e0,1,4,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,8C,8E,96,98,9E,9F,A1,A3,A4,A5,A6,AD,B0,B1,B2,B3,B4,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,ram4,lsfw'), (u'MSC', u'10'), (u'NAME', u'"SteelSeries SteelSeries Rival 300 Gaming Mouse"'), (u'PHYS', u'"usb-0000:00:1d.0-1.7/input2"'), (u'PRODUCT', u'3/1038/1710/111'), (u'PROP', u'0'), (u'SUBSYSTEM', u'input'), (u'TAGS', u':seat:'), (u'UNIQ', u'""'), (u'USEC_INITIALIZED', u'16602')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.2/0003:1038:1710.0003/input/input3/event1')
[(u'BACKSPACE', u'guess'), (u'DEVLINKS', u'/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_300_Gaming_Mouse-if02-event-kbd /dev/input/by-path/pci-0000:00:1d.0-usb-0:1.7:1.2-event-kbd'), (u'DEVNAME', u'/dev/input/event1'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.2/0003:1038:1710.0003/input/input3/event1'), (u'ID_BUS', u'usb'), (u'ID_INPUT', u'1'), (u'ID_INPUT_KEY', u'1'), (u'ID_INPUT_KEYBOARD', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.2'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_2'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'02'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'13'), (u'MINOR', u'65'), (u'SUBSYSTEM', u'input'), (u'USEC_INITIALIZED', u'55791'), (u'XKBLAYOUT', u'gb'), (u'XKBMODEL', u'pc105')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.3/0003:1038:1710.0004/input/input4')
[(u'ABS', u'100000000'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.3/0003:1038:1710.0004/input/input4'), (u'EV', u'1f'), (u'ID_BUS', u'usb'), (u'ID_FOR_SEAT', u'input-pci-0000_00_1d_0-usb-0_1_7_1_3'), (u'ID_INPUT', u'1'), (u'ID_INPUT_KEY', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.3'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_3'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'03'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'KEY', u'3f0003007f 0 0 483ffff17aff32d bf54444600000000 1 120f938b17c000 677bfad9415fed 9ed68000004400 10000002'), (u'MODALIAS', u'input:b0003v1038p1710e0111-e0,1,2,3,4,k71,72,73,74,77,80,82,83,85,86,87,88,89,8A,8B,8C,8E,90,96,98,9B,9C,9E,9F,A1,A3,A4,A5,A6,A7,A8,A9,AB,AC,AD,AE,B0,B1,B2,B5,B6,CE,CF,D0,D1,D2,D4,D8,D9,DB,DF,E0,E1,E4,E7,E8,E9,EA,EB,F1,F4,100,161,162,166,16A,16E,172,174,176,178,179,17A,17B,17C,17D,17F,180,182,183,185,188,189,18C,18D,18E,18F,190,191,192,193,195,197,198,199,19A,19C,1A0,1A1,1A2,1A3,1A4,1A5,1A6,1A7,1A8,1A9,1AA,1AB,1AC,1AD,1AE,1AF,1B0,1B1,1B7,1BA,240,241,242,243,244,245,246,250,251,260,261,262,263,264,265,r6,a20,m4,lsfw'), (u'MSC', u'10'), (u'NAME', u'"SteelSeries SteelSeries Rival 300 Gaming Mouse"'), (u'PHYS', u'"usb-0000:00:1d.0-1.7/input3"'), (u'PRODUCT', u'3/1038/1710/111'), (u'PROP', u'0'), (u'REL', u'40'), (u'SUBSYSTEM', u'input'), (u'TAGS', u':seat:'), (u'UNIQ', u'""'), (u'USEC_INITIALIZED', u'16990')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.3/0003:1038:1710.0004/input/input4/event2')
[(u'BACKSPACE', u'guess'), (u'DEVLINKS', u'/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_300_Gaming_Mouse-event-if03 /dev/input/by-path/pci-0000:00:1d.0-usb-0:1.7:1.3-event'), (u'DEVNAME', u'/dev/input/event2'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.3/0003:1038:1710.0004/input/input4/event2'), (u'ID_BUS', u'usb'), (u'ID_INPUT', u'1'), (u'ID_INPUT_KEY', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.3'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_3'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'03'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'13'), (u'MINOR', u'66'), (u'SUBSYSTEM', u'input'), (u'USEC_INITIALIZED', u'55856'), (u'XKBLAYOUT', u'gb'), (u'XKBMODEL', u'pc105')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7')
[(u'BUSNUM', u'002'), (u'DEVNAME', u'/dev/bus/usb/002/005'), (u'DEVNUM', u'005'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7'), (u'DEVTYPE', u'usb_device'), (u'DRIVER', u'usb'), (u'ID_BUS', u'usb'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_FROM_DATABASE', u'SteelSeries ApS'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'189'), (u'MINOR', u'132'), (u'PRODUCT', u'1038/1710/40'), (u'SUBSYSTEM', u'usb'), (u'TYPE', u'0/0/0'), (u'USEC_INITIALIZED', u'10742')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2')
[(u'ABS', u'30000000000'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2'), (u'EV', u'1f'), (u'ID_BUS', u'usb'), (u'ID_FOR_SEAT', u'input-pci-0000_00_1d_0-usb-0_1_7_1_1'), (u'ID_INPUT', u'1'), (u'ID_INPUT_MOUSE', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.1'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_1'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'01'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'KEY', u'ff0000 0 0 0 0'), (u'MODALIAS', u'input:b0003v1038p1710e0111-e0,1,2,3,4,k110,111,112,113,114,115,116,117,r0,1,8,a28,29,m4,lsfw'), (u'MSC', u'10'), (u'NAME', u'"SteelSeries SteelSeries Rival 300 Gaming Mouse"'), (u'PHYS', u'"usb-0000:00:1d.0-1.7/input1"'), (u'PRODUCT', u'3/1038/1710/111'), (u'PROP', u'0'), (u'REL', u'103'), (u'SUBSYSTEM', u'input'), (u'TAGS', u':seat:'), (u'UNIQ', u'""'), (u'USEC_INITIALIZED', u'16384')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2/event0')
[(u'DEVLINKS', u'/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_300_Gaming_Mouse-if01-event-mouse /dev/input/by-path/pci-0000:00:1d.0-usb-0:1.7:1.1-event-mouse'), (u'DEVNAME', u'/dev/input/event0'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2/event0'), (u'ID_BUS', u'usb'), (u'ID_INPUT', u'1'), (u'ID_INPUT_MOUSE', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.1'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_1'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'01'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'13'), (u'MINOR', u'64'), (u'SUBSYSTEM', u'input'), (u'USEC_INITIALIZED', u'55722')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2/mouse0')
[(u'DEVLINKS', u'/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_300_Gaming_Mouse-if01-mouse /dev/input/by-path/pci-0000:00:1d.0-usb-0:1.7:1.1-mouse'), (u'DEVNAME', u'/dev/input/mouse0'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.1/0003:1038:1710.0002/input/input2/mouse0'), (u'ID_BUS', u'usb'), (u'ID_INPUT', u'1'), (u'ID_INPUT_MOUSE', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.1'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_1'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'01'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'13'), (u'MINOR', u'32'), (u'SUBSYSTEM', u'input'), (u'USEC_INITIALIZED', u'16420')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.2/0003:1038:1710.0003/input/input3')
[(u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.2/0003:1038:1710.0003/input/input3'), (u'EV', u'100013'), (u'ID_BUS', u'usb'), (u'ID_FOR_SEAT', u'input-pci-0000_00_1d_0-usb-0_1_7_1_2'), (u'ID_INPUT', u'1'), (u'ID_INPUT_KEY', u'1'), (u'ID_INPUT_KEYBOARD', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.2'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_2'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'02'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'KEY', u'1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe'), (u'MODALIAS', u'input:b0003v1038p1710e0111-e0,1,4,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,8C,8E,96,98,9E,9F,A1,A3,A4,A5,A6,AD,B0,B1,B2,B3,B4,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,ram4,lsfw'), (u'MSC', u'10'), (u'NAME', u'"SteelSeries SteelSeries Rival 300 Gaming Mouse"'), (u'PHYS', u'"usb-0000:00:1d.0-1.7/input2"'), (u'PRODUCT', u'3/1038/1710/111'), (u'PROP', u'0'), (u'SUBSYSTEM', u'input'), (u'TAGS', u':seat:'), (u'UNIQ', u'""'), (u'USEC_INITIALIZED', u'16602')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.2/0003:1038:1710.0003/input/input3/event1')
[(u'BACKSPACE', u'guess'), (u'DEVLINKS', u'/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_300_Gaming_Mouse-if02-event-kbd /dev/input/by-path/pci-0000:00:1d.0-usb-0:1.7:1.2-event-kbd'), (u'DEVNAME', u'/dev/input/event1'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.2/0003:1038:1710.0003/input/input3/event1'), (u'ID_BUS', u'usb'), (u'ID_INPUT', u'1'), (u'ID_INPUT_KEY', u'1'), (u'ID_INPUT_KEYBOARD', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.2'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_2'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'02'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'13'), (u'MINOR', u'65'), (u'SUBSYSTEM', u'input'), (u'USEC_INITIALIZED', u'55791'), (u'XKBLAYOUT', u'gb'), (u'XKBMODEL', u'pc105')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.3/0003:1038:1710.0004/input/input4')
[(u'ABS', u'100000000'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.3/0003:1038:1710.0004/input/input4'), (u'EV', u'1f'), (u'ID_BUS', u'usb'), (u'ID_FOR_SEAT', u'input-pci-0000_00_1d_0-usb-0_1_7_1_3'), (u'ID_INPUT', u'1'), (u'ID_INPUT_KEY', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.3'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_3'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'03'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'KEY', u'3f0003007f 0 0 483ffff17aff32d bf54444600000000 1 120f938b17c000 677bfad9415fed 9ed68000004400 10000002'), (u'MODALIAS', u'input:b0003v1038p1710e0111-e0,1,2,3,4,k71,72,73,74,77,80,82,83,85,86,87,88,89,8A,8B,8C,8E,90,96,98,9B,9C,9E,9F,A1,A3,A4,A5,A6,A7,A8,A9,AB,AC,AD,AE,B0,B1,B2,B5,B6,CE,CF,D0,D1,D2,D4,D8,D9,DB,DF,E0,E1,E4,E7,E8,E9,EA,EB,F1,F4,100,161,162,166,16A,16E,172,174,176,178,179,17A,17B,17C,17D,17F,180,182,183,185,188,189,18C,18D,18E,18F,190,191,192,193,195,197,198,199,19A,19C,1A0,1A1,1A2,1A3,1A4,1A5,1A6,1A7,1A8,1A9,1AA,1AB,1AC,1AD,1AE,1AF,1B0,1B1,1B7,1BA,240,241,242,243,244,245,246,250,251,260,261,262,263,264,265,r6,a20,m4,lsfw'), (u'MSC', u'10'), (u'NAME', u'"SteelSeries SteelSeries Rival 300 Gaming Mouse"'), (u'PHYS', u'"usb-0000:00:1d.0-1.7/input3"'), (u'PRODUCT', u'3/1038/1710/111'), (u'PROP', u'0'), (u'REL', u'40'), (u'SUBSYSTEM', u'input'), (u'TAGS', u':seat:'), (u'UNIQ', u'""'), (u'USEC_INITIALIZED', u'16990')]
Device(u'/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.3/0003:1038:1710.0004/input/input4/event2')
[(u'BACKSPACE', u'guess'), (u'DEVLINKS', u'/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_300_Gaming_Mouse-event-if03 /dev/input/by-path/pci-0000:00:1d.0-usb-0:1.7:1.3-event'), (u'DEVNAME', u'/dev/input/event2'), (u'DEVPATH', u'/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7:1.3/0003:1038:1710.0004/input/input4/event2'), (u'ID_BUS', u'usb'), (u'ID_INPUT', u'1'), (u'ID_INPUT_KEY', u'1'), (u'ID_MODEL', u'SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_MODEL_ENC', u'SteelSeries\\x20Rival\\x20300\\x20Gaming\\x20Mouse'), (u'ID_MODEL_ID', u'1710'), (u'ID_PATH', u'pci-0000:00:1d.0-usb-0:1.7:1.3'), (u'ID_PATH_TAG', u'pci-0000_00_1d_0-usb-0_1_7_1_3'), (u'ID_REVISION', u'0040'), (u'ID_SERIAL', u'SteelSeries_SteelSeries_Rival_300_Gaming_Mouse'), (u'ID_TYPE', u'hid'), (u'ID_USB_DRIVER', u'usbhid'), (u'ID_USB_INTERFACES', u':030000:030102:030101:'), (u'ID_USB_INTERFACE_NUM', u'03'), (u'ID_VENDOR', u'SteelSeries'), (u'ID_VENDOR_ENC', u'SteelSeries'), (u'ID_VENDOR_ID', u'1038'), (u'MAJOR', u'13'), (u'MINOR', u'66'), (u'SUBSYSTEM', u'input'), (u'USEC_INITIALIZED', u'55856'), (u'XKBLAYOUT', u'gb'), (u'XKBMODEL', u'pc105')]