View previous topic :: View next topic |
Author |
Message |
Izmaelis n00b
Joined: 15 Aug 2003 Posts: 28 Location: Lithuania, Kaunas
|
Posted: Tue Mar 15, 2005 9:49 pm Post subject: Setting up special keyboard keys on HP ze4910us |
|
|
STEP-BY-STEP guide
1. I chose to use Hotkeys app so:
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 |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Wed Mar 16, 2005 1:57 am Post subject: |
|
|
nice I look forward to trying this out on my MS office keyboard when I get home. |
|
Back to top |
|
|
|
|
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
|
|