Cucinando un po’ il mio hardware

Io ho sempre sostenuto che su internet si trova di tutto. Dalle istruzioni per fabbricare bombe a quelle per fare la maglia. Ma soprattutto, si trova un sacco di roba porno. Ma ancora di più, per un vero nerd, si trovano trucchi per sistemare il proprio computer. In maniere davvero inaspettate.

E ieri ho raggiunto livelli altissimi di nerdosità.

Nessun sa, o meglio solo pochi, che a gennaio, poco dopo le feste, il mio fidato Dell inspiron 9400 ha rischiato di lasciarmi per sempre. Ma andiamo con ordine. Ho la malsana abitudine di lasciare acceso il computer per giorni interi, a compilare o magari a scaricare le ultime distribuzioni di Linux uscite. Una bella mattina, era forse il 7 di gennaio, muovo il mouse per ravvivare lo schermo e mi trovo di fronte una strana situazione, un freeze anomalo in quanto il mouse funzionava (il cursore si muoveva) ma lo schermo era pieno di artefatti e puntini verdi e inoltre nessuna applicazione sembrava rispondere. Mah, ho pensato, molto strano. Linux *di solito* non fa di questi scherzi. Ho spento il portatile e sono andato a lavorare. La sera, rientrato, vado per accendere nuovamente il mio fidato Dell e, sorpresa, il post iniziale del BIOS è pieno di artefatti e puntino. Cerco il CD di diagnostica, temendo il peggio, lancio il test della memoria della scheda video (lo temevo…) e in effetti avevo ragione: il test fallisce e sembra che la memoria sia andata. Tragedia.

Cerco su internet e, sapendo che la scheda non è integrata ma collegata tramite un bus tipo pci-express, vedo se è possibile comprarla. Su ebay, in effetti, si trovano a cifre non modeste ma comunque abbordabili e ne ordino una con doppio dissipatore (facilmente installabile con minime modifiche allo chassis). Dopo 15 giorni mi arriva, la monto, e il computer torna a vivere. Ma solo fino a ieri mattina, 3 marzo 2011, quando dopo una notte di compilazione, stesso freeze. No, penso, non di nuovo, non con la scheda nuova (in realtà  ricondizionata). Disperato, nel pomeriggio ottengo una risposta dal venditore che mi invita a rispedirla (GRATIS) in Inghilterra per ottenere la sostituzione della scheda difettata. Tuttavia sono deluso e amareggiato. Giro tutte le catene di elettronica di Trento alla ricerca di un computer, di un notebook, che possa sostituire il mio povero 9400, ma non ne trovo all’altezza.

E qui apro una lunga parentesi. Dopo il mio tour tra Mediaworld e due sedi di Trony-Elettrocasa devo tristemente trarre due amare conclusioni:

  1. Era dal 1997 che non cercavo di parlare con un commesso di un negozio che vende materiale informatico e mi ero dimenticato quanto incompetenti siano, in genere.
  2. Il tizio del Trony, prima di cagare me, si è intrattenuto con un altro ragazzo, probabilmente ingegnere, che nonostante fosse chiaro che capisse di avere di fronte un cerebroleso, era molto cortese. Cercava un portatile che ne sostituisse uno che nel frattempo era vecchio.
    “Uso principalmente Autocad”, dice “quindi la scheda grafica, sostanzialmente, basta che ci sia. Sul mio scassone vecchio va benissimo…”
    Il commesso, in tutta risposta, “Ah, se ti basta”, sogghignando come se avesse di fronte uno che non capisce. E gli mostra dei portatili. Smetto di farmi i cazzi del tipo e aspetto il mio turno.
    Quando finalmente è la mia volta chiedo “Scusa, ma firewire non ce l’ha proprio nessuno?” E lui, colpito e un po’ schifato “No, ma non si usa più!”. E ‘sti gran cazzi! “Ma a me serve!” rispondo. “Eh…”. Vabbè, non è colpa sua, volendo. Allora, però, chiedo se la porta per l’installazione di espansioni PC Card ce l’avesse qualcuno. Mi guarda come fossi un alieno, allora cerco io e gli mostro un Sony che l’aveva. Lui mi guarda ancora più stranito e mi dice “Ma questo è un lettore di schede di memoria!”. A quel punto sono io che lo guardo male e gli dico “No. Direi di no. Comunque ti ringrazio. Nessuno di questi portatili fa al caso mio.” E me ne sono andato, triste al Mediaworld, dove il top era il tizio dell’Apple che descriveva iWork vestito proprio come Stefano Lavoretti.

  3. I notebook attuali sono scomodi. Possibile che mettano TUTTE LE CAZZO DI PORTE SUI LATI? Il mio dellino ha tutto dietro e ai lati solo pochi connettori. Che cazzo ci fa la rete e tre USB e l’HDMI e la VGA e l’eSATA e ogni altra cagata sui lati? E’ scomodo, cazzo!

Chiusa parentesi.

Allora, rattristato dal mio tour accendo il vecchio ma perfettamente funzionante computer della mia stellina e cerco qualche info sulla mia scheda video. Casualmente mi imbatto in uno che parla della cottura delle schede. Cottura? What are you fucking saying? Leggo leggo leggo e scopro che, messa in forno a 200° centigradi per 10 minuti, forse ci sono speranze. Non sono troppo fiducioso, ma che ho da perdere? Prendo la scheda originale, non quella che ancora è in garanzia, la smonto, tolgo il dissipatore, la piazzo in forno pre-riscaltato appoggiandola, sorretta da quattro palline di stagnola, su una teglia. Attendo 10 minuti, deliziato da una puzza tremenda in tutta la casa (fortuna che le ragazze sono fuori qualche giorno!). La sforno, la metto a raffreddare come le torte che piacciono all’orso Yogi, mi guardo un episodio di BattleStar Galactica e attendo. Alle 23,20 prendo la scheda, ormai fredda, la monto e, prima di ricomporre il computer, lo accendo ancora sezionato e lancio il test della memoria video. Già  all’accensione, nessun artefatto. E il test passa senza problemi.

Rimonto il computer (ma oggi l’ho poi smontato per mettere un po’ di pasta termo-conduttiva nuova tra GPU e dissipatore) e lo uso. Mitico, funziona. Nel frattempo aggiorno il BIOS che DELL ha rilasciato proprio per evitare di friggere le schede video e ho un computer nuovamente funzionante e che, al confronto di quelli che ho visto in negozio, pur avendo 4 anni, è ancora un’ottima macchina.

Gentoo Linux on my DELL Inspiron 9400 – 5th part

Ok, after a while let’s go back posting something about my Dell Inspiron 9400 configuration. Lately, in fact, I managed to properly configure the wireless card inside the laptop.

Let’s start with the hardware found inside the computer with an excerpt of lshw:

*-network
description: Wireless interface
product: PRO/Wireless 3945ABG Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:0c:00.0
logical name: eth1
version: 02
serial: 00:19:d2:ae:a7:ff
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ipw3945 driverversion=1.2.0dmpr firmware=14.2 1:0 () ip=192.168.1.3 latency=0 link=yes module=ipw3945 multicast=yes wireless=IEEE 802.11g

Looks complicated, anyway easier said, lspci gives:


Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)

So, looking around the net I found that the proper driver must for gentoo is not built in the kernel, but must be emerged separately. Lucky enough, it’s in the portage, so no pain at all in compiling it. The packages needed are:


net-wireless/ipw3945 (Driver for the Intel PRO/Wireless 3945ABG miniPCI express adapter)
net-wireless/ipw3945-ucode (Microcode for the Intel PRO/Wireless 3945ABG miniPCI express adapter)
net-wireless/ipw3945d (Regulatory daemon for the Intel PRO/Wireless 3945ABG miniPCI express adapter)

After emerging this packages, you can easily turn on the wireless connection using the “Fn+F2” key shortcut. The module gets loaded automatically and deamon starts.

In order to use the wireless connection, you must also install wpa_suppliacant (package is net-wireless/wpa_supplicant) and configure it properly.

In order to use it, for example, with Telecom Italia “Alice W-Gate” router modem, I configured my /etc/wpa_supplicant/wpa_supplicant.conf in the following way:


ctrl_interface=/var/run/wpa_supplicant
network={
key_mgmt=NONE
priority=-9999999
}
network={
ssid="Alice-my alice ssid number"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
psk="my passkey"
priority=2
}

In this way, as soon as I switch on the wireless connection, I get online!

Easy, isn’t it? Once again, Dell did a great job in putting together a nice laptop with standard compliant parts.

Mitakuye Oyasin!

Gentoo Linux on my DELL Inspiron 9400 – 4th part

Some more sparse details about how I configured my laptop with Gentoo.

Multimedia keys on the laptop body

I used lineak to configure the multimedia keyboard in front of my Dell 9400.

This is my /etc/lineak/lineak.conf.

# Global settings
KeyboardType = DELLI-9200
CdromDevice = /dev/sr0
MixerDevice = /dev/mixer
# Use the xosd display plugin.
Display_plugin = xosd
Display_font = -bitstream-charter-black-r-normal-*-*-240-*-*-p-*-iso8859-1
Display_color = 0aff00
Display_timeout = 3
Display_pos = bottom
Display_align = center
Display_hoffset = 0
Display_voffset = 50
Display_soffset = 1

# Specific keys of your keyboard
Mute = “EAK_MUTE”
VolumeDown = “EAK_VOLDOWN(2)”
VolumeUp = “EAK_VOLUP(2)”
Play = “AMAROK_PLAY”
Pause = “AMAROK_PAUSE”
Play|Pause = “AMAROK_PLAYPAUSE”
Stop = “AMAROK_STOP”
Previous = “AMAROK_BACK”
Next = “AMAROK_FORWARD”

# end lineakd.conf

What does this configuration do for me? When I press “Play” on the front multimedia keyboard, Amarok starts and I can control everything connected with it through the multimedia keys. I even get the OSD information about the volume. Really useful and well integrated.

There is just a little problem: when I have some menu active on the desktop, lineak is not able to catch the multimedia keys event.

By the way, also the multimedia “Fn” activated functions on the main keyboard are working. Still no use for the “eject” and I did not try the external display switch.

The MediaDirect key

Bad news on my side. I’ve overwritten the MBR of the hard disk, thus loosing the MediaDirect function. I read on some forums the best idea would have been to install grub on the Linux partition instead of putting it on the MBR, keeping it in the original form and being able to use it to boot another partition. Too bad I did not know it and i did not backup the old MBR. Shit. 🙂 I would have tried to install some kind of Media Center distro on the partition with MediaDirect to have a fast multimedia OS… but I suppose it’s already too late.

Enough for today! 🙂

Mitakuye Oyasin!

Gentoo Linux on my DELL Inspiron 9400 – 3rd part (Diverses)

Ok, right now my new laptop works smooth and sweet with Gentoo Linux. I configured everything and I tested almost every single hardware piece. As before, I just miss to test the internal modem (no analog line here to try how it works), I have to check the FireWire IEEE1345 port, as I am too lazy to connect the DV camera and I never tried the 3 video output ports (VGA, DVI and S-Video).

(this is a long post!)
Continue reading Gentoo Linux on my DELL Inspiron 9400 – 3rd part (Diverses)

Gentoo Linux on my DELL Inspiron 9400 – 2nd part

Ok, second part of my description on how I got a (almost) fully working Gentoo Box out of my new DELL Inspiron.

/etc/make.conf

After partitioning and doing the first, trivial procedure of installing the portage and the stage3 for starting the true process of Gentoo installation, I set up the compile options and all the stuff in /etc/make.conf.


CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
ACCEPT_KEYWORDS="~x86"
USE="X a52 aac aalib acpi alsa arts avi -beagle berkdb bitmap-fonts bluetooth cairo cdr cli crypt cups dbus dlloader dri dv dvb dvd dvdr eds elibc_glibc emboss encode esd exif fam firefox ffmpeg foomatic fortran gdbm gif gnome gpm gphoto2 gstreamer gtk gtk2 hal imlib ieee1394 input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux ldap libedit libg++ libwww lirc mad mikmod mmx mmxext mp3 mpeg ncurses nls nptl nptlonly nvidia ogg opengl oss pam pcre pdflib perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session slang spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l2 vorbis win32codecs wireless X x86 xml xml2 xorg xosd xv xvid zlib"
LINGUAS="it en"
FEATURES=""
VIDEO_CARDS="nvidia"
INPUT_DEVICES="keyboard mouse"

I should have configured also CCACHE, as my friend Morkai pointed out, but up to now I am too lazy to do it… so, I’ll do it for sure, but later 🙂

Kernel config

Easy done, this is my .config file for kernel version 2.6.20-gentoo-r5. I have support for a lot of the stuff on the laptop, except, right now, bluetooth and wireless, which I did not yet configure.

Enough for today. I need to sleep! 🙂

Mitakuye Oyasin!