Installing Fedora 10 Linux on HP 2133 mini-Note

Last Edit: Feb20th 2009, 0:00. By Lebenskuenstler. Feel free to send any comments or feedback to linuxbenutzer [at] hotmail [DOT] de . This document and its content are GPL.

Hi Folks,

this will be a short HowTo about installing Fedora 10 on an HP 2133 mini-Note. 
Will be rathter short for those kind of people, that know what are they doing.
I am no big expert myself, no hacker or crack or anything like that, I just spent 
quite a time searching the net for solutions.

The should proove to be an easy HowTo.

DISCLAIMER: If you use this HowTO, you use on your own risk. HP, VIA, Fedora, Linux and whatever are registered trademarks.

NOTE: This will apply to most models of HP 2133. At the end of the page you will find my output of lspci, so that you can compare. For the screen with smaller resolution 1024x600 please look for xorg.conf on the Homepage of the UbuntuLaptopTestingTeam.

ATTENTION: You will need wired internet access and an extenal cd/dvd-drive.

1. Get Fedora. You will need Fedora 10 für i386 PCs. 
http://fedoraproject.org/get-fedora
I recommend the DVD or Netinst-image.

2. If you want to make it easy, get an external cd/dvd-drive and burn the iso to a disc. Connect the drive to the HP 2133 and power it up.

3. When the HP logo appears, press F9 and chose your cd/dvd-drive to boot from it.

4. Press TAB to edit options, when advised so. Add the phrase "vesa" to the line and hit enter to boot.
Hint: If you like to use ext4 filesystem, also type ext4 here.

5. Follow the setup instructions from Fedora's installer.
You may consinder enabling RPMFusion during install. http://rpmfusion.org/EnablingRpmFusionDuringFedoraInstall
This will spare you caring about the multimedia stuff later.
You may also consider enabling the Updates-Repo if you have a fast internet connection. This will spare download all the the updates after install.


6. After a little while, Fedora should boot from your HP. Connect the HP via cable to the internet.

7. Login, play a little around, install some (more) updates, if you like.

8. Open a terminal, type su -, so that you can login as root.

9. Now, we will get the WLAN working.

a) wget http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2
b) tar xjf broadcom-wl-4.150.10.5.tar.bz2
c) cd broadcom-wl-4.150.10.5/driver
d) b43-fwcutter -w /lib/firmware wl_apsta_mimo.o

WLAN should work after reboot.

10. (obsolete) 


Here you can choose between 11a, 11b even 11c.

11a. To get faster 2d graphic  Download the beta 
2d driver from VIAs website: http://linux.via.com.tw/support/downloadFiles.action.
Chose Ubuntu 8.10 and download the driver. Extract the driver (right click, extract here) and open a terminal and change to the folder in which you just unpacked.
Log in as root (su -) and do: cp via_drv.so /usr/lib/xorg/modules/drivers

Download this xorg.conf and store somewhere. Again, go there as root and do in a terminal: cp xorg.conf /etc/X11/xorg.conf
Restart X by logging off. Now, you have the correct resolution and may connect an external display/beamer if you wish.

To get better perfomance, follow the steps to compile drm module. But X.org will start and do without it. The module will boost performance playing videos.

11b. To get 3d graphic (for experts!) for compiz/OpenGL, faster video playback.

Please note, that if you choose to use the via 3d drivers within Fedora 10, you have to supervise your system closely. Everytime a kernel updates comes in, you will have to rebuild the via kernel module. Sometime in the future I might try to build an akmod-package doing the job.

a. Download the VIA GFX source code. http://linux.via.com.tw/support/downloadFiles.action.
Choose Ubuntu 8.10. 
b. Extract the archive.
c. Install the stuff to build kernel modules.
d. Build the module by typing make in the drm directory.
e. Copy the new builded module to //lib/modules/`uname -r`/ubuntu/via_chrome9/
f. depmod -a there
g. Download the 3d driver package. http://linux.via.com.tw/support/downloadFiles.action.
Choose Ubuntu 8.10. 
h. Extract the package.
i. Go into the directory/bin.
j. Execute the following commands in a terminal.
cp via_drv.so /usr/lib/modules/xorg/drivers/
cp via_chrome9_dri.so /usr/lib/dri
restorecon '/usr/lib/dri/via_chrome9_dri.so'
cp libGL.so.1.2 /usr/lib
cd /usr/lib
ln -sf /usr/lib/libGL.so.1 /usr/lib/libGL.so
restorecon '/usr/lib/libGL.so'
ln -sf /usr/lib/libGL.so.1.2.via_chrome9 /usr/lib/libGL.so.1
restorecon '/usr/lib/libGL.so.1'
ldconfig -X

