LinuxOnHpPaviliontx1000z

page id: 4
backlinks print PDF
similar4 attachments
Linux On Hp Pavilion tx1000z
TuxMobil<a href=tiki-editpage.php?page=TuxMobil title=Create page: TuxMobil class=wiki wikinew>?</a> - Linux on Laptops, Notebooks, PDAs and Mobile Phones

The HP Pavilion tx1000z is a very Linux unfriendly laptop but the hardware combination is hard to beat at that price. It has everything I want. You can get almost everything work with linux with a bit of effort. My only big issue right now is the internal modem.



Quick Links:



Model variations


I believe that the following are all model variations of the HP Pavilion tx1000 series:

tx1000 tx1000z tx1001au tx1001xx tx1002au tx1002xx tx1003au tx1004au tx1005au tx1006au tx1007au tx1008au tx1009au tx1010au tx1011au tx1012au tx1013au tx1014au tx1016au tx1017au tx1020au tx1020ea tx1021au tx1030ea tx1030la tx1040ea tx1070br tx1080ea tx1110us tx1115nr tx1119us tx1120us tx1127cl tx1205 tx1215nr tx1320us tx1327cl tx1414ca tx1416ca tx1418ca tx1420ca

If you find any mistakes or omissions in the above list please let me know. (Contact info at the end of the page)

The hardware


What works and what doesn't

ComponentStatusComments
AMD Turion(TM) 64 X2WorksAMD64 and SMP kernel to make best use of both processors and the AMD64 architecture.
12.1"WXGA High-Def HP BrightView Widescreen Display(1280 x 800)WorksAt full resolution
Integrated Touch-screenWorksSee directions below. Mike Christ also has it working on Ubuntu. See his attached xorg.conf file (Press the attachments tab on the top of this page)
2GB DDR2 System Memory (2 Dimms)WorksAll memory is visible to Linux
NVIDIA(R) GeForce(R) Go 6150 Graphics CardWorksGet Nvidia binary driver for 3D
Fingerprint ReaderWorkslibfprint
WebcamWorks Need uvcvideo kernel module
MicrophoneWorks Controlled by "Front Mic"
802.11b/g WLANWorksWorks with ndiswrapper and bcmwl5.inf
BluetoothWorksI've been able to see other peoples cell phones. Cool
200GB 4200RPM SATA Hard DriveWorksI obviously repartitioned it
SuperMulti 8X DVD+/-RW with Double Layer SupportWorksHave not tried DL disks yet
LightScribeUnknownDon't have any LightScribe DVDs yet
6 Cell Lithium Ion BatteryWorksAbout 2.5 hours of moderate use
3 USB 2.0 interfacesWorkI imaged the internal HD to a USB drive with knoppix
TV-out (S-video)WorksMaximum effective resolution is 1024x768. You can have a completely separate display if you want to
Integrated Consumer IR (remote control and receiver)WorksIt mimics keyboard keys
1 RJ-11 (modem)DOES NOT WORKI can't get any signs of life from it. It looks like it might be a Motorola sm 56
1 RJ-45 (LAN)WorksThis is how I initially got to the internet. Note that if you use noacpi and acpi=off in your grub.conf kernel line it will NOT work.
1 VGAWorksI can hook up to my monitor. Can be separate display if you want. The nvidia driver supports almost any resolution
Integrated Altec Lansing stereo speakersWork A bit odd at first but I eventually got it to work
Integrated head phone jackWorks It also doubles as a SPDIF output. You need to get the latest version of the alsa driver to get it to work.
5-1 digital media reader slotWorksWorked out of the box with my camera's xD card and my father's SD card



WARNING! you may end up ruining your windows partition(s) if you are not careful when partitioning and formating the drive.




Initial Setup

Boot with knoppix before you boot windows for the first time. Do this by turning on the computer and pressing the esc key to change the boot order. While it's waiting put in the knoppix cd in the drive.

boot knoppix with :

knoppix noagp


(I used 5.1.1. When I first tried it, it froze before it started X. I then rebooted with the noagp option. Don't know why that worked)

Mirroring the Drive


I first tried to image the whole 200 Gb drive on to a USB drive (160Gb) with
dd if=/dev/sda |bzip2|dd of=/media/sdb1/hp.img.bz2
That was taking taking forever so after 4 hours I gave up as bzip2 was slowing things down way too much.

I backed up the partition table on to my usb drive:
dd if=/dev/sda of=/media/sdb1/hp_sda.mbr bs=512 count=1
sfdisk -d /dev/sda > /media/sdb1/hp_sda.sfdisk


BTW that looks like :
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       63, size= 50363712, Id= 7, bootable
/dev/sda2 : start=373430925, size= 17285940, Id= 7
/dev/sda3 : start=        0, size=        0, Id= 0
/dev/sda4 : start=        0, size=        0, Id= 0


I then backed up both the partitions with dd:

dd if=/dev/sda1 of=/media/sdb1/hp_sda1.img
dd if=/dev/sda2 of=/media/sdb1/hp_sda2.img


Repartitioning The Drive


I then added a few partitions for various linux distributions. I used cfdisk and started the partitions from the end to leave some extra space for vista to take over after the first time is boots. I created 3 different 15 GB partitions to try different linux distributions. This is what the partitions looked like when I was done.:
(Note that I have not booted in Vista yet)

> sfdisk -d /dev/sda
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       63, size= 50363712, Id= 7, bootable
/dev/sda2 : start=373430925, size= 17285940, Id= 7
/dev/sda3 : start= 64822275, size=308608650, Id= 5
/dev/sda4 : start=        0, size=        0, Id= 0
/dev/sda5 : start= 64822338, size=214837182, Id=83
/dev/sda6 : start=279659583, size= 29302497, Id=83
/dev/sda7 : start=308962143, size= 29302497, Id=83
/dev/sda8 : start=338264703, size= 29302497, Id=83
/dev/sda9 : start=367567263, size=  5863662, Id=82



Dealing with Vista


I then rebooted in Vista and ... gasp ... accepted the license agreement.
Windows did all sorts of crap then HP installed some more stuff. As the end that first 28 Gb partition was expanded to 35 (those 7 Gb is what I had left unused right above sda1 (the windows boot partition). The other ntfs partition BTW is the windoze restore partition.

I created the hp recovery disks as suggested by hp while I was in vista

Installing Linux


Installing Fedora 7 x86_64


Installation went well. I installed everything except for the webserver. The reboot had problems though. It froze after I entered the time. I rebooted after several trials and tribulations I ended up adding:

vga=0x317 acpi=off noacpi


to my kernel line in grub.

I rebooted again and voila entered the time and sent my hardware configuration to fedora and was in business..

I eventually removed the
 acpi=off noacpi 
from the boot line as this is a laptop.

My kernel line in /boot/grub/menu.lst looks like this

kernel /boot/vmlinuz-2.6.22.1-41.fc7 ro root=LABEL=/ rhgb quiet noapic nolapic irqfixup pci=nommconf


Many thanks to David M. for the irqfixup tip. It fixes the problem with the errand irq 7 I was getting and I can now use my external USB devices with the noapic option.

The pci=nommconf helps with some random freezes I was seeing with the nvidia proprietary driver.


Installing Ubuntu


To boot Ubuntu 7.04 press f6 at the startup menu and enter noapic on the kernel command line


Specific tweaks


AMD Turion™ 64 X2 Dual-Core


I installed the x86_64 version of Fedora to get all the 64 bit goodness.

In case you care, if you type
cat /proc/cpuinfo

and you see the model as 104 you have a 65 nm part. If you see the model as 72 you have a 90 nm part. If you see something else drop me a line.

Frequency scaling works great out of the box. You can watch the CPUs scale the frequency up and down as you do stuff if you add the CPU frequency scaling monitor to your panel. The system is very responsive even when it's throttled down to 800MHz. The actual frequencies it scales to depend on the model of your CPU. I have a TL-58 and it can scale between 800 MHz, 1.6 GHz, 1.8 GHz and 1.9GHz.

NVIDIA driver


You can get the NVIDIA driver from NVIDIA.

Read NVIDIA documentation

enter run level 3 with :

init 3


install the driver as per NVIDIA directions

Have it configure your xorg.conf

edit /etc/X11/xorg.conf to make sure your module section looks like :

Section "Module"
    Load           "extmod"
    Load           "glx"
EndSection


You should now be able to run compiz or beryl. If you have not installed beryl yet you can do so by:

yum install beryl-manager beryl-gnome


Once you have this installed you can start it by going to
Applications -> System Tool -> Beryl Manager

The eye candy is excellent!

Sound


The following instructions are for FEDORA 7. In FEDORA 8 sound works with no problems and there is nothing for you to do. Ubuntu users please skip to the end of this section for a helpful tip.

The sound is finicky. The sound detection tool actually detects the sound card (chip) but can't play a sound!

I actually ended up getting sound to work completely (including the headphones). I'll describe my findings here

The card detected is nVidia Corporation MCP51 High Definition Audio
The PCM device is the ALC861-VD by Realtek
The module you need to get sound out is snd-hda-intel

First if you want to use the stock Fedora 7 alsa (built in headphone jacks won't work) :

You need to add this line to /etc/modprobe.conf to get sound to work

options snd-hda-intel model=3stack


In Fedora 7 the microphone (stereo) is controlled by "Front Mic" of Volume Control by the HDA NVidia (Alsa mixer) device.

I still haven't figured out how to get audio out of the headphone jacks that are in the front. By the way, I did try every possible model type (3stack 3stack-660 3stack-dig 6stack-dig asus asus-laptop auto lenovo toshiba uniwill-m31) according to the ALSA documentation and non helped me get sound out of the headphone jacks.

Since people around me are not interested in hearing my movie I really wanted to be able to use headphones with mplayer so for now I'm using an external USB sound card (the Turtle Beach Audio Advantage amigo). It's automatically detected as device 6 when I insert it and I can get mplayer to use it by adding the following line to the ~/.mplayer/config file:

ao=alsa:device=hw=6,alsa


The above will try to use the usb sound card first and if it's not available it will try the alsa default.

With gmplayer you have to switch between the two (Preferences->Audio->alsa->Configure driver->device hw=6). I haven't figured out how to do it so that it falls back to the alsa default without actually manually switching to it via the gui.


Now if you are willing to risk trying out the latest alsa rc you can actually get the headphones to work:
(I used alsa-driver-1.0.15rc3 but I believe most of the relevant changes were made in rc1). (Don't complain to me if your sound totally breaks after you do this. The below worked for me)


The quick way

wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.15rc3.tar.bz2

tar xvfj alsa-driver-1.0.15rc3.tar.bz2

cd alsa-driver-1.0.15rc3

./configure

make -j 3

<The above should use both CPUs when compiling so it should be faster>
<Execute the below as root>

make install


Note that if you previously had a "options snd-hda-intel" line in your /etc/modprobe.conf file like the one I described in the previous section you can go ahead and remove it now. Everything seems to be detected OK so that line isn't needed.

Reboot. (I know you don't have to but I'm too lazy to figure out what and in what sequence to unload and reload...)

After the system comes back up the mute button should stay blue. Now you'll need to configure your Volume Control
System -> Preferences -> Hardware -> Sound

In Volume Control go to
Edit -> Preferences

Make sure Headphones, PCM, Front, Front Mic, Capture and Input Source are enabled.
Now in the Playback tab make sure nothing is muted
In the Recording tab make sure Capture is not muted
In the Options tab set Input Source to ATAPI Mic

(I have no clue why that last one works)
Good luck!



UBUNTU tip from Bob
Sound was a problem. After installing the alsa drivers version 1.0.15 I had no sound at all, and kmixer showed nothing al all. In /var/log/messages I had several lines with 'snd_hda_intel: disagrees about version of symbol xxx'. The solution is to install backport modules. Someone with a thinkpad had the same problem and was advised to apply this solution. So my problems vanished with:
sudo apt-get install linux-backports-modules-generic.





Touch Screen


To get the touchscreen to work:

First get the 64 bit proprietary xorg driver from
http://210.64.17.162/web20/TouckDriver/linuxDriver.htm
(http://www.eeti.com.tw/)

tar xvfz TouchKit64_1.07.0907.tar.gz
cd TouchKit64
su
cp egalax_drv.so /usr/lib64/xorg/modules/input/


Now edit your xorg.conf

emacs /etc/X11/xorg.conf


add this line to Section "ServerLayout"

...
        InputDevice    "EETI"      "SendCoreEvents"
...


And this somewhere else in the file:

...
Section "InputDevice"
      Identifier "EETI"
      Driver "egalax"
      Option "Device"    "/dev/hiddev0"
      Option "Parameters" "/etc/egalax.cal"
      Option "ScreenNo"   "0"
EndSection
...


Now logout and log back in.
Open a terminal and cd back in to the TouchKit64 directory
Start the TouchKit executable as root

su
./TouchKit 


select the Tool tab and start the 25Pts Linz Function

calibrate the screen hit apply and OK

It should work now.

Thanks to Dougie R. for the tip and the pointer to the driver


Wireless


You can get the XP broadcom wireless driver to work with ndiswrapper

yum install ndiswrapper
yum install cabextract


Now get the XP drivers: Note that the Vista drivers don't work with ndiswrapper (yet?)
Windows XP broadcom driver (hp.com)
Windows XP 64 broadcom driver (hp.com)

Even though the second one says XP 64 the inf file is identical to the 32 bit version
Get the driver
cabextract SP34167.exe


Remove the existing kernel module that conflicts with ndiswrapper and doesn't work anyway.
rmmod bcm43xx_mac80211


Install the ndiswrapper module
ndiswrapper -i bcmwl5.inf


See if it worked
ndiswrapper -l
modprobe ndiswrapper



If things went OK and you don't see any alternate drivers you should be able to start(activate) your wlan0 device through System->Administration->Network. If it didn't work look at the ndiwrapper troubleshooting page.

To make ndiswrapper permanent:

Write modprobe configuration
ndiswrapper -m


If you previously saw the bcm43xx_mac80211 module loaded you need to black list it so it doesn't start up again prior to ndiswrapper

edit /etc/modprobe.d/blacklist and add the following line to the end

blacklist bcm43xx_mac80211


Make sure to delete any backup files your editor leaves or they will be parsed and you will get several warnings about them on the next reboot. Live and learn...

Now assuming you activated wlan0 earlier, on your next reboot wireless should work. Good luck!

Webcam


The webcam identifies it self as (/proc/bus/usb/devices):
P:  Vendor=0c45 ProdID=62c0 Rev= 2.10
S:  Manufacturer=Sonix Technology Co., Ltd.
S:  Product=USB 2.0 Camera


I noticed that Ubuntu 7.04 amd64 actually detects and uses the camera "out of the box" with Ekiga. So I did an lsmod and saw that it was using the uvcvideo driver. For Fedora, you need to get this from http://linux-uvc.berlios.de/

The quick way
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
cd trunk
make
make install
modprobe uvcvideo


If you start Ekiga now, set it up so that you use V4L2. The webcam should be automatically detected.


Extra Buttons


I was able to map the volume up/down and mute buttons using System->Preferences->Personal->Keyboard Shortcuts. They worked once flawlessly but then stopped. I ended up deleting all the gnome configuration files in my home dir which made me loose ALL my settings. I then set up the volume buttons again and this time they worked and have worked since. You can set up the play/pause, next, previous and stop buttons on the right hand of the screen in a similar fashion.

To set up the DVD and media button, you need xbindkeys so get xbindkeys:

yum install xbindkeys


now as root add this to your /etc/rc.local file

#DVD button
setkeycodes e00e 144
#Media button
setkeycodes e008 136
#touchpad disable button 
#setkeycodes e058 <keycode>
#touchpad enable button
#setkeycodes e059 <keycode>


now as a user add these lines to your ~/.Xmodmap (if you don't have one create one)

keycode 198 = XF86Launch0
keycode 122 = XF86Launch1


add these lines to your ~/.xbindkeysrc (if you don't have one create one)
"xine"
XF86Launch0
"gmplayer"
XF86Launch1


Now add the xbindkeys command to your session. Got to System->Preferences->Personal->Sessions create a new entry and add xbindkeys

Next time you log in, pressing the DVD button should start xine and pressing the media button should start gmplayer, assuming you have them installed. You can substitute your own commands like vlc and xmms if you want.


IR Remote

The supplied IR remote works with Linux because it actually mimics keyboard keys when the buttons on the remote are pressed. I can mute and control the volume, use the cursor keys and hit enter. What is very cool is that it fits neatly in to the ExpressCard34 slot on the laptop. Since it has a home, the chances of me loosing it are fewer.

Fingerprint reader

Use libfprint which works with the AuthenTec, Inc. USB finger print sensor. (identified as AES 1610). To install libfprint become root and:

yum install libfprint.x86_64 fprint_demo.x86_64 pam_fprint.x86_64


(Note the above assumes you are running the x86_64 version of Fedora and will not install the 386 version of them)
Now try:

fprint_demo




Suspend and Hibernate


Both work for me now that I'm passing the above parameters to the kernel.

Hibernate works with either noapic or noacpi (yes you read that correctly).

Other Nuances


My USB problem has been fixed with the irqfixup option passed to the kernel (see above). I have to wonder what the bios is really doing if I have to pass all these options to the kernel...

Speaking of nuances, the screen, even though bright and clear, has a really bad glare. Probably because it's a touchscreen. The material is easy to clean, but it's so reflective that I can literally use it as a mirror when the laptop is off.

Conclusions


This laptop has a good combination of hardware but it's not Linux friendly. The size, weight, processing power and battery life are all features I was looking for but the particular hardware components HP chose to use are what make it unfriendly to Linux. If you try to install Linux expect to give it some effort. Let me know about your experience, especially if you get something to work that I haven't been able to like the internal modem.


Useful links


  1. Helpfull Hints for a tx1000 (ubuntuforums.org)
  2. Touch screen support in German (cartft.com)
  3. Touchscreen driver source and instructions
  4. nvidia troubles (forums.gentoo.org)
  5. apic noapic (forums.gentoo.org)
  6. fedora tips (forums.fedoraforum.org)
  7. Windows XP broadcom driver (hp.com)
  8. Another page on installing Linux on a tx1000 (cnpbagwell.com)
  9. Kernel parameters description
  10. A working _proprietary_ driver for the touchscreen
  11. These appear to be Motorola closed source drivers for the Motorola SM56 Data Fax Modem. No idea if they work
  12. Proprietary lightscribe software from hp




Created by: sopho last modification: Friday 11 of April, 2008 [01:34:36 UTC] by sopho


List of attached files
  name desc uploaded size >
1 : 4 icon xorg.conf My Fedora 7 nvidia based xorg.conf with working toushscreen! Mon 22 of Oct, 2007 [02:35 UTC] by sopho 1.71 Kb 1751
2 : 3 icon xorg.conf.Mike.Christ Mikes Ubuntu 7.04 xorg.conf file with working touchscreen! Sat 08 of Sep, 2007 [15:06 UTC] by sopho 4.11 Kb 1866
3 : 2 icon xorg.conf.sopho.nvidia My Fedora 7 nvidia based xorg.conf file Sat 08 of Sep, 2007 [15:04 UTC] by sopho 1.47 Kb 25737
4 : 1 icon xorg.conf.sopho.nv My Fedora 7 xorg based xorg.conf file Sat 08 of Sep, 2007 [15:03 UTC] by sopho 1.47 Kb 1511
Google Ads