thestr4ng3r / chiaki

Moved to https://git.sr.ht/~thestr4ng3r/chiaki - Free and Open Source PS4 Remote Play Client
https://git.sr.ht/~thestr4ng3r/chiaki
2.19k stars 370 forks source link

Controller is not being detected on Arch Linux #404

Open hilts-vaughan opened 3 years ago

hilts-vaughan commented 3 years ago

Environment

touma@setsuna:~ $ uname -a
Linux setsuna 5.9.14-arch1-1 #1 SMP PREEMPT Sat, 12 Dec 2020 14:37:12 +0000 x86_64 GNU/Linux
touma@setsuna:~ $ neofetch
                   -`                    touma@setsuna 
                  .o+`                   ------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Model: B450 AORUS PRO WIFI 
               `+oooooo:                 Kernel: 5.9.14-arch1-1 
               -+oooooo+:                Uptime: 23 hours, 22 mins 
             `/:-:++oooo+:               Packages: 1728 (pacman) 
            `/++++/+++++++:              Shell: zsh 5.8 
           `/++++++++++++++:             Resolution: 2560x1440 
          `/+++ooooooooooooo/`           DE: GNOME 3.38.2 
         ./ooosssso++osssssso+`          WM: Mutter 
        .oossssso-````/ossssss+`         WM Theme: EvoPop-Azure 
       -osssssso.      :ssssssso.        Theme: Materia-light-compact [GTK2/3] 
      :osssssss/        osssso+++.       Icons: Numix [GTK2/3] 
     /ossssssss/        +ssssooo/-       Terminal: gnome-terminal 
   `/ossssso+/:-        -:/+osssso+-     CPU: AMD Ryzen 7 3800X (16) @ 3.900GHz 
  `+sso+:-`                 `.-/+oso:    GPU: NVIDIA GeForce GTX 1080 
 `++:.                           `-/+/   Memory: 5895MiB / 32120MiB 

Describe the bug

image

No choice for controllers is given, when interacting with the stream window no inputs are reckgonized. The controller is wired and is working in other games such as FFXIV.

lsusb:

touma@setsuna:~ $ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 1b1c:1b13 Corsair Vengeance K70RGB keyboard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0aa7 Intel Corp. Wireless-AC 3168 Bluetooth
Bus 001 Device 003: ID 046d:c539 Logitech, Inc. USB Receiver
Bus 001 Device 002: ID 054c:05c4 Sony Corp. DualShock 4 [CUH-ZCT1x]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Log Files

