You are not logged in.

#1 2018-04-03 15:43:45

SealsRock12
Member
Registered: 2018-04-03
Posts: 83

[SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

Just to let you know in advance, I got the sound working, but the volume buttons don't.


On my Lenovo ThinkPad X1 Carbon, the physical volume buttons are not working.


I am assuming that they are not connected to the system, and I would like to know how to connect them.

For more information:

Machine:
  Type: Laptop System: LENOVO product: 3444F9U v: ThinkPad X1 Carbon             
  serial: N/A                                                                    
  Mobo: LENOVO model: 3444F9U v: Win8 Pro DPK TPG serial: N/A UEFI: LENOVO    

It says Win8 Pro because this computer was preinstalled with Win8 Pro, then I installed Linux on it.

EDIT #1:
I am using XFCE desktop environment.

I ran xev, and here are the button IDs I want to connect:

XF86AudioRaiseVolume
XF86AudioMute
XF86AudioLowerVolume

I want them to connect to alsamixer and do their respective actions.

Last edited by SealsRock12 (2018-04-06 22:25:54)


-- SealsRock12

Offline

#2 2018-04-03 15:54:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

This lacks a lot of information. Which utility do you use/expect to respond to the volume key presses? What environment are you using? Do they register in xev?

Offline

#3 2018-04-04 00:18:34

SealsRock12
Member
Registered: 2018-04-03
Posts: 83

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

V1del wrote:

This lacks a lot of information. Which utility do you use/expect to respond to the volume key presses? What environment are you using? Do they register in xev?

I put all of those in.


-- SealsRock12

Offline

#4 2018-04-04 07:20:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

So as we see the buttons work and are registered. If you use pulseaudio you could use the complementary xfce4-pulseaudio-plugin which will handle these events. If you intend to stay on ALSA you will have to either install something else which handles ALSA or script them in the Shortcut settings to use corresponding amixer commands, see https://wiki.archlinux.org/index.php/Xfce#Sound as well.

Offline

#5 2018-04-04 14:34:26

SealsRock12
Member
Registered: 2018-04-03
Posts: 83

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

Thank you V1del, I am going to use pulseaudio, but after a reboot, it doesn't work.

Last edited by SealsRock12 (2018-04-04 14:43:53)


-- SealsRock12

Offline

#6 2018-04-04 15:02:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

What doesn't? Sound or the audio buttons or both? Have you installed and started the xfce pulseaudio plugin? What's the output of

sudo fuser -v /dev/snd/*
pacmd list-cards
pacmd list-sinks

Offline

#7 2018-04-04 22:35:14

SealsRock12
Member
Registered: 2018-04-03
Posts: 83

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

V1del wrote:

What doesn't? Sound or the audio buttons or both? Have you installed and started the xfce pulseaudio plugin? What's the output of

sudo fuser -v /dev/snd/*
pacmd list-cards
pacmd list-sinks

The sound works, but the audio buttons don't.

I have installed xfce4-audio-plugin, but how do you start it?

Outputs:

$ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  aneesh      546 F.... pulseaudio
$ pacmd list-cards
1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_1b.0>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf1510000 irq 29"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
		output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5460, available: unknown)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)
		output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 360, available: unknown)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: no)
		output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 360, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
		alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
$ pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9039
	volume: front-left: 41350 /  63% / -12.00 dB,   front-right: 41350 /  63% / -12.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
	card: 0 <alsa_card.pci-0000_00_1b.0>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC269VC Analog"
		alsa.id = "ALC269VC Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf1510000 irq 29"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC269VC"
		alsa.components = "HDA:10ec0269,17aa21f9,00100203 HDA:80862806,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>

Last edited by SealsRock12 (2018-04-04 22:59:34)


-- SealsRock12

Offline

#8 2018-04-05 08:14:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

I don't use xfce but I guess you have the ability to add the plugin to your panel somewhere.

Offline

#9 2018-04-06 01:17:24

SealsRock12
Member
Registered: 2018-04-03
Posts: 83

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

V1del wrote:

I don't use xfce but I guess you have the ability to add the plugin to your panel somewhere.

What DE do you use? I don't care about DEs, I just want my sound working.


-- SealsRock12

Offline

#10 2018-04-06 06:47:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

Well your sound works, you just want your buttons to work which that pulse plugin will provide, it really shouldn't be that hard to add it to the panel no? I use KDE with plasma-pa as the volume mixer but this really doesn't matter much, virtually every pulseaudio mixer application will support these buttons.

Offline

#11 2018-04-06 15:40:10

SealsRock12
Member
Registered: 2018-04-03
Posts: 83

Re: [SOLVED] Lenovo ThinkPad X1C1 - Volume buttons not working

I had the offer to install a new DE because I had to reinstall Arch since I was making changes with visudo and vi was broken. I will try plasma. Anyway, I don't like XFCE that much. Thank you for helping me.

Last edited by SealsRock12 (2018-04-07 16:14:30)


-- SealsRock12

Offline

Board footer

Powered by FluxBB