Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2019-03

Linux DRM (Direct Rendering Manager) porting

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rainer Stratmann

Currently I am porting some C code from the Linux DRM Mode-Setting API to pascal. First in my own way. So that it is usable for me. But it would be possible to make a separate unit out of it, of course.

I could compile the modeset.c code with the Linux compiler. It runs well on Linux. It's a good assist to check the progress of the porting.

https://dvdhrm.wordpress.com/2012/09/13/linux-drm-mode-setting-api/

Also the library code has to be ported. That is not easy, but should be possible. About 1/3rd of the work is done, I guess.

May be someone is also interested in DRM and we can divide the work :-)

With DRM you can have access to all the possible video connectors on the mainboard. You can have access to the framebuffer directly for example. It is interesting for embedded devices, like I am working with.

Reply by email

Rainer Stratmann
to Rainer Stratmann

The code below is now ported into pascal.
That took me about 2-3 weeks.

Anyone who is interested can write directly to me. It's mainly for embedded projects writing directly into the framebuffer.

You can enquire and set the resolution of all possible connectors (monitor: for example vga, hdmi, dvi connector).
You get a mempointer to a framebuffer.
It is possible to have access to more than one connector at the same time if the mainboard or graphic card supports it.

CEST Rainer Stratmann wrote 20 lines
Currently I am porting some C code from the Linux DRM Mode-Setting API to pascal. First in my own way. So that it is usable for me. But it would be possible to make a separate unit out of it, of course. I could compile the modeset.c code with the Linux compiler. It runs well on Linux. It's a good assist to check the progress of the porting. https://dvdhrm.wordpress.com/2012/09/13/linux-drm-mode-setting-api/ Also the library code has to be ported. That is not easy, but should be possible. About 1/3rd of the work is done, I guess. May be someone is also interested in DRM and we can divide the work :-) With DRM you can have access to all the possible video connectors on the mainboard. You can have access to the framebuffer directly for example. It is interesting for embedded devices, like I am working with. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email