[SOLVED] Where should I put this sound script?

I found a sound script so that when my tv outputs hdmi sound also does so automatically. Where do I put?
#!/bin/sh
if [[ $1 ]]
then
xrandr --output HDMI1 --off
pactl set-card-profile 0 output:analog-stereo
else
xrandr --output HDMI1 --mode 1920x1080 --right-of LVDS1
pactl set-card-profile 0 output:hdmi-stereo
Last edited by quasifilmie (2012-01-30 00:56:33)

Yeah, I was afraid of that. 
How do you start your window manager, and which window manager / desktop environment are you using?
If you are using startx, you could invoke it from your ~/.xinitrc.  You might create a second scipt, launch it in the background, and put a sleep at the beginning to ensure X is ready.
KDE, Openbox and Xfce4 allow you to run scripts at start up.  Gnome might, I would not know.

Similar Messages

  • Where should I put JDBC driver for MySQL

    I am trying to connect MySQL with JDBC 2.0 API. I have downloaded the driver file mm.mysql-2.0.4-bin. Where should I put this driver to make it run ?
    According to mysql.org, it says "Put mysql.jar in your classpath". I am confuse by classpath. Is it same as the path ? or is another system variable.
    thanks for clear my doubt. ^_^

    it is a different variable, but also in the same file (autoexec.bat) as path;
    set CLASSPATH=%classpath%;C:\JDK1.3.0_02\bin;c:\path\mm.mysql-2.0.4-bin
    Jamie

  • Where should I put trustedprincipal.conf in

    Hi experts,
    We have BOE XI 3.1 in our server.
    We configured trusted authentication in CMC of our server machine, and created a trustedprincipal.conf in D:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 of my client machine. I created a jsp file to access bo reports.
    I can not approach http://bfphp:8080/OpenDocument/opendoc/openDocument.jsp, just get alert after running the jsp file.
    However, we put trustedprincipal.conf in our server machine and remove the file from my client machine, I can approach openDocument.jsp after accessing the jsp file.
    Official document says trustedprincipal.conf should be put in client, but we tried it, logon fails. When I put it in server, logon succeeds.
    My question is, if trustedprincipal.conf is put in server, can anyone who knows a user of BO system access to bo system via the jsp file. So how can I control authentication of client who access to BO system, and where should I put trustedprincipal.conf in?

    HI,
    this sounds like a general BusinessObjects Enterprise configuration topic. this forum here is for the Integration Kit for SAP.
    Ingo

  • Where should I put WHENEVER SQLERROR CONTINUE clause?

    Hi all,
    this is my situation:
    I have 2 compiled packages and one compiled procedure which uses the 2 packages. I want to start the procedure with sql*plus.
    To do this, I wrote a script and start the script from sql*plus:
    SQL> @start_proc.sqlThe start_proc.sql script looks like this:
    SET SERVEROUTPUT ON
    SET ECHO OFF
    SET TERMOUT OFF
    WHENEVER SQLERROR CONTINUE
    SPOOL /home/scott/proc_out.txt
    BEGIN
      SCHEMA1.TEST_PR;
      COMMIT;
    END;
    SPOOL OFFThe question is, where should i put the statement WHENEVER SQLERROR CONTINUE ?
    In the current position, the procedure does not start at all. If I remove the statement completely, then I get error on the first record and the procedure does not go on with the rest of the records...

    Thanks for your follow-up, Frank.
    The bigger picture (imo, hence the "-ism") is still:
    When it comes down to error-handling, the world suddenly gets very complicated and turns into all shades of grey, for many years.
    (But actually it should be simple: quit when unexpected things happen)
    The Developer has done his/her best, based on inputs
    The DBA has done his/her best, based on inputs
    The Architect/Designer has done his/her best, based on inputs
    The Manager has done his/her best, based on inputs
    The Client/CST has done his/her best, based on being client/CST
    Funny thing is: whenever I mail/call CST asking for additional input, usually things make sense...
    I dare say: when things go wrong, let them go wrong.
    Propagate the message to another human, who probably didn't think of that/expected it to happen.

  • Where should I put the sevlet

    I just started to work with Tomcat and I compiled the helloWorld sevlet.
    It's said from a book that the sevlet should be placed in serlver_root/webapps/ROOT/WEB-INF/classes, however there isn't a "classes" folder in my WEB-INF folder. So I put the helloWorld sevlet in the WEB-INF folder.
    Then I type http://localhost:8080/servlet/helloworld in my browser, I get a message from the sever said "The requested resource (/servlet/HelloWorld) is not available".
    Could anybody tell me how can solve this prolbem, where should I put the sevelt?

    have ones more a look to your book - especially to information about the configuration file "web.xml" which also should be placed in the WEB-INF folder. This file defines which servlets should be found by the server and which request-URL should be mapped to this servlet.
    for examples concerning the web.xml file see those already defined in your server. copy one and edit it for your needs. if you really want to understand what else might be configured using web.xml see the DTD for this file - it's pretty good documented!
    hope it helps :)

  • Where do I put my Action Script?

    So, I created a small Flash site with no loading of external
    swfs. I am strictly using the timeline using labels. I have a layer
    for my main buttons (home, portfolio and timeline). I have selected
    AS3 for the file and I have those buttons working fine.
    I have a button for my portfolio where thumbnails will pop up
    after being pressed. I want to link those thumbnails to the URL's
    of the actual websites. Where do I put the action script?
    I also want to have my email at the bottom of the screen so
    you can click on it to email me. I am used to using AS2 whwere you
    simply put the code on the button.
    Thanks,
    Gabe

    Hey, so thank you for the fast reponse. I totally agree with
    you on learning AS3, I don't want to go back to AS2.
    I already have the code you supplied so I understand what it
    is doing but my question is where do I put it in this case? I
    always create an action layer as you mention. In my action layer, I
    have frame 1 with my preloader code and then frame 2 with my code
    for my main buttons. They call to the labels. So, when I press
    portfolio for example, it goes to that label.......a shape tween
    starts and my portfolio thumbs appear. I then want those thumbs to
    link to the URL of those sites.
    So, where do I stick your code?
    Thanks again for all your help. I am NEW to AS3 and this is
    great learning.
    Thanks,
    Gabe

  • Where should i put the DEFAULT&SMARTBAR

    Hello,
    where should i put the DEFAULT&SMARTBAR ? and the main Menu ?
    in order to be shown in each form..
    in using Forms 6i.
    Regards,
    Abdetu..

    Hello Gerd,
    Thanks for reply..
    put such things into *a reference form* what is meant by a reference form do u mean the main form?
    Create a property class (PC) for your FORM-MODULE-properties,
    put this PC into the reference form.
    Create there an object group (OG), put the PC into the OG and the inherit the OG to your local form.
    Automatically you have then the PC inherited too.i did all what u mentioned..
    Bbut the problem is that the DEFAULT&SMARTBAR
    can't be seen in allllllllllll my forms in the main menu inspite of i put it into the form module property ->in the intial menu property.
    Regards,
    Abdetu..

  • Where should i put oracle logo in my resume ...

    hie everyone ...
    i just received OCA certification ( 10g DBA ) and SQL Certified Expert ... now where should i put those logos in my resume ... someone mentioned that i can put them in HEADER of my resume ...
    any other advice ??
    thanks in advance for replying this really dumb question ...

    At least you recognize it is a dumb question. That's half the battle. The other half is recognizing that no one really cares about your certifications. Congratulations. You now have the same "certification" that brain dump/cheat sheet users paid for.

  • Where should I put Java Servlet Spec

    Dear all,
    I'm in the process of installing Oracle Application Express Listener where it needs Java Servlet Spec 2.3. I got the Spec downloaded, but I don't know where should I put it. How come it's hard to find documentation about this? Please help....
    Currently I'm using Linux 64.
    Best regards,
    Val

    Oh,
    haha.. I just realized that....
    About System Requirements
    Oracle Application Express Listener system and space requirements are as follows:
          Oracle Database (Enterprise Edition, Standard Edition or Standard Edition One) release 10.2.0.3 or higher, or Oracle Database 10g Release 2 Express Edition or higher.
          Java 6 Update 20 JDK or higher.
          Java Servlet Specification 2.3 or higher.
          Web browser requirements:
              o
                Microsoft Internet Explorer 8.0 or higher.
              o
                Mozilla Firefox 3.0 or higher.
              o
                Google Chrome 2.0 or higher.

  • Where Should I put the time capsule?

    Where Should I put the time capsule?
    I'm using a wireless modem/router provided by the internet company, and both (the TC and the router) are located next to the pc, in the living room . Using this way, I don't have signal in my bedroom. Should I get a signal amplifier?
    Thanks!

    It would be better to use EOP adapters (homeplug is another name) or ethernet to locate the TC closer to your room.. you can use another apple router to extend the wireless if you need to.

  • Where should I put my code?

    Where should I put my code, on the buttons and other items in question, or in a separate Layer, referencing the items I need...?
    Background :
    I'm REALLY new to Flash with Adobe.  I've used SwishMax a little in the past, but nothing of recent.
    At work there's a project where I'm getting to use FlashPro CS6 and I've run into an odd issue with code to move forwards, backwards, and back to the beggining on 3 different buttons.
    It's in a layer called Actions, and on frame 1 - And remember... uber newbie here folks, so forgive any glaring issues in my code that most people would see quickly...
    //NEXT BUTTON
    NEXT_BUT.addEventListener(MouseEvent.MOUSE_DOWN, nb_mouseDownHandler);
    function nb_mouseDownHandler(event:MouseEvent):void
              this.nextFrame();
    //MAIN MENU BUTTON
    MAINMEN.addEventListener(MouseEvent.MOUSE_DOWN, mm_mouseDownHandler);
    function mm_mouseDownHandler(event:MouseEvent):void
              gotoAndStop(1, "Scene 1");
    //BACK BUTTON
    BACK_BUT.addEventListener(MouseEvent.MOUSE_DOWN, bb_mouseDownHandler);
    function bb_mouseDownHandler(event:MouseEvent):void
         this.prevFrame();
    The code for the first two work's exactly as I need, the code for the back button, initially it only appeared on from the second frame onwards, but during debugging I've popped it on all pages.  On the first frame, it takes you back to a black page with nothing on it, on all others it does absolutely nothing...
    Another question as I've written above, should my code be in a separate layer regerencing the items it needs to affect, or... as a colleague told me in a ridiculously over the top brimming with distaste, create layers for each item, or groups of items and place the code in there...  which to me, see's odd...
    Thanks once again in advance, and I'm sorry to post such a newbie question, but the internet gives mixed anwers, not specific to my situation.
    Tim.

    In AS3 you cannot put code on buttons and other items like you could with AS1 and AS2.  Beyond that, your choices are to place code in the timeline frame(s) or in separate actionscript files.  While there are a number of recommended best practices, what usually works best is whatever you are able to understand and work with at the time.  While there are benefits to having all code located in one place (a frame or a file) since it makes finding it much easier, when you are creating a timeline-based design, that is not always a possible/practical approach.
    Over time you will gain experience with the different approaches and can make the choice based on that experience. 

  • Where should I put my extended unit test assemblies for Visual Studio 2013?

    Hi, I have a question about M/S Unit test extension.
    1. My purpose
    I'm trying to extend Visual Studio Unit Test.
    The points where I extends unit test is to output detail logs.
    My development environment is as follows.
    OS: Windows 8.1Pro (64bit version)
    IDE: Microsoft Visual Studio Professional 2013
      (Version 12.0.30723.00 Update 3)
    2. Things which I'd like to know
    To enable my test extension, it is required to put my test extension assemblies into designated sub folder under Visual Studio's installed folder.
    The source of this information is MS developers blog below.
    (http://blogs.msdn.com/b/vstsqualitytools/archive/2009/09/04/extending-the-visual-studio-unit-test-type-part-1.aspx)
    Q1. It's required to put the assemblies bellow.
    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies
    Howerver, the guidance in the blog is for Visual Studio 2010.
    In Visual Studio2013, above "PrivateAssemblies" could not be found under "\Microsoft Visual Studio 12.0\Common7\IDE" folder.
    Where should I put my assemblies for my 2013. Is there any substitution for "\PrivateAssembly" folder?
    Q2. Another requirement is to set Assembly information entry into the registry below.
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\EnterpriseTools\QualityTools\TestTypes\{13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}\TestTypeExtensions
    For Visual Studio 2013, I could find almost the same node hierarchy, but
    could not find the last "TestTypeExtention" node. Instead,
    I could find "Extensions" node.
    Should I write registry entry here? Or, should I make a new "TestTypeExtension" node and write the entry there?
    Q3.Last question is more basic question.
    Is there any way to kick extended test program in Visual Studio 2013's Test Explore
    without registering my assemblies in the way recommended above.
    I think it's much tender for developer's in debugging phase. For example,
    it is very much helpful, if I could kick a unit test which uses my extended test class in the unit test extension solution.
    That's all. Any information concerning this topics will be appreciated.

    Hi TrailRunner-MF,
    One possible reason is that you didn't view the correct folder, for example, in my windows 8.1 64 bit, it is in the path: "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE", not the "C:\Program Files\Microsoft Visual Studio
    12.0\Common7\IDE " folder.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Wher should I put the sIM card

    I do not find where should I put my SIM card

    There is only one place for it to be effective. I guess you didn't read the little leaflet that pointed you to this: 
    http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf

  • I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have-I guess I can auto start the DVD but would prefer a button-how and where would I put this "play all" marker??

    I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have…I guess I can auto start the DVD but would prefer a button…how and where would I put this "play all" marker?? Thanks..

    The start chapter button is a play the whole movie button regardless of how many other markers you have.
    Once a DVD starts playing it continues to the end.
    Chapters marker simply gives the viewer a place to start playback whether it be the start, middle or near the end.
    Al

  • I'm getting this warning,but i dont know where is it located.please let me know,where should i rectify this? WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!Enab

    i'm getting this warning,but i dont know where is it located.please let me know,where should i rectify this?
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Hello,
    This seems not related to SQL Server but more related to Fusion or a missing DLL. The following resources may help you:
    http://blog.mediawhole.com/2010/08/enable-fusion-assembly-binding-logging.html
    http://jamesecampbell.blogspot.com/2011/11/how-to-enable-assembly-binding-logging.html
    http://www.codeproject.com/Tips/141281/WRN-Asssembly-binding-logging-is-turned-OFF
    http://stackoverflow.com/questions/5986930/assembly-binding-logging-is-turned-off
    Please verify if a missing DLL is specified before the "WRN: Assembly binding logging is turned OFF" message.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • Windows 2008 server

    has any one manged to get Windows 2008 server working with fully driver support on a MacBook (Black)

  • How to change startup disk for a 2012 Mac mini with dual HDD and clean installed with Windows 8.1?

    Hi, I have a Mac-mini (late 2012 model), originally with Mac OS X Maverick Server installed (with two HDD). Recently, I had clean installed Windows 8.1 on one of the HDD (worked perfectly, just slow) and swapped the other HDD (with Mac OSX) with a SS

  • How to set different color for items in selectManyCheckbox

    hi, I would like to change item text background color for each item on selectManyCheckbox (different for each item). It is only 5 items so that could be static reference or select. I know only how to change background for all items af|selectManyCheck

  • Why is my iPad 2 no longer able to screen share to external monitor?

    I used to connect my ipad 2 to various shared displays via HDMI and VGA converter cords quite frequently. The other day I connected and no signal is found...tried multiple screens, projector and different cords. Convinced its my iPad. Fixable? Hardwa

  • Chart type for Flash Chart

    Hello everybody, I'm trying to evaluate whether it's possible to use APEX for an application that I'm going to develop. Therein I want to use several charts for displaying database content. One of the charts I need is a combination of stacked charts