Consider skipping these restorecton commands and disable SELinux completly. I don't like this, but that was the only way which resulted that all things works at the same time, such the use of compiz and video playback.

Video playback will very nice, if use gnome mplayer. Set video playback to xv and sound to oss.
If you use the 2d driver and have to drm build, this will also work.

Additional notes:

With OpenGL there are several problems, if you use compiz.
I used the xorg.conf from https://wiki.ubuntu.com/LaptopTestingTeam/HP2133/DisplayConfig810

11c. If you do not want to use restricted drivers, then you can also use openchrome drivers.
To do so, install them by: yum --enablerepo=updates-testing update xorg-x11-drv-openchrome 
Change driver in xorg.conf to openchrome and add Option "AccelMethod" "EXA"
 in device section.
If you load the via module before starting X, you may also play movies nicely playback to xv and sound to oss. Fast OpenGL and compiz do not work with this driver. Generally the openchrome driver use slightly more CPU. 

12. Everything should work know. All right, you will need some more programms, codecs etc. There is plenty much help to find in the net. Enjoy your HP 2133 with Linux.
If you need help you might refer to: http://fedorasolved.org or http://forums.fedoraforum.org/ or http://fedoraguide.info


Thanks to all folks, which posted somewhere all the helpfull advices about the HP 2133, who made this summary possible.


Anything not mentionend here, works out of the box: Webcam, Suspend/Hibernate, Bluetooth, SD-CARD, Hot-Keys (not Fn+F2,F6), microphone input etc. 
Express Card is untested.


Known issues:

1. If you suspend/hibernate by unsing the the power button or soft swith (Fn+F2) the system will suspend/hibernate normally. When you power up again, it will go to suspend
immeaditly after reaching gdm/desktop. If your power up again, you will be able to use your system normally.
To avoid this, suspend/hibernate using GNOME (Sytem, Switch off OR right click battery/AC symbol in taskbar) and choose desired action.
Bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=471438

2. If disable the wirless devives (BT and WLAN) using the switch to the right, NetworkManager won't recognize, that you disabled the hardware. He will prompt you to reenter 
your wlan key. Click abort. To avoid, disconnect from network before using the switch. Bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=471435 / 
https://bugzilla.redhat.com/show_bug.cgi?id=248267 

3. This page is still ugly.

Outlook:

1. With the new 2.6.28 kernel comes a new module which sould protect the hardrive from shocks. Maybe the module is also adoptable to Fedors's current kernel.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=455fbdd376c3ed3a5be8c039348896fdd87e9930
I hope this will be in Kernel 2.6.29 implemented, F10 will skip 2.6.28 as I read.

2. If I have some time [tm] I will do something about issue #3.

My lspci:

[root@mini ~]# lspci
00:00.0 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge
00:00.5 PIC: VIA Technologies, Inc. P4M900 I/O APIC Interrupt Controller
00:00.6 Host bridge: VIA Technologies, Inc. P4M900 Security Device
00:00.7 Host bridge: VIA Technologies, Inc. P4M900 Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:02.0 PCI bridge: VIA Technologies, Inc. P4M900 PCI to PCI Bridge Controller (rev 80)
00:03.0 PCI bridge: VIA Technologies, Inc. P4M900 PCI to PCI Bridge Controller (rev 80)
00:0f.0 IDE interface: VIA Technologies, Inc. Device 5372
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev b0)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev b0)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev b0)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 90)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237S PCI to ISA Bridge
00:11.7 Host bridge: VIA Technologies, Inc. VT8251 Ultra VLINK Controller
00:13.0 Host bridge: VIA Technologies, Inc. VT8237A Host Bridge
00:13.1 PCI bridge: VIA Technologies, Inc. VT8237A PCI to PCI Bridge
01:00.0 VGA compatible controller: VIA Technologies, Inc. Chrome9 HC IGP (rev 01)
02:00.0 Network controller: Broadcom Corporation BCM4312 802.11a/b/g (rev 02)
07:03.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5788 Gigabit Ethernet (rev 03)
80:01.0 Audio device: VIA Technologies, Inc. VIA High Definition Audio Controller (rev 10)