Orange Pi
Posted: Tue Nov 08, 2016 6:59 pm
Just wondering if anyone has used one of the Orange Pi's instead of a RP? The RP's are fairly costly where I am where as I can get an Orange for much much cheaper.
Thanks.
Thanks.
Code: Select all
pi@orangepizero:~$ uname -a
Linux orangepizero 3.4.113-sun8i #50 SMP PREEMPT Mon Nov 14 08:41:55 CET 2016 armv7l GNU/Linux
Code: Select all
pi@raspberrypi:~ $ groups
pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi
Code: Select all
pi@orangepizero:~$ groups
pi adm dialout cdrom sudo audio video plugdev games users input netdev bluetooth
Code: Select all
wget https://gimx.fr/download/gimx-raspbian -O gimx.deb
sudo dpkg -i gimx.deb
sudo apt-get -f install
Code: Select all
pi@orangepizero:~$ /usr/bin/gimx -p /dev/ttyUSB0 -c LogitechMomoRacing_G29.xml --nograb
controller #1: option -p with value `/dev/ttyUSB0'
now reading arguments for controller #2
global option -c with value `LogitechMomoRacing_G29.xml'
grab flag is unset
USB adapter detected, controller type is: G29 PS4.
using default refresh period: 5.00ms
native mode is already enabled for HID device 08:01:00:00 (PID=ca03)
linux/uhidasync.c:223 wait_watch: select timed out
Code: Select all
pi@orangepizero:~$ /usr/bin/gimx -c LogitechMomoRacing_G29.xml --status -t DS4
global option -c with value `LogitechMomoRacing_G29.xml'
controller #1: option -t with value `DS4'
status flag is set
using default refresh period: 10.00ms
native mode is already enabled for HID device 08:01:00:00 (PID=ca03)
linux/uhidasync.c:223 wait_watch: select timed out
joystick not found: Logitech Logitech MOMO Racing 0
Code: Select all
<button id="abs_axis_11" label="">
<device type="joystick" id="0" name="Logitech Logitech MOMO Racing "/>
<event type="button" id="0"/>
</button>
Code: Select all
<button id="abs_axis_2" label="Aim">
<device type="joystick" id="0" name="Logitech Logitech MOMO Racing "/>
<event type="button" id="9"/>
</button>
Code: Select all
linux/uhidasync.c:223 wait_watch: select timed out
Code: Select all
pi@orangepizero:~$ /usr/bin/gimx -p /dev/ttyUSB0 -c LogitechDrivingForceGT_G29.xml --nograb
controller #1: option -p with value `/dev/ttyUSB0'
now reading arguments for controller #2
global option -c with value `LogitechDrivingForceGT_G29.xml'
grab flag is unset
USB adapter detected, controller type is: G29 PS4.
using default refresh period: 5.00ms
native mode command sent to HID device 08:01:00:00 (PID=c294)
failed to enable native mode for HID device 08:01:00:00
1483725537.631825 timer fired 2 times...
pi@orangepizero:~$
pi@orangepizero:~$ /usr/bin/gimx -p /dev/ttyUSB0 -c LogitechDrivingForceGT_G29.xml --nograb
controller #1: option -p with value `/dev/ttyUSB0'
now reading arguments for controller #2
global option -c with value `LogitechDrivingForceGT_G29.xml'
grab flag is unset
USB adapter detected, controller type is: G29 PS4.
using default refresh period: 5.00ms
libusb/gusbhid.c:304 gusbhid_write_timeout: libusb_interrupt_transfer failed with error: No such device (it may have been disconnected)
failed to send native mode command for HID device 08:01:00:00 (PID=c294)
1483725546.214866 timer fired 2 times...
pi@orangepizero:~$
pi@orangepizero:~$ /usr/bin/gimx -p /dev/ttyUSB0 -c LogitechDrivingForceGT_G29.xml --nograb
controller #1: option -p with value `/dev/ttyUSB0'
now reading arguments for controller #2
global option -c with value `LogitechDrivingForceGT_G29.xml'
grab flag is unset
USB adapter detected, controller type is: G29 PS4.
using default refresh period: 5.00ms
native mode is already enabled for HID device 08:01:00:00 (PID=c29a)
linux/uhidasync.c:223 wait_watch: select timed out
1483725556.344695 timer fired 2 times...
Code: Select all
[ 110.120083] usb 7-1: reset full-speed USB device number 2 using sunxi-ohci
[ 110.647371] logitech 0003:046D:C294.0003: input,hidraw0: USB HID v1.00 Joystick [Driving Force GT] on usb-sunxi-ohci-1/input0
[ 110.647467] logitech 0003:046D:C294.0003: Force feedback for Logitech Speed Force Wireless by Simon Wood <simon@mungewell.org>
[ 115.837634] vmouse_input_dev_open
[ 121.710147] vmouse_input_dev_close
[ 122.066916] generic-usb 0003:054C:05C4.0004: input,hidraw1: USB HID v1.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-sunxi-ohci-1/input0
[ 123.840104] usb 7-1: reset full-speed USB device number 2 using sunxi-ohci
[ 124.579553] ohci_irq: fullspeed or lowspeed device disconnect
[ 124.579860] usb 8-1: USB disconnect, device number 2
[ 124.583546] vmouse_input_dev_open
[ 124.692983] ehci_irq: highspeed device connect
[ 124.860517] ehci_irq: highspeed device disconnect
[ 124.860600] ohci_irq: fullspeed or lowspeed device connect
[ 125.200261] usb 8-1: new full-speed USB device number 3 using sunxi-ohci
[ 125.463074] logitech 0003:046D:C29A.0005: input,hidraw0: USB HID v1.11 Joystick [Driving Force GT] on usb-sunxi-ohci-1/input0
[ 125.463318] logitech 0003:046D:C29A.0005: Force feedback for Logitech Speed Force Wireless by Simon Wood <simon@mungewell.org>
[ 127.110130] vmouse_input_dev_close
[ 127.475926] generic-usb 0003:054C:05C4.0006: input,hidraw1: USB HID v1.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-sunxi-ohci-1/input0
[ 128.950082] usb 7-1: reset full-speed USB device number 2 using sunxi-ohci
[ 134.712076] vmouse_input_dev_open
Code: Select all
pi@orangepizero:~$ uname -a
Linux orangepizero 4.9.0-sun8i #17 SMP Sat Jan 7 02:42:18 CET 2017 armv7l GNU/Linux
Code: Select all
libusb/gusbhid.c:480 claim_device: libusb_open failed with error: Access denied (insufficient permissions)
Code: Select all
Modified line below within /lib/udev/rules.d/50-udev-default.rules file:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"
Code: Select all
linux/uhidasync.c:249 guhid_create: open failed with error: Permission denied
Code: Select all
pi@orangepizero:~$ sudo chmod 666 /dev/uhid
Code: Select all
pi@orangepizero:~$ /usr/bin/gimx -c LogitechMomoRacing_G29.xml --status -t DS4
global option -c with value `LogitechMomoRacing_G29.xml'
controller #1: option -t with value `DS4'
status flag is set
using default refresh period: 10.00ms
native mode is already enabled for HID device 08:01:00:00 (PID=ca03)
joystick not found: Logitech Logitech MOMO Racing 0
Code: Select all
[ 1754.409209] input: Logitech Logitech MOMO Racing as /devices/virtual/misc/uhid/0006:046D:CA03.0015/input/input21
[ 1754.421321] hid-generic 0006:046D:CA03.0015: input,hidraw0: <UNKNOWN> HID v1.00 Multi-Axis Controller [Logitech Logitech MOMO Racing ] on
----- After Gimx Test execution stops -----
[ 1900.069901] logitech 0003:046D:CA03.0016: fixing up Logitech Momo Racing Force (Black) report descriptor
[ 1900.073162] input: Logitech Logitech MOMO Racing as /devices/platform/soc/1c1d400.usb/usb8/8-1/8-1:1.0/0003:046D:CA03.0016/input/input22
[ 1900.073823] logitech 0003:046D:CA03.0016: input,hidraw0: USB HID v1.00 Joystick [Logitech Logitech MOMO Racing ] on usb-1c1d400.usb-1/input0
[ 1900.073934] logitech 0003:046D:CA03.0016: Force feedback support for Logitech Gaming Wheels
Code: Select all
pi@orangepizero:~$ /usr/bin/gimx -p /dev/ttyUSB0 -c LogitechMomoRacing_G29.xml --nograb --status
controller #1: option -p with value `/dev/ttyUSB0'
now reading arguments for controller #2
global option -c with value `LogitechMomoRacing_G29.xml'
grab flag is unset
status flag is set
USB adapter detected, controller type is: G29 PS4.
found pass-through device 0x054c:0x05c4
using default refresh period: 5.00ms
native mode is already enabled for HID device 08:01:00:00 (PID=ca03)
joystick not found: Logitech Logitech MOMO Racing 0
0 1483819660.534028
Code: Select all
[ 2012.410590] usb 7-1: reset full-speed USB device number 4 using ohci-platform
[ 2012.759861] input: Logitech Logitech MOMO Racing as /devices/virtual/misc/uhid/0006:046D:CA03.0017/input/input23
[ 2012.771058] hid-generic 0006:046D:CA03.0017: input,hidraw0: <UNKNOWN> HID v1.00 Multi-Axis Controller [Logitech Logitech MOMO Racing ] on
----- After Gimx Regular execution stops -----
[ 2050.286993] logitech 0003:046D:CA03.0018: fixing up Logitech Momo Racing Force (Black) report descriptor
[ 2050.290042] input: Logitech Logitech MOMO Racing as /devices/platform/soc/1c1d400.usb/usb8/8-1/8-1:1.0/0003:046D:CA03.0018/input/input24
[ 2050.293604] logitech 0003:046D:CA03.0018: input,hidraw0: USB HID v1.00 Joystick [Logitech Logitech MOMO Racing ] on usb-1c1d400.usb-1/input0
[ 2050.293721] logitech 0003:046D:CA03.0018: Force feedback support for Logitech Gaming Wheels
[ 2050.297892] sony 0003:054C:05C4.0019: Using modified Dualshock 4 report descriptor with gyroscope axes
[ 2050.348247] input: Sony Computer Entertainment Wireless Controller as /devices/platform/soc/1c1c400.usb/usb7/7-1/7-1:1.0/0003:054C:05C4.0019/input/input25
[ 2050.348962] sony 0003:054C:05C4.0019: input,hidraw1: USB HID v1.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-1c1c400.usb-1/input0
Code: Select all
pi@orangepizero:~$ gimx-launcher
09:09:32 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined
native mode is already enabled for HID device 08:01:00:00 (PID=ca03)
linux/uhidasync.c:223 wait_watch: select timed out
Check execution result:
joystick not found: Logitech Logitech MOMO Racing (0)
joystick not found: Sony Computer Entertainment Wireless Controller (0)
Code: Select all
[ 2146.106064] input: Logitech Logitech MOMO Racing as /devices/virtual/misc/uhid/0006:046D:CA03.001A/input/input26
[ 2146.113937] hid-generic 0006:046D:CA03.001A: input,hidraw0: <UNKNOWN> HID v1.00 Multi-Axis Controller [Logitech Logitech MOMO Racing ] on
[ 2151.201142] logitech 0003:046D:CA03.001B: fixing up Logitech Momo Racing Force (Black) report descriptor
[ 2151.213479] input: Logitech Logitech MOMO Racing as /devices/platform/soc/1c1d400.usb/usb8/8-1/8-1:1.0/0003:046D:CA03.001B/input/input27
[ 2151.219136] logitech 0003:046D:CA03.001B: input,hidraw0: USB HID v1.00 Joystick [Logitech Logitech MOMO Racing ] on usb-1c1d400.usb-1/input0
[ 2151.219249] logitech 0003:046D:CA03.001B: Force feedback support for Logitech Gaming Wheels
Code: Select all
pi@orangepizero:~$ evtest /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x46d product 0xca03 version 0x100
Input device name: "Logitech Logitech MOMO Racing "
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 288 (BTN_TRIGGER)
Event code 289 (BTN_THUMB)
Event code 290 (BTN_THUMB2)
Event code 291 (BTN_TOP)
Event code 292 (BTN_TOP2)
Event code 293 (BTN_PINKIE)
Event code 294 (BTN_BASE)
Event code 295 (BTN_BASE2)
Event code 296 (BTN_BASE3)
Event code 297 (BTN_BASE4)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 0
Min 0
Max 1023
Event code 1 (ABS_Y)
Value 0
Min 0
Max 255
Event code 2 (ABS_Z)
Value 0
Min 0
Max 255
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Event type 21 (EV_FF)
Event code 82 (FF_CONSTANT)
Event code 96 (FF_GAIN)
Event code 97 (FF_AUTOCENTER)
Properties:
Testing ... (interrupt to exit)
Event: time 1483820437.632014, type 3 (EV_ABS), code 0 (ABS_X), value 510
Event: time 1483820437.632014, type 3 (EV_ABS), code 1 (ABS_Y), value 255
Event: time 1483820437.632014, type 3 (EV_ABS), code 2 (ABS_Z), value 255
Event: time 1483820437.632014, -------------- EV_SYN ------------
Event: time 1483820437.983997, type 3 (EV_ABS), code 0 (ABS_X), value 511
Event: time 1483820437.983997, -------------- EV_SYN ------------
Event: time 1483820437.991993, type 3 (EV_ABS), code 0 (ABS_X), value 512
Event: time 1483820437.991993, -------------- EV_SYN ------------
Event: time 1483820437.999991, type 3 (EV_ABS), code 0 (ABS_X), value 513
Event: time 1483820437.999991, -------------- EV_SYN ------------
Event: time 1483820438.007992, type 3 (EV_ABS), code 0 (ABS_X), value 514
Event: time 1483820438.007992, -------------- EV_SYN ------------
Event: time 1483820438.015989, type 3 (EV_ABS), code 0 (ABS_X), value 515
Event: time 1483820438.015989, -------------- EV_SYN ------------
Event: time 1483820438.023991, type 3 (EV_ABS), code 0 (ABS_X), value 516
Event: time 1483820438.023991, -------------- EV_SYN ------------
Event: time 1483820438.031990, type 3 (EV_ABS), code 0 (ABS_X), value 517
................................................................