News for hackers. Stuff that matters.
Re:Intro to Low-Level Graphics on Linux by ausjke on Wednesday August 30, 2017 @02:38PM (#15134740)
great write-up, fbdev is straightforward but the kernel is phasing it out in favor of DRM, I hope DRM will maintain a fbdev emulation at least. it's sad SDL2 did not have fddev support either as most people are fond of doing opengl/2d/3d-accleration these days.
Re:Intro to Low-Level Graphics on Linux by Jasper_ on Wednesday August 30, 2017 @05:00PM (#15135968)
As much as I would want to push people away from the fbdev API (doesn't support multimonitor, page flipping, cursor planes, etc.), it will be supported in an emulation layer for new DRM-based devices. Mostly for fbcon, but still supported.

https://github.com/torvalds/linux/blob/master/drivers/gpu/dr...

Re:Intro to Low-Level Graphics on Linux by badsectoracula on Wednesday August 30, 2017 @07:14PM (#15136911)
Wouldn't removing it break the "never break the user space" promise Linux has?
Re:Intro to Low-Level Graphics on Linux by lomnakkus on Thursday August 31, 2017 @06:45AM (#15139417)
No. The "never break user space" thing (AFAIUI, at least) is about not changing existing behavior. Removal of features is a different thing altogether which usually only happens after long deprecation periods or when there's nobody around to support the code.
Re:Intro to Low-Level Graphics on Linux by ausjke on Thursday August 31, 2017 @08:26AM (#15139780)
the issue is that Linus works at LF which are sponsored by big companies(intel, etc), whose focus is on non-embedded devices, framebuffer is extremely useful for low end embedded products that have no GPU and does not need one either, there are more low-end-embedded-graphic-devices than intel/PC/data-center machines
Re:Intro to Low-Level Graphics on Linux by jasonkostempski on Wednesday August 30, 2017 @03:54PM (#15135396)
Does "DRM" here mean something other than the "DRM" most of us are used to?
Re:Intro to Low-Level Graphics on Linux by thehardsphere on Wednesday August 30, 2017 @03:57PM (#15135425)
Direct Rendering Manager: https://en.m.wikipedia.org/wiki/Direct_Rendering_Manager

Very different from Digital Rights Management.

Re:Intro to Low-Level Graphics on Linux by jasonkostempski on Wednesday August 30, 2017 @04:27PM (#15135707)
Phew, I thought Digital Rights Management was snaking it's way into every rendering operation on every machine. I'm sure advocates wouldn't mind that.
Re:Intro to Low-Level Graphics on Linux by e12e on Wednesday August 30, 2017 @04:54PM (#15135916)
Fear not, HDCP makes an effort to usher in your dystopia:

https://en.m.wikipedia.org/wiki/High-bandwidth_Digital_Conte...

Re:Intro to Low-Level Graphics on Linux by digi_owl on Thursday August 31, 2017 @02:56AM (#15138641)
DRI/DRM too me seems overly fiddly for what we had before.

Things just seem to break in nasty ways if i do not manage to get the kernel and userspace stuff to line up within a certain range of minor versions, and i can't seem to find a good straight list of just what those lineups are.

Effectively DRI/DRM seems to be developed for the major dev, by the major devs, and screw anyone and everyone that do not read every damn mailing list and IRC channel with religious fervor.

Between that and the udev stuff i fear that Torvalds have gotten too trusting of his sub-system maintainers in recent years, thus resulting in interface churn because both the kernel and userspace parts are done by the same people with no regard for anyone but themselves.

Re:Intro to Low-Level Graphics on Linux by icebraining on Thursday August 31, 2017 @07:47AM (#15139620)
I think Linus is aware of the problems: http://lkml.iu.edu//hypermail/linux/kernel/1404.0/01331.html
Re:Intro to Low-Level Graphics on Linux by digi_owl on Thursday August 31, 2017 @08:14AM (#15139738)
Kinda, but the only time Sievers' antics come up is when they impact the kernel (and its developers) directly, not when it makes userspace more complicated to maintain (unless you happen to be on first name basis with the maintainers of said sub-systems).
Re:Intro to Low-Level Graphics on Linux by jdmoreira on Wednesday August 30, 2017 @03:03PM (#15134957)
Anyone remember SVAlib? I wish it was still around. Maybe it should be ported on top of OpenGL and made cross platform. Would love to have something similar on macOS.
Re:Intro to Low-Level Graphics on Linux by pjmlp on Wednesday August 30, 2017 @04:59PM (#15135963)
Yes, having to make applications setuid.

I used it for a while, if I remember correctly I even wrote a pixmap loader.

Why not just use SDL, or would you like to port old games?

Nowadays on macOS I would just use SpriteKit.

Re:Intro to Low-Level Graphics on Linux by digi_owl on Thursday August 31, 2017 @02:57AM (#15138646)
To me Wayland is basically that for the GL generation...
Re:Intro to Low-Level Graphics on Linux by digikata on Wednesday August 30, 2017 @02:54PM (#15134872)
That takes me back, fbdev was pretty useful for embedded linux configured with no X, dedicated Qt apps... or even just for putting up the all important custom boot splash screen.