Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Increase volume control steps on volume wheel

  1. #1
    Join Date
    Sep 2011
    Beans
    8

    Increase volume control steps on volume wheel

    Hello,
    I'm running Ubuntu 12.04.1 64bit, what i'd like to do is increase the number of steps between mute and 100% while using my volume wheel. Right now it seems like there are 5 steps, which is about a 20% change for just a small amount of rotation. It'd be nice to have the volume up and down 'shortcut' to be more in the range of a 3-4% change.

    I'd imagine this is hidden in a config file somewhere, but i'm not sure where to look.

    I've already searched this forum but I've found only solutions valid for Ubuntu 8.10 or older that don't work on Ubuntu 12.04 (e.g. dconf editor or gconf editor)

    Thank you in advance for your help!

  2. #2
    Join Date
    Sep 2011
    Beans
    8

    Re: Increase volume control steps on volume wheel

    up

  3. #3
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Increase volume control steps on volume wheel

    on my 10.04 install the setting is in the configuration editor (gconf-editor) under
    /apps/gnome_settings_daemon/volume_step
    the actual file is here
    ~/.gconf/apps/gnome_settings_daemon/%gconf.xml
    Code:
    <?xml version="1.0"?>
    <gconf>
        <entry name="volume_step" mtime="1311896260" type="int" value="2"/>
    </gconf>
    you could use a script to do this if that setting no longer exist
    http://ubuntuforums.org/showthread.php?t=2047908
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  4. #4
    Join Date
    Sep 2011
    Beans
    8

    Re: Increase volume control steps on volume wheel

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    on my 10.04 install the setting is in the configuration editor (gconf-editor) under
    /apps/gnome_settings_daemon/volume_step
    the actual file is here
    ~/.gconf/apps/gnome_settings_daemon/%gconf.xml
    Code:
    <?xml version="1.0"?>
    <gconf>
        <entry name="volume_step" mtime="1311896260" type="int" value="2"/>
    </gconf>
    you could use a script to do this if that setting no longer exist
    http://ubuntuforums.org/showthread.php?t=2047908
    Thank you for your reply.
    This setting no longer exists in ubuntu 12.04, I've tried to create the file xml with the exact path and content you posted but it doesn't work...
    I'm sorry but my scripting skill is close to zero, I kindly need some more detail on what the script you suggested should do

  5. #5
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Increase volume control steps on volume wheel

    to install the script
    gksu gedit /usr/local/bin/volume
    paste the code in the last post
    looks at lines 2 to 4
    lines that start with a # are comments (anything after a # is a comment)
    line 2 has automatic detection disabled via the # character
    line 3 is line 2 in manual (delete this line for auto to work)
    line 4 is the volume step (increase/decrease the number as needed)
    save it
    close gedit
    sudo chmod +x /usr/local/bin/volume

    now the script is installed, now you just go into your keyboard shortcuts and create a new keyboard shirtcut for the volume
    the commands would be
    volume plus
    volume minus

    run volume in a termianl for more commands


    BTW if the command in the 1st post adjust your sound you don't need the script you can just add those command to keyboard shortcuts
    Last edited by pqwoerituytrueiwoq; October 4th, 2012 at 11:51 PM.
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  6. #6
    Join Date
    Sep 2011
    Beans
    8

    Re: Increase volume control steps on volume wheel

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    to install the script
    gksu gedit /usr/local/bin/volume
    paste the code in the last post
    looks at lines 2 to 4
    lines that start with a # are comments (anything after a # is a comment)
    line 2 has automatic detection disabled via the # character
    line 3 is line 2 in manual (delete this line for auto to work)
    line 4 is the volume step (increase/decrease the number as needed)
    save it
    close gedit
    sudo chmod +x /usr/local/bin/volume

    now the script is installed, now you just go into your keyboard shortcuts and create a new keyboard shirtcut for the volume
    the commands would be
    volume plus
    volume minus

    run volume in a termianl for more commands


    BTW if the command in the 1st post adjust your sound you don't need the script you can just add those command to keyboard shortcuts
    Very clear thank you.
    I followed your instructions for the script but this is what I get after running "volume plus" in a terminal:
    Code:
    silvio@Qosmio-G50:~$ volume plus
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    ^C
    setting up the shortcuts, the script "volume" launches several instances of itself and the system get stuck...
    any idea about the reason?

  7. #7
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Increase volume control steps on volume wheel

    Code:
    volume dump;cat /usr/local/bin/volume | head -4
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  8. #8
    Join Date
    Sep 2011
    Beans
    8

    Re: Increase volume control steps on volume wheel

    Thanks again.
    Same behavior:
    Code:
    silvio@Qosmio-G50:~$ volume dump;cat /usr/local/bin/volume | head -4
    alsa_output.pci-0000_00_1b.0.analog-stereo
    #!/bin/bash
    # SINK_NAME="`pacmd dump | grep set-sink-volume | sed 's/ /\n/g' | grep alsa | head -1`" # this is auto detect but it may break using the reset action to fix maxed volume at login
    SINK_NAME="alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1"
    VOL_STEP="0x01000"
    silvio@Qosmio-G50:~$ volume plus
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    Waiting on volume to become setable (infinite loop on invalid sink name)
    ^C

  9. #9
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,169
    Distro
    Kubuntu

    Re: Increase volume control steps on volume wheel

    please paste the command i gave you
    why: i said volume dump not volume plus


    Problem:
    You are using the sink name for my hdmi card not your analog one
    this will make it use your analog sound card
    Code:
    sudo sed -i '/s/alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/' /usr/local/bin/volume
    you could do this
    Code:
    volume plus alsa_output.pci-0000_00_1b.0.analog-stereo
    or (since you only have 1 sound card with alsa in the name)
    Code:
    volume plus `volume dump`
    Last edited by pqwoerituytrueiwoq; October 5th, 2012 at 03:24 PM. Reason: i am apparently blind
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  10. #10
    Join Date
    Sep 2011
    Beans
    8

    Re: Increase volume control steps on volume wheel

    Code:
    silvio@Qosmio-G50:~$ sudo sed -i '/s/alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/' /usr/local/bin/volume
    [sudo] password for silvio: 
    silvio@Qosmio-G50:~$ volume plus alsa_output.pci-0000_00_1b.0.analog-stereo
    /usr/local/bin/volume: riga 2: lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/: File o directory non esistente
    /usr/local/bin/volume: riga 3: lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/: File o directory non esistente
    /usr/local/bin/volume: riga 4: lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/: File o directory non esistente
    /usr/local/bin/volume: riga 6: lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/: File o directory non esistente
    /usr/local/bin/volume: riga 7: lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/: File o directory non esistente
    /usr/local/bin/volume: riga 8: lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/: File o directory non esistente
    /usr/local/bin/volume: riga 10: lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/: File o directory non esistente
    /usr/local/bin/volume: riga 11: lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/: File o directory non esistente
    /usr/local/bin/volume: riga 12: lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/: File o directory non esistente
    /usr/local/bin/volume: riga 98: errore di sintassi vicino al token non atteso "newline"
    /usr/local/bin/volume: riga 98: `lsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/alsa_output.pci-0000_00_1b.0.analog-stereo/'
    sorry the output is in italian but,
    riga 2, riga 3 etc. mean line 2, line 3 etc.
    "File o directory non esistente" means "File or directory doesn't exist"
    riga 98: errore di sintassi vicino al token non atteso "newline" means
    line 98: syntax error close to the unexpected token "newline"

    Thank you for your patience

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •