Skip to main content
Topic: bought a pair of new ps4 controllers that wont connect (Read 540 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

bought a pair of new ps4 controllers that wont connect

so i plugged them in first to the pc and pressed the  middle button and after pairing them and trusting them they will not connect on artix.  I was however able to get them to c onnect and be recognized and work in steam on windows.  They will not cooperate with artix though.  any ideas how to begin?  if i dont pair them first i can get it to say it's connected in bluez gui thingy but steam doesnt see either controller
.
Cat Herders of Linux

Re: bought a pair of new ps4 controllers that wont connect

Reply #1
Ok so since no one here offered anything i did a web search and it seems i need python-setuptools.  checking the rpos i see it's installed but when i run pip --help in a terminal i see pip is not installed even thought python setup tools is installed?  where's me pip gone off to mum?
Cat Herders of Linux

Re: bought a pair of new ps4 controllers that wont connect

Reply #2
So then if i skip that step and go to the aur and install ds4drv with yay i get output that says

Code: [Select]

You must run the following command to allow ds4drv access to uinput:
udevadm control --reload-rules; rmmod uinput; modprobe uinput
Also, on some systems it may be necessary for you to force the uinput module to load at boot, as follows:
echo "uinput" > /etc/modules-load.d/uinput.conf

running the command in terminal reports this

Code: [Select]

# udevadm control --reload-rules; rmmod uinput; modprobe uinput

rmmod: ERROR: Module uinput is in use
    


so that looks like it didnt work.  do i just need to reboot?


running
Code: [Select]
# echo "uinput" > /etc/modules-load.d/uinput.conf
  seemed tpo complete without error




Cat Herders of Linux

Re: bought a pair of new ps4 controllers that wont connect

Reply #3
and then the last step is to run ds4drv --hidraw in a terminal which gives the following result
Code: [Select]

ds4drv --hidraw
Traceback (most recent call last):
  File "/usr/bin/ds4drv", line 33, in <module>
    sys.exit(load_entry_point('ds4drv==0.5.1', 'console_scripts', 'ds4drv')())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/ds4drv", line 25, in importlib_load_entry_point
    return next(matches).load()
          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.12/site-packages/ds4drv/__main__.py", line 5, in <module>
    from .actions import ActionRegistry
  File "/usr/lib/python3.12/site-packages/ds4drv/actions/__init__.py", line 1, in <module>
    from ..action import ActionRegistry
  File "/usr/lib/python3.12/site-packages/ds4drv/action.py", line 1, in <module>
    from .config import add_controller_option
  File "/usr/lib/python3.12/site-packages/ds4drv/config.py", line 72, in <module>
    class Config(configparser.SafeConfigParser):
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?


of course it still never connected but giiven that error i don't think it matters much



after rebooting though
Code: [Select]
# udevadm control --reload-rules; rmmod uinput; modprobe uinput
gives no errors

Cat Herders of Linux

Re: bought a pair of new ps4 controllers that wont connect

Reply #4
might not be helpful but here it goes.

I have an old ps4 controller, for the first time connection I follow these steps.

1. enable DS4 bluetooth mode with holding share and ps4 button on controller.
2. connect, pair and trust the controller to pc bluetooth via bluez. here the controller light turns white. (for it to work it should turn blue)
3. turn off and on pc bluetooth or in some cases reboot pc.
4. press the ps4 button and the controller connects to pc automatically.

I use a script to interface with bluez.

DS4 controller is wonky in linux, sometimes it works perfectly and sometimes is just doesn't want to. the only problem is the initial setup.


Re: bought a pair of new ps4 controllers that wont connect

Reply #6
Well i have decided that this is too much effort for too little gain so i'm returning them to amazon for my 32$ refund since i cant get them to work.  Already gave them a 2 star review also.  i had bought others that worked without these problems though i must admit they are all a bit quirky, though none had ever just not worked b4 on linux.



in case you wish to avoid my hassles, dont buy these:

https://www.amazon.com/dp/B0CZLB3S83?psc=1&ref=ppx_yo2ov_dt_b_product_details
Cat Herders of Linux

 

Re: bought a pair of new ps4 controllers that wont connect

Reply #7
btw this is not dual shock 4. mb, I just assumed this is DS4
possibly the firmware or something is different.