Skip to contentSkip to conversation

gfxmenu available in experimental

DISCUSSION Vladimir 'φ-coder/phcoder' Serbinenko 4 participants 12 messages Nov 20, 2009 – Nov 27, 2009

lore
Share & tools
lore
#0 lore raw

Hello, all. After various delays with various cause I'm proud to announce the availability of Colin's gfxmenu into experimental branch of grub2.
Experimental branch is a bzr branch available at
http://bzr.savannah.gnu.org/r/grub/branches/experimental/ and of which I was appointed as developper in charge. It's use is to hold the code which needs testing or various fixes before being merged in mainstream but is generally good. Let's hope it will accelerate developpement avoid the code being put on hold too long and (together with bazaar) enhance collaboration.
gfxmenu is a project done by Colin D Bennett during Google Summer of Code 2008 edition for adding GUI menu support for GRUB2. More infos are available at http://grub.gibibit.com/
Google Summer of Code is an event sponsored and organised by Google with aim to promote Free Software developpement by paying students for implementing goals approved by various Free Software projects. Known issues with gfxmenu:
1) It's slow. At least in qemu. More things are repainted than really needed
2) Menus aren't multi-resolutin adapted. We probably need the ability to specify coordinates in percents of width/height rather than in pixels Example menu is available at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz . It's not yet decided whether central repository for themes will be created. GRUB developpers kindly request you to test experimental branch and report any bugs. Ideas and patches are of course welcome. But please retain from comments on what should be our priorities since developers spend their free time on what they feel is interesting/funny/useful. If you really want something to be done you have only 3 ways to do it:
1) Do it yourself. Patches are welcome.
2) Hire someone to do it. Many grub2 developpers including myself accept paid jobs in Free Software.
3) Forbid your kids to do it. New generation of Free Software devs is welcome

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#1 lore raw
Quoted 3 lines · On Fri, 20 Nov 2009 23:17:51 +0100 Vladimir 'φ-coder/phcoder' Serbinenko…

Hello, all. After various delays with various cause I'm proud to announce the availability of Colin's gfxmenu into experimental branch of grub2.

Thanks for keeping things moving forward even while I have not had time to do anything on gfxmenu for quite a while.

Quoted 3 lines

Known issues with gfxmenu:
1) It's slow. At least in qemu. More things are repainted than really needed

Yes, it is slow. Whether or not it was to best decision at the time, I decided during the Summer of Code that I would keep the painting logic simple as by always repainting the entire screen whenever anything changes. (I wanted to support fancy features like animated transitions, backgrounds, and widgets, and I knew that double-buffering would be necessary for this.)

It would perhaps be best to keep track of dirty regions and only repaint those parts -- however, this gets more complicated when page flipping is being used as a double-buffering method.

Quoted 3 lines

2) Menus aren't multi-resolutin adapted. We probably need the ability to specify coordinates in percents of width/height rather than in pixels

Yes, this has been on my to-do list for a while as well. Obviously there are a wide range of screen resolutions and aspect ratios out there that we should support well.

Quoted 6 lines

If you really want something to be done you have only 3 ways to do it:
1) Do it yourself. Patches are welcome.
2) Hire someone to do it. Many grub2 developpers including myself accept paid jobs in Free Software.
3) Forbid your kids to do it. New generation of Free Software devs is welcome

LOL @ #3!

Regards,
Colin

#2 lore raw
Quoted 25 lines · Colin D Bennett
Quoted 4 lines · On Fri, 20 Nov 2009 23:17:51 +0100 Vladimir 'φ-coder/phcoder' Serbinenko…

Hello, all. After various delays with various cause I'm proud to announce the availability of Colin's gfxmenu into experimental branch of grub2.

Thanks for keeping things moving forward even while I have not had time to do anything on gfxmenu for quite a while.

Quoted 4 lines

Known issues with gfxmenu:
1) It's slow. At least in qemu. More things are repainted than really needed

Yes, it is slow. Whether or not it was to best decision at the time, I decided during the Summer of Code that I would keep the painting logic simple as by always repainting the entire screen whenever anything changes. (I wanted to support fancy features like animated transitions, backgrounds, and widgets, and I knew that double-buffering would be necessary for this.)

Quoted 5 lines

It would perhaps be best to keep track of dirty regions and only repaint those parts -- however, this gets more complicated when page flipping is being used as a double-buffering method.

I optimised it (pushed to branches/gfxmenu and experimental) and now it runs pretty fast on qemu with 1024x768 resolution but this amount of optimisation is far from maximum.
Now the 2 main speed problems are initialising (takes few seconds) and scrolling in gfxterm (sluggish). Would you have an idea how to speed up those 2?

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#3 lore raw
In reply to Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 3 lines · Vladimir 'φ-coder/phcoder' Serbinenko

Hello, all. After various delays with various cause I'm proud to announce the availability of Colin's gfxmenu into experimental branch of grub2.

Very nice! Thanks Vladimir for reviewing this; and Colin, thank you very much for your contribution to GRUB.

Quoted 3 lines

Example menu is available at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz . It's not yet decided whether central repository for themes will be created.

There could be an official GRUB theme, which would go in our Bazaar repository, and maybe also a separate Debian theme (Felix and I need to discuss about what we like best). And I guess other distros will want to have their own branding.

Other than that, it'd be good to have some central facility that could be used by theme authors. I'm not sure what kind of resource would be good, but our Bazaar is NOT the right place.

Perhaps someone who's got more experience with artwork communities could provide some advice?

Then again, perhaps we don't have to drive this ourselves, and if we do nothing theme communities for GRUB will eventually take shape elsewhere.

Quoted 2 lines

3) Forbid your kids to do it. New generation of Free Software devs is welcome

Heh. I guess I need to write some first ;-)

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#4 lore raw
Quoted 11 lines · Robert Millan
Quoted 4 lines · Vladimir 'φ-coder/phcoder' Serbinenko

Hello, all. After various delays with various cause I'm proud to announce the availability of Colin's gfxmenu into experimental branch of grub2.

Very nice! Thanks Vladimir for reviewing this; and Colin, thank you very much for your contribution to GRUB.

Quoted 7 lines
Quoted 4 lines

Example menu is available at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz . It's not yet decided whether central repository for themes will be created.

There could be an official GRUB theme, which would go in our Bazaar repository,

I don't see any special need for this. Perhaps only to promote GRUB. I don't know if Bazaar is well suited for handling binary files though. And as a GNU project we would need to check licenses of pictures, logos, fonts and so on before we can include it. If such a check is a burden or the result isn't clear I prefer not to have any theme at all. Actually I prefer not to put any artwork in repository and if GNU is to distribute a theme at all perhaps it could be just a tarball download from alpha.gnu.org

Quoted 5 lines

and maybe also a separate Debian theme (Felix and I need to discuss about what we like best). And I guess other distros will want to have their own branding.

Distros are free to create their themes

Quoted 5 lines

Other than that, it'd be good to have some central facility that could be used by theme authors. I'm not sure what kind of resource would be good, but our Bazaar is NOT the right place.

Agreed. I thought about something like http://www.gnome-look.org/.
Perhaps they would even agree to host GRUB themes too. This way we offload the task but I don't know if GNU can recommend gnome-look.org.

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#5 lore raw
In reply to Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 2 lines · Vladimir 'φ-coder/phcoder' Serbinenko

Example menu is available at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz

Colin, we would need to know more details about the theme support files.

Are all the theme files in that tarball written by you? Which images did you make yourself? I'm specially interested in the terminal-box ones.

Also, of the files that you made yourself, I'm considering that we could use them in order to make a default GRUB theme. Were they intended to be merged in GRUB? (i.e. can we assume that they are covered under your contributor agreement?)

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#6 lore raw
Quoted 6 lines · Robert Millan
Quoted 2 lines · Vladimir 'φ-coder/phcoder' Serbinenko

Example menu is available at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz

Colin, we would need to know more details about the theme support files.

Quoted 7 lines

Are all the theme files in that tarball written by you? Which images did you make yourself? I'm specially interested in the terminal-box ones.

Also, of the files that you made yourself, I'm considering that we could use them in order to make a default GRUB theme. Were they intended to be merged in GRUB? (i.e. can we assume that they are covered under your contributor agreement?)

I'm thinking that it'd be best to let distributors handle this. If you can just grab the files (both theme files and images) in that tarball made by yourself and put them under an appropiate license (i.e. anything compatible with GPLv3), then we could just package them up and push them to Debian.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#7 lore raw
In reply to Robert Millan
Quoted 11 lines · On Sat, 21 Nov 2009 16:43:57 +0100 Robert Millan <[email protected]> wrote:
Quoted 2 lines · Vladimir 'φ-coder/phcoder' Serbinenko

Example menu is available at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz

Colin, we would need to know more details about the theme support files.

Are all the theme files in that tarball written by you? Which images did you make yourself? I'm specially interested in the terminal-box ones.

It would be easier perhaps if I list the elements that I did not create:

- The 'winter' background.
- The Ubuntu theme logo image/text.

Everything else I created using the GIMP and Inkscape, primarily. The terminal-box images for the 'winter' theme were created in Inkscape (I think the theme source tarball includes the SVG source file, which is exported to PNG files in slices by a shell script). In Inkscape I defined the slices so that the shell script can export them by name.

Quoted 4 lines

Also, of the files that you made yourself, I'm considering that we could use them in order to make a default GRUB theme. Were they intended to be merged in GRUB? (i.e. can we assume that they are covered under your contributor agreement?)

The themes are not polished, and were really intended to drive the back end of the menu system, for instance, to support circular progress bars so that the Ubuntu theme could be created.

I certainly intend them to be included under my contributor agreement, although obviously there are some elements such as the 'winter' background that I did not create so these would be excluded.

Perhaps we can create some new themes that adapt to various screen sizes, and if anyone wants to use elements of my theme work, they are free to do so.

Regards,
Colin

#8 lore raw

Am Samstag, den 21.11.2009, 10:17 -0800 schrieb Colin D Bennett:

Quoted 14 lines
Quoted 1 line · On Sat, 21 Nov 2009 16:43:57 +0100 Robert Millan <[email protected]> wrote:

On Fri, Nov 20, 2009 at 11:17:51PM +0100, Vladimir

'φ-coder/phcoder'

Quoted 8 lines
Quoted 2 lines · Serbinenko

Example menu is available at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz

Colin, we would need to know more details about the theme support files.

Are all the theme files in that tarball written by you? Which

images

Quoted 9 lines
Quoted 2 lines

did you make yourself? I'm specially interested in the terminal-box ones.

It would be easier perhaps if I list the elements that I did not create:

- The 'winter' background.
- The Ubuntu theme logo image/text.

What is with the fonts?
Helvetica is IIRC a font MacOS shipped with (or was it previous Windows versions? At least my local Vista doestn't seem to have it) And New Century Schoolbook seems to be a commercial font. But what about all the other fonts you use?
Like all the 4x6.pf2 etc. ones? or lime or kate?

Signature · 2 lines
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer
#9 lore raw
Quoted 25 lines · On Sat, 21 Nov 2009 19:24:53 +0100 Felix Zielcke <[email protected]> wrote:

Am Samstag, den 21.11.2009, 10:17 -0800 schrieb Colin D Bennett:

Quoted 14 lines
Quoted 1 line · On Sat, 21 Nov 2009 16:43:57 +0100 Robert Millan <[email protected]> wrote:

On Fri, Nov 20, 2009 at 11:17:51PM +0100, Vladimir

'φ-coder/phcoder'

Quoted 8 lines
Quoted 2 lines · Serbinenko

Example menu is available at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz

Colin, we would need to know more details about the theme support files.

Are all the theme files in that tarball written by you? Which

images

Quoted 9 lines
Quoted 2 lines

did you make yourself? I'm specially interested in the terminal-box ones.

It would be easier perhaps if I list the elements that I did not create:

- The 'winter' background.
- The Ubuntu theme logo image/text.

Quoted 6 lines

What is with the fonts?
Helvetica is IIRC a font MacOS shipped with (or was it previous Windows versions? At least my local Vista doestn't seem to have it) And New Century Schoolbook seems to be a commercial font. But what about all the other fonts you use?
Like all the 4x6.pf2 etc. ones? or lime or kate?

I don't know about my Helvetica font--it may just be a different sans-serif font. And New Century Schoolbook was somehow provided by a Gentoo package, apparently. If it's commerical I will make sure to take it down.

The lime & kate fonts are from the GPL2'ed Artwiz fonts:
<http://artwizaleczapka.sourceforge.net/>

The 4x6, etc. fonts are the X.org stock bitmap fonts exported using xmbfed.

Regards,
Colin

#10 lore raw
In reply to Colin D Bennett
Quoted 11 lines · Colin D Bennett
Quoted 8 lines · On Sat, 21 Nov 2009 16:43:57 +0100 Robert Millan <[email protected]> wrote:
Quoted 2 lines · Vladimir 'φ-coder/phcoder' Serbinenko

Example menu is available at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz

Colin, we would need to know more details about the theme support files.

Quoted 8 lines
Quoted 3 lines

Are all the theme files in that tarball written by you? Which images did you make yourself? I'm specially interested in the terminal-box ones.

It would be easier perhaps if I list the elements that I did not create:

- The 'winter' background.
- The Ubuntu theme logo image/text.

What about the icons? I assume you didn't create the MS Windows logo ;-)

Quoted 5 lines

Everything else I created using the GIMP and Inkscape, primarily. The terminal-box images for the 'winter' theme were created in Inkscape (I think the theme source tarball includes the SVG source file, which is exported to PNG files in slices by a shell script). In Inkscape I defined the slices so that the shell script can export them by name.

We would need this SVG source (it isn't in the tarball). Do you still have it?

Quoted 1 line

I certainly intend them to be included under my contributor agreement,

Great! I tried to adapt them to make something simpler that would be added to GRUB tree, but I'm totally incompetent to make beautiful artwork. Our current options are:

- Make a simple, unifont-based "GRUB theme" that could be added to our official tree and serve as reference for others. It should include the basic graphical elements like terminal-box and linear/circular counters.

- Have Debian include a package of themes for GRUB, based on your work. For that we would require that the parts you made are separated in a new tarball, and a suitable license be included.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
#11 lore raw
In reply to Vladimir 'φ-coder/phcoder' Serbinenko

Am Freitag, den 20.11.2009, 23:17 +0100 schrieb Vladimir 'φ-coder/phcoder' Serbinenko:

Quoted 4 lines

Hello, all. After various delays with various cause I'm proud to announce the availability of Colin's gfxmenu into experimental branch of
grub2.

I'm proud to announce it's finally avaible in Debian experimental (Thanks Robert) and in my Ubuntu ppa for the karmic users with all the Ubuntu changes merged in this time.

Colin, I suggest you make a little update to the journal on your site. I could imagine that some people only follow that and not grub-devel.

Signature · 2 lines
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer