Dingux (Dingoo Linux) > Help
Two questions related to GMenu2X
difuno:
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:
Here's my main script
--- Code: ---#!/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
--- End code ---
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:
--- Quote from: abstauber on March 09, 2011, 09:16:37 PM ---Here's my main script
--- Code: ---#!/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
--- End code ---
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.
--- End quote ---
Thank you so much :)
abstauber:
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: ---#!/bin/sh
echo 0 > /boot/local/etc/runonce
poweroff
--- End code ---
/usr/local/gmenu2x/scripts/reboot.dge
--- Code: ---#!/bin/sh
echo 0 > /boot/local/etc/runonce
reboot
--- End code ---
Sorry if that caused you trouble.
difuno:
--- Quote from: abstauber 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: ---#!/bin/sh
echo 0 > /boot/local/etc/runonce
poweroff
--- End code ---
/usr/local/gmenu2x/scripts/reboot.dge
--- Code: ---#!/bin/sh
echo 0 > /boot/local/etc/runonce
reboot
--- End code ---
Sorry if that caused you trouble.
--- End quote ---
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 :)
Navigation
[0] Message Index
[#] Next page
Go to full version