[EN] Configure HP Pavilion QuickPlay multimedia buttons in Ubuntu Linux
HP Pavilion multimedia buttons configuration under Linux
How to setup the HP QuickPlay Linux equivalent: Elisa Media Center
In this howto you’ll learn how to customize the applications associated to the sensitive buttons above the keyboard of HP Pavilion laptops. This way you would be able to run Elisa Media Center (HP QuickPlay Linux equivalent) simply touching the QuickPlay button.
On Ubuntu Linux Jaunty 9.04 touch sensible buttons are fully supported, however some models still have some buttons not working, among which mostly DVD and QuickMedia ones. If this is your case please refer to: https://wiki.ubuntu.com/Hotkeys/Troubleshooting
1. simple method
You can simply customize these touch sensitive buttons for most common functions through the Gnome applet under System -> Preferences -> Keyboard shortcuts
2. advanced method
The first step is finding out the button keycode in order to be able to bind an event to it: on the terminal shell you have to run this applet (if not available it should be installed through x11-utils package with synaptic package manager or sudo apt-get install x11-utils)
xev
now push/touch the desired button
You should get an output similar to the following one:
For every pressed button you’ll get two events, one for the push event, one for the release event.
Just for your information Quickplay button has keycode 170 (dv6000 series) 205 (dv9000 series), DVD button has keycode 219 (dv6000 series) 237 (dv9000 series)
Now we have to bind a name to the keycode.
a) xmodmap -e “keycode 219 = F13″
xkbset m
b) Just create in your own home directory a file called .Xmodmap (notice the initial dot and the capital X):
keycode 219 = F13
keycode … = F14
keycode … = firefox
At every line you are going to write the keycode (keycode 219) associated with (=) the name (F13); you can choose whatever name you like, however it is far easier to choose one betweenn F13 and F24. Otherwise you’ll have to define the new buttons in /usr/X11R6/lib/X11/XKeysymDB by writing at the end of the file something like this:
firefox :10090000
which is the name we choose followed by a colon and an exadecimal number not used in any other line of the file.
At this point we hav eto run:
xmodmap .Xmodmap
and again run xev. If you have done things well you’ll see and output similar to this one:
.Xmodmap is going to be run at each Xorg startup.
Now you have to associate an application to your newly configured button.
I advise you to associate Elisa media center to the QuickPlay button. It is a very good alternative to HP QuickPlay for linux systems. You can install Elisa by running sudo apt-get install elisa . The command to run this media center is, guess what, elisa
You can read a more comprehensive guide about Elisa Media center here
There are 3 ways to bind a program to a button or combination of buttons according to what window manager you are using
A) Gnome Metacity (no desktop effects enabled)
- ALT+F2
- gconf-editor
- go to apps -> metacity -> keybinding_commands
- doubleclick on command_1
- fill the area with the application name (the one you type in to execute it) i.e. gcalctool for GNOME calculator
- go to apps -> metacity -> global_keybindings
- doubleclick on run_command_1
- set the button (or key combination) you want to bind to the program i.e. F13 or <Control><Alt>C
- Note the parenthesis < > for the funcion button
- you can set up all the shortcuts you want with strings command_N and run_command_N
- done!
B) Gnome Compiz (desktop effects enabled)
same as above, only keys change:
apps -> compiz -> general -> allscreens -> options
string names are command0 (for the application command) and run_command0_key (for the button name or key combination).
C) KDE
run kmenuedit, select the desired program on the left menu and then on the right click to Nothing under section Currnet Key. As soon as a window opens press/touch the button you want to bind to. Done.
You can also manually modify the config file
~/.kde/config/khotkeyrc
Here is an example
[Main] Num_Sections=2 Version=1
[Section1] MenuEntry=true Name=K Menu - Networking/WWW/Mozilla.desktop Run=Networking/WWW/Mozilla.desktop Shortcut=Mozilla
[Section2] MenuEntry=true Name=K Menu - Home.desktop Run=Home.desktop Shortcut=F13
Related posts:
- [IT] Configurazione dei tasti multimediali degli HP Pavilion – QuickPlay per Linux
- Setting up Elisa as Default Multimedia Center
- arrow keys not working with vmware
- HowTo: Ubuntu Linux on HP Pavilion series laptops
- Configure GRUB2 options and background
- Guida per Ottimizzare Ubuntu Linux sui portatili HP Pavilion
- Ottimizzazioni per il Risparmio Energetico per portatili HP Pavilion su Ubuntu Linux
Print This Post
|
Email This Post


da best. Keep it going! Thank you
my laptop is hp pavilion 2845se , i have the same problem xev doesn’t feel all the quick touch buttons even the sound it only feel the sound buttons when i kill all the gnome applications
killall gnome-settings-daemon gnome-power-manager;
Hello
I appreciate the post but as of yet have been unable to get any of your suggestions working…I am unable to open .Xmodmap or make changes to it, nor do I know what changes I would be making even if I did. For example…I am using alsa mixer (downloaded cause I was following another reputed fix) and want to make it so that my keycode 122 (volume down button) actually makes the volume go down, somewhere- anywhere…what is the command that I should actually bind it with? Any help from anyone will be greatly appreciated.
[...] fix cpu-freq related problems on INTEL dv2000 series (incl. dv2765tx) download here 2008 05 01 – published a tutorial for customizing touch sensible buttons 2008 04 20 – more on brightness control failures on dv2xxx [...]
any idea how do i enable the wifi quick button ?