Notice: Trying to access array offset on value of type bool in /srv/www/vhosts/openpandora.org/domains/bugs.openpandora.org/httpdocs/scripts/details.php on line 649 FS#37 : Game doesn't start in No-X mode (pnd_run.sh) (Permission issue of /dev/tty)

OpenPandora Main OS

  • Status Closed
  • Percent Complete
    100%
  • 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

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.
vimacs commented on 13.02.2010 12:31
hmm, strange one. pleas give me the contents of ~/Desktop/nohup.out / all the output of the script/game
vimacs commented on 13.02.2010 15:11
not a pnd_run bug, permission issue of /dev/tty
Admin
Michael Mrozek commented on 14.02.2010 18:02
Permission of /dev/tty0, as it seems. Weird thing: It does work as sudo, but it doesn't work as user, even if the permissions of /dev/tty* are set to 777

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing