Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't open settings file? #35

Open
UnluckyForSome opened this issue Jun 30, 2022 · 4 comments
Open

Couldn't open settings file? #35

UnluckyForSome opened this issue Jun 30, 2022 · 4 comments

Comments

@UnluckyForSome
Copy link

UnluckyForSome commented Jun 30, 2022

Hi! I have a situation where it seems no config file ever gets created, and every time I load the app I have to re-register my console. When the console connects I get an AVERROR (EAGAIN) but i'm hoping that's because it's not loading anything out of the settings file.

I'm trying to do this on a Raspberry Pi Zero W (1st version), with chiaki rpi02 edition (I have raspbian bullseye installed)

Below is my output, note how it's trying to load a settings file which I don't think exists?

pi@chiaki:~/chiaki-rpi/build $ sudo rpi/chiaki-rpi
Linux base Path: /home/pi/chiaki-rpi/build/rpi/chiaki-rpi▒▒▒\▒▒▒
WARNING: h265 Decoder Not Detected
SDL version linked: 2.0.20
error: XDG_RUNTIME_DIR not set in the environment.
Disp Mode: 1920x1080 @ 60hz
SDL_VIDEO_DRIVER selected: KMSDRM
SDL_RENDER_DRIVER selected: opengles2
Running under X11: 0
INFO: Audio device 0: vc4-hdmi, MAI PCM i2s-hifi-0
Rpi IO created
END HostInit
Gamepads currently attached: 0
Check the gamepad is properly connected
Will try to read rpi settings file: /home/root/.config/Chiaki/Chiaki_rpi.conf
Couldn't open the settings file
Discovery Service started
GL_VERSION : OpenGL ES 2.0 Mesa 20.3.5
GL_RENDERER : VC4 V3D 2.1
Discovered Host State: ready
No Hosts found in file
Could not open directory: /home/root/.config/Chiaki
Gui init done

@Fredrum
Copy link
Owner

Fredrum commented Jul 3, 2022

Hmm ok are you running this as root?
How did you start/run Chiaki? EDIT: I see you start with 'sudo' could you please try without?

Do you have a folder like,
/home/root/.config/
?

If not how much of that path do you have?

@Fredrum
Copy link
Owner

Fredrum commented Jul 3, 2022

I also see that you're getting an error,
error: XDG_RUNTIME_DIR not set in the environment

I've never tried this with the older Pi Zero W so not sure if it has to do with that or just something else.
I haven't seen that error before.

@troed
Copy link

troed commented Jul 30, 2023

I might have a similar issue. I did create the .config/Chiaki folder manually after seeing the error, but there's still no settings file created whatever I do. All file/folder permissions are correct.

I do have both a PS4 Pro and PS5 on the network, if that's cause for concern. I'm unable to register any of them, it seems when I try to register the PS5 Chiaki tries using the PS4 method and vice versa ... but all that could be the results of the settings file I guess.

(I don't have the XDG_RUNTIME_DIR comment)

Linux base Path: /home/pi/chiaki-rpi/build/rpi/chiaki-rpi���pi��
h265 Hardware Decoder Detected
SDL version linked: 2.0.22
Running in Desktop mode: 0
Disp Mode: 1920x1080 @ 60hz
AUDIO DEVICE COUNT: 2
SDL_VIDEO_DRIVER selected: KMSDRM
SDL_RENDER_DRIVER selected: opengles2
Rpi IO created
END HostInit
Gamepads currently attached: 1
Controller is: 8BitDo SN30 Pro
Will try to read rpi settings file: /home/pi/.config/Chiaki/Chiaki_rpi.conf
Couldn't open the settings file
Discovery Service started
GL_VERSION : OpenGL ES 3.1 Mesa 19.3.2
GL_RENDERER : V3D 4.2
Gui init done
Gamepad added
Controller is: 8BitDo SN30 Pro
Discovered Host State: ready
Is PS5: 0
No Hosts found in file
Discovered Host State: ready
Is PS5: 0
No Hosts found in file

@Fredrum
Copy link
Owner

Fredrum commented Jul 30, 2023

Hi unfortunately I don't have the bandwidth to work on this project any more.
I'd reccommend trying disconnecting one of your PS's and then restarting Chiaki and see if that helps.

One can actually have two PS's set up by using the 'remote' functionality and pretending that the secondary PS is remote even though it isn't. That lets you have two sets of setting prefs.

But of course you still need to get the basics working first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants