Google Chrome over Linux FrameBuffer
Asked Answered
U

7

29

I am working on a project where I need to run Google chromium over Linux FrameBuffer, I need to run it without any windowing system dependency ( It should draw on the buffer we provide it to draw, this will make its porting to any embedded system very easy) , I do not need its multi-tab GUI, I just need its renderer window in the buffer, has any body ever tried this? Any help on what approach should I use for this?

Ugly answered 23/6, 2011 at 7:48 Comment(5)
I think you might be better off looking at WebKit, rather than the complete Chromium browser.Scaly
@Andrew Aylett, Well, I am looking for chromium browser, because chrome port is the only stable, active port, I tried latest Gtk and Qt port It does not render many websites correctly.Ugly
Not embedded programming related stackoverflow.com/tags/embedded/info, retagged.Nonchalant
You may want to have a look at NetSurf... it is near complete HTML4 support... (please notify @ me I don't look for answers manually)Waybill
Great idea, this would be really useful in an embedded environment - having the power of webkit rendering makes making UIs really easy.Pozzuoli
H
18

If you need to have some direct control of the window functions, or want to poke around in the DOM data, then the right way to solve this problem is to probably look at embedding webkit directly. This will be much faster and cleaner than what I am about to suggest.

Now, let's suppose you don't need all that fancy control and that you are really lazy. An ancient, low tech solution to your problem could be to create a virtual frame buffer and then read its contents directly. To do this, you can set up xvfb on your server:

http://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml

xvfb is an old unix tool that lets you create a virtual x-server with whatever type of configuration you want. More importantly, it can be configured to write the contents of its X server's screen directly to a memory mapped file! You can also set it up to use shared memory, which is a bit faster though also more complicated.

Halfcaste answered 27/6, 2011 at 20:58 Comment(2)
Well, I am planning to start a fork of google chrome and make it independent of Gtk dependency, I know that this is a huge work involved in this, but In embedded industry this can do wonders.Ugly
I will update my google code 's repository location over here.Ugly
S
5

I guess you will have better luck with uzbl and GTK/DirectFB. Same engine, and works with javascripts. For the facebook chat issue, I think you just have to change the user-agent string.

Sheena answered 28/6, 2011 at 0:11 Comment(0)
E
2

There is the Origyn Web Browser, which is supposed to be an embedded WebKit-based browser that looks portable and does not depend on "heavy" libraries (like GTK). Their web page is http://www.sand-labs.org/owb but it looks like their database crashed, which is a little worrying maybe.

Erdah answered 29/6, 2011 at 19:20 Comment(0)
S
2

try to port webkit engine to the netsurf framebuffer-based code.

HTH

Smolder answered 16/9, 2011 at 23:30 Comment(0)
K
1

You could buy one of the remaining 10 (or so) OGD1 boards. http://en.wikipedia.org/wiki/Open_Graphics_Project

Then you can talk directly to hardware using libpci.

However you will still need code that draws a picture into a memory buffer.

I realize this answer is more a shameless plug. But people who are interested in your question might want such a board. I already have a board like this and it would help a lot if it got more exposure.

Koblick answered 2/7, 2011 at 21:7 Comment(0)
P
0

This project:

http://code.google.com/p/wkhtmltopdf/

Achieves that. It runs Webkit on a virtual display and captures the rendered output in form of PDF. You can customize that do do something else.

OR you can create a display with tigthvnc, and set DISPLAY variable so that Chrome renders in that display.

Persevere answered 23/6, 2011 at 12:34 Comment(4)
wkhtmltopdf is based on QtWebkit, I need to work with only Google chrome 's port of webkit ( Because It is the only stable has very less renderer issues.Ugly
could you give us few example of websites that did not render properly on wkhtmltopdf?Persevere
try, yatra.com in QtWebkit and same on mozilla or Chrome, you will be able to find the difference.Ugly
Try to do Facebook chatting with QtWebkit, It will not work, I even checked with latest trunk of QtWebkit.Ugly
J
0

I suggest using the webkit2pdf package (which is available for many different Linux distributions). Then use fbgs which is a wrapper for the fbi frame buffer program, that displays PDF files right on the frame buffer.

Jollify answered 4/4, 2013 at 4:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.