touma@setsuna:~ $ cat /home/touma/.local/share/Chiaki/Chiaki/log/chiaki_session_2020-12-19_22-59-32-039039.log 
[2020-12-19 22:59:32:040040] [I] Logging to file /home/touma/.local/share/Chiaki/Chiaki/log/chiaki_session_2020-12-19_22-59-32-039039.log
[2020-12-19 22:59:32:040040] [I] Chiaki Version 1.3.0
[2020-12-19 22:59:32:246246] [I] Controller 0 opened: "PS4 Controller"
[2020-12-19 22:59:32:246246] [I] Starting session request
[2020-12-19 22:59:32:263263] [I] OpenGL initialized with version "3.2.0 NVIDIA 455.45.01"
[2020-12-19 22:59:32:293293] [I] Trying to request session from 192.168.1.8:9295
[2020-12-19 22:59:32:294294] [I] Connected to 192.168.1.8:9295
[2020-12-19 22:59:32:294294] [I] Sending session request
[2020-12-19 22:59:32:297297] [I] Session request successful
[2020-12-19 22:59:32:308308] [I] Starting ctrl
[2020-12-19 22:59:32:309309] [I] Ctrl connected to 192.168.1.8:9295
[2020-12-19 22:59:32:309309] [I] Sending ctrl request
[2020-12-19 22:59:32:313313] [I] Ctrl received http header as response
[2020-12-19 22:59:32:313313] [I] Ctrl received ctrl request http response
[2020-12-19 22:59:32:313313] [I] Ctrl connected
[2020-12-19 22:59:32:789789] [I] Ctrl received Login message: success
[2020-12-19 22:59:32:791791] [W] Received Ctrl Message with unknown type 0x6
[2020-12-19 22:59:32:791791] [W] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[2020-12-19 22:59:32:791791] [W]      0 00 01                                           ..              
[2020-12-19 22:59:33:367367] [I] Ctrl received valid Session Id: 1608436773PZ5RAOYYCJQCIBYA32Y6EAG35SNWCHMP3AFXMRMFWW2VVJE3XCSJT3SESG3P24E4
[2020-12-19 22:59:33:367367] [I] Starting Senkusha
[2020-12-19 22:59:33:367367] [I] Takion connecting (version 7)
[2020-12-19 22:59:33:367367] [I] Takion enabled Don't Fragment Bit
[2020-12-19 22:59:33:367367] [I] Takion sent init
[2020-12-19 22:59:33:369369] [I] Takion received init ack with remote tag 0xb18ccf, outbound streams: 0x64, inbound streams: 0x64
[2020-12-19 22:59:33:369369] [I] Takion sent cookie
[2020-12-19 22:59:33:371371] [I] Takion received cookie ack
[2020-12-19 22:59:33:371371] [I] Takion connected
[2020-12-19 22:59:33:371371] [I] Senkusha sending big
[2020-12-19 22:59:33:376376] [W] Received Ctrl Message with unknown type 0x16
[2020-12-19 22:59:33:376376] [W] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[2020-12-19 22:59:33:376376] [W]      0 01 ff                                           ..              
[2020-12-19 22:59:33:417417] [I] Senkusha successfully received bang
[2020-12-19 22:59:33:417417] [I] Senkusha Ping Test with count 10 starting
[2020-12-19 22:59:33:418418] [I] Senkusha enabled echo
[2020-12-19 22:59:33:418418] [I] Senkusha sending Ping 0 of test index 0
[2020-12-19 22:59:33:421421] [I] Senkusha received Pong, RTT = 2.631 ms
[2020-12-19 22:59:33:421421] [I] Senkusha sending Ping 1 of test index 0
[2020-12-19 22:59:33:424424] [I] Senkusha received Pong, RTT = 3.212 ms
[2020-12-19 22:59:33:424424] [I] Senkusha sending Ping 2 of test index 0
[2020-12-19 22:59:33:426426] [I] Senkusha received Pong, RTT = 1.403 ms
[2020-12-19 22:59:33:426426] [I] Senkusha sending Ping 3 of test index 0
[2020-12-19 22:59:33:428428] [I] Senkusha received Pong, RTT = 1.830 ms
[2020-12-19 22:59:33:428428] [I] Senkusha sending Ping 4 of test index 0
[2020-12-19 22:59:33:436436] [I] Senkusha received Pong, RTT = 7.653 ms
[2020-12-19 22:59:33:436436] [I] Senkusha sending Ping 5 of test index 0
[2020-12-19 22:59:33:437437] [I] Senkusha received Pong, RTT = 1.613 ms
[2020-12-19 22:59:33:437437] [I] Senkusha sending Ping 6 of test index 0
[2020-12-19 22:59:33:440440] [I] Senkusha received Pong, RTT = 2.738 ms
[2020-12-19 22:59:33:440440] [I] Senkusha sending Ping 7 of test index 0
[2020-12-19 22:59:33:445445] [I] Senkusha received Pong, RTT = 5.088 ms
[2020-12-19 22:59:33:445445] [I] Senkusha sending Ping 8 of test index 0
[2020-12-19 22:59:33:447447] [I] Senkusha received Pong, RTT = 1.442 ms
[2020-12-19 22:59:33:447447] [I] Senkusha sending Ping 9 of test index 0
[2020-12-19 22:59:33:449449] [I] Senkusha received Pong, RTT = 2.452 ms
[2020-12-19 22:59:33:451451] [I] Senkusha disabled echo
[2020-12-19 22:59:33:451451] [I] Senkusha determined average RTT = 3.006 ms
[2020-12-19 22:59:33:451451] [I] Senkusha starting MTU in test with min 576, max 1454, retries 3, timeout 15 ms
[2020-12-19 22:59:33:451451] [I] Senkusha MTU request 1454 (min 576, max 1454), id 1, attempt 0
[2020-12-19 22:59:33:454454] [I] Senkusha MTU 1454 success
[2020-12-19 22:59:33:454454] [I] Senkusha determined inbound MTU 1454
[2020-12-19 22:59:33:454454] [I] Senkusha starting MTU out test with min 576, max 1454, retries 3, timeout 15 ms
[2020-12-19 22:59:33:454454] [I] Senkusha sent initial client MTU command
[2020-12-19 22:59:33:456456] [I] Senkusha received expected Client MTU Command
[2020-12-19 22:59:33:456456] [I] Senkusha MTU 1454 out ping attempt 0
[2020-12-19 22:59:33:457457] [I] Senkusha MTU ping 1454 success
[2020-12-19 22:59:33:457457] [I] Senkusha determined outbound MTU 1454
[2020-12-19 22:59:33:457457] [I] Senkusha sending final Client MTU Command
[2020-12-19 22:59:33:458458] [I] Senkusha is disconnecting
[2020-12-19 22:59:33:458458] [I] Senkusha closed takion
[2020-12-19 22:59:33:458458] [I] Senkusha completed successfully
[2020-12-19 22:59:33:459459] [I] Takion connecting (version 9)
[2020-12-19 22:59:33:459459] [I] Takion sent init
[2020-12-19 22:59:33:461461] [I] Takion received init ack with remote tag 0x7033129, outbound streams: 0x64, inbound streams: 0x64
[2020-12-19 22:59:33:461461] [I] Takion sent cookie
[2020-12-19 22:59:33:463463] [I] Takion received cookie ack
[2020-12-19 22:59:33:463463] [I] Takion connected
[2020-12-19 22:59:33:463463] [I] StreamConnection sending big
[2020-12-19 22:59:33:479479] [I] BANG received
[2020-12-19 22:59:33:479479] [I] Crypt has become available. Re-checking MACs of 0 packets
[2020-12-19 22:59:33:479479] [I] StreamConnection successfully received bang
[2020-12-19 22:59:33:517517] [D] StreamConnection received audio header:
[2020-12-19 22:59:33:517517] [D] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[2020-12-19 22:59:33:517517] [D]      0 02 10 00 00 bb 80 00 00 01 e0 00 00 00 01       ..............  
[2020-12-19 22:59:33:517517] [I] Audio Header:
[2020-12-19 22:59:33:517517] [I]   channels = 2
[2020-12-19 22:59:33:517517] [I]   bits = 16
[2020-12-19 22:59:33:517517] [I]   rate = 48000
[2020-12-19 22:59:33:517517] [I]   frame size = 480
[2020-12-19 22:59:33:517517] [I]   unknown = 1
[2020-12-19 22:59:33:517517] [I] ChiakiOpusDecoder initialized
[2020-12-19 22:59:33:518518] [I] Audio Device alsa_output.pci-0000_09_00.4.analog-stereo opened with 2 channels @ 48000 Hz, buffer size 24028
[2020-12-19 22:59:33:518518] [I] Video Profiles:
[2020-12-19 22:59:33:518518] [I]   0: 1280x720
[2020-12-19 22:59:33:518518] [I] StreamConnection successfully received streaminfo
[2020-12-19 22:59:33:537537] [I] Switched to profile 0, resolution: 1280x720
[2020-12-19 22:59:33:537537] [E] Failed to push frame: Invalid data found when processing input
[2020-12-19 22:59:36:775775] [I] Frame Processor received 0+1 / 1+1 units, attempting FEC
[2020-12-19 22:59:36:776776] [I] FEC successful
[2020-12-19 22:59:37:318318] [I] Ctrl received Heartbeat, sending reply
[2020-12-19 22:59:37:780780] [W] Received Ctrl Message with unknown type 0x10
[2020-12-19 22:59:37:780780] [W] offset 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f  0123456789abcdef
[2020-12-19 22:59:37:780780] [W]      0 ff ff ff d9 00 00 00 64                         .......d        
[2020-12-19 22:59:42:313313] [I] Ctrl received Heartbeat, sending reply
[2020-12-19 22:59:43:779779] [I] Frame Processor received 6+1 / 7+1 units, attempting FEC
[2020-12-19 22:59:43:779779] [I] FEC successful
[2020-12-19 22:59:43:853853] [I] Frame Processor received 7+1 / 8+1 units, attempting FEC
[2020-12-19 22:59:43:853853] [I] FEC successful
[2020-12-19 22:59:46:619619] [I] StreamConnection is disconnecting
[2020-12-19 22:59:46:619619] [I] StreamConnection sending Disconnect
[2020-12-19 22:59:46:619619] [I] StreamConnection was requested to stop
[2020-12-19 22:59:46:620620] [I] StreamConnection closed takion
[2020-12-19 22:59:46:620620] [I] StreamConnection completed successfully
[2020-12-19 22:59:46:620620] [I] Ctrl requested to stop
[2020-12-19 22:59:46:620620] [I] Ctrl stopped
[2020-12-19 22:59:46:620620] [I] Session has quit

You can see that the controller is "opened" but no input works.

hilts-vaughan commented 3 years ago

I know this might not be a lot to go on so let me know if there is any other info I can give you that would help here.

thestr4ng3r commented 3 years ago

There have been a few recent changes about controllers on master. Was your AUR/git build done after dff98441323eccad435e1c68ed2a82d2a8f4e311?

hilts-vaughan commented 3 years ago
chiaki-git 1.3.0.r44.gdff9844-1

So yes, the latest.

hilts-vaughan commented 3 years ago

After plugging it out and in a few times, I can't reproduce anymore unfortunately. It's working. :/

lggregorio commented 3 years ago

I have the exactly same problem but on Ubuntu 20.04 using snap installation. The same happens on appimage as well. My ps4 controller works on other games and emulators but not on Chiaki, it can only read my keyboard inputs.

hilts-vaughan commented 3 years ago

Mine is being flakey. Same problem again yesterday, working in some games and then not working in Chiaki despite being detected and "opened" in logs. Works fine if I unplug and then replug.

Are you wired as well?

On Wed., Dec. 23, 2020, 3:57 p.m. lggregorio, notifications@github.com wrote:

I have exactly same problem but on Ubuntu 20.04 using snap installation. The same happens on appimage as well

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thestr4ng3r/chiaki/issues/404#issuecomment-750471228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIHPJ2J66JLCS46WGMXGLLSWJKSNANCNFSM4VCZKZGQ .

lggregorio commented 3 years ago

Mine is being flakey. Same problem again yesterday, working in some games and then not working in Chiaki despite being detected and "opened" in logs. Works fine if I unplug and then replug. Are you wired as well? On Wed., Dec. 23, 2020, 3:57 p.m. lggregorio, @.***> wrote: I have exactly same problem but on Ubuntu 20.04 using snap installation. The same happens on appimage as well — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#404 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIHPJ2J66JLCS46WGMXGLLSWJKSNANCNFSM4VCZKZGQ .

Yes, I am wired as well, I tried using bluetooth but no luck as well. Plug and unplug doesn't work for me unfortunately. The only workaround I found so far was to install windows on a virtualbox machine and then running oficial PS remote from there with the usb cable, but then it gets laggy because of the resources consumption on running 2 OSs