Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-05-22 14:50:52

mauser
Member
Registered: 2019-01-23
Posts: 37

Keyboard volume control doesn't work. [Solved]

The keyboard volume control stopped working even though I have keyboard shortcuts enabled. How do I get the volume control to respond to my keyboard?

Last edited by mauser (2019-05-23 18:11:43)


I am command line illiterate. I use MX-21.3 Linux.

Offline

#2 2019-05-22 19:02:02

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

Hi mauser.

If they used to work and rather suddenly stopped, most likely pulseaudio got confused and is controlling the volume for something you're not listening to.

Deleting the files in ~/.config/pulse then running the following in the terminal should fix it:

pulseaudio -k

You may need to restart your sound playing apps after that, and if pulseaudio doesn't restart on its own, this will restart it:

pulseaudio --start

Offline

#3 2019-05-22 19:27:18

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

MrEen wrote:

Hi mauser.

If they used to work and rather suddenly stopped, most likely pulseaudio got confused and is controlling the volume for something you're not listening to.

Deleting the files in ~/.config/pulse then running the following in the terminal should fix it:

pulseaudio -k

You may need to restart your sound playing apps after that, and if pulseaudio doesn't restart on its own, this will restart it:

pulseaudio --start

That didn't work. Deleting that file worked but when I put the comands and hit enter, nothing happened.

Last edited by mauser (2019-05-22 19:42:47)


I am command line illiterate. I use MX-21.3 Linux.

Offline

#4 2019-05-22 19:42:31

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

Both of those commands will simply return to the prompt unless they throw an error.  Did you test the keys?

Offline

#5 2019-05-22 19:43:25

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

MrEen wrote:

Both of those commands will simply return to the prompt unless they throw an error.  Did you test the keys?

Yes, up and down keys still don't work. It returned nothing at all.

Last edited by mauser (2019-05-22 19:44:22)


I am command line illiterate. I use MX-21.3 Linux.

Offline

#6 2019-05-22 19:44:45

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

Meaning the terminal prompt is now sitting on an empty line?

Offline

#7 2019-05-22 19:46:26

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

MrEen wrote:

Meaning the terminal prompt is now sitting on an empty line?

Yes, that's correct.


I am command line illiterate. I use MX-21.3 Linux.

Offline

#8 2019-05-22 19:47:35

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

That's very weird (to me)

Does Ctrl-C get you back to the prompt?

Offline

#9 2019-05-22 19:48:47

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

MrEen wrote:

That's very weird (to me)

Does Ctrl-C get you back to the prompt?

No, it opens the debugger in Firefox.


I am command line illiterate. I use MX-21.3 Linux.

Offline

#10 2019-05-22 19:53:34

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

Something weird is going on. If the terminal is the active window Ctrl-C should stop a running terminal command. It should have no effect on any other app, unless you've create a keyboard shortcut yourself using that key combo maybe.

I think we'll need to wait for someone more experienced than myself to assist.

Offline

#11 2019-05-22 19:59:14

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

Offline

#12 2019-05-22 20:06:54

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

MrEen wrote:

Something weird is going on. If the terminal is the active window Ctrl-C should stop a running terminal command. It should have no effect on any other app, unless you've create a keyboard shortcut yourself using that key combo maybe.

I think we'll need to wait for someone more experienced than myself to assist.

You are confusing me. I hit the Ctrl key and capital on My keyboard. I didn't have the terminal open. I don't understand and can't understand the command line. I only understand the G.U.I.


I am command line illiterate. I use MX-21.3 Linux.

Offline

#13 2019-05-22 20:08:44

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

Thanks, but I have seen that and have done that already. It did nothing to fix it.


I am command line illiterate. I use MX-21.3 Linux.

Offline

#14 2019-05-22 22:16:28

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

mauser wrote:

I don't understand and can't understand the command line. I only understand the G.U.I.

Okay. I'll try to avoid CL methods as best I can. First things first. Have you rebooted since this started?

If you left click on the pulseaudio-plugin icon and move the volume slider manually, does that change the volume? If no, then click on Audio mixer... , select the Output Devices tab, and make sure the check mark next to the proper port is highlighted. That for you probably means the port that is showing Speakers or Headphones, and not the port with HDMI options. After that see if all volume changing methods now work (meaning the slider and your multimedia keys.)

Offline

#15 2019-05-22 22:54:39

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

MrEen wrote:
mauser wrote:

I don't understand and can't understand the command line. I only understand the G.U.I.

Okay. I'll try to avoid CL methods as best I can. First things first. Have you rebooted since this started?

If you left click on the pulseaudio-plugin icon and move the volume slider manually, does that change the volume? If no, then click on Audio mixer... , select the Output Devices tab, and make sure the check mark next to the proper port is highlighted. That for you probably means the port that is showing Speakers or Headphones, and not the port with HDMI options. After that see if all volume changing methods now work (meaning the slider and your multimedia keys.)

Yes, I have rebooted. The slider responds only to the mouse and the volume changes fine but only with the mouse. The volume does nothing from the keyboard. This all started when I installed Stacer. I have uninstalled Stacer.

Last edited by mauser (2019-05-22 23:02:59)


I am command line illiterate. I use MX-21.3 Linux.

Offline

#16 2019-05-22 23:54:04

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

All right. At least we now know pulseaudio is working properly, so maybe it's the MM keys.

If you open Settings Manager in your menu, navigate to Keyboard then click on the Application Shortcuts tab, do you see volume settings in there under Shortcut? Probably proceeded by XF86 like XF86AudioRaiseVolume. If those are there, what is the command under Command for the raise volume shortcut?

Offline

#17 2019-05-23 00:14:06

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

MrEen wrote:

All right. At least we now know pulseaudio is working properly, so maybe it's the MM keys.

If you open Settings Manager in your menu, navigate to Keyboard then click on the Application Shortcuts tab, do you see volume settings in there under Shortcut? Probably proceeded by XF86 like XF86AudioRaiseVolume. If those are there, what is the command under Command for the raise volume shortcut?

There are no such things in there.

Last edited by mauser (2019-05-23 00:14:43)


I am command line illiterate. I use MX-21.3 Linux.

Offline

#18 2019-05-23 00:27:54

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

Okay. At the bottom of the window click on Add. In the window that open for the command enter this:

amixer -D pulse sset Master 3%+ unmute

Now click on Ok, then it'll ask you to press the key(s) you want to assign to that command. Just press your volume up button and it should be done.

You can then repeat the process using this for the volume decrease button:

amixer -D pulse sset Master 3%- unmute

If you have a mute button as well, repeat one more time using this:

amixer -D pulse sset Master toggle

Offline

#19 2019-05-23 00:39:21

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

Done and still doesn't work. I tried rebooting and same, doesn't work. I wonder what else did Stacer modify. The keyboard is sending a signal because it responded to setting each button to each command so it rules out the keyboard.

Last edited by mauser (2019-05-23 00:41:48)


I am command line illiterate. I use MX-21.3 Linux.

Offline

#20 2019-05-23 00:48:37

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

WOW! That is weird. We'll have to wait for someone that has better ideas I'm afraid.

Good luck to you and I hope it gets solved soon!

Offline

#21 2019-05-23 00:52:05

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

In case your permissions got messed up, this terminal command will fix them (I don't know any other way to do this, sorry!):

sudo chown -Rc $USER:$USER $HOME

Offline

#22 2019-05-23 00:56:36

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

MrEen wrote:

In case your permissions got messed up, this terminal command will fix them (I don't know any other way to do this, sorry!):

sudo chown -Rc $USER:$USER $HOME

Thanks. It changed a whole lot. Somehow Stacer messed up my permissions too. Stacer is definately Malware. Thank you very much.

Last edited by mauser (2019-05-23 01:01:05)


I am command line illiterate. I use MX-21.3 Linux.

Offline

#23 2019-05-23 01:02:56

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

I had never heard of it before your mentioning it. Took a look at the github page and cringed when I saw the System Cleaner section. That stuff often leads to trouble for people newer to linux.

Any effect at all on your volume keys?

Offline

#24 2019-05-23 01:08:51

mauser
Member
Registered: 2019-01-23
Posts: 37

Re: Keyboard volume control doesn't work. [Solved]

MrEen wrote:

I had never heard of it before your mentioning it. Took a look at the github page and cringed when I saw the System Cleaner section. That stuff often leads to trouble for people newer to linux.

Any effect at all on your volume keys?

I have been using Linux since September 2015. I never came across Malware in Linux until this. No, they still don't work.

Last edited by mauser (2019-05-23 01:10:53)


I am command line illiterate. I use MX-21.3 Linux.

Offline

#25 2019-05-23 01:15:53

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Keyboard volume control doesn't work. [Solved]

Let's hope someone has a different idea soon. Sorry you ran into this.

Offline

Board footer

Powered by FluxBB