Ubuntu on the Inspiron 6400

I said I was going to write about this and the prob­lems and solu­tions I’ve come across and stick them together for anyone fol­low­ing my foot­steps with this laptop. Most of my prob­lems were with X and the res­o­lu­tion because I was new to this in general. There are still some things I have not tested or are not working yet and they include the blue­tooth module (not tested), the wire­less card (it’s an ipw3945 - have yet to install the drivers) and finally the Intel GMA 950 video card (or is it a GMA 945…?), whose 3D drivers I have yet to install (but works per­fectly oth­er­wise). Sound was almost com­pletely inaudi­ble with Dapper Drake Flight 5, though Flight 6 fixes the problem.

As the Intel GMA 950 graphic card did not func­tion at optimal res­o­lu­tion (ie. non-​wide screen aspect and 800x600), had to use 915resolution. Version 0.5.0 exists/existed in the Dapper repos­i­to­ries at the time, though had to down­load version 0.5.2 (see earlier link). Did the fol­low­ing once installed:

# 915resolution -l

Pick an unsused mode (one’s res­o­lu­tion you will never use - 5a for me). Next we need to ‘re-​configure’ that mode to the pref­ered res­o­lu­tion. I changed the res­o­lu­tion of 5a to 1680x1050 with a depth of 32 by doing the fol­low­ing:

# 915resolution 5a 1680 1050 32

Backup /etc/X11/xorg.conf, and then add the wanted res­o­lu­tion con­fig­u­ra­tion to xorg.conf:

Option "ForceBIOS" "1600x1200=1680x1050"

So make note of the fol­low­ing snip­pets from /etc/X11/xorg.conf:

Section "Device"
Identifier "Generic Video Card"
Driver "i810"
BusID "PCI:0:2:0"
Option "ForceBIOS" "1680x1050=1600x1200"
 EndSection

Where '1680x1050' is your desired resolution and '1600x1200' is the original resolution of the mode you changed.

And:

EndSection
Section "DRI"
Mode 0666
 EndSection

Now make sure the driver is set correctly ("i810").

Finally in order to run 915resolution at every boot before X starts, add to'/etc/init.d/bootmisc.sh', before "exit", the following (change the variables for your desired configuration):

/usr/sbin/915resolution 5a 1680 1050 32

And restart X in order for the changes to take effect.

It was quite easy to do. In total that took about 6 minutes and pro­vided you backup the files you’re editing nothing can go awry, though make sure you pick a res­o­lu­tion your display can actu­ally perform.

Cheers.

41 comments

  1. 1. Hal
    Apr 09, 21:57

    It’s nice to hear that you’ve got a Intel Pro Wire­less chipset, I’ve got IPW2200 and have been happy with the driver support from Intel. You should def­i­nitely be able to get it working :D

  2. 2. Hal
    Apr 09, 22:54

    That browser sniff­ing code is interesting — which Word­press plugin is that?

  3. 3. Pascal
    Apr 10, 17:19

    Using Inter­net Explorer 6.0 on Windows 98” - ?!?!

    The browser­snif­fer.

  4. 4. Hal
    Apr 10, 20:05

    lol

    Thought you’d like that one, I installed it through Wine. It’s handy to make sure designs work cross-​browser.

    Cheers for the link!

  5. 5. Pascal
    Apr 11, 00:31

    I wouldn’t ever bother, per­son­ally.

  6. 6. Kayhadrin
    Jun 02, 05:18

    Hi,

    I’ve got the same dell laptop and tried what you did to be able to use the 1680x1050 res­o­lu­tion.

    However, there’s just some­thing I’m not sure about what you wrote in your article:

    First:
    Option “Force­BIOS” “1600x1200=1680x1050”

    And in the device snip­plet:
    Option “ForceBIOS” “1680×1050=1600×1200″

    Is there any mistake here?

  7. 7. Pascal
    Jun 02, 08:42

    Mhh, I don’t think it matters if you reverse them, though I’m not certain. It works for me thus far…

    Have a look at this: https://wiki.ubuntu.com/i915Driver

    I’ve uploaded a copy of my xorg.conf file. You can find it here: http://​klepas.​org/​f​i​l​e​s​/​x​o​r​g​.​c​o​n​f​.6400

  8. 8. Kayhadrin
    Jun 03, 04:15

    Thanks for the link.

    After installing Dapper, it finally worked. Actu­ally, I just updated to Dapper, and it worked :)
    But some­thing with the wifi went wrong (udev) and I had to upgrade the kernel, and rein­stall the wifi.

    Ahhh.. Fin­ished.

  9. 9. Pascal
    Jun 03, 12:50

    No worries. :) You must have the ipw3945 wifi card then! How did you get it working!? :)

  10. 10. Mohnish
    Jun 03, 23:48

    Hi,

    I tried the above steps. But I’m unable to change “boot​misc.sh” as it requires root pass­word. And Ubuntu didn’t provide an option for root pass­word. How to edit the file???

    More­over, i cannot restart X without the per­mis­sions. Are ubuntu guys making it easy or dif­fi­cult to adapt to Linux. F***ing stuff…………..

  11. 11. Mohnish
    Jun 04, 00:37

    Ok sorry for the abusive lan­guage above but HOW TO EDIT A FILE WHO’S OWNER IS ROOT ???????????????????????

  12. 12. Pascal
    Jun 04, 00:16

    Use sudo. There is no default root user under Ubuntu.

    Notes on this is under the Ubuntu book, which comes in the example package. It is also on the wiki: https://wiki.ubuntu.com/RootSudo

    This is a common mis­un­der­stand­ing and cause for con­fu­sion. Googling for it would prob­a­bly have given you a faster response, than having to wait for me to respond here :) Cheers.

  13. 13. Kayhadrin
    Jun 04, 19:16

  14. 14. Kayhadrin
    Jun 04, 19:02

    Off topic: what’s the name of the plugins you use for your com­ments?

  15. 15. Pascal
    Jun 04, 23:31

    As of right now I am not using any addi­tional plugins or fea­tures that enhance com­ment­ing. I’m waiting on some stuff to happen so I can begin to revamp this place into a purely per­sonal site and stick any more formal writ­ings off site. When that takes place I intend to make use of the browser­snif­fer, tag warrior and change text-​box plugin. :)

  16. 16. n0dl
    Aug 29, 14:46

    Hello im think­ing about getting a Dell 6400 laptop myself I read some other guides and they talked about backing up the Dell “special” MBR. Do you need to back up and/or restore the special Dell MBR if you want to rein­stall windows (for any reason). Where can I obtain the Dell MBR code (i have not pre­vi­ously owned a dell product so getting it from another dell com­puter is not an option).

  17. 17. Pascal
    Aug 29, 18:49

    Umm, I wouldn’t know. I have noted the ‘Medi­aDi­rect’ close to the power button on the laptop that seems to be some sort of power-​on button for a media system or perhaps some sort of Dell-​Windows hybrid - not sure.

    When I press it the laptop turns on and then I see this rather large and blue (if I recall cor­rectly) screen with ‘Dell’ and ‘Medi­aDi­rect’ written on it. Then… after a few seconds it goes back to my lovely GRUB menu. :D

    So I am guess­ing since the MBR is essen­tially the first thing read, that this Medi­aDi­rect thing is hard-​coded into the chips within some­where because I never booted Windows even once on this laptop - remov­ing it within seconds of turning on the laptop (and that included the MBR). :)

    Cheers, Pascal

  18. 18. n0dl
    Aug 30, 06:56

    Heh. Well i intend to install ubuntu on the laptop as soon as i get it. In anycase I hear that the Dell recov­ery disc can be ordered from the Dell company. I’ve tried to contact them about the cd to see if the MBR code is in but i got no response :(

  19. 19. Pascal
    Aug 31, 11:10

    I might give them a buzz myself later today and see if there is a such a thing for this Medi­aDi­rect func­tion and whether they can send the recov­ery disc to me. I guess it’s handy for when you want to sell the machine and some Windows user wants to place Windows on it.

    Before I call I’m going to check also whether this disc wasn’t already included perhaps as part of the OEM install discs and extra soft­ware. Cheers.

  20. 20. n0dl
    Sep 20, 15:38

    Well i got my laptop and installed ubuntu on it. I got the 686-smp kernel and fol­lowed your instruc­tions to get my res­o­lu­tions working right. In any case did you ever get your wire­less card working? Im having some trou­bles. I tried reading the post above with getting things to work accord­ing to dwarfy’s post. Every­thing com­piled fine and the results that lsmod yeilded was iden­ti­cal to that of dwarfy’s. However when i try to sudo ifup eth1 && sudo dhclient eth1 the wire­less card doesnt get an ip assigned to it. I read the other pages of the post and it said that the driver for the card was imple­mented into the kernel after “-23” and right now im running “-27”. In anycase ive paste­binned my iwcon­fig for refrence. If you have infor­ma­tion on how to get the wire­less card up and running please respond :) http://​paste​bin.​com/​7​90410

  21. 21. Pascal
    Sep 20, 20:54

    N0dl: hey, cool!

    Alright, you’ve got the res­o­lu­tion working.

    Wire­less card is working also. You will need:

    • the ipw3945 drivers found at http://​ipw3945.sf.net
    • to compile the IEEE802.11 sub­sys­tem to replace the one that you’ve got installed, which can be found on http://​ieee80211.sf.net/
    • the microc­ode (ucode) and the reg­u­la­tory daemon, found both on http://​bughost.​org/​i​p​w3945/
    • the Linux headers of 2.6.13 or newer, and since you have a dual core proces­sor install the smp kernel
    • to have Net­work­Man­ager installed and the front end for it (ie. gnome-network-manager/knetworkmanager)

    Now you’re ready to rock an roll. Compile the sub­sys­tem, the ucode, the daemon and then the driver. I can’t fully remem­ber how I did (though it is doc­u­mented) it so I’m going to do some digging and see if I can write a howto for it in the next week or so. I received help from a over­seas friend to get it working, so I’ll see if I can get him to help me out. :)

    Good luck!

    Edit #1: There is an infor­ma­tive thread on the Ubuntu forums which although is par­tially out of date or for other cards as well, it does contain some useful info. Found here.

    Edit #2: Stupid me, check out the infor­ma­tive comment just above by Kyadrin! The ucode goes into:

    /lib/hotplug/firmware/

    Also note he men­tions that you may need to use older ver­sions, not the latest of the IEE802.11 sub­sys­tem, which is what I did when I got my wire­less working. Not sure whether this has changed. I can atleast tell you it works for me with ieee80211-1.1.14, ipw3945-ucode-1.13, ipw3945d-1.7.19 and ipw3945-1.0.12. :)

    Edit #3: Unre­lated to wire­less, but the Dell Medi­aDi­rect thing that comes on the laptop and is wipped when I refor­mated the HD can be rein­stalled along with Windows from the discs you get with your laptop. I checked, the Medi­aDi­rect installer CD is there. No clue what it [Medi­aDi­rect] actu­ally is, not that I care.

  22. 22. n0dl
    Sep 21, 07:20

    Well it turns out that my card was already dected and good to go (i did not need network-​gnome manager nor install the drivers) The only thing is that my wifi signal is alittle weak (my router isnt too great hence takes several dhcpcd eth1 to finally get an ip offer). I am not running gnome nor kde or xfce for that matter. I am running openbox, Is there a way to test (via a ter­mi­nal) that the res­o­lu­tion i am running is the one i spec­i­fied in my Xorg.conf? I fol­lowed the stpes in your guide but how can i be sure if things are working. When i went through the steps and changed my res­o­lu­tion it didnt seem all to dif­fer­ent than before (it looks like it was still 1200x800 display). I read the wiki doc­muen­ta­tion that you linked too as well. Things still look the same but im assum­ing every­thing went well… If you know a way to test if a person is running at a certain rez do tell :)

  23. 23. n0dl
    Sep 24, 04:55

    UPDATE: I *actu­ally* got my res­o­lu­tion to work cor­rectly. Appar­ently running 915resolution -l does not show the modes the graphic card reads but simply dis­plays the modes that you can write to. If you check on your /var/log/Xorg.0.log you can see which modes your card actu­ally reads. Once you find a certain mode that matches with the one dis­played on hack’s list you simply pass 915resolution mode xres yres bit edit your Xorg.conf with the Force­BIOS state­ment and setting the depth with the cor­re­spond­ing res edit /etc/default/915resolution so it patches at every boot restart X and your good. The only res­o­lu­tion i got to work right was 1280x800 at 114 dpi.

  24. 24. Pascal
    Sep 27, 18:56

    I upgraded my screen to a 1680x1050 WSXGA one. The default option was the 1280x800 one. :)

  25. 25. n0dl
    Nov 17, 11:11

    Hello again. Im just won­der­ing. Has the Direct Media splash screen ever just ran­domly appear when you booted up? When I booted today a direct media splash screen appeared at boot. This is the first time its hap­pened to me. weird­ness

  26. 26. Pascal
    Nov 17, 18:57

    Has yet to happen to me — strange, but I think of no con­se­quence.

  27. 27. daviweb
    Nov 24, 08:02

    Great, great!!! Thanks!!!
    I used this on HP Pavil­lon DV6147ea with Intel 945 GMA.

  28. 28. derSchmidi
    Dec 02, 04:55

    Thx for this great little tut! Helped me a lot getting my widescreen display to work prop­erly! u iz teh great­est :)

  29. 29. Ken Weiner
    Jan 04, 17:31

    I have a G965 chipset with a GMA X3000 onboard video chip. When I run 915resolution, I get:

    sudo 915resolution -l — -

    Intel 800/900 Series VBIOS Hack : version 0.5.2

    Intel chipset detected. However, 915resolution was unable to deter­mine the chipset type.
    Chipset Id: 29a08086
    Please report this problem to stomljen@yahoo.com — -

    I have con­tacted that email address, but never get a response. Should 915resolution work for my chipset? Is 915resolution actively updated with newer chipset types?

  30. 30. Pascal
    Jan 04, 18:37

    Hey Ken. I’ve had no expe­ri­ence with that card.

    Is your res­o­lu­tion a wide screen res­o­lu­tion? That’s the first thing I’d check (I’m guess­ing it isn’t, hence you’re looking for answers :) ).

    I know that Steve Toml­jen­ovic has never responded to my emails through that address. I don’t know whether he has another contact address, and the 915resolution website is out­dated.

    I’m hon­estly not sure. I don’t think 915resolution is for a G965 chip. It could just be out­dated. I’m not sure.

    Sorry I wasn’t of more assis­tance. Check the Ubuntu forums.

  31. 31. joel_gil
    Jan 15, 09:02

    hey, so i fol­lowed the steps and got the config right.

    Like I do the alt ctrl back­space and get the 1280x800 of my laptop (Insp­iron 6400, i945 video). which is cool.

    But the fix on the boot​misc.sh wont work, every time i restart the config is lost.

    This is how mi boot​misc.sh looks like: —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  — 
    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides: bootmisc
    # Required-Start: $local_fs hostname $remote_fs
    # Required-Stop: $local_fs
    # Default-Start: S
    # Default-Stop:
    # Short-Description: Miscellaneous things to be done during bootup.
    # Description:
    ### END INIT INFO

    PATH=/usr/sbin:/usr/bin:/sbin:/bin
    [ "$DELAYLOGIN" ] || DELAYLOGIN=yes
    . /lib/init/vars.sh

    do_start () {
    #
    # If login delaying is enabled then create the flag file
    # which prevents logins before startup is complete
    #
    case "$DELAYLOGIN" in
    Y*|y*)
    echo "System bootup in progress - please wait" > /var/lib/initscripts/nologin
    ;;
    esac

    # Create /var/run/utmp so we can login.
    : > /var/run/utmp
    if grep -q ^utmp: /etc/group
    then
    chmod 664 /var/run/utmp
    chgrp utmp /var/run/utmp
    fi

    # Set pseudo-terminal access permissions.
    if [ ! -e /dev/.devfsd ] && [ -c /dev/ttyp0 ]
    then
    chmod -f 666 /dev/tty[p-za-e][0-9a-f]
    chown -f root:tty /dev/tty[p-za-e][0-9a-f]
    fi

    # Update motd
    uname -snrvm > /var/run/motd
    [ -f /etc/motd.tail ] && cat /etc/motd.tail >> /var/run/motd

    # Save kernel messages in /var/log/dmesg
    if which dmesg >/dev/null 2>&1
    then
    savelog -q -p -c 5 /var/log/dmesg
    dmesg -s 524288 > /var/log/dmesg
    chgrp adm /var/log/dmesg || :
    elif [ -c /dev/klog ]
    then
    savelog -q -p -c 5 /var/log/dmesg
    dd if=/dev/klog of=/var/log/dmesg &
    sleep 1
    kill $!
    [ -f /var/log/dmesg ] &fi

    #
    # Save udev log in /var/log/udev
    #
    if [ -e /dev/.udev.log ]
    then
    mv -f /dev/.udev.log /var/log/udev
    fi

    # Remove bootclean's flag files.
    # Don't run bootclean again after this!
    rm -f /tmp/.clean
    }

    case "$1" in
    start|"")
    do_start
    ;;
    restart|reload|force-reload)
    echo "Error: argument '$1' not supported" >&2
    exit 3
    ;;
    stop)
    # No-op
    ;;
    *)
    echo "Usage: bootmisc.sh [start|stop]" >&2
    exit 3
    ;;
     —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  —  — As u see there are 2 ‘exit’ i tried spec­i­fyin the adress before both but nothin happens.

    hope someone can help me =S

  32. 32. Pascal
    Jan 17, 17:09

    Sorry, I’m at a conf and not online too much. :)

    So you’ve added /usr/sbin/915resolution 5a 1280 800 24 (where 5a is the mode you selected) to your boot­misc file?

    Here is the tail of my boot­misc file under Ubuntu:

    echo "Usage: $0 start|stop" >&2
    exit 3
    ;;
    esac
    /usr/sbin/915resolution 5a 1680 1050 32
    : exit 0

    I don’t know bash too well and I’m not entirely sure what you’ve done. Just append the line before the exit.

    If it doesn’t work come back and I’ll see what I can do.

  33. 33. joel_gil
    Jan 18, 11:30

    IT WORKED!!!!

    so it turns out that at least on my boot­misc I had to ADD the last line aaand a 3rd exit, not put before the one i already had, but it worked finally =D

    thanks a lot pascal!!! =)

  34. 34. Pascal
    Jan 18, 12:17

    No worries. Cheers. :)

  35. 35. Sean
    Apr 04, 01:17

    Firstly, thanks for that guide. Unfor­tu­nately if I suspend or hiber­nate, the res­o­lu­tion does not reestab­lish itself. I have to man­u­ally run 915resolution again and then restart X. Is there any way to fix this so it works auto­mat­i­cally?

  36. 36. Sean
    Apr 04, 21:38

    Actu­ally, I managed to answer my own ques­tion.

    $ cd /etc/acpi
    $ sudo -s
    *prompt for pass­word*
    # gedit hiber​nate.sh

    This opens hiber​nate.sh.
    I rec­om­mend that you first save a backup copy.
    Now go to the end of the file (just after the last line) and enter the fol­low­ing (on a new line)

    /usr/sbin/915resolution 5a 1680 1050 32

    (remem­ber to change your set­tings if you used dif­fer­ent ones, such as the “1680”)
    Save the file (as hiber​nate.sh).

    Robert is your mother’s brother!! Hiber­nate at will.

  37. 37. Pascal
    Apr 04, 22:18

    Sean: bootmisc(.sh) is a script run during the boot process. It is not (re-)run whilst coming out of suspend/hibernation. I’ve not played with either (suspend/hibernation) so I’m not sure what script file to place what you’ve placed in bootmisc. You need to look into the script files located under /etc/hibernate and /etc/suspend.

    Sorry I can’t be of further assis­tance…

    …btw… Whoa! You’ve got suspend/hibernate working? Under which Ubuntu? What did you do? :)

  38. 38. Pascal
    Apr 04, 22:43

    Awesome! Did hiber­nate work out of the box though? :)

  39. 39. LolitochkaBC
    May 10, 18:20

    Ааану-ка ребятки голосуем!!!

    Принзавайтесь прокащники и владелььцы сайта klepas.org ))))

    ЧТО выбудетк делать этим летом?!

  40. 40. tomt
    May 14, 03:24

  41. 41. Pascal
    May 14, 08:08

    tomt: Nice, thanks for posting.

    This entry is now out of date, re that 915resolution needs only to be installed (ie. apt-​get install 915resolution) on the Insp­iron 6400 with the Intel GMA 945 for the cor­rrect res­o­lu­tion to be obtained. :)
    Thanks for linking though!

Post a comment

Please share your thoughts or add a note if I missed something.

Required fields are marked by an asterisk (*). Your e-mail address is never published nor shared. You can use common text formatting XHTML elements (e.g. a, acronym, blockquote, code, em, strong, …). If you’d like to directly respond and link to another comment, you can do that using the Twitter-style @reply (i.e., @Randy Bender: …).

*
*