-
Notifications
You must be signed in to change notification settings - Fork 12
Chiaki for the Raspberry Pi
This is a Fork for getting the excellent PS4 remote play program Chiaki to work on your Raspberry Pi 4. Iv'e been working and testing on Raspberry Pi4 with Raspbian Buster Desktop 32bit OS installed. It should work with some older RPi's too I believe.
these instructions are designed to work on a fresh Raspbian, but of course you don't need a fresh os card.
1. Update your System I really recommend using an Ethernet connection for this as there's going to be quite a bit of downloading if your OS install is fresh. It'll also be easier to verify that Chiaki is working ok if you're testing over Ethernet first.
sudo apt update
sudo apt upgrade
If you think it looks like it's stuck its probably just taking its time. You can start a new bash shell, run 'top' and look for an active 'dpkg' or 'dpkg-deb' process.
2. Install cmake (might be installed already with your system update, or it might fail then try rebooting)
sudo apt install cmake
3. install protobuf
sudo apt install python3-protobuf protobuf-compiler
4. install avcodec
sudo apt install libavcodec-dev
5. install opus
sudo apt install libopus-dev
6. install SDL2
sudo apt install libsdl2-dev
7. install OpenSSL
sudo apt install libssl-dev
8. install Qt5.12 - which is confirmed to work.
wget https://github.com/koendv/qt5-opengl-raspberrypi/releases/download/v5.12.5-1/qt5-opengl-dev_5.12.5_armhf.deb
sudo apt install ./qt5-opengl-dev_5.12.5_armhf.deb
The .deb file can be removed if you wish. Read more about this package here,
https://github.com/koendv/qt5-opengl-raspberrypi
you might want to 'cd' first to some folder where you keep software installs?
9. clone this fork - from the 'versioned' branch
git clone --single-branch --branch rpi01 https://github.com/Fredrum/chiaki.git chiaki
cd chiaki
git submodule update --init
(can be a bit slow)
10. Build!
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=/usr/lib/qt5.12 ..
make
Run the executable
gui/chiaki
Do the setup steps needed for the Raspberry to find and communicate with your PS4.
Phew, I think it should work now!?
F11 is for toggling fullscreen!
The windowing system is a bit glitchy atm. I'm hoping to improve that some time. If the PS4 screen is really off from the underlying window please check that you are not running with the black overscan border around your desktop/screen.
The game window will display black if its not active , or 'in focus'. This is due to me having trouble getting the layer ordering to work with the RPis hardware decode+display pipeline.
If you lose the executable it's found here: chiaki/build/gui/chiaki. Iv'e now tested this over WiFi too and it works really well. I have had reports of people saying that 1080p on PS4-Pro works fine too.
In the Audio device pulldown, "default" should equal Alsa. Try that first if you're not using PulseAudio or something else.
I'm playing with a xbox360 controller hooked up over USB but it should work with an PS4 controller just fine. Just make sure that you're not close enough to your PS4 console that your controller's bluetooth signals reaches it. As you'll then be sending the PS4 conflicting signals and you'll get some bad input behaviour.
See here for a bit more info on controllers!
If you're having problems and are sure that you have not missed any of the numerous steps, feel free to post in the 'issues' section. There should also be some links to some chat channels which might have more people that can help. Check out the main Git page and you should find those.
There's a config file with your ID and connection details (so don't share it with anyone) saved as ~/.config/Chiaki/Chiaki.conf. This file can be saved and just copied back to the same location to avoid having to re-do the ID setup.
Cheers!