Posts: 1
Joined: Tue Feb 26, 2019 9:32 am

make keyboard accessible for client of remote server (Raspberry pi, php)

Tue Feb 26, 2019 9:39 am

HI everyone,

So here is what I wanted to do. I have an Apache2 server up and running on my raspberry pi 3, which is currently serving as a webradio using php commands and mpd/mpc. The raspberry is also connected via HDMI to a display.

I now like to have another page on the webserver which let's me start different roms in an emulator and display the output signal on the display connected to the remote server and and also lets me use a controller connected also to the remote server.

This is what I have done so far.
  • I have successfully installed Retroarch which is up and running.
  • I used

    Code: Select all

    sudo chmod 777 /dev/vchiq 
    to make the display accessible.
  • I used

    Code: Select all

    exec("export DISPLAY=:0.0; retroarch -c /home/pi/path/to/config -L /home/pi/path/to/libretro/core /home/pi/path/to/rom") 
    to start the emulator on the remote sever.
The problem is as follows. Even though I started the emulation successfully on the screen I cannot use the input devices connected to the remote server. How can I make the input devices of the server accessible with a php-command or something similar?Can somebody point me to a solution to achieve this? Also the exec-command does not seem to accept my arguments besides the config file argument. I guess it has to do with user rights. But I am really stuck at this point. :oops:

Thanks for any replies.

Disclaimer: This is my first post. So I am sorry for bad terminology.

Return to “Gaming”