• HomeBoards
  • RulesRules
  • HelpHelp
  • WikiWiki
  • Donate

Author Topic: Two questions related to GMenu2X  (Read 3741 times)

difuno (OP)

  • Posts: 104
Two questions related to GMenu2X
« on: February 23, 2011, 12:19:53 pm »
1. Is it possible to get TV-out run automatically at GMenu2X startup? Can someone help provide a script for this (maybe including the parameters for TV-OUT such as --speed xxx --ntsc?)

2. Is it possible to manually change/select the position the icons on GMenu2X? If this is possible, how?

Thanks! :)

abstauber

  • Guest
Re: Two questions related to GMenu2X
« Reply #1 on: March 09, 2011, 09:16:37 pm »
Here's my main script

Code: [Select]
#!/bin/ash
export SDL_NOMOUSE=1
export HOME=/usr/local/home

runonce=$(cat /boot/local/etc/runonce)

if [ $runonce -eq 0 ]
 then
   swapon /boot/.swap
   /usr/local/sbin/tvout --pal --speed 420
   sleep 2
   /usr/local/sbin/tvout --off
   /usr/local/sbin/tvout --pal --speed 420
   echo 1 > /boot/local/etc/runonce
fi

cd /usr/local/gmenu2x
./gmenu2x

For this to work you'll need an empty file called "runonce". Simply create an empty file in /usr/local/etc/

or if you can access your cab via telnet:
touch /usr/local/etc/runonce

As for the menu item order I'm clueless too.

difuno (OP)

  • Posts: 104
Re: Two questions related to GMenu2X
« Reply #2 on: March 10, 2011, 06:28:41 am »
Here's my main script

Code: [Select]
#!/bin/ash
export SDL_NOMOUSE=1
export HOME=/usr/local/home

runonce=$(cat /boot/local/etc/runonce)

if [ $runonce -eq 0 ]
 then
   swapon /boot/.swap
   /usr/local/sbin/tvout --pal --speed 420
   sleep 2
   /usr/local/sbin/tvout --off
   /usr/local/sbin/tvout --pal --speed 420
   echo 1 > /boot/local/etc/runonce
fi

cd /usr/local/gmenu2x
./gmenu2x

For this to work you'll need an empty file called "runonce". Simply create an empty file in /usr/local/etc/

or if you can access your cab via telnet:
touch /usr/local/etc/runonce

As for the menu item order I'm clueless too.


Thank you so much  :)

abstauber

  • Guest
Re: Two questions related to GMenu2X
« Reply #3 on: March 10, 2011, 06:07:51 pm »
I also forgot to tell you that you have to alter two more scripts *cought* :)

Edit these files too (make sure to have the echo command in)

/usr/local/gmenu2x/scripts/poweroff.dge
Code: [Select]
#!/bin/sh
echo 0 > /boot/local/etc/runonce
poweroff

/usr/local/gmenu2x/scripts/reboot.dge
Code: [Select]
#!/bin/sh
echo 0 > /boot/local/etc/runonce
reboot

Sorry if that caused you trouble.

difuno (OP)

  • Posts: 104
Re: Two questions related to GMenu2X
« Reply #4 on: March 11, 2011, 07:28:42 am »
I also forgot to tell you that you have to alter two more scripts *cought* :)

Edit these files too (make sure to have the echo command in)

/usr/local/gmenu2x/scripts/poweroff.dge
Code: [Select]
#!/bin/sh
echo 0 > /boot/local/etc/runonce
poweroff

/usr/local/gmenu2x/scripts/reboot.dge
Code: [Select]
#!/bin/sh
echo 0 > /boot/local/etc/runonce
reboot

Sorry if that caused you trouble.

Note at all friend :)

I arrived home late last night and I was planning to give this a try tonight :P

Thanks again for your help  :)

zear

  • * Moderator
  • Posts: 2381
Re: Two questions related to GMenu2X
« Reply #5 on: March 11, 2011, 06:13:32 pm »
Just a remainder: editing bash scripts requires an unix endline friendly editor (or in other words: doing that on windows will rape your scripts unless you use text editors like notepad++)

difuno (OP)

  • Posts: 104
Re: Two questions related to GMenu2X
« Reply #6 on: March 15, 2011, 02:01:43 am »
To abstauber: Thanks a million!!! Now I can boot both my A330 (connected to an LCD dislay) and my A320 aracde mod directly with TV-OUT on  ;D

To zear: Thanks a lot for your kind reminder! I use notepad++  :)

abstauber

  • Guest
Re: Two questions related to GMenu2X
« Reply #7 on: March 15, 2011, 10:48:40 am »
Glad to hear that it worked :)

Pingouin

  • Posts: 279
Re: Two questions related to GMenu2X
« Reply #8 on: April 12, 2012, 11:11:49 pm »
2. Is it possible to manually change/select the position the icons on GMenu2X? If this is possible, how?

For anyone still wondering, they are shown in alphabetical order, so just rename your shortcuts.
For instance, I called my power off script "1power" so it appears first, reboot is "2reboot" and so on.

For my emus, I just called the shortcuts after the systems, except the arcade emus I called "arcfba" and "arcmame" so they appear first.