[ RetroArch] [1.14.0 ] [ HDStation4 ] program with which you can play many emulators and games

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
skywalke7
Starting out
Posts: 26
Joined: Sat Jul 30, 2016 3:34 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by skywalke7 »

Brilliant!! I can test if you upload it or pm me.

Thanks for your help
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by QNAP_Stephane »

you have to wait for 1h30.. still in upload on my hosting and on qnapclub
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
skywalke7
Starting out
Posts: 26
Joined: Sat Jul 30, 2016 3:34 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by skywalke7 »

Ok thanks, please link when ready.
skywalke7
Starting out
Posts: 26
Joined: Sat Jul 30, 2016 3:34 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by skywalke7 »

Will there be an option to update the app on Qnap HDStation or will we need to remove and re-add the app?
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by QNAP_Stephane »

Not sure for the auto update from qnapclub repo.. the link is available for download
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
skywalke7
Starting out
Posts: 26
Joined: Sat Jul 30, 2016 3:34 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by skywalke7 »

It didn't show an update option so I removed and then downloaded and installed the latest one.

I'm not sure I saw that anything was different. The controller support still doesnt work but I believe that is HDStation no recognising it - As soon as I plug in the controller the center button flashes meaning it is not detected. The top left section of the centre light should stay lit up to indicate player 1 status.

I believe the fix for this is to install drivers/libraries within HD station so that the connected controller is recognised.

Would you be able to look into that?

Thanks,
skywalke7
Starting out
Posts: 26
Joined: Sat Jul 30, 2016 3:34 am

[ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by skywalke7 »

Any more news on this or has anyone else here tried it with any success?

This is so close to a complete project and a great selling point for the Qnap.
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by QNAP_Stephane »

Sorry not yet had time to investigate on how to add remote controler or joystick support to hd station ... but you can open ticket to add this as feature request... more there is ticket more it can make noise to PM ears
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by QNAP_Stephane »

got finally a PS3 remote..

i managed to install xbodrv 8.8

seems well seen

Code: Select all

[INFO]  CommandLineParser::read_buildin_config_file(): reading 'buildin://examples/mouse.xboxdrv'
xboxdrv 0.8.8 - http://pingus.seul.org/~grumbel/xboxdrv/
Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmail.com>
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details.

Controller:        PLAYSTATION(R)3 Controller
Vendor/Product:    054c:0268
USB Path:          001:008
Controller Type:   Playstation 3 USB
[DEBUG] XboxdrvMain::run(): creating UInput
[DEBUG] XboxdrvMain::run(): creating ControllerSlotConfig
[DEBUG] UInput::create_uinput_device(): create device: 65534
[DEBUG] LinuxUinput::LinuxUinput(): Microsoft X-Box 360 pad 1118:654
[DEBUG] UInput::create_uinput_device(): created uinput device: 65534 - 'Microsoft X-Box 360 pad'
[DEBUG] LinuxUinput::add_key(): add_key: KEY_FORWARD Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_ESC Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_BACK Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: BTN_LEFT Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: BTN_RIGHT Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: BTN_MIDDLE Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_ENTER Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_PAGEUP Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_PAGEDOWN Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_BACKSPACE Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_SPACE Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_UP Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_DOWN Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_LEFT Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_RIGHT Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_rel(): add_rel: REL_X Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_rel(): add_rel: REL_Y Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_rel(): add_rel: REL_HWHEEL Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_rel(): add_rel: REL_WHEEL Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_VOLUMEDOWN Microsoft X-Box 360 pad
[DEBUG] LinuxUinput::add_key(): add_key: KEY_VOLUMEUP Microsoft X-Box 360 pad
[DEBUG] XboxdrvMain::run(): finish UInput creation
[DEBUG] LinuxUinput::finish(): 'Microsoft X-Box 360 pad' 1118:654
[DEBUG] LinuxUinput::finish(): write return value: 1116
[DEBUG] LinuxUinput::finish(): finish

Your Xbox/Xbox360 controller should now be available as:
  /dev/input/js1
  /dev/input/event10

Press Ctrl-C to quit, use '--silent' to suppress the event output
[DEBUG] XboxdrvMain::run(): launching thread
[DEBUG] XboxdrvMain::run(): launching main loop
[DEBUG] USBController::on_control(): control transfer
also display in game menu (tested with SMC super mario chronicle) ... but nothin happen when i push button.. if someone has an idea ?

Code: Select all

root@NASE997BC:/share/Public/xboxdrv/bin# ./xboxdrv --help
Usage: ./xboxdrv [OPTION]...
Xbox360 USB Gamepad Userspace Driver

General Options:
  -h, --help                                        display this help and exit
  -V, --version                                     print the version number and exit
  -v, --verbose                                     print verbose messages
  --debug                                           be even more verbose then --verbose
  -s, --silent                                      do not display events on console
  --quiet                                           do not display startup text
  --usb-debug                                       enable log messages from libusb
  --priority PRI                                    increases process priority (default: normal)

List Options:
  --help-led                                        list possible values for the led
  --help-devices                                    list supported devices
  --help-abs                                        list all possible EV_ABS names
  --help-rel                                        list all possible EV_REL names
  --help-key                                        list all possible EV_KEY names
  --help-x11keysym                                  list all possible X11KeySym
  --help-axis                                       list all possible XboxAxis
  --help-button                                     list all possible XboxButton
  --help-all                                        list all symbols above

Config File Options:
  -c, --config FILE                                 read configuration from FILE
  --alt-config FILE                                 read alternative configuration from FILE
  -o, --option NAME=VALUE                           Set the given configuration option
  --write-config FILE                               write an example configuration to FILE

Daemon Options:
  -D, --daemon                                      Run as daemon
  --detach                                          Detach the daemon from the current shell
  --pid-file FILE                                   Write daemon pid to FILE
  --dbus MODE                                       Set D-Bus mode (auto, system, session, disabled)
  --on-connect FILE                                 Launch EXE when a new controller is connected
  --on-disconnect FILE                              Launch EXE when a controller is disconnected

Device Options:
  -L, --list-controller                             list available controllers
  -i, --id N                                        use controller with id N (default: 0)
  -w, --wid N                                       use wireless controller with wid N (default: 0)
  --device-by-path BUS:DEV                          Use device BUS:DEV, do not do any scanning
  --device-by-id VENDOR:PRODUCT                     Use device that matches VENDOR:PRODUCT (as returned by lsusb)
  --type TYPE                                       Ignore autodetection and enforce controller type (xbox, xbox-mat, xbox360, xbox360-wireless, xbox360-guitar)
  -d, --detach-kernel-driver                        Detaches the kernel driver currently associated with the device
  --generic-usb-spec SPEC                           Specification for generic USB device

Evdev Options:
  --evdev DEVICE                                    Read events from a evdev device, instead of USB
  --evdev-debug                                     Print out all events received from evdev
  --evdev-no-grab                                   Do not grab the event device, allow other apps to receive events
  --evdev-absmap MAP                                Map evdev key events to Xbox360 button events
  --evdev-keymap MAP                                Map evdev abs events to Xbox360 axis events

Status Options:
  -l, --led STATUS                                  set LED status, see --help-led for possible values
  -r, --rumble L,R                                  set the speed for both rumble motors [0-255] (default: 0,0)
  -q, --quit                                        only set led and rumble status then quit

Chatpad Options (experimental):
  --chatpad                                         Enable Chatpad support for Xbox360 USB controller
  --chatpad-no-init                                 To not send init code to the Chatpad
  --chatpad-debug                                   To not send init code to the Chatpad

Headset Options (experimental, Xbox360 USB only):
  --headset                                         Enable Headset support for Xbox360 USB controller (not working)
  --headset-dump FILE                               Dump headset data to FILE
  --headset-play FILE                               Play FILE on the headset

Force Feedback:
  --force-feedback                                  Enable force feedback support
  --rumble-gain NUM                                 Set relative rumble strength (default: 255)
  -R, --test-rumble                                 map rumbling to LT and RT (for testing only)
  --ff-device DEV                                   select to which evdev the force feedback should be connected (default: joystick)

Controller Slot Options:
  --controller-slot N                               Use controller slot N
  --next-controller                                 Create a new controller entry
  --match RULES                                     Only allow controllers that match any of RULES
  --match-group RULES                               Only allow controllers that match all of RULES

Config Slot Options:
  --config-slot N                                   Use configuration slot N
  --next-config                                     Create a new configuration entry
  --toggle BTN                                      Set button to use for toggling between configs

Configuration Options:
  -m, --modifier MOD=ARG:..                         Add a modifier to the modifier spec
  --timeout INT                                     Amount of time to wait fo a device event before processing autofire, etc. (default: 25)
  -b, --buttonmap MAP                               Remap the buttons as specified by MAP (example: B=A,X=A,Y=A)
  -a, --axismap MAP                                 Remap the axis as specified by MAP (example: -Y1=Y1,X1=X2)

Modifier Preset Options:
  --autofire MAP                                    Cause the given buttons to act as autofire (example: A=250)
  --axis-sensitivity MAP                            Adjust the axis sensitivity (example: X1=2.0,Y1=1.0)
  --calibration MAP                                 Changes the calibration for the given axis (example: X2=-32768:0:32767)
  --deadzone INT                                    Threshold under which axis events are ignored (default: 0)
  --deadzone-trigger INT                            Threshold under which trigger events are ignored (default: 0)
  --dpad-rotation DEGREE                            Rotate the dpad by the given DEGREE, must be a multiple of 45
  --four-way-restrictor                             Restrict axis movement to one axis at a time
  --relative-axis MAP                               Make an axis emulate a joystick throttle (example: y2=64000)
  --square-axis                                     Cause the diagonals to be reported as (1,1) instead of (0.7, 0.7)

Uinput Preset Configuration Options:
  --trigger-as-button                               LT and RT send button instead of axis events
  --trigger-as-zaxis                                Combine LT and RT to form a zaxis instead
  --dpad-as-button                                  DPad sends button instead of axis events
  --dpad-only                                       Both sticks are ignored, only DPad sends out axis events
  --guitar                                          Enables guitar button and axis mapping
  --mouse                                           Enable mouse emulation
  --mimic-xpad                                      Causes xboxdrv to use the same axis and button names as the xpad kernel driver for wired gamepads
  --mimic-xpad-wireless                             Causes xboxdrv to use the same axis and button names as the xpad kernel driver for wireless gamepads

Uinput Configuration Options:
  --no-uinput                                       do not try to start uinput event dispatching
  --no-extra-devices                                Do not create separate virtual keyboard and mouse devices, just use a single virtual device
  --no-extra-events                                 Do not create dummy events to facilitate device type detection
  --device-name NAME                                Changes the name prefix used for devices in the current slot
  --device-names DEVID=NAME,...                     Changes the descriptive name the given devices
  --device-usbid VENDOR:PRODUCT:VERSION             Changes the USB Id used for devices in the current slot
  --device-usbids DEVID=VENDOR:PRODUCT:VERSION,...  Changes the USB Id for the given devices
  --ui-clear                                        Removes all existing uinput bindings
  --ui-buttonmap MAP                                Changes the uinput events send when hitting a button (example: X=BTN_Y,A=KEY_A)
  --ui-axismap MAP                                  Changes the uinput events send when moving a axis (example: X1=ABS_X2)

Axis Filter:
  cal, calibration MIN:CENTER:MAX                   Set the calibration values for the axis
  sen, sensitivity:SENSITIVITY                      Set the axis sensitivity
  dead:VALUE, dead:MIN:CENTER:MAX                   Set the axis deadzone
  rel, relative:SPEED                               Turn axis into a relative-axis
  resp, response:VALUES:...                         Set values of the response curve
  log:STRING                                        Print axis value to stdout

Button Filter:
  tog, toggle                                       Turn button into a toggle button
  inv, invert                                       Invert the button value
  auto, autofire:RATE:DELAY                         Enable automatic button press repetition
  log:STRING                                        Print button value to stdout

Modifier:
  dpad-rotate=DEGREE                                Rotate the dpad by the given number of degree
  dpad-restrictor=RESTRICTION                       Restrict dpad movment to 'x-axis', 'y-axis' or 'four-way'
  4wayrest, four-way-restrictor=XAXIS:YAXIS         Restrict the given stick to four directions
  square, square-axis=XAXIS:YAXIS                   Convert the circular motion range of the given stick to a square one
  rotate=XAXIS:YAXIS:DEGREE[:MIRROR]                Rotate the given stick by DEGREE, optionally also mirror it

See README for more documentation and examples.
Report bugs to Ingo Ruhnke <grumbel@gmail.com>
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by QNAP_Stephane »

if someone want to test

http://www.qoolbox.fr/XBOXdrv_0.8.8_x86_64.qpkg.zip

log output are published in /share/Public

no need to click on HDSTation Icon, services are launched automatically
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
AlmightyDF
Starting out
Posts: 47
Joined: Wed Apr 27, 2016 4:58 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by AlmightyDF »

QNAP_Stephane wrote:Guess Linux Station instead of HDStation can be an option which should probably work
Honestly i rather set it all up using linux station, but my bluetooth dongle isn't working for me (asus bt400)... It shows up in linux station via "sudo lsusb | grep -i Bluetooth" however not controllable via linux station so I can't pair PS4 controller to it. Seems bluetooth kernal is lacking in Linux station. I could try doing all this with HD station, but joystick is crucial and your xbox driver doesn't seem to support bluetooth :(. I can't play these games without a joystick (especially if i wanna emulate dolphin, pcsx2, emulationstation, etc) and bluetooth is crucial. Also instead of the xbox driver (which lacks ds4 and xbox one support), do this one as well: https://github.com/chrippa/ds4drv

P.S Get someone to fix wireless/bluetooth controller support for linux station! :)
Aphion
New here
Posts: 5
Joined: Sat May 14, 2016 10:01 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by Aphion »

Just a thought about drivers for controllers - you could look into the drivers used on Retropie (common on Raspberry Pi) as it has bluetooth and controller (look on right side about 1/4 way down for list of controllers) support for a wide range of them through various drivers. There are a couple depending on what controller your trying to use including Xbox 360, X1, PS3 & PS4 and so on. Retropie is Raspbian\Debian Jessie at its core(built on), uses retroarch for most of its emulation and emulation station as a front end.

Also, you can install retroarch in Linux Station. Steam too. I have them both installed currently on Ubuntu 16.04 in Linux Station for no other reason really than like to fiddle and see what can do.

I do see your trying to use xboxdrv but if I remember right there is a 2nd one you can use for xbox controllers as well and a generic driver. Hope was able to help :)
errorerror
New here
Posts: 7
Joined: Sat Apr 15, 2017 12:50 pm

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by errorerror »

will this be updated to support the new x64 firmware?
Last edited by errorerror on Thu Apr 20, 2017 12:14 am, edited 1 time in total.
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by QNAP_Stephane »

it should already be supported
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
errorerror
New here
Posts: 7
Joined: Sat Apr 15, 2017 12:50 pm

Re: [ RetroArch] [ HDStation ] program with which you can play many emulators and games

Post by errorerror »

it won't launch for me post upgrade (ts-453a). I'll dig around tonight and see what i can find
Post Reply

Return to “Community Apps”