mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 113 forks source link

Retropie installation set mode failure #749

Closed fede843 closed 1 year ago

fede843 commented 1 year ago

Hello, I am trying to get attract mode to work in a raspberry pi 4. It has:

   Linux raspberrypi 6.1.31-v8+ #1654 SMP PREEMPT Tue May 30 17:18:56 BST 2023 aarch64 GNU/Linux

and on top of that RetroPie script. I tried installing atract mode as an experimental package. All seems good from logs. Packages are in place, but when trying to run it I get:

pi@raspberrypi:~ $ attract
Attract-Mode v2.7.0 (Linux, SFML 2.5.1 +FontConfig +SWF +Curl)
avcodec 58.91.100 / avformat 58.45.100 / swscale 5.7.100 / avutil 56.51.100 / swresample 3.7.100

Config: /opt/retropie/configs/all/attractmode/attract.cfg

*** Initializing display: 'Multiple Arcade Machine Emulator'
 - Loaded master romlist 'Multiple Arcade Machine Emulator' in 33 ms (4705 entries kept, 0 discarded)
 - Constructed 1 filters in 0 ms (4705 comparisons)
Failed to set mode: Permission denied
/usr/bin/attract: línea 12: 80943 Abortado                LD_LIBRARY_PATH="/opt/retropie/supplementary/attractmode/sfml/lib" "/opt/retropie/supplementary/attractmode/bin/attract" "$@"

Not enterally sure if this is a problem related to the project here or the retropie installation. In any case I am posting it here to see if someone else had the same issue, or maybe some one can show me the way.

fede843 commented 1 year ago

https://retropie.org.uk/forum/topic/34344/attract-mode-set-mode-error

The reason is that I was trying to get it started from the Desktop Environment. Once I booted to the console, it worked just fine.