* Rotated menu on EFI? @ 2009-07-24 19:33 Michal Suchanek 2009-07-25 16:42 ` Robert Millan 0 siblings, 1 reply; 10+ messages in thread From: Michal Suchanek @ 2009-07-24 19:33 UTC (permalink / raw) To: The development of GRUB 2 Hello Is there some chance that the grub menu could be drawn rotated on graphical devices like the efi graphics interface? Thanks Michal ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Rotated menu on EFI? 2009-07-24 19:33 Rotated menu on EFI? Michal Suchanek @ 2009-07-25 16:42 ` Robert Millan 2009-07-25 20:03 ` Michal Suchanek 0 siblings, 1 reply; 10+ messages in thread From: Robert Millan @ 2009-07-25 16:42 UTC (permalink / raw) To: The development of GRUB 2 On Fri, Jul 24, 2009 at 09:33:45PM +0200, Michal Suchanek wrote: > Hello > > Is there some chance that the grub menu could be drawn rotated on > graphical devices like the efi graphics interface? I'm not sure what you mean by rotation. You mean that arrow keys navigate back to the top when pressing "down" in the bottom? -- 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." ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Rotated menu on EFI? 2009-07-25 16:42 ` Robert Millan @ 2009-07-25 20:03 ` Michal Suchanek 2009-07-25 20:14 ` Vladimir 'phcoder' Serbinenko 2009-07-28 17:57 ` Robert Millan 0 siblings, 2 replies; 10+ messages in thread From: Michal Suchanek @ 2009-07-25 20:03 UTC (permalink / raw) To: The development of GRUB 2 2009/7/25 Robert Millan <rmh@aybabtu.com>: > On Fri, Jul 24, 2009 at 09:33:45PM +0200, Michal Suchanek wrote: >> Hello >> >> Is there some chance that the grub menu could be drawn rotated on >> graphical devices like the efi graphics interface? > > I'm not sure what you mean by rotation. You mean that arrow keys > navigate back to the top when pressing "down" in the bottom? > No, I mean that the arrow keys work normally but the menu is drawn rotated to match the screen orientation. Thanks Michal ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Rotated menu on EFI? 2009-07-25 20:03 ` Michal Suchanek @ 2009-07-25 20:14 ` Vladimir 'phcoder' Serbinenko 2009-07-25 23:34 ` Michal Suchanek 2009-07-28 17:57 ` Robert Millan 1 sibling, 1 reply; 10+ messages in thread From: Vladimir 'phcoder' Serbinenko @ 2009-07-25 20:14 UTC (permalink / raw) To: The development of GRUB 2 > > > No, I mean that the arrow keys work normally but the menu is drawn > rotated to match the screen orientation. This would require (a) video support for EFI. This is simple to implement once framebuffer split is in (b) rotation support in gfxterm. Patches are welcome > > Thanks > > Michal > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Rotated menu on EFI? 2009-07-25 20:14 ` Vladimir 'phcoder' Serbinenko @ 2009-07-25 23:34 ` Michal Suchanek 0 siblings, 0 replies; 10+ messages in thread From: Michal Suchanek @ 2009-07-25 23:34 UTC (permalink / raw) To: The development of GRUB 2 2009/7/25 Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>: >> >> >> No, I mean that the arrow keys work normally but the menu is drawn >> rotated to match the screen orientation. > This would require > (a) video support for EFI. This is simple to implement once > framebuffer split is in > (b) rotation support in gfxterm. Patches are welcome I was able to run gfxterm in qemu. Looking at the VideoSubsystem I wonder at what level the rotation should be implemented. It could probably be done in gfxterm and blit_glyph only which would be quite simple. True video rotation would be somewhat harder but transparent to other users of the video subsystem. Most functions could just go through a simple remapping of coordinates except for the bitmap storing and blitting functions. Rotated blitting is obviously somewhat harder and slower (unless done by real video hardware) and rotating the stored bitmaps is not very nice either. I found two problems while trying to get gfxterm running. The first one is with grub_mkrescue: it seems to ignore --modules= option. I specified --modules=gfxterm but gfxterm still has to be loaded in the grub.cfg. Another problem with this option is that the format is unspecified. Are the modules separated by commas, spaces, or other separators? The other problem is graphics initialization. Unless I run "vbetest" before "terminal_output gfxterm" gfxterm says "no suitable videomode found". Thanks Michal ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Rotated menu on EFI? 2009-07-25 20:03 ` Michal Suchanek 2009-07-25 20:14 ` Vladimir 'phcoder' Serbinenko @ 2009-07-28 17:57 ` Robert Millan 2009-07-28 21:16 ` Vladimir 'phcoder' Serbinenko 2009-07-28 21:29 ` Michal Suchanek 1 sibling, 2 replies; 10+ messages in thread From: Robert Millan @ 2009-07-28 17:57 UTC (permalink / raw) To: The development of GRUB 2 On Sat, Jul 25, 2009 at 10:03:50PM +0200, Michal Suchanek wrote: > 2009/7/25 Robert Millan <rmh@aybabtu.com>: > > On Fri, Jul 24, 2009 at 09:33:45PM +0200, Michal Suchanek wrote: > >> Hello > >> > >> Is there some chance that the grub menu could be drawn rotated on > >> graphical devices like the efi graphics interface? > > > > I'm not sure what you mean by rotation. You mean that arrow keys > > navigate back to the top when pressing "down" in the bottom? > > > > > No, I mean that the arrow keys work normally but the menu is drawn > rotated to match the screen orientation. As Vladimir points out, this can eventually work on EFI too, but EFI is lagging behind when it comes to graphical support. In any case, if we really want to support rotation it should be generic. Btw, were you thinking about rotation in multiples of PI/2, or arbitrary floats? The former is not too hard, but the latter can be a PITA, I don't think it's worth it. -- 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." ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Rotated menu on EFI? 2009-07-28 17:57 ` Robert Millan @ 2009-07-28 21:16 ` Vladimir 'phcoder' Serbinenko 2009-07-29 23:54 ` Michal Suchanek 2009-07-28 21:29 ` Michal Suchanek 1 sibling, 1 reply; 10+ messages in thread From: Vladimir 'phcoder' Serbinenko @ 2009-07-28 21:16 UTC (permalink / raw) To: The development of GRUB 2 On Tue, Jul 28, 2009 at 7:57 PM, Robert Millan<rmh@aybabtu.com> wrote: > On Sat, Jul 25, 2009 at 10:03:50PM +0200, Michal Suchanek wrote: >> 2009/7/25 Robert Millan <rmh@aybabtu.com>: >> > On Fri, Jul 24, 2009 at 09:33:45PM +0200, Michal Suchanek wrote: >> >> Hello >> >> >> >> Is there some chance that the grub menu could be drawn rotated on >> >> graphical devices like the efi graphics interface? >> > >> > I'm not sure what you mean by rotation. You mean that arrow keys >> > navigate back to the top when pressing "down" in the bottom? >> > >> >> >> No, I mean that the arrow keys work normally but the menu is drawn >> rotated to match the screen orientation. > > As Vladimir points out, this can eventually work on EFI too, but EFI is > lagging behind when it comes to graphical support. In any case, if we > really want to support rotation it should be generic. > Yes. As about where to put it I would say to driver so it can be accelerated if it's possible. For non-accelerated targets rotation function will be in video_fb.mod > Btw, were you thinking about rotation in multiples of PI/2, or arbitrary > floats? The former is not too hard, but the latter can be a PITA, I don't > think it's worth it. > > -- > 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." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Rotated menu on EFI? 2009-07-28 21:16 ` Vladimir 'phcoder' Serbinenko @ 2009-07-29 23:54 ` Michal Suchanek 0 siblings, 0 replies; 10+ messages in thread From: Michal Suchanek @ 2009-07-29 23:54 UTC (permalink / raw) To: The development of GRUB 2 2009/7/28 Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>: > On Tue, Jul 28, 2009 at 7:57 PM, Robert Millan<rmh@aybabtu.com> wrote: >> On Sat, Jul 25, 2009 at 10:03:50PM +0200, Michal Suchanek wrote: >>> 2009/7/25 Robert Millan <rmh@aybabtu.com>: >>> > On Fri, Jul 24, 2009 at 09:33:45PM +0200, Michal Suchanek wrote: >>> >> Hello >>> >> >>> >> Is there some chance that the grub menu could be drawn rotated on >>> >> graphical devices like the efi graphics interface? >>> > >>> > I'm not sure what you mean by rotation. You mean that arrow keys >>> > navigate back to the top when pressing "down" in the bottom? >>> > >>> >>> >>> No, I mean that the arrow keys work normally but the menu is drawn >>> rotated to match the screen orientation. >> >> As Vladimir points out, this can eventually work on EFI too, but EFI is >> lagging behind when it comes to graphical support. In any case, if we >> really want to support rotation it should be generic. >> > Yes. As about where to put it I would say to driver so it can be > accelerated if it's possible. For non-accelerated targets rotation > function will be in video_fb.mod Unfortunately, with the code I have there is no place to put the rotation other than the driver. This would mean that every unaccelerated framebuffer driver would have to duplicate it. I will have a look at your driver split patch to see if it improves the situation. Thanks Michal ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Rotated menu on EFI? 2009-07-28 17:57 ` Robert Millan 2009-07-28 21:16 ` Vladimir 'phcoder' Serbinenko @ 2009-07-28 21:29 ` Michal Suchanek 2009-07-28 21:35 ` Vladimir 'phcoder' Serbinenko 1 sibling, 1 reply; 10+ messages in thread From: Michal Suchanek @ 2009-07-28 21:29 UTC (permalink / raw) To: The development of GRUB 2 2009/7/28 Robert Millan <rmh@aybabtu.com>: > On Sat, Jul 25, 2009 at 10:03:50PM +0200, Michal Suchanek wrote: >> 2009/7/25 Robert Millan <rmh@aybabtu.com>: >> > On Fri, Jul 24, 2009 at 09:33:45PM +0200, Michal Suchanek wrote: >> >> Hello >> >> >> >> Is there some chance that the grub menu could be drawn rotated on >> >> graphical devices like the efi graphics interface? >> > >> > I'm not sure what you mean by rotation. You mean that arrow keys >> > navigate back to the top when pressing "down" in the bottom? >> > >> >> >> No, I mean that the arrow keys work normally but the menu is drawn >> rotated to match the screen orientation. > > As Vladimir points out, this can eventually work on EFI too, but EFI is > lagging behind when it comes to graphical support. In any case, if we > really want to support rotation it should be generic. > > Btw, were you thinking about rotation in multiples of PI/2, or arbitrary > floats? The former is not too hard, but the latter can be a PITA, I don't > think it's worth it. I am thinking about the rotation which is required to turn a landscape monitor into a portrait one which is commonly used. It is technically possible to arbitrarily rotate the picture but then you would need support for arbitrary screen shapes (shapes other than rectangles parallel with the axis) which is quite pointless for grub. On second thought adding general rotation would be probably simpler than changing gfxterm to do the rotation by itself. It gives much better code separation and manageability. The only problem is that there is a possibility to upload bitmaps into the video subsystem and rotating these would need additional memory because I know no way of rotating a non-square bitmap in place. Even if the bitmaps were rotated only when they are actually used it still requires additional memory. Thanks Michal ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Rotated menu on EFI? 2009-07-28 21:29 ` Michal Suchanek @ 2009-07-28 21:35 ` Vladimir 'phcoder' Serbinenko 0 siblings, 0 replies; 10+ messages in thread From: Vladimir 'phcoder' Serbinenko @ 2009-07-28 21:35 UTC (permalink / raw) To: The development of GRUB 2 > > I am thinking about the rotation which is required to turn a landscape > monitor into a portrait one which is commonly used. > > It is technically possible to arbitrarily rotate the picture but then > you would need support for arbitrary screen shapes (shapes other than > rectangles parallel with the axis) which is quite pointless for grub. > > On second thought adding general rotation would be probably simpler > than changing gfxterm to do the rotation by itself. It gives much > better code separation and manageability. > Adding rotation to arbitrary angle would require implementing of sines and cosines. And this risks to be terribly slow. Additionally few gfx drivers support such rotation. I really see no reason for such headache for us either. To make long story short rotation to arbitrary angle is a NO WAY as far as I'm concerned > > Thanks > > Michal > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-07-29 23:54 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-07-24 19:33 Rotated menu on EFI? Michal Suchanek 2009-07-25 16:42 ` Robert Millan 2009-07-25 20:03 ` Michal Suchanek 2009-07-25 20:14 ` Vladimir 'phcoder' Serbinenko 2009-07-25 23:34 ` Michal Suchanek 2009-07-28 17:57 ` Robert Millan 2009-07-28 21:16 ` Vladimir 'phcoder' Serbinenko 2009-07-29 23:54 ` Michal Suchanek 2009-07-28 21:29 ` Michal Suchanek 2009-07-28 21:35 ` Vladimir 'phcoder' Serbinenko
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.