Author Topic: gmenu2x for dingux !  (Read 104265 times)

trilbymnokey

  • Guest
Re: gmenu2x for dingux !
« Reply #20 on: January 31, 2010, 05:49:54 pm »
Quote
You can just write a script shutdown.dge with the following lines:
Code:

#!/bin/sh
poweroff

And reboot.dge:
Code:

#!/bin/sh
reboot


..and add them to the gmenu.
Note that it won't work if you write them on Windows. They need to have the unix-compatible endline characters.

Bah, I only have Windows. I don't suppose one of you gents would be so kind as to create these files on Linux and upload 'em? Hate to be a bother, but this menu is sooo close to being perfect! I've had a lot of problems in the past with SD corruption, I'm fairly sure it was due to me resetting the dingoo (Coz of emu's freezing)

Still loving the menu Joyrider, how long did it take you? It looks very polished. :)

(BTW, thanks, your tip worked)
« Last Edit: January 31, 2010, 05:53:02 pm by trilbymonkey »

trilbymnokey

  • Guest
Re: gmenu2x for dingux !
« Reply #21 on: January 31, 2010, 05:51:13 pm »
Edit: meant to edit my last post, but hit 'Quote' and didn't notice. Sorry for double posting.
« Last Edit: January 31, 2010, 05:54:06 pm by trilbymonkey »

someuser

  • Guest
Re: gmenu2x for dingux !
« Reply #22 on: January 31, 2010, 05:54:18 pm »
anyone can make working shutdown.gde and put it here?

joyrider (OP)

  • *
  • Posts: 220
    • Willems Soft
Re: gmenu2x for dingux !
« Reply #23 on: January 31, 2010, 06:15:58 pm »
anyone can make working shutdown.gde and put it here?

http://users.telenet.be/IMS/dingoo/

and about the default overclocking speed setting to 400 is not needed, since
1) all links are created with the default clock speed (being 336)
2) you can set it in the gmenu2x config (the max overclocking)

also shutdown script only works if no usb cable is connected (since dingoo automaticly powers on if it is connected)

joyrider (OP)

  • *
  • Posts: 220
    • Willems Soft
Re: gmenu2x for dingux !
« Reply #24 on: January 31, 2010, 06:19:29 pm »
Still loving the menu Joyrider, how long did it take you? It looks very polished. :)

it's not my work, its the work of Massimiliano Torromeo (see http://gmenu2x.sourceforge.net/ ), i only ported it , it's the menu that was used a lot on the gp2x and is still being used on the wiz.
It took me about 2 days to get it where it is at now. Started friday night

the only things i did was :
1) make it compile and run
2) fixed 2 little bugs in original code (which made new links display wrong, like off the screen a little bit)
3) modified it so that volume settings work and battery icon works etc
4) added the LCD Backlight stuff
5) added the cpu scaling stuff based on the sources of the cpu program
6) modified all paths to reflect /boot/local
7) a few other things i have forgotten about.

« Last Edit: January 31, 2010, 06:26:16 pm by joyrider »

Alphos2000

  • *
  • Posts: 44
Re: gmenu2x for dingux !
« Reply #25 on: January 31, 2010, 06:25:21 pm »
I can't run it. I edited main file and it always stop when running dingux saying "Switching root". Do I have to edit main file in linux? I'm doing it on Windows, I don't have linux installed in my PC.

joyrider (OP)

  • *
  • Posts: 220
    • Willems Soft
Re: gmenu2x for dingux !
« Reply #26 on: January 31, 2010, 06:28:58 pm »
I can't run it. I edited main file and it always stop when running dingux saying "Switching root". Do I have to edit main file in linux? I'm doing it on Windows, I don't have linux installed in my PC.

check your filesystem for corruption, also use NOTEPAD 2 or NOTEPAD plus to edit the files on windows (not normal notepad)
since it can't handle linux line endings

and when editing / copying files etc ALWAYS use "safe removal" unless you wan't to possible cause even more corruptions ;)


trilbymnokey

  • Guest
Re: gmenu2x for dingux !
« Reply #27 on: January 31, 2010, 06:31:30 pm »
Still loving the menu Joyrider, how long did it take you? It looks very polished. :)

it's not my work, its the work of Massimiliano Torromeo (see http://gmenu2x.sourceforge.net/ ), i only ported it , it's the menu that was used a lot on the gp2x and is still being used on the wiz.
It took me about 2 days to get it where it is at now. Started friday night

the only things i did was :
1) make it compile and run
2) fixed 2 little bugs in original code (which made new links display wrong, like off the screen a little bit)
3) modified it so that volume settings work and battery icon works etc
4) added the LCD Backlight stuff
5) added the cpu scaling stuff based on the sources of the cpu program
6) modified all paths to reflect /boot/local
7) a few other things i have forgotten about.



lol, nice one anyway! :D

Alphos2000

  • *
  • Posts: 44
Re: gmenu2x for dingux !
« Reply #28 on: January 31, 2010, 06:33:33 pm »
I can't run it. I edited main file and it always stop when running dingux saying "Switching root". Do I have to edit main file in linux? I'm doing it on Windows, I don't have linux installed in my PC.

check your filesystem for corruption, also use NOTEPAD 2 or NOTEPAD plus to edit the files on windows (not normal notepad)
since it can't handle linux line endings

and when editing / copying files etc ALWAYS use "safe removal" unless you wan't to possible cause even more corruptions ;)



I edited again main file and dmenu runs fine. Are you sure it's a corruption problem?

joyrider (OP)

  • *
  • Posts: 220
    • Willems Soft
Re: gmenu2x for dingux !
« Reply #29 on: January 31, 2010, 06:40:51 pm »
I edited again main file and dmenu runs fine. Are you sure it's a corruption problem?

well i'm not sure since i'm not looking at it  and it's not my card / dingoo :) only way to be sure is to check it yourselve ;)
try it with notepad2 (that's what i use on windows).

if all things fail you could always format & reinstall then we are certainly sure it's not caused by corruption. But i would start by editing main using notepad 2

it should contain :
Code: [Select]
#!/bin/sh
cd /boot/local/gmenu2x
./gmenu2x

Alphos2000

  • *
  • Posts: 44
Re: gmenu2x for dingux !
« Reply #30 on: January 31, 2010, 07:03:05 pm »
I edited again main file and dmenu runs fine. Are you sure it's a corruption problem?

well i'm not sure since i'm not looking at it  and it's not my card / dingoo :) only way to be sure is to check it yourselve ;)
try it with notepad2 (that's what i use on windows).

if all things fail you could always format & reinstall then we are certainly sure it's not caused by corruption. But i would start by editing main using notepad 2

it should contain :
Code: [Select]
#!/bin/sh
cd /boot/local/gmenu2x
./gmenu2x

Nice, it's working now. Notepad 2 did it fine with your code ;) Thank you.

Long

  • Guest
Re: gmenu2x for dingux !
« Reply #31 on: January 31, 2010, 07:10:20 pm »
cannot run '/usr/local/sbin/main': No such file of directory

 :(

help please!
my folders:

SD+
     -boot
            |
             -local
                    |
                     -gmenu2x
     -local
            |
             -sbin
              main*
 zimage
 rootfs

main :

#!/bin/sh
cd /boot/local/gmenu2x
./gmenu2x

i'm use Notepad++ under win32

joyrider (OP)

  • *
  • Posts: 220
    • Willems Soft
Re: gmenu2x for dingux !
« Reply #32 on: January 31, 2010, 07:14:05 pm »
you didn't by any chance accidently made a .txt file ? it has to be main without extension so "main" and not "main.txt" (turn on file extensions in windows to see this).

also check that the main script is in the /boot/local/sbin/ dir so /boot/local/sbin/main

although i think you have the problem i described above.

Alphos2000

  • *
  • Posts: 44
Re: gmenu2x for dingux !
« Reply #33 on: January 31, 2010, 07:22:46 pm »
Ouch, now I have another problem. I ran a .dge file from File Explorer in gmenu2x. When I closed application and returned to gmenu2x, File explorer does not more appear.

Long

  • Guest
Re: gmenu2x for dingux !
« Reply #34 on: January 31, 2010, 07:32:03 pm »
you didn't by any chance accidently made a .txt file ? it has to be main without extension so "main" and not "main.txt" (turn on file extensions in windows to see this).

also check that the main script is in the /boot/local/sbin/ dir so /boot/local/sbin/main

although i think you have the problem i described above.

yes, NO extension - just main file in  /boot/local/sbin/

Alphos2000

  • *
  • Posts: 44
Re: gmenu2x for dingux !
« Reply #35 on: January 31, 2010, 07:38:18 pm »
Well, I found why File explorer dissapeared: I renamed the "applications" sections with "Aplicaciones" (Spanish). I renamed again, rebooted, and it shows again. Is it possible to make it appear if I rename this section?

joyrider (OP)

  • *
  • Posts: 220
    • Willems Soft
Re: gmenu2x for dingux !
« Reply #36 on: January 31, 2010, 07:42:26 pm »
hmm not sure if that's intended (the renaming of applications and explorer disappearing) i'll look into it, but could be it was in the orignal code like that.

trilbymnokey

  • Guest
Re: gmenu2x for dingux !
« Reply #37 on: January 31, 2010, 07:45:40 pm »
icons needs to be 32x32 png image and have the same name as the executable (with a png extension of course)

I've resized the DekUI theme icons to 32x32 format, I've tested em and they look great. Enjoy :)

http://www.mediafire.com/?jhym3jzmygw

joyrider (OP)

  • *
  • Posts: 220
    • Willems Soft
Re: gmenu2x for dingux !
« Reply #38 on: January 31, 2010, 07:48:54 pm »
yes, NO extension - just main file in  /boot/local/sbin/

just to be sure i uploaded the main file (i use) here as well http://users.telenet.be/IMS/dingoo/ try downloading it (right click save as) and placing it in /boot/local/sbin

your getting an error that dingux is not finding the main script  (so you either placed it wrong, or a wrong extension)

OH :
just noticed what you did wrong :
you don't have to create the boot directory on the sd (it is the way the dingoo see's it)
you have to place (extract) gmenu2x in "local\gmenu2x" So do not create the boot directory

and the main script is : "local\sbin\main"

i'll edit my main post as well ! sorry about that
« Last Edit: January 31, 2010, 08:00:17 pm by joyrider »

santino

  • Guest
Re: gmenu2x for dingux !
« Reply #39 on: January 31, 2010, 08:01:33 pm »
Nice one Joyrider! ;)

Very nice menu. I will include it to my local pack I think.