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

Offline joyrider

  • *
  • Posts: 220
    • Willems Soft
gmenu2x for dingux !
« on: January 31, 2010, 02:05:32 PM »
i ported gmenu2x to dingux, it has all the features of the original gp2x menu working and I fixed 2 small bugs in the original code (dealing with new links that didn't show correctly). I also added battery reading and a LCD Backlight setting, made the volume changing work and a few other things.

a few notes :

the menu needs to be placed in local\gmenu2x (on the sd card, and no other place, the zip already contains the gmenu2x folder so just extract to \local).

You'll also have to edit the /boot/local/sbin/main script if you want this to be your default menu ! (\loca\sbin\main if from the sd cards point of view)

the scanning feature looks for *.dge files, if you have games / applications with another extension you'll have to add it manually (in the menu itself, not through config files ;) )

download here :
http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,116,260

Sources here :
http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,46,261

documentation here:
http://gmenu2x.sourceforge.net/page/Documentation

enjoy :)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------
FAQ:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
How do i install it
  • first, Extract the gmenu2x.zip file to the "local" folder on your SD card, the dingoo sees this directory as /boot/local/gmenu2x , secondly get the main script (see further in this faq) and place it in "local\sbin" on your sd card, the dingoo sees this directory as /boot/local/sbin

Im generaly confused on getting all the links set up,Will I have to find icons for all the files or is there another way?
  • at first press select then choose the last option (the scanner thing), this will search your sd card starting from /boot/local (\local on the sd) for *.dge files and will automaticly add them in a temporary "found dge" folder afterwards edit the links in the found dge folder and move them to the sections you like (like emulators, games, etc).

when I do assign an icon I can only see a portion of it, is there a way to fix that?
  • Icons have to be a 32x32 png image with the same name as the executable, if they are larger than 32x32 you'll only see portion of it.

Where do i get the powerof, reboot and main scripts ?

Can i use both dmenu and gmenu2x (or another menu) at the same time ?
  • yes this is possible do it like this :
    1) make  2 main scripts in sbin named main.gmenu2x and main.dmenu (they both contain the code to start the menu as if it was a main script)
    2) make another 2 (dge) scripts one named gmenu2x.dge and one named dmenu.dge
    3) in the gmenu2x.dge do a "rm /boot/local/sbin/main" and a "cp /boot/local/sbin/main.gmenu2x /boot/local/sbin/main"
    4) in the dmenu2x.dge do a "rm /boot/local/sbin/main" and a "cp /boot/local/sbin/main.demnu /boot/local/sbin/main"
    5) make an icon dmenu that links to gmenu2x.dge
    6) make an icon in gmenu2x that links to dmenu.dge
    7) do not forget to choose one menu as the default one (by copying the main file )

Is it possible to add icons for a "new section" ? (sections = the icons on the top bar)
  • This is possible by adding the corresponding icon with the same name as the section's directory/name plus the '.png' extension in the local\gmenu2x\skins\<your current skin name>\sections directory.
    For example if you created the "misc" section and you are using the "Default" skin, you have to place/save the icon as local\gmenu2x\skins\Default\sections\misc.png.
    These icons are also 32x32 pixels in size


« Last Edit: February 01, 2010, 08:43:26 PM by joyrider »

Offline z_man3007

  • *
  • Posts: 66
Re: gmenu2x for dingux !
« Reply #1 on: January 31, 2010, 02:49:43 PM »
This is One of the Best Thing ever happened to the DINGUX system. It was my dream to have gmenu2x on DINGUX.  I don't have words to say thank you but I will say Thank you very very very very much JOYRIDER.  You are a Great man.  I also like to  share a screen shot from the new beautiful gmenu2x.  IT ROCKS ....HEHEHE

http://www.flickr.com/photos/43251148@N06/4318259770/


 ;D

Offline mrkingoo

  • *
  • Posts: 258
Re: gmenu2x for dingux !
« Reply #2 on: January 31, 2010, 03:02:42 PM »
Wow nice work. Thanks :)

Offline trilbymonkey

  • *
  • Posts: 83
    • Trilbymonkey Reviews
Re: gmenu2x for dingux !
« Reply #3 on: January 31, 2010, 04:01:04 PM »
Joyrider, you are the most awesome person ever. +karma!!!!!  ;D ;D ;D ;D

One thing though. how should i shutdown?
« Last Edit: January 31, 2010, 04:25:58 PM by trilbymonkey »
Check out my review of the Dingoo A320!          Follow me on Twitter

Feel free to add karma if I help! :D

