Jump to content
  • 0
Sign in to follow this  
robot774

How do I change volume step increment?

Question

Currently when I press the media keys on this PC the volume goes up or down in 10% increments. 

As these buttons on the PC have no tactile/haptic feedback, they are just little lights above the keyboard, and as they seem to be massively sensitive to touch, I am either racing to full volume in a fraction of a second or muting the audio.Headphones with this PC is therefore dangerous, as I risk deafening myself :/   

 

Is there a way to change the %age step increment to a lower value?

 

All the Ubuntu (Gnome) answers I get from a search say it is no longer possible but as ti now hardcoded value, although it used to be possible to change it in a conf file somewhere. Seems like it is controlled by the desktop manager/environment. Search results for Moksha/E17 seem to be non-existent, so it possible in Moksha to change this value?

 

 

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Yes, it is possible.

Try to add new bindings for your keyboard controls. Open Key bindings and associate your key with command under Launch section.

 

For volume increasing: amixer -D pulse sset Master 5%+ 

For volume decreasing: amixer -D pulse sset Master 5%-

 

e-584dc279d44497.47718674.jpg

 

Let me know if works correctly.

 

And enjoy if works :)

Share this post


Link to post
Share on other sites
  • 0

It is also hard coded into Moksha's mixer. Might be worth adding a setting for - or at the very least changing it to a 5% step. I've been thinking 10% is a bit much for my own personal normal use as well.

Share this post


Link to post
Share on other sites
  • 0

Yes, it is not problem to do that in source.

 

https://github.com/thewaiter/moksha-pulsemixer/blob/master/src/module/e_mod_main.c

 

After some investigation I have found we need to replace this line:

#define VOLUME_STEP (PA_VOLUME_NORM / BASE_VOLUME_STEP)

to

#define VOLUME_STEP (PA_VOLUME_NORM / 100 * 5)

 

and we have +/- 5 % volume increase/decrease

 

As you wish

 

PS: I am also for setting possibility (maybe slider widget) for changing the percentage. Need to be aware of saving and loading that value. Little bit laborious but possible to do...

  • Like 2

Share this post


Link to post
Share on other sites
  • 0

I could live with this for a while if a fix was coming in an update, even in the next increment number of Bodhi. The audio appears to be working a lot better in 4.0 than it was in 3. I had problems before getting the sound to un-mute from the icon in the shelf. Works much better now.  

 

I'll give the Waiter's method a try when I get some time. 

 

Thanks for the answers :)

Share this post


Link to post
Share on other sites
  • 0

I have just commited that line to the source. Jeff is planning making a deb tomorow, so just upgrade your system and your dream will come true ;)

 

Stefan

Share this post


Link to post
Share on other sites
  • 0

I have noticed Jeff updated pulsemixer with my code change with step +/- 5% in testing repo. Switch for testing if you like. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×