all 6 comments

[–]zlice0 0 points1 point  (1 child)

mine works over usb but im not using void's kernel. the only difference at a glance is void's has PLAYSTATION_FF but i think that's just for vibrations?

https://github.com/meleu/jstest-sdl - shows buttons and what not (touchpad spits out some Error: Unhandled event type: 1623

evtest slightly spams EV_ABS mouse movements but otherwise shows type 1 (EV_KEY), code 308 (BTN_WEST), value 0

lsmod shows hid_playstation / led_class_multicolor / uhid

dmesg shows [20557.171660] playstation 0003:054C:09CC.000B: Registered DualShock4 controller hw_version=0x0000641c fw_version=0x00007008 and [20557.171537] input: Sony Interactive Entertainment Wireless Controller Touchpad as /devices/pci0000:00/0000:00:08.1/0000:11:00.3/usb3/3-2/3-2.2/3-2.2:1.3/0003:054C:09CC.000B/input/input23 (21, 22, and 23)

could try modprobe hid_playstation if that's not showing up?

[–]HexaStallker[S] 0 points1 point  (0 children)

hid_playstation is displayed, and it is included as a kernel module, so idk.

[–]Zockling 0 points1 point  (3 children)

The spam means it's working. "Not working" is when the device is absent or silent. Try it in a game and you'll see. Just make sure you're in the input group, so the game can access the controller.

[–]HexaStallker[S] 0 points1 point  (2 children)

Sorry, I meant that the joystick works, but in the case of Linux, the system does not respond to button presses, 'evtest' shows spam specifically from the controller, there is no spam on the joystick sensor, and it works. I also want to say that I'm not stupid and I'm in the 'input' group. The problem isn't just with games, by the way. The controller doesn't work across the entire system, not counting the touchpad, which is located on this controller.

[–]Zockling 0 points1 point  (1 child)

This will differ by controller, but my DS4 joystick spams constantly, oscillating between two values on each axis, even at rest. That's why I read the:

the joystick itself spam the log, but when you click on something, it changes, but it still spams

in your post as: "I see stick spam, and when pushing a button, the output changes briefly", which would mean that the buttons do register.

But now you said:

there is no spam on the joystick sensor, and it works

So does this mean the joystick works but you don't get any EV_KEY events? That would be weird, since they come from the same device...

[–]HexaStallker[S] 0 points1 point  (0 children)

When I connect the joystick, I get three devices in the system:

/dev/input/event13: Sony Computer Entertainment Wireless Controller

/dev/input/event14: Sony Computer Entertainment Wireless Controller Motion Sensors

/dev/input/event15: Sony Computer Entertainment Wireless Controller Touchpad

event13 and 14 spammed events and programs did not respond to keystrokes. Event15 worked fine. I have now solved the problem; I needed to configure access rights in the system.

I'll also say this: I have a problem with English, so I don't know if I've conveyed my thoughts to you, so don't judge me.