You are not logged in.

#1 2021-01-27 01:19:12

SpaceGhost
Member
Registered: 2021-01-27
Posts: 7

[SOLVED] Volume buttons and mutebutton wont work on ThinkPad x220

So I just installed Arch with XFCE on my x220 thinkpad, everything is working well but I have no sound. I can run youtube videos but the sound wont come on. The mute button has an orange light next to it but when I press it nothing happens, also none of the volume buttons work. I installed the BlueZ BluetoothManager and Bluetooth Adapter but it doesnt work. Please help me I really dont want to install manjaro on this thing. thank you.

Last edited by SpaceGhost (2021-01-27 02:31:24)

Offline

#2 2021-01-27 01:42:13

Joedang
Member
From: Cascadia
Registered: 2020-05-17
Posts: 16

Re: [SOLVED] Volume buttons and mutebutton wont work on ThinkPad x220

Is pulseaudio installed and running? What happens if you run

pactl set-sink-mute @DEFAULT_SINK@ toggle

to toggle the mute?

Offline

#3 2021-01-27 01:48:18

SpaceGhost
Member
Registered: 2021-01-27
Posts: 7

Re: [SOLVED] Volume buttons and mutebutton wont work on ThinkPad x220

Joedang wrote:

Is pulseaudio installed and running? What happens if you run

pactl set-sink-mute @DEFAULT_SINK@ toggle

to toggle the mute?

pulseaudio
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

pulseaudio is installed this is the printout when I type pluseaudio.

When I run that command the light turns off, still no audio.

Offline

#4 2021-01-27 01:53:35

Joedang
Member
From: Cascadia
Registered: 2020-05-17
Posts: 16

Re: [SOLVED] Volume buttons and mutebutton wont work on ThinkPad x220

SpaceGhost wrote:

When I run that command the light turns off, still no audio.

Well, that's a good sign. Maybe the audio is being sent to the wrong output. If you have pavucontrol, you can use that to easily fiddle with output devices and individual programs.

Offline

#5 2021-01-27 01:56:55

SpaceGhost
Member
Registered: 2021-01-27
Posts: 7

Re: [SOLVED] Volume buttons and mutebutton wont work on ThinkPad x220

Joedang wrote:
SpaceGhost wrote:

When I run that command the light turns off, still no audio.

Well, that's a good sign. Maybe the audio is being sent to the wrong output. If you have pavucontrol, you can use that to easily fiddle with output devices and individual programs.

Yes, I downloaded this and my volume was set all the way down. After adjusting it the volume works and I can hear audio but now the buttons still dont work.

Offline

#6 2021-01-27 02:10:29

SpaceGhost
Member
Registered: 2021-01-27
Posts: 7

Re: [SOLVED] Volume buttons and mutebutton wont work on ThinkPad x220

Also when I run nano ~/.Xmodmap this is the output I get.

keycode 121 = XF86AudioMute NoSymbol XF86AudioMute
keycode 122 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume
keycode 124 = XF86PowerOff NoSymbol XF86PowerOff

still doesn't work.

Offline

#7 2021-01-27 02:12:42

Joedang
Member
From: Cascadia
Registered: 2020-05-17
Posts: 16

Re: [SOLVED] Volume buttons and mutebutton wont work on ThinkPad x220

One easy way to make the keys work is to setup keybindings in XFCE. I think you can get to that by searching for "keyboard" from the application launcher. (I'm not using XFCE anymore, so I can't check easily.) You just bind the appropriate commands to those buttons.

Some example commands to get you started:

pactl set-sink-volume @DEFAULT_SINK@ -10% # decrease the volume
xbacklight -dec 10 # decrease the backlight
pactl set-source-mute @DEFAULT_SOURCE@ toggle # mute/unmute the microphone
playerctl play-pause # toggle the play/pause state of the current media

I think XFCE just lets you press the button to assign it to the binding. But, if you need to, you can figure out what they key numbers/symbols are by using xev.

Offline

#8 2021-01-27 02:30:11

SpaceGhost
Member
Registered: 2021-01-27
Posts: 7

Re: [SOLVED] Volume buttons and mutebutton wont work on ThinkPad x220

Joedang wrote:

One easy way to make the keys work is to setup keybindings in XFCE. I think you can get to that by searching for "keyboard" from the application launcher. (I'm not using XFCE anymore, so I can't check easily.) You just bind the appropriate commands to those buttons.

Some example commands to get you started:

pactl set-sink-volume @DEFAULT_SINK@ -10% # decrease the volume
xbacklight -dec 10 # decrease the backlight
pactl set-source-mute @DEFAULT_SOURCE@ toggle # mute/unmute the microphone
playerctl play-pause # toggle the play/pause state of the current media

I think XFCE just lets you press the button to assign it to the binding. But, if you need to, you can figure out what they key numbers/symbols are by using xev.

YES !! This works ! Thank you so much you SOLVED my issue.

Offline

Board footer

Powered by FluxBB