Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Configuring a DELL Inspiron 1420

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
jaimesilva
Posts: 11
Joined: 2007-11-30 18:14
Location: Medellin Antioquia Colombia

Configuring a DELL Inspiron 1420

#1 Post by jaimesilva »

Here are my instructions on how to configure a DELL Inspiron 1420's hardware in Debian Lenny:

UPDATE: There are new instructions on how to configure this machine using kernel 2.6.24, look below at http://forums.debian.net/viewtopic.php?p=152297#152297. I suggest you read all the posts

I got a DELL Inspiron 1420 a couple weeks ago, not the one sold with Ubuntu but one of the models DELL is selling in latin-america, this one came with Vista Home Edition.

The first thing I did was to download the latest Debian netinstall CD, I ran the setup in Vista, rebooted and installed lenny in a new partition made by resising the NTFS partition used for Vista. Don't get me wrong I've been using Linux for about 12 years now but sadly as an electrical engineer who lives in Colombia (here the empire is still strong and many co-workers think Windows is the only choice) I still need Windows from time to time so that's why I can't wipe out the entire disk.

After getting lenny up and running I had to deal with a couple issues with the hardware so here is the log of the steps I followed to get everything running:

Code: Select all

Configuración del dell inspiron 1420:

sonido:
	crear /etc/modprobe.d/1420-sound y poner:
	options snd-hda-intel model=3stack
	
iwlwifi (nuevo driver de intel para el wifi):
	Esto solo se ha probado con kernel 2.6.22 debe funcionar con versiones
	mayores o hasta que se pueda crear el módulo con m-a
	desinstalar todos los paquetes que contengan ipw3945
	instalar iwlwifi-firmware
	descargar la ultima versión de iwlwifi de http://intellinuxwireless.org
	instalar linux-headers-2.6... y linux-source-2.6.?? para la versión del 
	kernel que este usando
	# cd /usr/src
	# tar xjf linux-source-2.6.??.tar.bz2
	# tar xzf iwlwifi-....tar.gz
	# ln -s /usr/src/linux-source-2.6.?? /lib/modules/$(uname -r)/source
	# cd iwlwifi...
	# make
	# make install
	# depmod -a
	# modprobe iwl3945
	Añadir iwl3945 a /etc/modules
	NOTA: Donde aparece ... se refiere a la versión del kernel que esta 
	usando (para averiguarlo use 'uname -r') o de iwlwifi que descargó.
	Todos los comandos se deben ejecutar como root

touchpad scroll:
	Si esta usando kernel menor a 2.6.24 hay que aplicar un parche
	al driver psmouse.ko (a partir de 2.6.24 se incluye el parche)
	Esto se viene de: 
	http://ubuntuforums.org/showthread.php?p=3132270#post3132270
	Suponiendo que descomprimió las fuentes del kernel en el paso anterior
	# cd /usr/src/linux-source-2.6.??/drivers/input/mouse
	# cp alps.c alps.c.old #<-- hacer respaldo
	# gedit alps.c
  	Ir a la linea 55, y añadir esto en la linea siguiente (sin comillas): 
	"{ { 0x73, 0x02, 0x50 }, 0x4f, 0x4f, ALPS_FW_BK_1 }, /* Dell Vostro 1400 */"
	Guardar el archivo (Ctrl-S)
	Reconstruir el driver:
	# make -C /lib/modules/`uname -r`/build M=`pwd`
	Guardar copia de los drivers originales:
	# cd /lib/modules/`uname -r`/kernel/drivers/input/mouse/
	# mkdir old
	# mv * old
	# tar cvvf  old.tar old/
	# rm -Rf old/
	Instalar los nuevos drivers:
	# cp /usr/src/linux-source-2.6.??/drivers/input/mouse/*.ko /lib/modules/`uname -r`/kernel/drivers/input/mouse/
	# depmod -a
	# modprobe -r psmouse
	# modprobe psmouse

webcam:
	# apt-get install module-assistant linux-uvc-source luvcview
	# m-a prepare
	# m-a a-i linux-uvc


video 3d:
	# aptitude install libgl1-mesa-dri
	Añadir lo siguiente a /etc/X11/xorg.conf:
	Section "Extensions"
        	Option "Composite" "enable"
	EndSection
		
Al reiniciar ya debe funcionar todo.

Como hacer funcionar compiz???
I know, it is in spanish but I think everyone can follow the commands. I just wanted to share the info.

If someone can't follow these instructions drop me a line.

And, please, if someone figures out how to make compiz work with the intel 965gm graphics card please share the info!

UPDATE 5-DEC-2007

To get sound working after hibernate. Create the file /etc/pm/sleep.d/49sound with this contents:

Code: Select all

#!/bin/bash

. /usr/lib/pm-utils/functions

function kill_sound_apps() {
	pidsnd=$(lsof | grep /dev/snd | awk '{ print $2 }')
	pidmixer=$(lsof | grep /dev/mixer | awk '{ print $2 }')
	piddsp=$(lsof | grep /dev/dsp | awk '{ print $2 }')
	kill $pidsnd $pidmixer $piddsp
}


case "$1" in
        hibernate|suspend)
                kill_sound_apps
		modprobe -r snd_hda_intel
                ;;
        thaw|resume)
                modprobe snd_hda_intel
                ;;
        *)
                ;;
esac

exit $?
And don't forget to make it executable:

Code: Select all

# chmod +x /etc/pm/sleep.d/49sound 
Does anyone knows how to make suspend work? The system locks when I try to suspend, only hibernate works.

I notice nobody has an answer for how to make compiz work :cry:
Last edited by jaimesilva on 2008-06-05 13:12, edited 2 times in total.
--
Jaime Alberto Silva

fedepazw
Posts: 2
Joined: 2008-01-06 11:59
Location: Buenos Aires, Argentina

Mi Xorg.conf

#2 Post by fedepazw »

Acá te paso mi xorg.conf, tal como me lo pediste:
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "latam"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection

Section "Device"
Identifier "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
Driver "intel"
BusID "PCI:0:2:0"
EndSection

Section "Monitor"
Identifier "Monitor genérico"
Option "DPMS"
HorizSync 30-70
VertRefresh 50-160
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
Monitor "Monitor genérico"
DefaultDepth 24
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection

Fijate que tengas instalado los siguientes archivos: masa-utils; libglu1-mesa-dev, libglu1-mesa, libgl1-mesa-glx, libgl1-mesa-dri, libgl1-mesa-dev,
Como te comenté en privado compiz arranca, los bordes también tanto GTK como emerald, pero cuando inicio un programa me queda el fondo en blanco como congelado, pero el cubo se ve y gira perfecto y los movimientos de las ventanas son "gelatinosos".

Para saber que es geexbox, es una distribución de linux que puede iniciarse live pero tambien puede instalarse y esta destinada a la reproducción multimedia: http://geexbox.org/en/index.html

User avatar
jaimesilva
Posts: 11
Joined: 2007-11-30 18:14
Location: Medellin Antioquia Colombia

Suspend is now working

#3 Post by jaimesilva »

:DGREAT NEWS! :D

A few days ago suspend started working. I'm using kernel 2.6.22-3-amd64 and my Debian Lenny system is up-to-date.

Still missing:

  • :cry: Composite window manager
    :cry: To get the internal (integrated) microphone working
--
Jaime Alberto Silva

User avatar
jaimesilva
Posts: 11
Joined: 2007-11-30 18:14
Location: Medellin Antioquia Colombia

compiz-fusion is working

#4 Post by jaimesilva »

:D COMPIZ-FUSION WORKS!!! :D

The detailed info (in spanish) is here: http://jaimealbertosilva.blogspot.com/2 ... -1420.html

I still have a little problem: I can't start Compiz after Metacity. If I run compiz inside a GNOME session the Metacity WM is killed and all I got is unmanaged windows, Compiz does not start.

Compiz must be started before Metacity so I use an ~/.Xsession script like this:

Code: Select all

fusion-icon &
gnome-session 
Does anyone have a clue about why I can't start Compiz after Metacity? (of course I am using the --replace option).
--
Jaime Alberto Silva

User avatar
jaimesilva
Posts: 11
Joined: 2007-11-30 18:14
Location: Medellin Antioquia Colombia

It is a lot easier now with kernel 2.6.24 and xorg 1:7.3+10

#5 Post by jaimesilva »

I liked this machine so much that I managed to get a new one: 3GB RAM, 2.0 GHz Centrino Core Duo Procesor, 160GB HD @ 7200RPM, high definition screen (1440x900px) and intenal Bluetooth. :D

First things first: I ripped out the Windows Vista sticker and then put in the latest beta of Lenny installer, this time I didn't keep the Windows partition, it only consumes disk space since I never used it in the original machine.

Then, just after install, I upgraded the kernel to 2.6.24. This kernel has iwlwifi prebuild and supports the touch pad's scroll so it saved me a lot of work. All I had to do was to install the iwlwifi-firmware package.

I still had to configure sound, webcam and 3D acceleration as mentioned, but those are the minor tasks (compared to iwlwifi and touchpad in 2.6.22).

There was a catch, xorg's default config is now plain, no option is activated and everything is autodetected so you don't have to add a lot of options in order to get 3D and composite working, all you have to do is install the mesa-dri package. BUT, the synaptics touchpad is not autodetected so I had pointer and all but no scroll, I had to add a section for the synaptics touchpad and also a ServerLayout section to the default xorg.conf file:

Code: Select all

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"latam"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
EndSection

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"auto-dev"
	Option		"HorizScrollDelta"	"50"
	Option		"SHMConfig"		"true"
EndSection

Section "Device"
	Identifier	"Configured Video Device"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
EndSection

Section "ServerLayout"
	Identifier  "Default Layout"
	Screen	    "Default Screen"
	InputDevice "Generic Keyboard"
	InputDevice "Synaptics Touchpad"
	InputDevice "Configured Mouse"
EndSection
And thats it! no need to add more options, the touchpad's scroll works fine and if you install gsynaptics you can configure it.

Compiz-fusion worked out of the box :D

I had noticed that the power management script that I posted was making the suspend/hibernate proces too too slow because of bad use of the lsof command, and that it is better to reload the sound driver after resume. So here is my new version of /etc/pm/sleep.d/49sound:

Code: Select all

#!/bin/bash

. /usr/lib/pm-utils/functions

function kill_sound_apps() {
   pids=$(lsof -t /dev/snd/* /dev/mixer* /dev/dsp*)
   if [ -n "$pids" ]; then
   	kill $pids
   fi
}


case "$1" in
        hibernate|suspend)
                ;;
        thaw|resume)
                /etc/init.d/alsa-utils stop
                kill_sound_apps
                sleep 2
                modprobe -r snd_hda_intel
                sleep 2
                modprobe snd_hda_intel
                /etc/init.d/alsa-utils start
                ;;
        *)
                ;;
esac

exit $?
--
Jaime Alberto Silva

User avatar
jaimesilva
Posts: 11
Joined: 2007-11-30 18:14
Location: Medellin Antioquia Colombia

The built-in mic is now working!

#6 Post by jaimesilva »

In order to make the integrated mic work All that must be done is change the snd-hda-intel options to:

Code: Select all

options snd-hda-intel model=dell-3stack
And follow the instructions in this blog: http://davestation.wordpress.com/2008/0 ... buntu-804/

En español: Para activar el microfóno incorporado del dell inspiron 1420: http://jaimealbertosilva.blogspot.com/2 ... ebian.html
--
Jaime Alberto Silva

wongdg
Posts: 2
Joined: 2008-09-08 10:54
Contact:

#7 Post by wongdg »

jaimesilva,

Great to see you have been contributing ideas to this thread even thought there's hardly any response so far. I am both a Debian user and a new owner of a Dell Inspiron 1420. I am also eager to put Debian on it but I will not hastily rush into doing that yet. So I am spending time to read up more and found your thread here.

My Inspiron 1420 comes in C2D T5850 2.16GHz, 3GB DDR2 667, 250GB SATA, TSST DVD 8x Writer, Conexant D330 v92 modem, Creative integrated webcam, SIGMATEL STAC 92xx C-Major HD audio etc

It is highly confusing that Dell let 1420 model to encompass a wide range of specs and let the same model code to run for long period of time.

It would be most appreciated if you could show your configs in English, thanks.

Regards,
Wilson

User avatar
jaimesilva
Posts: 11
Joined: 2007-11-30 18:14
Location: Medellin Antioquia Colombia

An update to the instructions

#8 Post by jaimesilva »

wongdg, your system should work fine with the instructions on this thread. There are some old instructions that are already included in Debian so it is easier now to get it running than when I started.

An update to the original instructions:

sound: You must create the file /etc/modprobe.d/1420-sound and in that file you must put the line:

Code: Select all

options snd-hda-intel model=dell-3stack
Wi-Fi: add iwl3945 to /etc/modules (the module comes with the newer kernels)

Touchpad: No need to compile anything anymore, just enable the synaptics driver in your xorg.conf as shown in previous post.

webcam: You still must follow the instructions in the original post, those are three easy non-spanish steps. You must remember to run those as root, every (or is it each) time you update your kernel.

As you can read in a previous post 3d works now out of the box, just use the xorg.conf in there.

And I think the mic instructions are clear enough.

Everything else works fine "out of the box".

So I suggest: If you're afraid, split your disk to create a new partition, install Debian and configure it as explained here. You'll see everything works fine.

Some time latter you will reformat and use those other partitions with Vista that are only wasting valuable space :wink:
--
Jaime Alberto Silva

LinuxReign
Posts: 2
Joined: 2008-09-26 18:22

Muy Bien!!!

#9 Post by LinuxReign »

Muchas gracias y muy utiles todas las indicaciones que se encuentran posteadas,

Saludos desde Panama

LinuxReign

User avatar
jaimesilva
Posts: 11
Joined: 2007-11-30 18:14
Location: Medellin Antioquia Colombia

Re: Muy Bien!!!

#10 Post by jaimesilva »

LinuxReign wrote:Muchas gracias y muy utiles todas las indicaciones que se encuentran posteadas,

Saludos desde Panama

LinuxReign
Con mucho gusto! :D
--
Jaime Alberto Silva

Post Reply