HARDWARE Dell XPS M1330

From Gentoo Linux Wiki

(Redirected from Dell XPS M1330)
Jump to: navigation, search

Contents

[edit] Partitioning for Gentoo + Vista + MediaDirect triple boot

This machine comes with Vista and Dell MediaDirect. MediaDirect allows it to double as a portable CD/DVD player. Just press the Home button, insert a disk, grab the remote control, sit back and enjoy. Sometimes that's really all we want to do, so we'd like to keep this feature.

A look at the factory partitioning however tells us something's got to give:

       FAT16                    70MB    Dell Utility
       NTFS                     10GB    Recovery
       NTFS                    135GB    Vista
       extended
               unallocated       1MB    unallocated
               FAT32           2.5GB    Dell MediaDirect

(See also http://www.goodells.net/dellrestore/vista.htm)

The Recovery partition is nothing but a mothballed image serving no useful purpose, just hogging 10 GB of disk space—the obvious candidate to go.

The easiest thing to do is start from scratch, and create a smaller partition for Vista to start with. (This is probably also faster as shrinking a 135GB Vista partition takes very long. In addition, Vista will not boot after having been shrunk, so you would need to repair it using the Vista reinstallation disk, and that might take even longer.)

[edit] What you will need

[edit] Step-by-step instructions

  1. Boot off the GParted live CD, and verify that you have the same or similar configuration, just in case...
  2. Boot off the Dell MediaDirect reinstallation disk. It will ask you whether you want all available disk space for Vista, or you want to specify a smaller partition for it. Select the latter, and specify, say, 30 GB.
  3. Reinstall Vista.
  4. Boot Vista, and reinstall the Dell drivers.
  5. While still in Vista, insert the Dell MediaDirect reinstallation disk, and reinstall it.
  6. Boot off the GParted live CD, and you will see something like this:
  7.        FAT16                    47MB    Dell Utility
           NTFS                     30GB    Vista 
           extended
                   unknown         117GB
                   FAT32             2GB    Dell MediaDirect
    
  8. Shrink the extended partition by 100MB to make room for the Linux boot partition.
  9. Create a 100MB primary partition in the place you just freed up, and format it as Linux boot.
  10. In the unallocated space inside the extended partition create a swap partition, a Linux root partition and whatever other partitions you wish. You may want to create a FAT32 one that will be writable by Linux as well as Vista.

Just a note.... Vista can shrink its own disk and you might try that before doing this hassle. Open Disk manager and you can shrink the disk

NB Dell media direct is bound to the little "house" button near power button.
If the media direct partition is still in your disk it should screw up your partition table once you boot your notebook with the House button.
One way to solve the problem if you don't need media direct, is doing a low format to the drive, to do it follow the instructions on the link.
This is a low format which will write zeros on all your disk, erasing all things.
After this you can reformat your disk with partitions for vista and  gentoo, avoiding installation of Media Direct.

This is a thread on ubuntu forum about this thing,with instruction on how to recover files if Media Direct screwed up your partitions table and how to delete it, read it should help!

[edit] Installing Gentoo

As the Broadcom NetLink BCM5906M Ethernet controller is not supported by the version of the tg3 (Tigon3) driver that's on Gentoo Installation CD 2007.0 (only supported since kernel 2.6.20), you need to get the Installer LiveCD for a networkless installation. X won't work out of the box, so use installer-dialog, or edit the xorg.conf to use the vesa driver instead of the auto-detected nv, start X with startx, and then use a terminal to start installer-gtk.

If you want to perform a network installation, you can use any decent Gentoo-based LiveCD with a relatively new kernel (that is, 2.6.20 or newer). I used iloog. — Aggelos Orfanakos 03:39, 18 December 2007 (UTC)

[edit] Hardware

[edit] Networking

[edit] Wired

Get the latest stable kernel from http://www.kernel.org. Configure it to enable Broadcom Tigon 3 support for the Broadcom NetLink BCM5906M Ethernet controller, install it and reboot.

Again, you don't need to do this if you are performing a network installation using a Gentoo-based LiveCD with a kernel that supports the Ethernet controller. — Aggelos Orfanakos 04:59, 18 December 2007 (UTC)

The driver is listed in the Device DriversNetwork device supportEthernet (1000 Mbit) section of the kernel even though the nic in the laptop only goes 100 Mbit.

With the wired network connection now working, you can emerge your system. The emerge-d kernel, too, will already support BCM5906M.

[edit] Wireless

[edit] Intel Next-Gen Wireless-N
  1. Select NetworkingWirelessGeneric IEEE 802.11 Networking stack (mac80211) to be built as a module. (That's CONFIG_MAC80211=m in /usr/src/linux/.config)
  2. emerge sys-apps/pciutils (for lspci)
  3. lspci | grep -i wireless | grep --color '3945\|4965' to determine your wireless chipset.
    • For ipw3945, issue echo "net-wireless/iwlwifi ipw3945" >> /etc/portage/package.use
    • For ipw4965, issue echo "net-wireless/iwlwifi ipw4965" >> /etc/portage/package.use
  4. emerge net-wireless/iwlwifi (you may need to unmask it, as well as iwlwifi3945-ucode or iwlwifi4965-ucode in /etc/portage/package.keywords and /etc/portage/package.unmask)
    Only the ucode emerge needed with 2.6.24-gentoo-r3 as iwlwifi driver already in kernel
  5. emerge net-wireless/wireless-tools (for iwconfig, iwlist etc.)
  6. Optional: emerge net-misc/dhcpcd (for dhclient)
  7. modprobe iwl3945 or modprobe iwl4965 (depending on your wireless chipset)
  8. Switch on the wireless button. :-)
  9. Check if it works:
    1. ifconfig wlan0 up
    2. ifconfig wlan0 should list wlan0 with its parameters.
    3. iwlist wlan0 scan will list access points if any are found.
  10. Create a symlink in /etc/init.d: ln -s net.lo net.wlan0
  11. Connect: /etc/init.d/net.wlan0 start


Note:
  • If you get a kernel panic while booting with the wireless switched on, you may want to prevent udev from starting wlan0 as a "device-initiated service" by setting RC_PLUG_SERVICES="!net.wlan0" in /etc/conf.d/rc.
  • The wireless LED does not work with the iwlwifi drivers yet.
  • For a deep coverage of ipw3945, see HARDWARE ipw3945.

[edit] Graphics

[edit] nVIDIA 8400M GS

emerge nvidia-drivers At the time of writing this, one gets version 100.14.09. Then edit your xorg.conf as described in Chapter 6B of /usr/share/doc/nvidia-drivers-100.14.09/README.bz2, or generate one with nvidia-xconfig. With an m1330 with geforce 8400m, this is the xorg.conf file I used with compiz-fusion, including a few options to fix/optimize some problems with compositing managers and nvidia:

   Section "Screen"
       Identifier     "Screen0"
       Device         "Videocard0"
       Monitor        "Monitor0"
       DefaultDepth    24
       Option         "metamodes" "1280x800 +0+0; 800x600 +0+0; 640x480 +0+0"
       Option         "RenderAccel" "True"
       Option         "NoLogo" "True"
       Option         "AddARGBGLXVisuals" "True"
       Option         "AllowGLXWithComposite" "True"
       Option         "TripleBuffer" "True"
       Option         "NvAGP" "0"
       Option         "DamageEvents" "True"
       Option         "BackingStore" "True" 
       # If you use render events, be sure to boot with the idle=poll option
       #Option "UseEvents" "True"
       SubSection     "Display"
           Depth       24
           Modes      "1280x1024" "1024x768" "800x600" "640x480"
       EndSubSection
   EndSection
   Section "Extensions"
       Option "DAMAGE"    "Enable"
       Option "Composite" "True"
       Option "RENDER"    "Enable"
   EndSection

[edit] Intel 965GM

For the Intel 965GM integrated graphics card, set VIDEO_CARDS="i810" in your make.conf before emerging xorg-x11. The default 'Xorg -configure' works to generate a good xorg.conf file.

[edit] Monitor and lid

It's possible to have the monitor turn off/on automatically when the lid closes/opens. For more information, see HOWTO Automatically turn off your monitor.

[edit] Integrated WebCam

emerge linux-uvc and then issue modprobe uvcvideo.

emerge luvcview to be able to take photos and record videos with luvcview (you may need to unmask it first).

[edit] Sound

[edit] Intel Corporation HD Audio Controller

The driver must be patched in linux-2.6.22-gentoo-r5. As it's a known bug for which there's already a patch, the fixed version should come out soon (works without patch in 2.6.24-r3), but we don't want to wait in silence. Therefore:

  1. Get the patch: wget http://intr.overt.org/m1330-files/alsa-stac.diff
  2. Apply it in /usr/src/linux-2.6.22-gentoo-r5/sound/pci/hda: patch patch_sigmatel.c alsa-stac.diff
  3. Compile Device DriversSoundAdvanced Linux Sound ArchitecturePCI devicesIntel HD Audio as a module. (Also select Device DriversSoundSound card support and Device DriversSoundAdvanced Linux Sound ArchitectureAdvanced Linux Sound Architecture).
  4. Load the driver: modprobe snd_hda_intel model=5stack
  5. Configure it: alsaconf (This will automatically detect, configure and start everything for you. No need to tweak anything.)
  6. NOTE: If you installed gnome-light, be sure to emerge the necessary gnome sound controls.
  7. NOTE 2: With a more recent kernel (I use 2.6.23-kamikaze4) the steps 1,2,3 and 5 are unnecesary. Just be sure tu unmute all the channels with alsamixer (press 'm' on each one to toggle mute status) and then save changes with alsactl store.

[edit] BlueTooth

The devices associated with the Dell 355 BlueTooth adapter in this laptop are viewable from the lsusb command:

   Bus 003 Device 013: ID 0a5c:4503 Broadcom Corp. 
   Bus 003 Device 012: ID 0a5c:4502 Broadcom Corp. 
   Bus 003 Device 011: ID 413c:8126 Dell Computer Corp. 
   Bus 003 Device 010: ID 0a5c:4500 Broadcom Corp. 

You will not see any of these if the wireless switch is set up to turn BlueTooth off and the switch is off.

If you previously disabled bluetooth in Windows and the wireless switch is turned on, the bluetooth light is not lighting up, you do not see "Bus 003 Device 011: ID 413c:8126 Dell Computer Corp." in your lsusb output and you see the three "Broadcom Corp." lines, you may have to boot into windows to enable bluetooth using the bluetooth icon in the system tray.

Technical notes: The Dell 355 Bluetooth adapter in this laptop is a Broadcom 2045B2 and uses the hci_usb driver.

[edit] Useful links


Note: This article reflects a work in progress. Please contribute, especially if your hardware configuration is different from the one described here.


This article is still a Stub. You can help Gentoo-Wiki by expanding it.

Personal tools