Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too

| | Comments (17) |

holding_head.jpgMe and Xorg. It's a long, dramatic tale.

OK, it's not so much me and Xorg as it is my Intel 830m graphics chip and Xorg, or more specifically my Intel 82830 CGC and Xorg.

Whatever you title this epic — and make no mistake, this is epic, let me preface this by saying the c%$ I've been through since the days Debian Lenny was in Testing is something I wouldn't wish on any other user.

If you want to read every sordid detail, start with my three-part series, or just read my fix for Ubuntu 9.10 (Karmic Koala).

Long story short, I've managed to get my Intel 830m laptops (yes, I do have more than one) to run in Debian Lenny and all the Ubuntus from 8.04 through 9.10 with the various methods detailed in the posts above.

There are two ways to go about this. One involves hacking into xorg.conf to make the display work. The other involves disabling kernel mode setting.

In Ubuntu 10.04 (Lucid Lynx) Alpha 2, which I've been testing with a live DVD, there are two ways to boot the disc and get actual video.

The first is booting in "Safe Graphics Mode," which invokes the VESA driver.

The second is something that worked for me in at the beginning of the 9.10 era, which I didn't need later but now seem to need again in 10.04. And that is disabling kernel mode setting.

Both of these methods work, but I prefer the second, disabling kernel mode setting, because a) you're not using the VESA driver and b) you are running X without an xorg.conf file, which is something I quite like to do (and have done in OpenBSD and a few Ubuntu releases).

To run in Safe Graphics Mode, once you boot the Ubuntu Lucid DVD, click F4 for the various "modes," and select "safe graphics mode." Then click Enter to either "Try Ubuntu Without Installing."

You will boot into Ubuntu Lucid, and the system will create an xorg.conf file that calls the VESA driver.

It looks good. It is good. I don't think you'll be able to get Compiz, but I couldn't get it with my other method either. I've been able to use Compiz before on this hardware, but I always disable it anyway because all that wobbling and sliding makes me nauseous (literally).

I prefer the second method, disabling kernel mode setting. I wrote up this hack for Ubuntu 9.10 Karmic, and it works here just as well.

Here's what you do:

You need to get to the Boot Options line. Do that by hitting F6 (Other Options). Don't actually choose one of the options presented. Instead, click your Esc key. The Boot Options line should appear just above the F1 through F6 line at the bottom of the screen.

To access that Boot Options line, just hit one of your arrow keys, and your cursor should appear. At the end of the Boot Options line — after quiet splash — enter the following:

i915.modeset=0

Then click the Enter key to boot into the Ubuntu 10.04 live environment.

If this works for you the way it works for me, you'll soon be in the Ubuntu desktop, and if you open a terminal and run:

$ cat /etc/X11/xorg.conf

You'll see that you don't have an xorg.conf, but you're in X. And it works. I like that.

I tried to turn on Compiz just to see if I could, but it didn't work.

If turning off kernel mode setting works for you in the live Ubuntu 10.04 environment, what do you do if you want to actually install Ubuntu? How do you turn off kernel mode setting permanently?

(Remember that while I initially needed to turn off kernel mode setting in Ubuntu 9.10, at some point in the update cycle I was able to turn it back on ... before I started having more trouble with X, prompting me to retreat to Debian Lenny, which I'm running on my main laptop right now.

Ubuntu 10.04 is only in the alpha stage now. This issue might be "fixed" by release time in April of this year. Or not. But you can always try this hack if you have trouble.

I'd love to tell you how to make this kernel mode setting fix so the GRUB bootloader will turn it off every time you boot into Ubuntu, but I can't. GRUB has "moved on" to GRUB 2, and it no longer works the same way as the GRUB I've been hacking into for three years now.

And now I'm hearing that GRUB 2 isn't quite ready for production from a security standpoint.

Update: Here's a pretty good tutorial on working with GRUB 2.

I did a little checking around — and I encourage any of you to do the same, since I'm not running GRUB 2 on an actual install — and it looks like you can add boot parameters in /etc/default/grub, then run update-grub to update /boot/grub/grub.cfg.

It looks like the line in /etc/default/grub with "quiet splash" in it could be appended with i915.modeset=0, and after saving it, you run update-grub, and then you should be good to reboot.

Again, I don't have Ubuntu 10.04 installed on any boxes, so I'm speculating here.

If I'm correct (and I'd love confirmation):

You open a terminal and use sudo to accomplish this (with your favorite text editor; I'd use vi or nano, but I'll use Gedit here because I imagine the average Ubuntu user is plenty comfortable with it):

$ sudo gedit /etc/default/grub &

Then when you're in the file, change this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.modeset=0"

Save the file in Gedit and close the window.

Then run this command:

$ sudo update-grub

You should now be able to reboot the machine and have GRUB turn off kernel mode setting automatically. If not, I imagine there's a way to edit your boot line "on the fly" like there is now with the "old" GRUB. (Again, if anybody has installed Ubuntu 10.04 and can confirm this, I'd really appreciate it).

My initial impression of GRUB 2: I like the idea of GRUB 2's configuration files being in /etc instead of in /boot/grub. It makes it easier to keep backups, and if you kill the bootloader (as I have on many an occasion) with a dual-boot install, you'll still have your configuration, or so I think.

Hello LTS: Disabling kernel mode setting worked for me in the early 9.10 era, and at some point either a kernel or Xorg update made it so I no longer needed it. Now it seems that I need it again to make Intel 830m (82830 CGC) video work. Whatever. If disabling kernel mode setting makes Ubuntu 10.04 work, I've just bought three more years (Lucid is a long-term-support release) of security updates in an OS that I like a whole lot.

What about Squeeze? Does Debian Squeeze use kernel mode setting? I ask because I had the same problem in Sidux 2009-04 (which I used to peek in a live-disc kind of way into what Squeeze might be like), and the Vesa driver came through for me there. At some point I'll try turning off kernel mode setting in Sidux and see what happens.

This kind of BS amounts to one thing and one thing only: New user repellent. If you haven't been hacking around with Xorg for years, and you're just thinking of trying Ubuntu and happen to have a laptop like mine — of which there are MILLIONS out there, Intel video being pretty darn ubiquitous — you're going to get a Ubuntu disc, try to boot it, get no video and wonder what all the fuss is about Linux since you can't even get to the desktop. It's a huge fail.

How could Ubuntu (or Debian, Slackware, Arch ...) solve this issue? During hardware detection, if the Intel 830m graphics chip comes up, use a script to turn off kernel mode setting (and if this hack works for any other graphics chips having this same trouble, include them in this "configuration" script). There's no reason why a very common graphics chip shouldn't work without resorting to the kind of hackery that's way, way above the pay grade of almost every new Ubuntu user.


17 Comments

Adama Author Profile Page said:

You made my day buddy!!!
(although that it is half midnight here in Germany...)

The kernel mode setting switching works like a charm.

Here is my configuration:

Dell C400 (866Mhz, 512MB RAM, 20GB HDD)
Linux Mint 8 Helena Fluxbox CE Edition (brand new installed)

Standard installation of "Helena" worked okay beside total screwed video drivers. (Intestingly if you hybernate the machine using "F4"key at login screen, let it switch off, and then resume from hybernation it worked... but if you shutdown the laptop and re-boot from total off... crippled video... not workable...)

There was no xorg.conf in /etc/X11/... so I just gave your hack a try and here I am praising your idea.
Congrats, kudos, and many thanks...
this has saved my old C400 from being a dust-collecting paper-weight, as with "helena" using fluxbox this tiny machine is perceived as fast as regular netbooks... but much more robust and with better screen.

Again thanks alot and keep up your valuable work!

Kind regards from good ol` germany


Adama ;-)

It's not like early 2000s laptops with Intel video chips are rare. You've got many thousands of these machines in the wild. They worked great in 2007 with any distro running the 2.6.18 kernel.

But it's gotten increasingly dicey since then. This shouldn't be. Five- to 8-year-old hardware shouldn't suffer such regressions or be "deprecated" by kernel or Xorg developers. It's a bad thing to do.

This kernel mode setting is supposed to make machines boot faster, but if it kills video, what good is it?

Eugene said:

Great work. It works like a charm on the sony PCG-R505EL which uses Intel 830MG video chipset

I edited the GRUB startup parameters to make it stick.

Will said:

If you need to disable modesetting when booting ubuntu 10.04 with grub2, hold down shift to get the grub menu. Then you can edit a menu item by pressing 'e'. Move down to the end of the kernel line after 'ro single' and add 'i915.modeset=0 nomodeset' then press ctrl-x to boot.

Anonymous said:

I can confirm that "i915.modeset=0 nomodeset" makes this work find on a Dell C400. Note that you must use both parameters. Either alone doesnt work. Believe me!

Emma said:

Sony PCG-R600HFPD here (basically the same machine as Eugene's R505), Intel 82830M (i.e. 830M). Disable modeset works with Karmic; haven't confirmed with Lucid.

Thanks for all your efforts!

Right now I'm using the fully updated Ubuntu Lucid Lynx 10.04 beta 2, and nomodeset is not working, but i915.modeset=0 does work ... so try that kernel parameter in the boot line to get video on i830 (830m) machines.

You'd think that by now the Xorg people, the kernel people and even the distro people would have figured out that i830 Intel video does NOT work with kernel modesetting, and that when the kernel detects these kinds of chipsets they should automatically turn off kernel modesetting so people with these video chips can actually have a usable computer when they boot into a Linux distro.

For those of us who have been suffering through this for years and know how to deal with xorg problems, it's a major annoyance.

But for people who have never tried to run Linux, have an old laptop lying around and run into this problem, they'll never be able to figure it out. It's a damn shame that this issue has persisted this long - roughly from 2008 to today in one form or another (I first ran into it when Debian Lenny was in testing).

Eric said:

Hi, I have an old Thinkpad R31 with the same chip (Intel 82830). I share your previous experience!
But 10.4 kind of works with no modifications, except:
- before the login screen, video is instable (flickering, etc), after X shutdown too
- my old trick through a /etc/hal/fdi/policy/mouse-wheel.fdi file does not work anymore (see http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint)
- sometimes, no mouse cursor is displayed (it's still there, moving to the lower right corner I can reboot)
Any thought on that? It drives me nuts too!

Adamski said:

The edit grub2 config trick works on my Toshiba Satellite S1000 with 10.04 as you directed, and the i915.modeset=0 trick works a treat! Couldn't get 10.04 to boot at all, prior to this! Thanks lots!

fabi said:

Hi Steven!

Thank you so much for this info, i had a problem with a headless system and got it working using the i915.modeset=0, and using the VESA driver with a customized xorg.conf file, which supports no DDC moitor modeline detection (there's a patch for intel driver for xserver still not applied to 10.04 nor Debian Squeeze, see https://bugs.freedesktop.org/show_bug.cgi?id=14611 for more information).

Just for your information, your solution is working for Debian Squeeze and Xubuntu 10.04.

See you!

Ziocane said:

Hallo!
I have the same intel card in an old pc,and I installed lucid minimal + lxde.
The driver work quite well, but sometimes dragging the windows I obtain stripes in the screen.
Could your trick solve the problem?

Tnx!

digdug_c400 said:

HUUUGE thanks to Steven Rosenberg for this FIX! Have been struggling with c400 graphics since forever. I don't need compiz, just give me something so I don't boot to a blank screen.

c400 SUMMARY:
ubuntu 10.04 with grub2
hold shift --> grub menu.
edit by pressing 'e'.
after 'ro' add 'i915.modeset=0 nomodeset'
ctrl-x --> boot.
...
once booted,
sudo nano /etc/default/grub
make line like this:
GRUB_CMDLINE_LINUX_DEFAULT="i915.modeset=0 nomodeset"

MrRoberts said:

I can confirm your method works under Ubuntu 10.10 using my old PIII 1.2GHz, 512MB, 30GB HD and display controller Intel 82830 CGC.

ubuntu 10.10 with grub2
hold shift --> grub menu.
edit by pressing 'e'.
after 'quiet splash' add 'i915.modeset=0 nomodeset'
ctrl-x --> boot.
...
once booted,
sudo nano /etc/default/grub
make line like this:
GRUB_CMDLINE_LINUX_DEFAULT="i915.modeset=0 nomodeset"

Mary said:

I want to thank you for the info on Ubuntu 10.4 and a Dell latitude c400. I wanted something light to take with me to the library, so I bought the unit on ebay. The windows xp pro was a bit much on it. I tried all versions (I thought) of Linux and the only ones that would work was puppy and slacko. Then I stumbled onto your page and I was delighted to learn that I could install ubuntu.
I entered the i915.modeset=0 as you suggested and it worked! Now everytime I boot up it works! I have been with computers since the eighties and MS DOS 3.3! It was much simpler back then, but not as much fun! I am a old lady, but your instructions were clear! Thank You!

Alan Rochester Author Profile Page said:

Hi Mary!

I'm possibly addicted to Dell C400s. (I have 3.)

Crunchbang Linux will work out-of-the-box - without the change to GRUB.

TobiK said:

Thanx a lot, now my old ibm x30 runns !#Crunchbang linux (which seems to be a few scripts on top of debian squeeze).

Once you turn off kernel mode setting in Grub, you're good to go ...

Leave a comment

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appeared Saturdays in the Los Angeles Daily News through about October 2009, is available on the Daily News Technology page.

About this blog






Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Entry

This page contains a single entry by Steven Rosenberg published on February 11, 2010 5:29 PM.

I fix the display on the Toshiba Satellite 1100 laptop that isn't so far gone was the previous entry in this blog.

I'm looking at returned/refurbished Thinkpads at the Lenovo Outlet is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

Steven Rosenberg on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: Once you turn off kernel mode setting in Grub, you're good to go ... ...

TobiK on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: Thanx a lot, now my old ibm x30 runns !#Crunchbang linux (which seems ...

Alan Rochester on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: Hi Mary! I'm possibly addicted to Dell C400s. (I have 3.) Crunchbang ...

Mary on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: I want to thank you for the info on Ubuntu 10.4 and a Dell latitude c4 ...

MrRoberts on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: I can confirm your method works under Ubuntu 10.10 using my old PIII 1 ...

digdug_c400 on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: HUUUGE thanks to Steven Rosenberg for this FIX! Have been struggling ...

Ziocane on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: Hallo! I have the same intel card in an old pc,and I installed lucid m ...

fabi on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: Hi Steven! Thank you so much for this info, i had a problem with a he ...

Adamski on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: The edit grub2 config trick works on my Toshiba Satellite S1000 with 1 ...

Eric on Intel 82830 CGC (830m) graphics fix for Ubuntu Lucid 10.04 just might work for your Intel video chip, too: Hi, I have an old Thinkpad R31 with the same chip (Intel 82830). I sha ...

Powered by Movable Type 4.25

Search this blog

Loading

LXer

Links

Life, the Universe and Debian
Simplify
Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet's Storage Bits
ZDNet U.K.
iTWire
CNet News
Webware
Beyond Binary
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Aaron Toponce
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
OMG! Ubuntu!
I' Been to Ubuntu
Tanner Helland
Dustin Kirkland
Ubuntu UK Podcast
Ubuntu Linux Help
Popey
Linux Mint
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
Lucky 13's Linux blog (lots of Tiny Core)
Lucky 13's BSD blog
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Planet Fedora
Fedora Forums
Fedora Docs
Join Fedora
Paul Frields
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
hubertf's NetBSD Blog
PC-BSD
Daemon Forums
FreeBSD Forums
Planet FreeBSD
Evilcoder.org
miwi's Privat Blog
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
BSD Magazine
Rhyous
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
The Tech Report
Engadget
Gizmodo
Phoronix
xkcd – A webcomic of romance, sarcasm, math and language
Nixie Pixel
Technology for Mortals
Thoughts on Technology
ZaReason
System 76
Tiger Direct
NewEgg
DealExtreme

Advertisement

Other blogs

Estimated stats from spring game in Inside UCLA with Jon Gold
Missing Person in Inside USC with Scott Wolf
Mohammad House opens in The Sausage Factory
How royally screwed are Kings fans without Miller and Fox narrating this playoff fun run? in Farther Off the Wall
SOFTBALL: Oaks Christian's Ackermann reaches milestone in Daily News High School Spotlight