You are not logged in.

#1 2012-02-23 17:11:56

Sample
Member
Registered: 2012-02-20
Posts: 11

Special keyboard buttons not working

Hello, everybody smile

I have got a HP G62 notebook and some of the "special" keyboard buttons are not working ( in other words, nothing changes ).


For example:

- display chooser button ( i.e., either just the laptop, either the projector, either both, etc. )

- sound on/off button


Anyone had any experience with this ?

Offline

#2 2012-02-23 17:48:00

empthollow
Member
Registered: 2009-09-26
Posts: 168

Re: Special keyboard buttons not working

I have used 'xev' to determine what the keycode is i.e. xf86mute, and assigned commands to the keys using my window manager.  It has worked in gnome and fluxbox for me.


--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org

Offline

#3 2012-02-23 17:56:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Special keyboard buttons not working

Offline

#4 2012-02-23 19:24:37

kevin89
Arch Linux f@h Team Member
From: Netherlands
Registered: 2007-03-14
Posts: 218

Re: Special keyboard buttons not working

Xbindkeys is a good tool to map your keys. Use xbindkeys -k to find the code for a button you press.

Offline

#5 2012-02-23 19:31:26

hesse
Member
Registered: 2011-12-08
Posts: 88

Re: Special keyboard buttons not working

Also, if you're using acpi, run

$ acpi_listen

to see what actions your keys may generate, then you should be able map each one of these actions to a command to run. Simply edit the action handler script to accomplish this:

/etc/acpi/handler.sh

Offline

#6 2012-02-25 21:30:28

Sample
Member
Registered: 2012-02-20
Posts: 11

Re: Special keyboard buttons not working

While the keyboard binding part might not be that hard, I am stuck with figuring out how and what to get for the VGA and HDMI port switching ( see below ).

tY3Zscg
[ click for a bigger image ]

Any suggestions for a specific application or at least an idea of what should I search for ?

Offline

#7 2012-02-25 21:46:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,499
Website

Re: Special keyboard buttons not working

xrandr is what you need.  But if you want a gui interface you may like arandr.

If you want a notification display like the one in that image, I don't know that one exists - but a couple lines of scripting should allow a four way toggle like that, and any notification system could be made to pop up a display much like that.

Last edited by Trilby (2012-02-25 21:47:56)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB