Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-30-2009, 09:50 AM
|
#1
|
LQ Newbie
Registered: Oct 2009
Location: The Netherlands
Distribution: Windows SuSE Debian Ubuntu
Posts: 8
Rep:
|
Framebuffer selection menu
I am looking for a menu in vga=785 ( 640x480x256 ) what can display a specified background and 3 icons that can start applications. Anyone know where i could get it. or can place a small sample code where i can change a bit on it so i can get it working.
Thanks
|
|
|
10-31-2009, 09:47 AM
|
#2
|
Member
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 267
Rep:
|
What window manager are you using?
|
|
|
11-01-2009, 05:08 AM
|
#3
|
LQ Newbie
Registered: Oct 2009
Location: The Netherlands
Distribution: Windows SuSE Debian Ubuntu
Posts: 8
Original Poster
Rep:
|
No window manager.
it is in the text mode.. level 3 i think its called 
|
|
|
11-01-2009, 09:18 AM
|
#4
|
Member
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 267
Rep:
|
Correct me if I am missing something- it sounds(to me) like you are trying to use a framebuffer console as a window manager(menu, background image, icons...). It would be much easier to use X+a window manager/desktop. Is this a project you're working on? What distro are you using, btw?
|
|
|
11-01-2009, 10:19 AM
|
#5
|
LQ Newbie
Registered: Oct 2009
Location: The Netherlands
Distribution: Windows SuSE Debian Ubuntu
Posts: 8
Original Poster
Rep:
|
Its not like a windows manager. it should only have 3 icons to start 3 applications. distro will be Voyage linux. so its debian. The menu should not do more than this as it will be placed in situation where the other options are not desired.
|
|
|
11-01-2009, 10:49 AM
|
#6
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
If you want to have a menu in text mode that's OK but the terms "background image" and icons are being misunderstood. Can you explain what you mean by these terms.
For full screen text menus you might find ncurses useful. Google will find plenty on ncurses, including the Linux Documentation Project's HOWTO.
|
|
|
11-01-2009, 11:14 AM
|
#7
|
LQ Newbie
Registered: Oct 2009
Location: The Netherlands
Distribution: Windows SuSE Debian Ubuntu
Posts: 8
Original Poster
Rep:
|
Its not a text mode menu. I already delivered that. but they desire to have the background image with the company name in there. the 3 application should have 3 graphical icons with can be selected using a box around this icons and when the application is to be started this should go with enter. once the applications are started and ended it should go back into the same graphical menu.
|
|
|
11-01-2009, 11:57 AM
|
#8
|
Member
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825
Rep: 
|
Well, you can have a background without too much trouble using kernel patches available in gentoo, slackware and backtrack Linux source repository, but it will replace the VT background for the whole session, not only for the menu. Having icon can graphical layout on top of the frame buffer -is- possible, but nobody do it. Most people will use the X windows system at the very moment something graphical come into play. But you don't have to use Xorg. XfbDev is a X windows system running on top of the framebuffer, the whole binary and dependency tree is 1.1mb (3.* with xlib), start in less than 0.3 second and allow you to display graphical application. Any X applications will work (firefox, openoffice and so on), but they will run slower than normal. Qt applications run much faster because the only draw required pixel every time the windows is repainted, but it may not be the right toolkit for your application (too much dependencies). A pure xlib application would do. Then launch whatever you want.
Drawing directly on top of the frame buffer is not the fastest solution, it is a lot of work for nothing. If you find an easy solution, please share it, I would be interested in it too.
|
|
|
11-01-2009, 12:42 PM
|
#9
|
LQ Newbie
Registered: Oct 2009
Location: The Netherlands
Distribution: Windows SuSE Debian Ubuntu
Posts: 8
Original Poster
Rep:
|
Hi ELV13
What i havent shared is that there was a working menu. but this system seems to be locked. so i cant get the old menu to work. and i want to recreate something like it. If you can help me get the menu going, which is a binary with some linked modules. then you also get youreself a solution. but i stopped looking into the excisting binary as i spend so many time in it to get it working that its maybe a simpler solution to make an menu myself.or if there is an opensource menu. wich i really doubt currently  but time to build one with the right people.
Last edited by naveen76; 11-01-2009 at 12:44 PM.
|
|
|
11-01-2009, 03:05 PM
|
#10
|
Member
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825
Rep: 
|
What you can do if you really want to use framebuffer only solution is to take a look at usplash or splashy source code. They have everything to load an image (png) and you could just reload/redraw the whole thing when you grab an arrow keyboard even.
|
|
|
11-04-2009, 04:19 PM
|
#11
|
LQ Newbie
Registered: Oct 2009
Location: The Netherlands
Distribution: Windows SuSE Debian Ubuntu
Posts: 8
Original Poster
Rep:
|
i did it doing drawing with fbv, and a shell script that read out the arrow keys
its not very sleek. but it does the job. every new selection the menu got redrawed 
|
|
|
All times are GMT -5. The time now is 06:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|