- Status Closed
- Percent Complete
- Task Type Bug Report
- Category Core
- Operating System All
- Severity Very Low
- Reported Version SuperZaxxon Beta 4
Attached to Project: OpenPandora Main OS
Opened by Michael Mrozek - 13.02.2010
Last edited by Michael Mrozek - 22.05.2010
Opened by Michael Mrozek - 13.02.2010
Last edited by Michael Mrozek - 22.05.2010
FS#37 - Game doesn't start in No-X mode (pnd_run.sh) (Permission issue of /dev/tty)
EDIT:
Some more information from notaz:
it's failing because it can't find controlling tty (/dev/tty is a "virtual" gateway device, so setting permissions gave no effect)
do "ps ax" on your desktop and it has the tty column
so SDL fbdev driver wants to get a real tty fo be able to read keys
So we need to somehow give it a real tty?
yeah, but I don't know why as pnd start from X and that gives virtual tty
*don't know how*
maybe something can be done using openvt, chvt and similar tools
------
What happens if you run a script in no-X mode:
1. It stops slim
2. It mounts all the directories as needed (works fine).
3. It DOES NOT start the app
4. It unmounts all the directories
5. It restarts slim (and therefore X)
I can confirm the path is correctly and the filesystem is mounted there (did an ls -l).
I can also confirm the game is working fine, as the same PND does work within X if I run it from the terminal using pnd_run supertux_noX.pnd
So it looks like the line that actually executes the game does work when run in X, but not when run outside of X.
Maybe it tries to execute the game on the screen where the script is actually started (X) and therefore can't run it as X is not running anymore?
The line working in X-mode but not working in non-X-Mode:
LD_LIBRARY_PATH=/mnt/utmp/$BASENAME ./$EXENAME $ARGUMENTS
The game I tried was SuperTux (SDL-Game) with a no-X=1 parameter in the PXML.
Closed by Michael Mrozek
22.05.2010 17:44
Reason for closing: Won't fix
Additional comments about closing: No need anymore, games work perfectly under X.
22.05.2010 17:44
Reason for closing: Won't fix
Additional comments about closing: No need anymore, games work perfectly under X.