Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old June 8th, 2007   #1
Stokky
First Cup of Ubuntu
 
Join Date: Jul 2006
Beans: 2
Volume up-down keys in XFCE (Xubuntu)

I searched around and found several people trying to figure out how to set shortcuts for the special multimedia keys (e.g. volume up-down / mute), which don't seem to be recognized by XFCE by default.

I found the solution over here: http://alvonsius.wordpress.com/2007/...with-keyboard/

Quote:
Little googling I found out that using amixer could resolve this. Here it goes …

First you must know the basic command of amixer (this is myown simplified version) :

amixer [command] [control] [parameter] …. more read here (or just read the manual)

To be used for my need I use this three command :

amixer set Master 5+ : increase the volume by 5

amixer set Master 5- : decrease the volume by 5

amixer set Master toggle : switch between mute and unmute volume

Okay, after that go to Settings > Keyboard Settings, pick the Shortcuts tab and add your own Themes by clicking the (+ Add) button at the theme list. After that, just add those three command to the shortcut list (I don’t have to write the howto here since the steps from the application is preety much helping).

Done, now I can control my volume trough keyboard. Humm, I wonder when will I stop using xfce now …. ^^
It might work better if you set "0.1+/-" instead of "5+/-" in those commands.
Stokky is offline   Reply With Quote
Old June 8th, 2007   #2
diatribe
Extra Foam Sugar Free Ubuntu
 
Join Date: Jun 2006
Location: USA
My beans are hidden!
Send a message via AIM to diatribe
Re: Volume up-down keys in XFCE (Xubuntu)

I noticed that when using xfce on my acer laptop, the volume up/down keys only work if you add the volume panel applet. might work for you also dunno
diatribe is offline   Reply With Quote
Old June 9th, 2007   #3
bapoumba
GMO Free Ubuntu French Roast.
 
bapoumba's Avatar
 
Join Date: Sep 2006
Location: France.
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Re: Volume up-down keys in XFCE (Xubuntu)

May be you found a solution already.
Did not run into that problem myself. I have the xfce4-mixer applet running, and the <Fn><F8 or F9> keys properly working (replace F8 or F9 with the proper keys for your keyboard).
bapoumba is offline   Reply With Quote
Old October 20th, 2007   #4
MatthewPlanchard
A Carafe of Ubuntu
 
MatthewPlanchard's Avatar
 
Join Date: Oct 2007
Beans: 110
Gutsy Gibbon Testing
Send a message via AIM to MatthewPlanchard Send a message via MSN to MatthewPlanchard
Re: Volume up-down keys in XFCE (Xubuntu)

Hey, I don't know if you've already solved this, but I found a solution in case anyone is still having this problem.

go to system->synaptic packet manager and install the following package:

xfce-xfapplet-plugin

It'll allows you to add GNOME deskbar applets to your panel. Just add the volume control and, as long as your volume works natively in GNOME, you'll be ready to go!
__________________
...:::{Matthew}:::...
Ubuntu User # 17973 | Psychocat's Ubuntu Resources| Install ANYTHING | GRUB
Blessings and Love
MatthewPlanchard is offline   Reply With Quote
Old October 20th, 2007   #5
zlO_Olz
First Cup of Ubuntu
 
zlO_Olz's Avatar
 
Join Date: Jul 2007
Location: Italy
Beans: 6
Xubuntu 7.10 Gutsy Gibbon
Re: Volume up-down keys in XFCE (Xubuntu)

In feisty i was able to control volume up/down & mute with keys Fn+F10/F11/F12, now after updating to gutsy the "Fn" key doesn't seem to work anymore (I noticed this trying to configure shortcuts in keyboard preferences)

Does anyone know how to solve this? I have an asus a6g laptop with xubuntu 7.10

thank you
zlO_Olz is offline   Reply With Quote
Old October 21st, 2007   #6
johnxx
First Cup of Ubuntu
 
Join Date: Feb 2007
Beans: 2
Re: Volume up-down keys in XFCE (Xubuntu)

I have the same problem and I am working on it. xev tells me that the keycodes for my multimedia keys aren't associated with any keysyms. Could you run xev from a terminal and then press one of your multimedia keys that doesn't work? Does it give output similar to this:
Code:
KeyRelease event, serial 27, synthetic NO, window 0x4c00001,
    root 0xc1, subw 0x0, time 3239744614, (-835,221), root:(494,279),
    state 0x0, keycode 162 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
The part I'm interested in is the "keysym 0x0, NoSymbol"

If yours looks like that too, you're probably having the same problem as me.

-John
johnxx is offline   Reply With Quote
Old October 21st, 2007   #7
johnxx
First Cup of Ubuntu
 
Join Date: Feb 2007
Beans: 2
Re: Volume up-down keys in XFCE (Xubuntu)

I grabbed this from the Gentoo - "Howto use multimedia keys" ( http://gentoo-wiki.com/HOWTO_Use_Mul...ing_up_xmodmap )

Make a file in your home directory called .xmodmap and paste this into it:
Code:
keycode 222 = XF86PowerOff
keycode 223 = XF86Sleep
keycode 236 = XF86Mail
keycode 229 = XF86Search
keycode 230 = XF86Favorites
keycode 178 = XF86WWW

keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 160 = XF86AudioMute
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
EDIT: After that run xmodmap .xmodmap from your home directory, then try using the keys and/or trying binding them to something in the XFCE keyboard shortcuts program.

There seems to be a fairly standard mapping here, since this lists the same mappings as my notebook has. If this doesn't work for you, you might want to try digging through the part of the gentoo howto I linked, as it has good information.

If you feel like all of this is over your head, then just wait and I'm sure it will get fixed soon in an update.

-John

EDIT: I should really test this stuff before I hit reply. :/

Last edited by johnxx; October 21st, 2007 at 02:43 AM..
johnxx is offline   Reply With Quote
Old October 21st, 2007   #8
zlO_Olz
First Cup of Ubuntu
 
zlO_Olz's Avatar
 
Join Date: Jul 2007
Location: Italy
Beans: 6
Xubuntu 7.10 Gutsy Gibbon
Re: Volume up-down keys in XFCE (Xubuntu)

Quote:
Originally Posted by johnxx View Post
Could you run xev from a terminal and then press one of your multimedia keys that doesn't work?
  • just Fn: nothing happens
  • Fn+F10, Fn+F11, Fn+F12: same result for all combinations
    Code:
    FocusOut event, serial 30, synthetic NO, window 0x2e00001,
        mode NotifyGrab, detail NotifyAncestor
    
    FocusIn event, serial 30, synthetic NO, window 0x2e00001,
        mode NotifyUngrab, detail NotifyAncestor
    
    KeymapNotify event, serial 30, synthetic NO, window 0x0,
        keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
               0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
  • F10, F11, F12
    Code:
    KeyPress event, serial 28, synthetic NO, window 0x3000001,
        root 0x5b, subw 0x0, time 3256386698, (-282,164), root:(269,472),
        state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
        XLookupString gives 0 bytes: 
        XmbLookupString gives 0 bytes: 
        XFilterEvent returns: False
    
    KeyRelease event, serial 31, synthetic NO, window 0x3000001,
        root 0x5b, subw 0x0, time 3256386779, (-282,164), root:(269,472),
        state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
        XLookupString gives 0 bytes: 
        XFilterEvent returns: False
    
    KeyPress event, serial 31, synthetic NO, window 0x3000001,
        root 0x5b, subw 0x0, time 3256387552, (-282,164), root:(269,472),
        state 0x0, keycode 95 (keysym 0xffc8, F11), same_screen YES,
        XLookupString gives 0 bytes: 
        XmbLookupString gives 0 bytes: 
        XFilterEvent returns: False
    
    KeyRelease event, serial 31, synthetic NO, window 0x3000001,
        root 0x5b, subw 0x0, time 3256387638, (-282,164), root:(269,472),
        state 0x0, keycode 95 (keysym 0xffc8, F11), same_screen YES,
        XLookupString gives 0 bytes: 
        XFilterEvent returns: False
    
    KeyPress event, serial 31, synthetic NO, window 0x3000001,
        root 0x5b, subw 0x0, time 3256388069, (-282,164), root:(269,472),
        state 0x0, keycode 96 (keysym 0xffc9, F12), same_screen YES,
        XLookupString gives 0 bytes: 
        XmbLookupString gives 0 bytes: 
        XFilterEvent returns: False
    
    KeyRelease event, serial 31, synthetic NO, window 0x3000001,
        root 0x5b, subw 0x0, time 3256388145, (-282,164), root:(269,472),
        state 0x0, keycode 96 (keysym 0xffc9, F12), same_screen YES,
        XLookupString gives 0 bytes: 
        XFilterEvent returns: False
zlO_Olz is offline   Reply With Quote
Old October 22nd, 2007   #9
zlO_Olz
First Cup of Ubuntu
 
zlO_Olz's Avatar
 
Join Date: Jul 2007
Location: Italy
Beans: 6
Xubuntu 7.10 Gutsy Gibbon
Re: Volume up-down keys in XFCE (Xubuntu)

This is my /proc/acpi/asus listing:

Code:
:/proc/acpi/asus$ ls

brn  disp  info  lcd  mled  wled
these should configure my Fn keys for brightness (brn) etc. I suppose... but there's nothing related to volume controls
should I have to install something in particular?

please help!
zlO_Olz is offline   Reply With Quote
Old October 23rd, 2007   #10
wersdaluv
May the Ubuntu Be With You!
 
wersdaluv's Avatar
 
Join Date: Dec 2006
Location: Pilipinas kong Mahal
Beans: 1,690
Ubuntu 9.04 Jaunty Jackalope
Re: Volume up-down keys in XFCE (Xubuntu)

Same here. The Fn key does not work as a modifier on Gutsy if I set keyboard shortcuts. In Feisty, Fn worked.
wersdaluv is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:25 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry