Debian 6.0.6 on HP8470p

NOTE: updated in post Debian 7.1.0 on HP8470p.


I've recently bought a new PC. I decided to make dualboot with Windows 7 and Debian 6.

I'm very new to linux, but maybe this can help to somebody. I'm describing here steps I took for linux installation (after windows one) it has been no trivial for me and I still have not completed installation process (it is not my main computer, i'm still using the old one).



*** Solved problems:

Dual-boot and Partitioning

First I tried to launch installer from windows, then it said "unable to find system partition, assuming it is the same boot partition C:". However, installer started, reboot PC and installation began.

There are four primary partitions:

SYSTEM (win7 boot)
WIN7 itself
HP_RECOVERY
HP_TOOLS (diagnostic tool HP UEFI Support Environment)

My first try was to reduce WIN7 partition from windows (by first disabling system restore, hibernation and virtual memory). But due to the existence of 4 primary pertitions installer didn't let me (or i didn't know how to do it); free space was "unusable".

So, I decided to remove all partitions because I have recovery disks. I used a CD GParted-live. For windows and after installing all drivers, I installed recommended software except HP UEFI Support Environment that needs a FAT32 additional partition for diagnostics.

I re-launch debian installation and I was able to make partitions for linux:

/ (92GB primary bootable ext3)
swap (4GB)

/ partition is primary because if not, though GRUB will detect windows, it wouldn't allow to start it (nor debian).

I made it primary and Debian starts ok. But installation hide windows 7 option in grub menu, so I start debian and, as root, I execute

update-grub

Sound

Sound icon had a red cross. When going to Preferences > Sound, the next error appears: "No se han encontrado complementos o dispositivos control de volumen de GStreamer." ("no volume control gstreamer plugins and or devices found")

And next commands showed some problems:

root@host:/home/user# dpkg-reconfigure alsa-base
root@host:/home/user# aplay -l
aplay: device_list:235: no soundcards found...
root@host:/home/user# alsaconf
bash: alsaconf: no se encontró la orden
root@host:/home/user# lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation Device 1e20 (rev 04)

so, the sound card is identified

root@host:/home/user# cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.21 emulation code)
Kernel: Linux host 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
--- no soundcards ---

Audio devices: NOT ENABLED IN CONFIG

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers: NOT ENABLED IN CONFIG

Googling I found the solution that worked for me:
References:
http://www.rafalinux.com/?p=673
http://www.alsa-project.org (Advanced Linux Sound Architecture)
http://www.alsa-project.org/main/index.php/Download
http://mirrors.zerg.biz/alsa/

I had to compile ALSA driver:

First installed some packages needed for ALSA compiling: module-assistant (tool to make module package creation easier: m-a ...). I change linux-headers-2.6.32-5-486 with linux-headers-2.6.32-5-686 following what my system says (Applications > System tools > Syste monitor).

apt-get update
apt-get install xmlto linux-headers-2.6.32-5-686 linux-source-2.6.32 libncurses5 libncurses5-dev alsa-source module-assistant build-essential fakeroot dh-make debhelper debconf libasound2-dev

Stop alsa daemon:
/etc/init.d/alsa-utils stop

Uninstall ALSA:
apt-get purge alsa-base

Download alsa packages: alsa-driver-1.0.25.tar.bz2, alsa-lib-1.0.25.tar.bz2, alsa-utils-1.0.25.tar.bz2, alsa-oss-1.0.25.tar.bz2

Copy them to /usr/src/ and compile one by one:

tar xvf alsa-lib-1.0.25.tar.bz2
cd alsa-lib-1.0.25
./configure
make
make install

sudo ln -s libpanelw.so.5 /usr/lib/libpanelw.so
sudo ln -s libformw.so.5 /usr/lib/libformw.so
sudo ln -s libmenuw.so.5 /usr/lib/libmenuw.so
sudo ln -s libncursesw.so.5 /lib/libncursesw.so

Last commands avoid next error when doing ./configure on the next package (alsa-utils-1.0.25.tar.bz2):
checking form.h presence... yes
checking for form.h... yes
checking for new_panel in -lpanelw... no
configure: error: panelw library not found

tar xvf alsa-utils-1.0.25.tar.bz2
cd alsa-utils-1.0.25
./configure
make
make install

tar xvf alsa-oss-1.0.25.tar.bz2
cd alsa-oss-1.0.25
./configure
make
make install

tar xvf alsa-driver-1.0.25.tar.bz2
cd alsa-driver-1.0.25
./configure
make
make install

Reboot.

Video

When moving mouse from left to right desktop image moves. This is due to screen resolution is not correct. In System > Preferences > Monitors appears: 1368 x 768 but laptop provider says that maximum resolution is 1366 x 768.

Screen: Pantalla HD (1366 x 768), 35,6 cm (14"), LED retroilumination and antiglare.
Video adapter: Intel® HD 4000

lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Device 0166 (rev 09)

Solution:
References:
http://www.esdebian.org/foro/44890/problemas-resolucion-pantalla
http://h20386.www2.hp.com/SpainStore/merch/Product.aspx?id=B5W71AW&opt=ABE&sel=PBNB#

xrandr -s 1368x768

With this command, my real resolution appears in System > Preferences > Monitors.
Reboot
Login screen still has the problem but not after login.



*** Seems to be OK during and after installation:

Network adapter

Webcam



Hibernation: It seems to work now, but sometimes the mouse moves erratically after recover from hibernation; only happens with usb mouse, not with touchpad.

Microphone: tested with skype 2.2.0.35 (http://download.skype.com/linux/skype-debian_2.2.0.35-1_i386.deb)



*** Problems not solved:


Mouse: sometimes moves erratically when I start the system; usb mouse and touchpad.

Suspend: the screen gets into some kind of blue, as if it was hung up, but PC seems to be suspended after a while. When I power on, screen remain in black though all leds are iluminated. After a long time it does not recover from suspension.



*** Strange things:

Initial message (no problem detected): pci 0000:01:00.0: BAR 6: no parent found for of device [0xfffe0000-0xffffffff]


*** Not yet tested:

Wifi
Bluetooth


Information posted to: www.linux-on-laptops.com

Comentarios