Debian Sid On Dell xps 1330

Ho comperato un splendido dell Xps 1330, ovviamente ho installato debian sid ed ho configurato tutto per ottenere le stesse funzionalità di windows (ed oltre)

Cominciamo:

il mio hardware:

00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M GS (rev a1)
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
03:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
09:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express (rev 02)
0c:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)


PREPARATIVI:

Per prima cosa scaricatevi e masterizzate ovviamente una iso di debian. Io ho usato questa QUI

sudo apt-get install build-essential module-assistant make kernel-package


Ora comincio con il dirvi che ho praticamente fatto andare qualsiasi funzione.

COMINCIAMO:

Per il bluetooth date:

sudo apt-get install bluetooth bluez-audio bluez-utils gnome-bluetooth wvdial


Per navigare con il cellulare rendete il file /etc/wvdial.conf come il seguente:

[Dialer Defaults]
Modem = /dev/rfcomm0
ISDN = off
Modem Type = Analog Modem
Baud = 115200
Init = ATZ
Init2 = ATZ
Init3 = AT+cgdcont=1,"ip","web.omnitel.it"
Init4 =
Init5 =
Init6 =
Init7 =
Init8 =
Init9 =
Phone = *99#
Phone1 =
Phone2 =
Phone3 =
Phone4 =
Dial Prefix =
Dial Attempts = 1
Dial Command = ATM1L3DT
Ask Password = off
Password = mysecret
Username = username
Auto Reconnect = off
Abort on Busy = off
Carrier Check = on
Check Def Route = on
Abort on No Dialtone = off
Stupid Mode = off
Idle Seconds = 0
Auto DNS = on
;Minimize = on
;Dock = on


Basterà dare wvdial e invio in un terminale.

Per la videocamera e microfono incorporati date il seguente comando:
module-assistant a-i linux-uvc-source
sudo apt-get install luvcview uvccapture


ora caricate il modulo:
sudo modprobe uvcvideo

ed andate a selezionare nel mixer di volume :
Opzioni -- DigitalInputSource: DigitalMic

potete verificare il risulato con:
luvcview

Purtroppo supporta solo da v4l2, quindi molte applicazioni non potrete usarle, però vi ricordo che skype e ekiga lo dovrebbero supportare bene (almeno nei miei esperimenti)

Per i tasti multimediali editate con il vostro editor preferito il file /home/nomeutente/.Xmodmap e copiatevi al suo interno le seguneti righe:

keycode 130 = XF86HomePage
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 160 = XF86AudioMute
keycode 161 = XF86Calculator
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 178 = XF86WWW
keycode 180 = XF86Launch3
keycode 230 = XF86LaunchA
keycode 235 = XF86PowerOff
keycode 236 = XF86Mail
keycode 237 = XF86LaunchC


Ho poi installato totem in versione corretta :

sudo apt-get --purge remove totem-gstreamer
sudo apt-get install totem-xine totem-plugins

ed ecco che potrete usare il telecomando dopo aver riavviato la sessione ed importato il file xmodmap in gnome.

Per quanto riguarda il grafico in nvidia:

Abilitiamo i drivers proprietari e quindi il 3d:

module-assistant a-i nvidia-kernel-source
apt-get install nvidia-glx nvidia-settings

Creiamo una copia di backup del nostro xorg:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf-default

ora cancelliamo tutto nel nostro /etc/X11/xorg.conf ed inseriamo tutto il seguente:


##############################################
#
# Xorg Dual Head Xinerama by swipon
#
#
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Generic Keyboard" "CoreKeyboard"
InputDevice "TouchPad" "CorePointer"
InputDevice "Configured Mouse"
InputDevice "JoysticGamePad"
# Uncomment if you have a wacom tablet
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection

Section "ServerFlags"
Option "Xinerama" "1"
EndSection

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

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

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection

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

Section "InputDevice"
Identifier "JoysticGamePad"
Driver "joystick"
Option "Device" "/dev/input/js0"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Dell"
ModelName "LPL"
HorizSync 30.0 - 85.0
VertRefresh 56.0 - 145.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "AcerView"
HorizSync 31.0 - 85.0
VertRefresh 56.0 - 145.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8400M GS"
BusID "PCI:1:0:0"
Option "NvAGP" "1"
Option "VBERestore" "true"
Option "backingstore" "false"
Option "NoLogo" "true"
Option "OnDemandVBlankInterrupts" "True"
Screen 0
EndSection

Section "Device"
Identifier "Videocard1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8400M GS"
BusID "PCI:1:0:0"
Option "NvAGP" "1"
Option "VBERestore" "true"
Option "backingstore" "false"
Option "OnDemandVBlankInterrupts" "True"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "DFP: 1280x800 +0+0; DFP: 1024x768 +0+0; DFP: 800x600 +0+0; DFP: 640x480 +0+0"
EndSection

Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "CRT: 1024x768 +0+0; CRT: 800x600 +0+0; CRT: 640x480 +0+0"
EndSection
############################################


Diamo il comando

sudo echo "nvidia" >> /etc/modules


ed il 3d + dualhead è a posto.

Per la wifi, di default viene montata iwl4965 http://intellinuxwireless.org/?p=iwlwifi
installate il firmware wifi, il modulo dovrebbe essere:
sudo apt-get install firmware-iwlwifi
cd /usr/src
wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-1.2.25.tgz
tar xvfz
iwlwifi-1.2.25.tgz
cd iwlwifi-xxxxxx
./configure
make
make install
Oppure se installate una scheda madwifi come ho fatto io basterà dare:
sudo module-assistant a-i madwifi-source
Siamo ora pronti per configurare suspend e hibernate:

sudo apt-get install hibernate pm-utils
editate il file
/etc/hibernate/blacklisted-modules modificando la riga:

nvidia


con

#nvidia


Ora andate a verificare il vostro /etc/default/acpi-support deve essere come segue:

USE_HIBERNATE_PACKAGE=false
ACPI_SLEEP=true
ACPI_HIBERNATE=true
ACPI_SLEEP_MODE=mem
MODULES=""
MODULES_WHITELIST=""
SAVE_VBE_STATE=false
VBESTATE=/var/lib/acpi-support/vbestate
POST_VIDEO=false
# SAVE_VIDEO_PCI_STATE=true
USE_DPMS=true
# DOUBLE_CONSOLE_SWITCH=true
HIBERNATE_MODE=shutdown
LOCK_SCREEN=true
STOP_SERVICES=""
RESTART_IRDA=false
SKIP_INTERFACES="dummy qemu"


Per quanto riguarda il risparmio energetico Vi consiglio powertop, ma comunque in realtà bastano pochi passaggi:

sudo apt-get install cpufreqd cpufrequtils


Aggiungete al file /etc/rc.local prima di exit0 le seguenti linee:

sleep 2
echo "Setting Up Power"
hdparm -B 254 /dev/sda >> /dev/null
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo 5 > /sys/bus/pci/drivers/iwl3945/0000:0b:00.0/power_level
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings
for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 1 > $i; done
echo 10 > /sys/module/snd_hda_intel/parameters/power_save
ethtool -s eth0 autoneg off speed 100
ethtool -s eth0 wol d
hal-disable-polling --device /dev/cdrom


Come software complementare utilizzo:

desktop manager - gnome (+ compiz-fusion)
masterizzare - k3b
grafica - gimp
office - openoffice
visio - kivio
ripping DVD - acidrip
ripping CD - grip
3dstudiomax - cinelerra
import Dv Film - kino
ssh manager - putty
vnc/terminal server - tsclient



Ho successivamente installato (purtroppo per lavoro) wine e skype per poter usare gli eseguibili windows in tranquillità con

sudo apt-get install wine wine-utils wine-bin libwine-esd libwine-alsa libwine-oss libwine-print libwine-sane libwine-gl


e scaricando skype2.0 for linux da QUI

Ho poi installato come tutti i plugin flash vari e java jdk6+netbeans con apt:

sudo apt-get install sun-java6-bin sun-java6-jdk netbeans-ide
ed ora il mio file /etc/apt/sources.list

###########################################################
# deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot i386 CD Binary-1 20080421-10:15]/ lenny main
#
## Default
deb http://mi.mirror.garr.it/mirrors/debian/ sid main non-free contrib
deb-src http://mi.mirror.garr.it/mirrors/debian/ sid main non-free contrib
#
## Experimental
deb http://ftp.de.debian.org/debian experimental main
#
## Multimedia (attenzione se usate vlc)
#deb http://www.debian-multimedia.org sid main
#deb-src http://www.debian-multimedia.org sid main
## Multimedia Experimental
#deb http://www.debian-multimedia.org experimental main
#
## Widgets
#deb http://apt.wxwidgets.org/ etch-wx main
#deb-src http://apt.wxwidgets.org/ etch-wx main
#
## Amule Adunanza
#deb http://amuleaducvs.altervista.org/latest/ binary/
#
##GeexBox uShare UPnP media server
#deb http://www.geexbox.org/debian/ unstable main
#
## Clamav
deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free
#
## Cinelerra
#deb http://www.kiberpipa.org/~gandalf/ubuntu/sid/cinelerra/i686/ ./
#
## Google software repository
deb http://dl.google.com/linux/deb/ stable non-free
#
## OracleXe
#deb http://oss.oracle.com/debian unstable main non-free
########################################################


NOTA: dell ha disposto un repository ufficiale per poter trovare patch aggiornate ecc...

http://linux.dell.com/files/

Ciao a tutti, ora torno a godermi il mio portatile!
Swipon

3 commenti:

belfigor ha detto...

Bel tutorial, preciso e dettagliato. Continua così! ;)

Anonimo ha detto...

Hi Luca! first of all, great tutorial!!

What about the wifi? Have got any problems with it? Have you tested wlan?

0c:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

thanks! good job!

swipon ha detto...

thanks! I ha added the section for the wifi, there was found no problems in the configuration of iwlwifi and madwifi.
I had tested the installation with 2 miniwifi and it works very well (1 in slot umts card).
Bye
swipon.