Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting up special keyboard keys on HP ze4910us
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
Izmaelis
n00b
n00b


Joined: 15 Aug 2003
Posts: 28
Location: Lithuania, Kaunas

PostPosted: Tue Mar 15, 2005 9:49 pm    Post subject: Setting up special keyboard keys on HP ze4910us Reply with quote

STEP-BY-STEP guide

1. I chose to use Hotkeys app so:
Code:
emerge hotkeys

2. In console execute these commands as root:
Code:
# setkeycodes e01e 221
# setkeycodes e008 222
# setkeycodes e00a 223
# setkeycodes e031 225

3. Add these commands at the very end of /etc/init.d/bootmisc so they will be executed on boot
Code:
nano -w /etc/init.d/bootmisc

(I think that this file is too long to paste it here)
4. Edit your /etc/hotkeys.conf
Code:
nano -w /etc/hotkeys.conf

This file should look like:
Code:
Kbd=hpze4900

WebBrowser=firefox
Email=evolution
Shell=gnome-terminal
ScreenSaver=xscreensaver-command -activate
Help=yelp

5. Create/edit your /usr/share/hotkeys/hpze4900.def
Code:
nano -w /usr/share/hotkeys/hpze4900.def

It looks like
Code:
<?xml version="1.0"?>
<definition>
  <CONFIG model="HP Pavillion ze4900">
    <VolUp        keycode="176" adj="2"/>
    <VolDown      keycode="174" adj="2"/>
    <Mute         keycode="160"/>
    <WebBrowser   keycode="178"/>
    <Email        keycode="197"/>
    <Help         keycode="212"/>
    <ScreenSaver  keycode="202"/>
    <Shell        keycode="148"/>
  </CONFIG>
  <contributor>
    <name>Povilas Babilius</name>
    <email>izmaelis@gmail.com</email>
   </contributor>
</definition>

at my place.
6. And in the end do:
Code:
# hotkeys -t hpze4900

add this line to gnome-session-properties window tab named "startup programs". I'm not familiar with other desktop environments so feel free to poke arround.

Although this short guide is oriented to a type of lappy that I have you can play around and use these ideas...
_________________
All work and no play makes Jack a dull boy.
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 787
Location: under a car or on top of a keyboard

PostPosted: Wed Mar 16, 2005 1:57 am    Post subject: Reply with quote

nice I look forward to trying this out on my MS office keyboard when I get home.
_________________
/etc/portage/package.c{,xx}flags and package.features!
All posts released under the GPL and the Creative Commons license
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