You are not logged in.

#1 2016-12-15 20:03:16

OlaffTheGreat
Member
Registered: 2013-06-03
Posts: 107

[Solved] F710 Logitech gamepad seen by system, none button action work

Hi folk,

I got a second hand F710 Logitech's gamepad to set up (seems in good condition at first sight), running into trouble.
The wiki's page and the kernel.org suggested page precise this pad should work directly.

As require, I just loaded adi, usbhdi, ns558, joydev, analog.
Edit. Also enabled xpad, both with and without the kernel trick, and tried the xboxrdv alternative.

And I tried to set the variable to use the Joystick API.

The device is seen by the system, but it doesn't recognize any input action, both in XInput mode and Direct Input.

$ lsusb
Bus 003 Device 007: ID 046d:c21f Logitech, Inc. F710 Wireless Gamepad [XInput Mode]

With  jstest (as well as cat), I can see the joystick plugged in, but nothing happens if I press any pad's key.

$ jstest /dev/input/js0 
Driver version is 2.1.0.
Joystick (Logitech Gamepad F710) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y)
and 11 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR).
Testing ... (interrupt to exit)
Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
[...]
Axes:  0:     0  1:     0  2:     0  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:     0  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:-32767  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:-32767  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
Axes:  0:     0  1:     0  2:-32767  3:     0  4:     0  5:-32767  6:     0  7:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off
$ jstest --normal /dev/input/js0
(same as above)
$ jstest --old    /dev/input/js0
Driver version is 2.1.0.
Joystick (Logitech Gamepad F710) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y)
and 11 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR).
Testing ... (interrupt to exit)
Axes: X:128 Y:128 Buttons: A:off B:off

 
Same with $ evtest /dev/input/event0: doesn't react to any action from the pad, but does correctly from the keyboard.

Same thing with fftest: no reaction from the joystick

$ fftest /dev/input/by-id/usb-Logitech_Wireless_Gamepad_F710_39BC94A0-event-joystick
Force feedback test program.
HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES

Device /dev/input/by-id/usb-Logitech_Wireless_Gamepad_F710_39BC94A0-event-joystick opened
Features:
  * Absolute axes: X, Y, Z, RX, RY, RZ, Hat 0 X, Hat 0 Y,
    [3F 00 03 00 00 00 00 00 ]
  * Relative axes:
    [00 00 ]
  * Force feedback effects types: Periodic, Rumble, Gain,
    Force feedback periodic effects: Square, Triangle, Sine,
    [00 00 00 00 00 00 00 00 00 00 03 07 01 00 00 00 ]
  * Number of simultaneous effects: 16

Setting master gain to 75% ... OK
Uploading effect #0 (Periodic sinusoidal) ... OK (id 4)
Uploading effect #1 (Constant) ... Error: Invalid argument
Uploading effect #2 (Spring) ... Error: Invalid argument
Uploading effect #3 (Damper) ... Error: Invalid argument
Uploading effect #4 (Strong rumble, with heavy motor) ... OK (id 5)
Uploading effect #5 (Weak rumble, with light motor) ... OK (id 6)
Enter effect number, -1 to exit
2
Now Playing: Spring Condition
Enter effect number, -1 to exit

Here, fftest gives an Invalid argument

$ fftest /dev/input/js0                                                             
Force feedback test program.
HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES

Device /dev/input/js0 opened
Features:
Ioctl absolute axes features query: Invalid argument

The jstest-gtk tool displays the pad.
Hitting the 'calibration' key make the tool crash. The only error message I get is an ols gtk annoying issue (GLib-GObject-WARNING **: specified class size for type 'GtkIMContextCedillaTranslit' is smaller than the parent type's 'GtkIMContextSimple'...)

The 'mapping' button opens the table, I can select functions in both column, but nothing more.

Trivial but deadly omission always possible  ;-) : the batteries are full, proven by the vibration button triggering the motors.

FYI, I tried the pad with pcsx games, and openarena.

(Arch system Up to date, running on xfce)

Last edited by OlaffTheGreat (2017-01-01 00:13:31)


Lenovo Thinkpad x230 i5-3320M 2.6GHz 250GB SSD (M4) 16GB
SSD | SeaBIOS | GPT | BTRFS | OpenRC | Xfce4 | Zsh | Tmux | Spacemacs
* "Aware Newbie" *
Ibus IM for language script support (e.g. 日本語 - 中文)

Offline

#2 2016-12-16 02:10:44

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [Solved] F710 Logitech gamepad seen by system, none button action work

I get my F310 to work by enabling only uinput and xpad, you might have similar luck

Offline

#3 2016-12-16 08:38:42

OlaffTheGreat
Member
Registered: 2013-06-03
Posts: 107

Re: [Solved] F710 Logitech gamepad seen by system, none button action work

Thanks for your reply.

Forgot to mention I enabled xpad, both with and without the kernel trick, and tried the xboxrdv alternative. (Added in Edit)

However, I didn't with uinput. With this one on, I get this error with jstest through the evdev interface:

$ jstest /dev/input/by-id/usb-Logitech_Wireless_Gamepad_F710_39BC94A0-event-joystick 
Driver version is 0.8.0.
jstest is not fully compatible with your kernel. Unable to retrieve button map!
Joystick (Unknown) has 2 axes and 2 buttons.
Testing ... (interrupt to exit)

jstest: error reading: Invalid argument

And the usual through the jotstick API (same as above).


Lenovo Thinkpad x230 i5-3320M 2.6GHz 250GB SSD (M4) 16GB
SSD | SeaBIOS | GPT | BTRFS | OpenRC | Xfce4 | Zsh | Tmux | Spacemacs
* "Aware Newbie" *
Ibus IM for language script support (e.g. 日本語 - 中文)

Offline

#4 2017-01-01 00:13:04

OlaffTheGreat
Member
Registered: 2013-06-03
Posts: 107

Re: [Solved] F710 Logitech gamepad seen by system, none button action work

This post gives closure to this issue.

Long story short, I finally make work both gamepads.
Both, because I went to the second hand shop to test the Logitech on another computer,
and found myself get a 2nd one, a wired 360 Xbox, just in the idea to play some Street Fighter or so :-)

Well, both work correctly on Arch without much setting though.

I put below the relevant settings files.
For the Logitech, the trouble was just about the order of when to put in the batteries *after* having plugged in the receiver.
We discovered this point with the Logitech utility which is much explicit.
Also, the device doesn't have any on/off switch... so it feels a bit wrong.
Never mind, I entend to tinker and add thus switch, at least to save the batteries energy.

About kernel modules, I needed not load anything, in fact, really.
The xpad seems not mandatory. Only start the xboxdrv service (as mentioned in wiki).

For future reference, here's my /etc/default/xboxdrv

[xboxdrv]
silent = true
#device-name = "Xbox 360 Wireless Receiver"
mimic-xpad = true
deadzone = 4000
next-controller = true

# Make triggers work like buttons instead of zaxis
trigger-as-button = true
[ui-buttonmap]
lt=BTN_THUMBL
rt=BTN_THUMBR

[xboxdrv-daemon]
dbus = disabled

It still requires some adjustments:
I want to turn the triggers as buttons as I tried to do so with the trigger-as-button option.
For the moment this one doesn't do the trick.

For the rest, everything works fine:
key switching through the jstest-gtk tool as well as through xboxdrv options, vibrating motors functions.
Notice the two pads work fine on GNU natives games such Open Arena, as well on emulators like pcsxr,
or even with some old games through Wine (tested with Street Fighter, Starcraft and Baldur's Gate).

Thank you all for you support and a special cheers to Florian from the Ubuntu community.


Lenovo Thinkpad x230 i5-3320M 2.6GHz 250GB SSD (M4) 16GB
SSD | SeaBIOS | GPT | BTRFS | OpenRC | Xfce4 | Zsh | Tmux | Spacemacs
* "Aware Newbie" *
Ibus IM for language script support (e.g. 日本語 - 中文)

Offline

Board footer

Powered by FluxBB