Offline Shin-NiL

  • *
  • Posts: 325
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: gmenu2x for dingux !
« Reply #4 on: January 31, 2010, 04:32:56 PM »
Fantastic Joyrider!

I having only one problem: I can't run it as my default menu. I tried edit the main script as follows:

Code: [Select]
#!/bin/sh
export SDL_NOMOUSE=1
export HOME=/usr/local/home
cd /boot/local/gmenu2x
exec ./gmenu2x

and

Code: [Select]
#!/bin/sh
export SDL_NOMOUSE=1
export HOME=/usr/local/home
cd /usr/local/gmenu2x
exec ./gmenu2x

and got the same error from gmenu2x. I tried lauch from dmenu and runs fine!

Thank you!


Offline trilbymonkey

  • *
  • Posts: 83
    • Trilbymonkey Reviews
Re: gmenu2x for dingux !
« Reply #5 on: January 31, 2010, 04:35:36 PM »
This is my MAIN file, it's probably wrong somewhere but it works fine for me  ;D

#!/bin/sh
export SDL_NOMOUSE=1
export HOME=/usr/local/home
# cd /usr/local/dmenu/scripts/volset
# ./readvol
# /usr/local/sbin/brightness.set
cd /usr/local/gmenu2x
./gmenu2x
Check out my review of the Dingoo A320!          Follow me on Twitter

Feel free to add karma if I help! :D

Online zear

  • Moderator
  • *
  • Posts: 2001
Re: gmenu2x for dingux !
« Reply #6 on: January 31, 2010, 04:35:56 PM »
no need for "exec", just "./gmenu2x"

Offline Long

  • *
  • Posts: 56
    • ASTS - Doom][ ZDaemon team
Re: gmenu2x for dingux !
« Reply #7 on: January 31, 2010, 04:36:04 PM »
Thanks for app!
tell me please, i need a "rootfs" and "zlimage" in the root of memcard?
thanx
Doom & Doom][ fan

Online zear

  • Moderator
  • *
  • Posts: 2001
Re: gmenu2x for dingux !
« Reply #8 on: January 31, 2010, 04:36:46 PM »
Thanks for app!
tell me please, i need a "rootfs" and "zlimage" in the root of memcard?
thanx
Yes, it's just a menu, you still need kernel and rootfs for linux to run ;)

Offline trilbymonkey

  • *
  • Posts: 83
    • Trilbymonkey Reviews
Re: gmenu2x for dingux !
« Reply #9 on: January 31, 2010, 04:37:44 PM »
Does anyone know if it's safe to reset the dingoo while in this menu? (From SD corruption, etc...)
Check out my review of the Dingoo A320!          Follow me on Twitter

Feel free to add karma if I help! :D

Online zear

  • Moderator
  • *
  • Posts: 2001
Re: gmenu2x for dingux !
« Reply #10 on: January 31, 2010, 04:39:40 PM »
Does anyone know if it's safe to reset the dingoo while in this menu? (From corruption, etc...)
You can just write a script shutdown.dge with the following lines:
Code: [Select]
#!/bin/sh
poweroff
And reboot.dge:
Code: [Select]
#!/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.
« Last Edit: January 31, 2010, 04:41:51 PM by zear »

Offline Shin-NiL

  • *
  • Posts: 325
    • Shin-NiL's Personal Web Page (Brazilian Portuguese)
Re: gmenu2x for dingux !
« Reply #11 on: January 31, 2010, 04:40:29 PM »
Thanks trilbymonkey & zear, just worked now  :D

Offline someuser

  • *
  • Posts: 25
Re: gmenu2x for dingux !
« Reply #12 on: January 31, 2010, 04:47:32 PM »
Is it possible to change control buttons?

Offline trilbymonkey

  • *
  • Posts: 83
    • Trilbymonkey Reviews
Re: gmenu2x for dingux !
« Reply #13 on: January 31, 2010, 04:49:21 PM »
Having now played with this menu for a while now, I gotta say it's one of the best things to happen to the Dingoo in a long while.  ;D

It's so customisable, you can change pretty much anything without all the tedious editing config files, this is gonna make all other menus obsolete! omgomgomg I love it! Thank you again Joyrider!!!
Check out my review of the Dingoo A320!          Follow me on Twitter

Feel free to add karma if I help! :D

Online zear

  • Moderator
  • *
  • Posts: 2001
Re: gmenu2x for dingux !
« Reply #14 on: January 31, 2010, 04:50:31 PM »
Is it possible to change control buttons?
Yes, you can edit "input.conf" and change the key values for the buttons.
It won't change the "gmenu keys", just the buttons you have mapped to them.
So for example a "B" in gmenu will still be "B", just with dingoo's A button mapped to it.