You are not logged in.

#1 2014-08-09 18:28:06

anatolik
Developer
Registered: 2012-09-27
Posts: 458

[SOLVED] Cannot restore application volume after it goes to zero

About a week ago I spotted an issue on my [testing] Arch. The issue looks related to the recent xorg update.

I use keyboard volume button to set Banshee player volume level. The keyboard is Targus AKB04US if it matters. The volume up/down work fine until I set volume to zero. After that I cannot restore volume back. The only way to do it is to go to "Sound" app to tab named "Application" and set volume for Banshee to non-zero value. After that I can use up/down keyboard buttons again. I see some cryptic messages in my log when volume goes to zero:

Aug 09 11:26:36 argo gdm-Xorg-:0[294]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Aug 09 11:26:36 argo gdm-Xorg-:0[294]: > Warning:          Compat map for group 2 redefined
Aug 09 11:26:36 argo gdm-Xorg-:0[294]: >                   Using new definition
Aug 09 11:26:36 argo gdm-Xorg-:0[294]: > Warning:          Compat map for group 3 redefined
Aug 09 11:26:36 argo gdm-Xorg-:0[294]: >                   Using new definition
Aug 09 11:26:36 argo gdm-Xorg-:0[294]: > Warning:          Compat map for group 4 redefined
Aug 09 11:26:36 argo gdm-Xorg-:0[294]: >                   Using new definition
Aug 09 11:26:36 argo gdm-Xorg-:0[294]: Errors from xkbcomp are not fatal to the X server

Does anybody see the same issue? Any way to fix/workaround it?

Last edited by anatolik (2014-08-09 20:33:37)


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#2 2014-08-09 18:45:16

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Cannot restore application volume after it goes to zero

So you are using XF86Audio keys with that keyboard? Does xdotool bring Banshee back from mute?

xdotool key XF86AudioRaiseVolume
xdotool key XF86AudioMute

Edit: Did you specify anything for Xkb extension in xorg.conf or used any other application customizing the default settings?

Last edited by emeres (2014-08-09 18:50:58)

Offline

#3 2014-08-09 19:25:48

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: [SOLVED] Cannot restore application volume after it goes to zero

emeres wrote:

So you are using XF86Audio keys with that keyboard? Does xdotool bring Banshee back from mute?

xdotool key XF86AudioRaiseVolume
xdotool key XF86AudioMute

I tried it and it does not restore *application specific* volume for Banshee. It works the same way as I press VolumeUp i.e. it increases *system volume*. Other applications that use system volume (such as web browsers) are fine, but applications that use their own volume level (Banshee, deadbeef player...) are stuck at zero.

emeres wrote:

Edit: Did you specify anything for Xkb extension in xorg.conf or used any other application customizing the default settings?

My /etc/X11/xorg.conf.d is empty. I explicitly avoid touching that beast (xorg config files). I did not modify any of the keyboard/xorg setting recently.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#4 2014-08-09 20:03:05

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Cannot restore application volume after it goes to zero

I misunderstood the situation. So when you set the master level down all the application specific volumes get also down, or at least does the volume of Banshee go down? Do you use pulseaudio?

Edit: Let me restate that: What exactly do you control with keyboard volume keys? System (master) level of your sound card, Banshee volume or both/custom/unique? If you set the master level down in pulseaudio, and the application specific volumes also go down, after which only system volume goes up, I would consider normal behaviour. Should also the Banshee volume shortcuts be bound to the same keys, then yes, there is a problem.

I also found these: https://bbs.archlinux.org/viewtopic.php?pid=1105212
https://bugs.freedesktop.org/show_bug.cgi?id=77504

Last edited by emeres (2014-08-09 20:23:26)

Offline

#5 2014-08-09 20:24:24

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: [SOLVED] Cannot restore application volume after it goes to zero

emeres wrote:

I misunderstood the situation. So when you set the master level down all the application specific volumes get also down, or at least does the volume of Banshee go down? Do you use pulseaudio?

Currently I have only one application with a separate volume control (Banshee) and it is indeed goes down with the master volume. Once Banshee level reaches zero it does not go up if I press VolumeUp, only master level goes up.

I have pulse installed:

$ pacman -Qd | grep pulse
libcanberra-pulse 0.30-4
libpulse 5.0-1
pulseaudio 5.0-1
pulseaudio-alsa 2-3


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#6 2014-08-09 20:28:44

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Cannot restore application volume after it goes to zero

Offline

#7 2014-08-09 20:31:14

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Cannot restore application volume after it goes to zero

Did you check pulseaudios wiki? Read both chapters. Again, I would consider this normal behaviour, but I do not use PA any more, so maybe it is unique. Does the volume change when using 'amixer sset Master 1%+'?

Offline

#8 2014-08-09 20:33:00

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: [SOLVED] Cannot restore application volume after it goes to zero

lucke wrote:

Yay, it works! Thanks a lot!

Although I swear that volume worked fine with flat volume until recently. I am going to post a message to that xorg bug.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

Board footer

Powered by FluxBB