Linux Gets Kernel-Based Modesetting
An anonymous reader writes "Next month when Fedora 9 is released it will be the first Linux distribution with support for kernel mode-setting, which is (surprisingly) a feature end-users should take note over. Kernel-based modesetting provides a flicker-free boot process, faster and more reliable VT switching, a Linux BSOD, and of most interest is much-improved suspend/resume support! The process of moving the modesetting code from the X.Org video driver into the Linux kernel isn't easy, but it should become official with the Linux 2.6.27 kernel, and the Intel video driver can already use this technology. Phoronix has a preview of kernel-based modesetting covering more of this new Linux feature accompanied by videos showing the dramatic improvements in virtual terminal switching."
Clearly Tanenbaum was right, since OS X has a microkernal.
BSD is dead. Netcraft has confirmed it. Therefore, OS X is dead.
Just what we need: a Linux BSOD!
Your ad here.
A BSOD? Lemme guess, that patch came from Novell, right?
Understanding the scope of the problem is the first step on the path to true panic.
It's about time, KGI was a patch to Linux many many years ago to enhance Linux graphics support just like combining this kernel modesetting with DRI (except that KGI had decent security measures designed in right from the start).
As usual the old guard says something like "Graphics isn't relevant" and holds back progress for years on end.
Forget it, dude. you can write your own drivers.
Couldn't resist.
Your ad here.
I've been trying it out since it became usable at all in the relevant git trees, with Intel driver of course - and it works wonders. Probably one of the best inventions after sliced bread. Well, seriously, it will definitely help the authors of graphics drivers, providing a unified framework for all modesetting kludges and simplify the actual drivers, especially direct rendering. AFAIK all the new Radeon drivers (those made with the specifications AMD released) will be using it, as well as DRI2, so not only Intel GMA users will benefit very soon.
This is Slashdot. Common sense is futile. You will be modded down.
I've tried contributing code, but they're stuck in a cathedral and won't acknowledge me.
I hear ya...I've better luck with the Debian Hurd project, give them a shot:
http://www.debian.org/ports/hurd/
If it's been a while, you might be pleasantly surprised: you can get a decent GNU/Hurd install going without too much trouble, there are things happening, development-wise (including possible "summer of code" participation) and so on.
Good luck.
"Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth
Does anybody have some insights on how this will affect those not using Linux kernels with this patch?
Are the *BSDs and commercial Unices planning on similar work? Will support for modesetting eventually be dropped from X drivers?
If not, what is the least commented on story of all time ? Maybe starting at 1999.
The justification is, if the X server crashes, the kernel can restore the display to a usable state. It also ensures that the display is reinitialized properly after suspend/resume.
If I had a lot of money like google does then I would fund just enough work to keep the joke alive :D
----
Go canucks, habs, and sens!
Nah, it said BSD was dying. In the sense that everything is always dying.
Apple uses a hybrid kernel called XNU actually. http://en.wikipedia.org/wiki/XNU
MidnightBSD: The BSD for Everyone
I'm sure Linux has several more layers of beureucracy and are far more critical to what code goes in there, but I think it comes with the territory. If you got code in the main kernel, it's not just for pet projects that noone will really scream if it panics. Fumble it up so linux machines go down or suffer data corruption, and there'll be many server administrators and others who'll be pissed at you.
It's too easy to say there can't be issues, but I think it's telling that Linux is just Linux and *BSD has four (free, open, net and dragonfly) plus Darwin in OS X. While I'm sure you can say that's because the whole core team are croonies with the benevolent dictator, it tells me there's not been a sufficiently large group of people that's been sufficiently turned off that they made a competitive fork.
I'd recommend to take another look at the code, is it documentad properly? Is it written the right coding style? Would the code affect other cases than the one you're trying to solve (eg: server vs desktop speed)? Is it a hack for something that shouldn't be solved at that level? Does it require any interfaces to change? I guess it's not easy to say without knowing what it's about, but if it just comes as a code snippet from far left field it does need to prove itself.
Live today, because you never know what tomorrow brings
Every time I've had X crash, it's brought me right back to the console, with no issues or problems.
But then, I don't use [xgk]dm, nor do I use DRI. This seems like a really Microsoft-like Bad Idea to me...
"I don't know, therefore Aliens" Wafflebox1
Because the kernel manages hardware resources. Modesetting and graphics memory management should be done by real drivers in the kernel, just like everything else. Right now, you basically have two driver frameworks managing the video hardware (and possibly more): the kernel's own framebuffer and the X.org drivers, which already have DRM shims in kernelspace. That is way too complicated and why anybody thinks having two drivers competing for a single piece of hardware is a good idea is beyond me. There is a segment of the Unix population that seems to think that anything that's been done for longer than, say, 10 years, is automatically correct and anybody who chooses to change things is automatically wrong. FWIW, Linux and the open source BSDs are the only Unices that have had X modesetting and basic video driver functionality OUTSIDE the kernel. The commercial Unices had special X drivers in the kernel, Mac OS X obviously has kernel mode graphics support, as does Windows, although it is partitioned off from the rest of the kernel to some degree. And which OS has the most problems with graphics drivers, crashes and lockups related to that? Linux...
OK so never mind that the people on hurd are already thinking about this hardware changing thing but HURD is an architecture level project, which means that its solutions are mostly architecture independent. The Fragmentation among bsd descendants are, because its the similarities that are mostly cosmetic. This puts impasses on the D in bsD, Distro. Darwin doesn't have the same kernel interface as the other BSDs (note the difference in driver programming method).
Wow. I've just realised that I never see spam on slashdot; this is the first one I ever remember seeing.
BSOD here does not mean "Microsoft-style reliability".
Currently, if the kernel panic, and X is shown, the machine just locks up.
With kernel mode-setting, the kernel will be able to switch out of X and print panic to the screen. This is very helpful to developers, and for bug reports.
The downside is not decreased reliability, but that the normal user will panic too (and not just the kernel).
Of course, the more code we have in the kernel, the more reasons to oops, but that hardly happens on distribution kernels, as the bugs were mostly flushed out.
Then you don't have a recent ATI card. The free driver will hard crash my system when playing video through Xv (this is with an experimental driver pulled from the GIT tree), the proprietary driver will freeze the system on log-out (with K/GDM). An X11 error can easily take down Linux, even if you don't use DRI.
The final impediment removed to allow "the year of linux on the desktop".
This is an important feature for improving user experience, if nothing else, but I worry. New things are untested. Untested things have bugs. Buggy things don't always work well. VT switching is flawless, even if it's a bit ugly. I worry about the reliability of this in crash scenarios.
Suppose X is locked up. Today I can perform a VT switch and get a pretty responsive console, if the keyboard still responds. From there the offending program, or X, can be killed and the system recovered. Can I still do that? Probably, but I worry.
I want my Cowboyneal
Why is there a motherboard obscuring half the screen in those videos? Did he just put the camera down without even looking to see what it was looking at? Be a little more professional, for goodness sake.
I still compile my own kernels and it's quite time consuming, but it'll be worth it to turn these features off. I'm sure all the major distros will offer kernel packages with these misfeatures disabled.
Stick Men
Ever tried out a new game and it borked up so bad you had to ssh in from somewhere else and do a reboot? Well, in my opinion, the best part about this feature is that from now on, you should be able to just bring up a VT with Ctrl-Alt-Fx and just kill the rogue process! Of course putting more into the kernel, like complex rendering operations, would be a mistake, but setting the video mode should have been in there years ago. Now all we need is a better system for getting notifications of the vertical retrace!
If you have the Alt+SysRq key combinations enabled in the kernel, you can usually sync & reboot even when X has grabbed the keyboard and frozen.
In that case Alt+SysRq+r switches your keyboard into "raw" mode which lets you usually change into a VT via Ctrl+Alt+1 to recover your system manually.