Re: [orca-list] suggestion



Hi, Scott.  We do this automatically already in the latest Vinux
scripts.  It really helps, because a lot of machines seem to boot
muted the first time.  I would recommend that this be included
up-stream in Orca, but controlling volume is fairly distro-specific.
Try adding the following code to the end of
.orca/orca-customizations.py.  It was originally written by Hammer
Atilla, and we've hacked it a bit:

#Define the volume 0 value detect and correct function
def volumedetect():
#This function detect if the master volume is 0.
#If the master value is 0, increasing volume with 58%.
#Following command gets master volume actual value percentage
    mute = commands.getoutput('amixer get \'Master\',0|grep \'\[off\]\'')
    #If the master channel is muted unmute everything pulseaudio typically mutes
    if mute != "":
        commands.getoutput('amixer sset \'Master\',0 unmute')
        commands.getoutput('amixer sset \'Headphone\',0 unmute')
        commands.getoutput('amixer sset \'Speaker\',0 unmute')
    #If the volume value is 0%, increasing volume to 58%.
    volume = commands.getoutput('amixer get \'Master\',0|grep %| sed
\'s/%.*//; s/.*\[//\'')
    if volume == "0":
        commands.getoutput('amixer set \'Master\',0 58%')
    volume = commands.getoutput('amixer get \'Headphone\',0|grep %|
sed \'s/%.*//; s/.*\[//\'')
    if volume == "0":
        commands.getoutput('amixer set \'Headphone\',0 58%')
    volume = commands.getoutput('amixer get \'Speaker\',0|grep %| sed
\'s/%.*//; s/.*\[//\'')
    if volume == "0":
        commands.getoutput('amixer set \'Speaker\',0 58%')
#End the volume 0 value detect and correct function

#Following command execute the volume detect function with always script start.
#This function detects if master volume is 0, and increasing with 58%
audible value.
volumedetect()

On Sun, Aug 1, 2010 at 10:37 AM, Scott Berry <scottbb1973 gmail com> wrote:
I would like to suggest a an idea.

1. Orca when it starts should check the volume level and the mute status and
if too low or muted ensure that the controls are at a reasonable level.

Scott Berry
Sending from an HTC Snap
_______________________________________________
orca-list mailing list
orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at
http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Netiquette Guidelines are at
http://live.gnome.org/Orca/FrequentlyAskedQuestions/NetiquetteGuidelines
Log bugs and feature requests at http://bugzilla.gnome.org
Find out how to help at http://live.gnome.org/Orca/HowCanIHelp




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]