Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Update of Heath Holcomb ZD7000 config ...
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message

Joined: 17 Sep 2004
Posts: 1

PostPosted: Fri Sep 17, 2004 1:45 pm    Post subject: Update of Heath Holcomb ZD7000 config ... Reply with quote

HP Pavilion ZD7000 / Gentoo 2004.2
Me : Christophe GROS. Contact :

I installed gentoo on my ZD7k, actually Working :
- Gentoo packages, flags, use, ... OK
- X11 xorg OK
- Graphical Interface (KDE 3.3.0 ) OK
- Multimedia keyboard OK ( all operationnals !!!)
- Wifi OK (ndiswrapper)
- Sound OK (alsa-utils ... )
- Mouse scrolling, firefox, imwheel, OK ( no more back-forward between pages with the wheel)
- DVDRW via external USB OK
- IrDa – HP Laser Printer Ok but limited to 115200 Kbauds
- IrDa – Nokia 6100 Limited to 115200 Kbauds, communcation ok, via gammu, but no synchronisation with kaddress
- ACPI Ok , but waiting 2.6.9 kernel to enable suspend-to-resume.
- ENE card reader Not successful ( kernel modules ??? )
I can send you my config files , and the installed package list via e-mail ...
Change Log
16.09.2004 - Created
17.09.2004 - changed gcc flag from p4 to p3

Hardware Specs :
Pentium 4 processor 2.8GHz
80GB 4200 rpm hard drive
17" WXGA+ WVA TFT screen (1440 x 900)
NVIDIA GeForce FX Go5600 64 Mo
Intel 82801EB / 82865G chip set (USB, PCI, ISA, sound, modem)
Realtek RTL-8139 network chip
ENE Technology Flash ???
TI TSB43AB21 IEEE 1394 controller
Broadcom BCM94306 802.11g
External Hardware :
2x USB hard disk rack, with 80 Go HD
1x DVD-RW Plextor PX-712A in a 5”1/4 USB to IDE Box
Mouse USB Logitech MX500
USB to RS232 Converter

Sizes of my Gentoo Installation:
I shared my disk between XP ( !! , see below.. ) and the Gentoo 2004.2. It is never easy to decide the size of each partitions. Here my example :
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 471M 60M 387M 14% / ext3
/dev/hda6 54M 6.9M 44M 14% /boot ext2
/dev/hda8 4.6G 2.9G 1.5G 67% /usr ext3
/dev/hda9 4.6G 1.1G 3.4G 24% /var ext3
/dev/hda3 25G 4.4G 19G 20% /base ext3
/dev/hda1 12G 2.7G 9.1G 23% /mnt/ms/XP ntfs
/dev/hda2 15G 1.7G 13G 12% /mnt/ms/common vfat
/dev/hda10 10G 1M 10G 1% /tmp ext2
With a swap of 512MB, and a some free disk space when i modify the /tmp size.
I “tune” a little the common disks partitioning, after my 6th install .. /Base is not really common but in fact I link /usr/portage/packages /usr/portage/distfiles /homes with directories inside /base. Like that I don't have to download again in case of ... And I link too the /opt directory (380Mo) to /usr/opt.. 10Go in /tmp is to burn DVD ...
And my symbolic links
/usr/portage/distfiles -> /base/gentoo/packages ... 2.7 Go
/usr/portage/packages > /base/gentoo/distfiles ... 850 Mo
/home -> /base/home
/opt -> /usr/opt
/etc/make.conf ( during installation and after ...)
########## for ZD7000 Modified by gus

############### COMPILER FLAGS
CFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mfpmath=sse"
# OK to decrease compilation time:
# CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mfpmath=sse"
# Perl compilation failed ??? with :
#CFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mfpmath=sse,387 -ffast-math"
############### EMERGE OPTIONS
# DO NOT ENABLE : use /etc/portage/packages.keyword is better ...
# Not of have to recompile it, in case of gentoo re-install or duplicate on others computers use buildpk
# HTTP Mirrors ( set manually , where i live it is the quickest is ftp ...) #GENTOO_MIRRORS=""
# Very very usefull when an emerge fail. to known at which file, without having to re-emerge it ...PORT_LOGDIR=/var/log/portage
############### Default USE in 2004.2 ( to have an idea)
# USE="
# x86 oss apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg kde gnome libg++
# libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt quicktime readline sdl slang spell
# ssl svga tcpd truetype X xml2 xmms xv zlib"
############### Defined for me ...
USE=" acpi -apm sse sse2 mmx pnp usb pcmcia trusted scanner wifi -oss irda alsa ieee1394
icc icc-pgo
dvd dvdread cdr dvdr
xv xinerama xosd
videos divx4linux xvid
imagemagick png wmf gphoto2 truetype
audiofile xine flac speex
-ipv6 prelude samba ftp
apache2 perl mozilla
msn yahoo aim icq oscar
mysql prelude
unicode "
My main packages :
Kernel : gentoo-dev-sources 2.6.8-rc4
Graphical interface : KDE 3.3.0 under xorg
Burning :K3B
Players : gmplayer, noatun, xmms
www : mozillla 1.0PR /Noia theme
Communications : gnomemeeting, amsn, ...
Console tools : gpm (mouse) ...
image : gimp ....
I use kde for adresses , e-mails, ....
Office : Openoffice ( I prefer than koffice )

Dont forget the very usefull :

And thousands of others ...
Tools for portage ( emerge ) VERY VERY USEFULL
esearch : quick search ( emerge -s )
etcat /equery : query package files ....
euse: query the use of each packages
qpkg :infos, installed packages
Note : EVERY TIME, before emerge, you should verify the USE flags for a ebuild ( emerge -vp <ebuild> )
/etc/portage/package.keyworks .
Create the directory if not existing ... Here you can specify the packages you want to use in “ test” . ( see )
for me :
nvidia-glx ~x86
nvidia-kernel ~x86
opengl-update ~x86
gentoo-dev-sources ~x86
splashutils ~x86
ndiswrapper ~x86
gammu ~x86
dbdesigner ~x86
mozilla-firefox ~x86
imwheel ~x86
dvdrtools ~x86
k3b ~x86
kdevelop ~x86
amsn ~x86
amsn-skins ~x86
/etc/portage/package.use .
In this file you can overwrite the make.conf USE .
app-misc/mc -X
x11-base/xorg-x11 doc
app-office/openoffice-bin -doc
dev-util/kdevelop arts -debug doc -java python

/etc/conf.d/gpm ( Mouse under console )

See . Add to gpm
APPEND="-M -m ${MOUSEDEV2} -t ${MOUSE2}"
/etc/X11/xorg.conf ( Not so easy ... )
########## Xorg.conf for ZD7000
########## Modified by gus
########## Thanks to Heath Holcomb , for his help ( )
# not all usables , see /var/log/xorg.0.log
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/local/share/fonts"
FontPath "/usr/share/fonts"
FontPath "/usr/X11R6/lib/X11/fonts"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/Speedo"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/ukr"
FontPath "/usr/X11R6/lib/X11/fonts/xawtv"
Section "Module"
Load "dbe"
SubSection "extmod"
Option "xfree86-dga"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
Section "ServerFlags"
Section "InputDevice"
Identifier "keyboard1"
Driver "keyboard"
# these options will be overwritted by KDE 3.3.0 ...
Option "XkbModel" "pc104"
Option "XkbRules" "xfree86"
Option "XkbLayout" "us"
Section "InputDevice"
Identifier "touchpad"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
# need to be at 7 , touchpad will be the core pointer, and 7 buttons are use for the mouse “slave”.
Option "Buttons" "7"
Section "InputDevice"
Identifier "usb-mouse”
Driver "mouse"
# “ButtonNumber” not documented but dont report errors ...
Option "ButtonNumber" "7"
Option "Buttons" "7"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mouse1"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "6 7"
Section "Monitor"
Identifier "wide-screen-lcd"
HorizSync 30-64
VertRefresh 50-100
Modeline "1440x900" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
Section "Device"
Identifier "geforce-fx-go-5600"
Driver "nvidia"
# skip autodetect, use directly nvidia agp driver
Option "NvAgp" "2"
Option "IgnoreEDID" "true"
Option "NoLogo" "on"
Section "Screen"
Identifier "screen1"
Device "geforce-fx-go-5600"
Monitor "wide-screen-lcd"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1440x900"
ViewPort 0 0
Section "ServerLayout"
Identifier "MainLayout"
Screen "screen1"
InputDevice "keyboard1" "CoreKeyboard"
InputDevice "touchpad" "CorePointer"
InputDevice "usb-mouse" "SendCoreEvents"

The multimedia keyboard ( the most difficult ... )

You have to modify a lot of files for enabled the keys of the keyboard :
Fn+F1 :Ok
Fn+F3: Ok
Fn+F4 : ?? ( Hard linked ??)
Fn+F5: Ok
Fn+F6 :Ok
Fn+F7-F8: Ok ( Hard linked but work ... )
FN+Insert,Home,PgUp,PhDw : Working by default ...

Add to /etc/X11/xkb/symbols/inetd
partial alphanumeric_keys
xkb_symbols "hpzd70xx" {
// Describes the buttons on HP Pavilion ZD70xx models.
name[Group1]= "Hewlett-Packard Pavilion ZD70xx";
key <I6D> { [ XF86AudioMedia ] };
key <I3B> { [ XF86Video ] };
key <I42> { [ XF86Launch0 ] };
key <I2E> { [ XF86AudioLowerVolume ] };
key <I30> { [ XF86AudioRaiseVolume ] };
key <I20> { [ XF86AudioMute ] };
key <I6B> { [ XF86News ] };
key <I75> { [ XF86ModeLock ] };
key <I32> { [ XF86WWW ] };
key <I61> { [ XF86Sleep ] };
key <I22> { [ XF86AudioPlay, XF86AudioPause ] };
key <I24> { [ XF86AudioStop ] } ;
key <I10> { [ XF86AudioPrev ] };
key <I19> { [ XF86AudioNext ] };
Add to /etc/X11/xkb/symbols.dir
--p----- a------- inet(hpzd70xx)
Find the line in /etc/X11/xkb/rules/xorg
hpi6 hp2501 hp2505 hp5181 hpxe3gc hpxe3gf hpxe4xxx hpzt11xx \

Add to this line hpzd70xx like that :
hpi6 hp2501 hp2505 hp5181 hpxe3gc hpxe3gf hpxe4xxx hpzt11xx hpzd70xx \
Find this in /etc/X11/xkb/rules/xorg.xml
<description>Hewlett-Packard Pavilion ZT11xx</description>
<description xml:lang="fr">clavier Hewlett-Packard Pavilion ZT11xx</description>
<description xml:lang="zh_CN">æ^Ã æ^Ù® Pavilion ZT11xx</description>

And add just below :
<description>Hewlett-Packard Pavilion ZD70xx</description>
<description xml:lang="fr">clavier Hewlett-Packard Pavilion ZD70xx</description>
<description xml:lang="zh_CN">æ^Ã æ^Ù® Pavilion ZD70xx</description>
Add this line in /etc/X11/xkb/rules/xfree86.lst
hpzd70xx Hewlett-Packard Pavilion ZD70xx
Add theses lines to the end of /etc/conf.d/local.start
setkeycodes e008 226
setkeycodes e00b 212
setkeycodes e078 218
setkeycodes e031 157
setkeycodes e00a 138
KDE 3.3 Keyboard and Mouse configuration
Emerge imwheel ...
create the file /home/UserName/.kde/Autostart/zd7000_keyboard_mouse
XMODMAP=$(which xmodmap)
IMWHEEL=$(which imwheel)
XMODMAP -e “pointer = 1 2 3 6 7 4 5”
killall -9 imwheel
$IMWHEEL -k -f -b "67"

Ok now you can continue the configuration : kde controle center :
Regional & Accessibility : Keyboard layout
- Enable keyboard layout
- choose the Hewlett-Packard Pavilion ZD70xx keyboard
-choose U.S. English w/ ISO9995-3 (en_US)
Now is time to reboot ( or restarting /etc/init.d/local and xdm ....)
Final step ( Yes ... ) kde controle center :
Regional & Accessibility : Khotkey you can configure the multimedia keys actions:: ( dont forget to go to general setting and to activate Khotkeys daemons ). Easy ....

if everything is ok the medias keys , Volume Up, Down, and Mute works with khotkey ...

Some commands :
Screensaver + desktop lock : kdesktop_lock
Wifi : Kwifimanager ...

Back to top
View user's profile Send private message

Joined: 09 Oct 2003
Posts: 498
Location: Florida

PostPosted: Thu May 26, 2005 9:44 pm    Post subject: Reply with quote

Well... I had partial success with the multimedia keyboard. My volume buttons are working :). Unfortunately, I could not complete the process. When I get into KDE, enter the control center, do the keyboard layout, the zd70xx I had created in all those files does not appear. I double-checked everything you posted here (and by the way, I believe you had a couple of typos, described below) and it matches. I honestly don't know what I'm mucking with in all this :(.

The typos I noticed were:

1. The path of the inet file (you had /etc/X11/xkb/symbols/inetd, I believe it should be /etc/X11/xkb/symbols/inet - I have no inetd file, just an inet)

2. Within your script (/home/UserName/.kde/Autostart/zd7000_keyboard_mouse), line 4 says XMODMAP -e "pointer = 1 2 3 6 7 4 5". I believe it should read $XMODMAP -e "pointer = 1 2 3 6 7 4 5".

Other than those two (and the multimedia not working on mine quite yet) nice job :).
Life without passion is death in disguise
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum