Volumen and power button

Problems with hardware & laptops not being detected or supported during or after install.
yamifrankc
Posts: 4
Joined: Wed Apr 01, 2009 1:06 am

Volumen and power button

Postby yamifrankc » Wed Apr 01, 2009 4:44 am

I have an acer aspire 4320.
Im using archlinux with lxde.
The volume whell and power button do not work.

They do using others DE,like kde or gnome.

What can i do?

archibald haddock
Posts: 148
Joined: Sun Jan 11, 2009 6:57 pm

Re: Volumen and power button

Postby archibald haddock » Wed Apr 01, 2009 3:03 pm

You could map them to some command.
I am using xbindkeys for that.

maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Volumen and power button

Postby maces » Wed Apr 01, 2009 5:12 pm

Hi

Me. too. "xbindkeys" is really useful. Have a look at the "xev" command, it will help you ;).

maces

yamifrankc
Posts: 4
Joined: Wed Apr 01, 2009 1:06 am

Re: Volumen and power button

Postby yamifrankc » Wed Apr 01, 2009 8:35 pm

I did the xev command,and i can see the Volume Whell responding...
But...i cant figure out how to use xbindkeys to make volume whell work :S.

maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Volumen and power button

Postby maces » Thu Apr 02, 2009 6:55 pm

Here is my .xbindkeysrc it is designed for a Logitech G11 keybord and a logitech MX5180 mouse:

Code: Select all

###########################
# xbindkeys configuration #
###########################
#
# Version: 0.1.3
#
# If you edit this, do not forget to uncomment any lines that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier (on my keyboard):
#   Control, Shift, Mod1 (Alt), Mod2 (NumLock),
#   Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
# Another way to specifie a key is to use 'xev' and set the
# keycode with c:nnn or the modifier with m:nnn where nnn is
# the keycode or the state returned by xev
#
# This file is created by xbindkey_config
# The structure is :
# # Remark
# "command"
# m:xxx + c:xxx
# Shift+...

#keystate_numlock = enable
#keystate_scrolllock = enable
#keystate_capslock = enable

#Logitech MX-518 Mouse left side button (small)
"pcmanfm"
    m:0x10 + b:9
    Mod2 + NoSymbol

#Logitech MX-5180 Mouse left side button (long)
"lxterminal"
    m:0x10 + b:8
    Mod2 + NoSymbol

# start lxterminal
"lxterminal"
   Mod2+Mod4+Super_L + t

# start firefox
"firefox"
   Mod2+Mod4+Super_L + f

# start amixer +
"amixer set Master 1+"
   Mod2+Mod4+Super_L + w

# start amixer -
"amixer set Master 1-"
   Mod2+Mod4+Super_L + y

# start audacious play/pause
"audacious -t"
   Mod2+Mod4+Super_L + s

# start audacious next
"audacious -f"
   Mod2+Mod4+Super_L + d

# start audacious prev
"audacious -r"
   Mod2+Mod4+Super_L + a

# show my mount gui
"/home/maces/apps/skripts/show_mounted/mount_gui.py"
   Mod2+Mod4+Super_L + m

#"xbindkeys_show"
"xbindkeys_config"
   control+shift + q

#SoundUp Mastervolume von amixe erhoehen
"amixer set Master 1+"
    m:0x0 + c:123
    Mod2 + NoSymbol

#SoundDown Mastervolumen von amixer veringern
"amixer set Master 1-"
    m:0x0 + c:122
    Mod2 + NoSymbol

#Mute amixer Muten
"amixer set Master toggle"
    m:0x10 + c:121
    Mod2 + NoSymbol

#audacious Playpause
"audacious -t"
    m:0x0 + c:172
    Mod2 + NoSymbol

#audacious Next
"audacious -f"
    m:0x0 + c:171
    Mod2 + NoSymbol

#audacious Prev
"audacious -r"
    m:0x0 + c:173
    Mod2 + NoSymbol

#audacious Stop
"audacious -s"
    m:0x10 + c:174
    Mod2 + NoSymbol

#take a screenshot
"/home/maces/apps/skripts/screenshot/screenshot -d"
    m:0x10 + c:107
    Mod2 + Print

#G1
"Command"
    m:0x10 + c:177
    Mod2 + NoSymbol

#G2
"Command"
    m:0x10 + c:152
    Mod2 + NoSymbol

#G3
"Command"
    m:0x10 + c:190
    Mod2 + NoSymbol

#G4
"Command"
    m:0x10 + c:208
    Mod2 + NoSymbol

#G5
"Command"
    m:0x10 + c:129
    Mod2 + NoSymbol

#G6
"Command"
    m:0x10 + c:130
    Mod2 + NoSymbol

#G7
"Command"
    m:0x10 + c:231
    Mod2 + NoSymbol

#G8
"Command"
    m:0x10 + c:209
    Mod2 + NoSymbol

#G9
"Command"
    m:0x10 + c:210
    Mod2 + NoSymbol

#G10
"Command"
    m:0x10 + c:136
    Mod2 + NoSymbol

#G11
"Command"
    m:0x10 + c:220
    Mod2 + NoSymbol

#G12
"Command"
    m:0x10 + c:143
    Mod2 + NoSymbol

#G13
"Command"
    m:0x10 + c:246
    Mod2 + NoSymbol

#G14
"Command"
    m:0x10 + c:251
    Mod2 + NoSymbol

#G15
"Command"
    m:0x10 + c:137
    Mod2 + NoSymbol

#G16
"Command"
    m:0x10 + c:138
    Mod2 + NoSymbol

#G17
"Command"
    m:0x10 + c:182
    Mod2 + NoSymbol

#G18
"Command"
    m:0x10 + c:183
    Mod2 + NoSymbol

#SysSchmalLinksLinks Schmale Taste über Multimedia
"Command"
    m:0x10 + c:170
    Mod2 + NoSymbol

#SysSchmalLinks Schmale Taste über Multimedia
"Command"
    m:0x10 + c:219
    Mod2 + NoSymbol

#SysSchmalRechts Schmale Taste über Multimedia
"Command"
    m:0x10 + c:249
    Mod2 + NoSymbol

#SysSchmalRechtsRechts Schmale Taste über Multimedia
"Command"
    m:0x10 + c:205
    Mod2 + NoSymbol

#M1
"Command"
    m:0x10 + c:184
    Mod2 + NoSymbol

#M2
"Command"
    m:0x10 + c:93
    Mod2 + Mode_switch

#M3
"Command"
    m:0x10 + c:131
    Mod2 + NoSymbol

#Run dialog
"/home/maces/apps/skripts/run/run.sh"
    m:0x18 + c:68
    Alt+Mod2 + F2

#
# End of xbindkeys configuration

archibald haddock
Posts: 148
Joined: Sun Jan 11, 2009 6:57 pm

Re: Volumen and power button

Postby archibald haddock » Sat Apr 04, 2009 12:47 pm

May I ask, what exactly a volume wheel is?

Does it send key strokes to the pc, or it soe kind of analog tuner?

minisori
Posts: 1
Joined: Mon Sep 28, 2009 1:57 pm

Re: Volumen and power button

Postby minisori » Mon Sep 28, 2009 2:00 pm

Maybe a bit late, but can be useful for someone else.

You can edit .config/opengbox/lxde-rc.xml and add the following keybinds for volume wheel and mute.

<!-- Keybindings for audio volume -->
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<execute>amixer -q set Master 1- unmute</execute>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<execute>amixer -q set Master 1+ unmute</execute>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<execute>amixer -q set Master toggle</execute>
</action>
</keybind>

RHenze
Posts: 1
Joined: Wed Feb 17, 2010 3:08 pm

Re: Volumen and power button

Postby RHenze » Wed Feb 17, 2010 3:21 pm

Hi!
Ive got the same problem with an external USB Keyboard on my
notebook.
Ive tried to change .config/openbox/lxde-rc.xml as stated by
User minisori. It doesnt work with the special volume-keys,
like "XF86AudioLowerVolume".
But it works - for example with F2 - when I replace "XF86AudioLowerVolume"
with "F2".

So what I have to do, to get the special volume keys alive?
Thanks
Rudolf

maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Volumen and power button

Postby maces » Thu Feb 18, 2010 5:55 pm

Hi,

have a look at what "xev" says. You also need special packages for some keys, just google it.

maces


Return to “Hardware & Laptops with LXDE”

Who is online

Users browsing this forum: No registered users and 1 guest