LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-08-2016, 04:37 PM   #1
soxplayer
Member
 
Registered: Jul 2004
Posts: 50

Rep: Reputation: 20
Keyboard Volume Control


Hello,

FN F11 and FN F12 work in KDE but not XFCE.

Anyone have any hints?

I did manage to map FN F10 to

pactl set sink-sink-mute 0 toggle.

similar attempt to use pactl fail for the volume up and volume down.

Thanks for any help.
 
Old 07-08-2016, 05:08 PM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
Do you have the "pulseaudio panel plugin" installed?
The multimedia keys work fine here with Slackware64-14.2 and Xfce.

Last edited by cwizardone; 07-08-2016 at 05:10 PM.
 
Old 07-08-2016, 05:16 PM   #3
slackb0t
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 264

Rep: Reputation: 63
This works for me in i3.

Code:
set $sink `pactl list short sinks | grep RUNNING | cut -f1`
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +10%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -10%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle

Last edited by slackb0t; 07-08-2016 at 05:18 PM.
 
Old 07-08-2016, 06:53 PM   #4
soxplayer
Member
 
Registered: Jul 2004
Posts: 50

Original Poster
Rep: Reputation: 20
cwizardone: I do not believe it is installed. It is not in the "everything" install and I do not see it in the /extra directory of the installation disk or on sbopkg.

Not sure of the source I should use.
 
Old 07-08-2016, 07:02 PM   #5
soxplayer
Member
 
Registered: Jul 2004
Posts: 50

Original Poster
Rep: Reputation: 20
Slackb0t,

I think that the pulseaudio install will prevent this from working as there is no 'RUNNING' sink.

bash-4.3# pactl list short sinks | grep RUNNING | cut -f1
No protocol specified
xcb_connection_has_error() returned true
bash-4.3#


or just the pactl command:

bash-4.3# pactl list short sinks
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
0 alsa_output.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 44100Hz IDLE
bash-4.3#

reveals nothing for grep to match to.
 
Old 07-08-2016, 07:18 PM   #6
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
Quote:
Originally Posted by soxplayer View Post
cwizardone: I do not believe it is installed. It is not in the "everything" install and I do not see it in the /extra directory of the installation disk or on sbopkg.

Not sure of the source I should use.
It is part of the standard Slackware installation.

Quote:
PACKAGE NAME: xfce4-pulseaudio-plugin-0.2.4-x86_64-3.txz
PACKAGE LOCATION: ./slackware64/xfce
PACKAGE SIZE (compressed): 40 K
PACKAGE SIZE (uncompressed): 160 K
PACKAGE DESCRIPTION:
xfce4-pulseaudio-plugin: xfce4-pulseaudio-plugin (PulseAudio plugin for Xfce panel)
xfce4-pulseaudio-plugin:
xfce4-pulseaudio-plugin: xfce4-pulseaudio-plugin is a plugin for the Xfce panel which provides
xfce4-pulseaudio-plugin: a convenient way to adjust the audio volume of the PulseAudio sound
xfce4-pulseaudio-plugin: system and to an auto mixer tool like pavucontrol. It can optionally
xfce4-pulseaudio-plugin: handle multimedia keys for controlling the audio volume.
xfce4-pulseaudio-plugin:
A full installation is highly recommended.

Last edited by cwizardone; 07-08-2016 at 07:24 PM.
 
Old 07-08-2016, 07:34 PM   #7
soxplayer
Member
 
Registered: Jul 2004
Posts: 50

Original Poster
Rep: Reputation: 20
Further Checking

I have verified that xfce4-pulseaudio-plugin-0.2.4-x86_64-3 is an installed package. is this the 'panel' plugin you are referring to?

How can I verify that it is running?

It does not seem to appear using ps aux
 
Old 07-08-2016, 07:51 PM   #8
soxplayer
Member
 
Registered: Jul 2004
Posts: 50

Original Poster
Rep: Reputation: 20
Based on the feedback, I discovered the issue.

The pulseaudio panel plugin is not active by default. You can find the panel setting in the xfce setting menu and simply add the plugin to the panel and it works quite well.
 
Old 07-08-2016, 08:14 PM   #9
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
Quote:
Originally Posted by soxplayer View Post
Based on the feedback, I discovered the issue.

The pulseaudio panel plugin is not active by default. You can find the panel setting in the xfce setting menu and simply add the plugin to the panel and it works quite well.
That will do it.
You can also right click on the panel, then go to "panel" and then, "add new items."
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Keyboard Fn volume control keys not working after 13.04 install Kirsten Ubuntu 0 09-07-2013 10:45 PM
[SOLVED] Microsoft Natural Ergonomic Keyboard 4000 and volume control. Habitual Slackware 6 07-23-2013 05:54 PM
Gnome: control audio volume via the keyboard i92guboj Linux - Desktop 2 10-04-2010 03:28 AM
Volume Control on Keyboard... Grim Reaper Linux - Hardware 2 10-29-2002 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration