Debian on Dell Latitude D505

Update 23/08/2005 : Warning : I have experienced some strange crashes on this model, wich seem to be caused by a deffect of some kind related to the attachment holes for the anti-theft cables which are located on the sides of the laptop.

More specifically, I get poweroff problems when I lock an anti-theft cable on the front left side hole of the machine, which occur when I happen to touch the metallic parts of the lock with my metal watch’s wristband (the lock happens to be just at the right place under my wrist, when I’m typing on the keyboard : bad design decision for sure !). There must be some static charge that passes to the internal parts of the machine through the lock, causing a security safeguard poweroff of some kind. From the various calls to the hotline, I got the advice from Dell to connect the lock to the right side… but I still can’t tell what exact cause there is and is it’s really a good workaround. Dell is supposed to be working on the issue.


I’m collecting here some notes about the installation of Debian Sarge Etch on a Dell Latitude D505 laptop.

Apart from the above-mentioned hardware issue, the setup works fine with GNU/Linux, and more specifically Debian.

This page is a work in progress, so don’t expect a fully detailed howto, but more a collection of random notes that should be useful compared to your own findings.

Note that I’m now running etch on that machine (aka stable sooner or later).

References

I’ve used the following pages as references, so I won’t detail all steps here. You may refer to these for the details of the procedure.

Characteristics of this machine

The characteristics of this machine are available on Dell’s website.

The machine came without any installed OS.

There is a 2G partition already on the disk and a CD of FreeDOS comes along the machine (as well as a copy of the GNU GPL ;-) ). I the installed FreeDOS on this partition by booting off the CD. FreeDOS will be useful in case of need of upgrading the BIOS.

Debian Sarge (3.1) stable installation

I’ve installed it using the 2.6 kernel. At the boot prompt of the installer, choose 2.6 kernel :

boot: linux26

After the standard install of the stable core, additional steps are necessary, mainly concerning the display which is not well detected by default :

  • upgrade it to testing
  • Install of kernel 2.6.11-686
  • Ading apt sources “contrib” and “non-free”

Note that nowadays a ‘testing’ beta install CD may be available allowing direct install of testing instead of installation of stable and later upgrade to testing.

Hardware support

Now, the specificities of the hardware of this machine require :

  • Install 855resolution (or 915resolution in testing) :
    • Used to setup the 1400×1050 mode : 855resolution 3c 1400 1050 (apply these changes to the /etc/default/915resolution file)
    • After having installed and run it, read-edid is able to detect the correct modelines for X (see bellow).
    • You may then reconfigure XF86Config-4 (or xorg.conf in testing) (see bellow)

  • Installation of the ipw2200 module for the Wifi card :
    • Install ipw2200-source package
    • If necessary, compile it and install the associate binary package (from kernel 2.6.12 (?) up, the driver is included in the stock kernel image, no need of the following steps, then) :
# module-assistant prepare
# module-assistant a-i ipw2200

Note : since the time when I’ve succeeded doing that, the module has been updated in testing, and now, I get problems with it (compiled with GCC 4 whereas kernel was compiled with GCC 3, but all that can be overcome).

    • Install the firmware : follow instructions in /usr/share/doc/ipw2200-modules-2.6.11-1-686/README.firmware
    • Install of wireless-tools

  • Install powernowd to handle the Centrino/Pentium M processor speed control :
    • Add to /etc/modules :
speedstep_centrino
cpufreq_userspace
    • Install powernowd

  • Setup the order of the ethX interfaces :
    • Installation of ifrename
    • Configuration of /etc/iftab and /etc/network/interfaces for ifrename. On my setup : eth0 is not used, eth1 for the wired ethernet adapter, eth2 for the wifi one
    • blacklist eth1394 in hotplug for it not to use eth0

Configuration of the display.

You can configure xfree86 up to 1400×1050 on the “Intel Corp. 82852/855GM Integrated Graphics Device” video card, provided that you installed 855resolution*/*915resolution (see above).

See bellow the configuration of xfree86/xorg.

Note : 3D acceleration support in video card may not be perfect : I’ve experienced locked screensaver and need to hard-reboot the unresponsive machine… So I suggest you don’t enable DRI. That may be related to the fact that the machine has been suspended (< https://www.redhat.com/archives/fedora-list/2005-June/msg05058.html) ?

Configuration of /etc/X11/XF86Config-4 (/etc/X11/xorg.conf)

Here is an excerpt of the XF86Config-4 file for my Dell D505, which gives proper modelines for the best resolution.

Excerpt :

  Section "Device"
          Identifier      "Generic card"
          Driver          "i810"
          VideoRam        64000
  EndSection

  Section "Monitor"

          Identifier "SEC:5047"
          VendorName "SEC"
          ModelName "SEC:5047"

          Mode    "1400x1050"
     # vfreq 60.020Hz, hfreq 63.981kHz
                  DotClock        108.000000
                  HTimings        1400 1448 1560 1688
                  VTimings        1050 1051 1055 1066
                  Flags   "-HSync" "-VSync"

          EndMode
  EndSection

Touchpad support : You may install the xfree86-driver-synaptics to be able to use the touchpad. Attention to the settings, since it is an ALPS touchpad (see in the attached XF86Config-4 file).

Suspend to RAM

Note that this is no longer needed as hibernate is more or less working in etch on this model.

I somehow can suspend the system to RAM, which is usefull when running on battery. This would need to be written in more details, but something like a mix between those two setups should work :

Here is the /usr/local/sbin/suspend suspend to RAM script that I use. Note that in this script, the video_post invocation may no longer be necessary with recent Xorg i815 display driver.

Update 2005.10.06 : More details :

  • The hotswap tool can be used to switch between the CD/DVD drive and the battery in the modular bay.
  • Under Gnome, the volume Fn keys can be mapped to the shortcuts. Thanks to http://skaya.enix.org/wiki/DellLatitudeD610 :

The special keys to set the volume work ; the simplest way to enable them is to go to gnome Desktop Preferences -> Keyboard, and pretend that you have a inspiron8k keyboard. Then you can go to Desktop Preferences -> Keyboard Shortcuts, and in the sound section, set the Volume Up/Down/Mute shortcuts. The Shortcut column will display XF86Audio(something) when you press the special keys.

Update 2006/11/26 : I’ve updated the BIOS to A11, and suddenly the X display has become broken. I’ve managed to restore some usable config, but it’s not that good… so I’m not advising to update it.

19 Responses to Debian on Dell Latitude D505

  1. Pingback: WebLog Olivier Berger » New laptop : Dell Latitude D505

  2. ntg says:

    acpi support: Something i found from google: http://www.larsen-b.com/Article/99.html

  3. Concerning the last problem I’ve had (X display becoming broken), others have reported to me they had the same issue with BIOS > A9 too…

    What I did is to enable this option in the i810 driver section of the xorg.conf file :

    Option “MonitorLayout” “CRT,LFP”

    That way, the X session starts on the external video display (not connected, btw), which renders the screen black, and then I just switch the display to the laptop’s display with Fn+F8 … and tada, it works… note that it will require the same kind of cycling with Fn+F8 again after switching to concole / VT1 with Ctr+Alt+F1, etc.

    Note I’m running 1400×1050 with help from the 915resolution program which changes some of the VGA bits of some kind… maybe this is all linked ?

    Hope this helps.

  4. Saviq says:

    Yeah I’ve the same problem – but switching with Fn+F8 helped! Thank You so much!

  5. As suggested in this followup to an Ubuntu bug-report concerning display problems with same drivers (https://launchpad.net/ubuntu/+source/xserver-xorg-video-i810/+bug/67196/comments/13), it seems that one can increase the memory dedicated to video (UMA), from 1M to 8M.

    This is what I did, and it won’t solve the display mangling problem, but it seems at least not to be so bad from suspend to ram point of view… I’m then recommending to use that setup (UMA whatever, page 3) in the BIOS.

    Hope this helps.

    Best regards.

  6. I’ve also changed the video expansion parameter in the BIOS (having the boot Dell logo in full screen, and later the console) as well as deactivated the Modem in the BIOS.
    I’ve also set ‘Option “VBERestore” “true”‘ in /etc/X11/xorg.conf, and configured some bits in /etc/hibernate/common.conf like ‘Runi915resolution yes’ and ‘ChangeGrubMenu yes’, and set the resume=/dev/sda5 (my swap partition) for the kernel command-line in /boot/grub/menu.lst… and…

    Hibernate to disk seems to work… and also to ram, I think, although I need more testing in order to figure out if it works 100% of times (sometimes it resumes in a state where X display mangling cannot be restored with Fn+F8, since video switching with that key no longer works).

    I’m glad I now have an almost fully working suspend solution :-)

  7. Pingback: WebLog Olivier Berger » Suspend working at last on my Dell Latitude D505 with Debian etch

  8. Soki Akoko says:

    Hi
    was wondering if it will be possible for you to email me the drivers instalation for latitude D505 to my mail box.Mine got burnt in a fire accident.Hope to hear from you soon.

  9. N PERON says:

    I have just installed Etch on my laptop Dell Latitude D505.

    The X system appears not well configured.
    The graphic mode works. However, one problem
    is that there is a dirty dark stripe along the top of the screen.
    The other problem is that I cannot see the mouse pointer
    in the screen. I still can lighten some tiles and open them
    using the mouse although the mouse pointer is not visible.

    It used to work before with Sarge but I guess the X system
    was Xfree86 (the new system on Etch is X.org).

    How should be written the xorg.conf ?

    Thanks in advance

  10. Well, did you try and use the XF86Config-4 file provided here and seeing the diffs with what you get after “dpkg-reconfigure xserver-xorg” and choosing plausible settings : Intel i810, etc. ?

  11. N PERON says:

    I tried many changes from your XF86Config-4 without success. How does the xorg.conf differs from the XF86Config-4 ?

    The read-edit command does not work on my machine. How to install it ?

    Thanks in advance.

  12. N PERON says:

    My BIOS version was A10 (recently upgraded). I have downloaded back and installed version A09 following others advice. The X system is now working perfectly including the mouse pointer. As a conclusion, BIOS A10 seems incompatible with the i810 driver. It is safer to keep working with BIOS A09 for the moment.

  13. About read-edid, it’s the name of the package (apt-cache search read-edid)… the commands inside it are get-edid and parse-edid, I think… but anyway, it may not be needed anylonger nowadays.

    About the BIOS, yes, I suppose this should be fileable as a bug once Dell supports Ubuntu on its laptops… but anyway, it’s an old system… so I don’t expect much maintainance from their side :(

    Good to know that it worked for you.

  14. I’ve got pissed by this issue also, and also downgraded to A09 BIOS, from FreeDOS (it wouldn’t work from Windows XP).

    Now let’s see if this works better…

  15. It seems to work allright, although I experienced some lockups when X was starting… anyway, it doesn’t happen everytime…

    I’ll probably stick to A09 for giving this laptop to a collegue, now that my main machine is a D820.

  16. Marius says:

    I had the same problem with the display. I had BiosRev A08 first, upgraded to A11 and finally downgraded to A09. Everything works fine now.

  17. Marius says:

    I had the same problem with the display. I had BiosRev A08 first, upgraded to A11 and finally downgraded to A09. Everything works fine now. So: DELL D505 USERS: DO NOT UPGRADE YOUR BIOS TO A10/A11 UNLESS YOU HAVE A GOOD REASON TO DO SO.

  18. Steve says:

    Has anybody managed to get the TV-out via svideo cable to work on any Linux Distro? I am trying to setup the D505 laptop to run as a MythTV front end and have sofar been unable to get this to work.

  19. It seems most of these tweeks are no longer needed with lenny or squeeze now.

    Only problem with stock install/configuration then is the blanking when lid closed that doesn’t recover somehow.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>