[Solved]how to know if the headphone is plugged in or not?

hi,
i just want to know whether there is a package that can test if the headphone is plugged in or not?
both of lsusb and dmesg dont work.
thanks for your help and post.
Last edited by yjcong (2012-09-24 07:01:56)

brebs wrote:You could try to make sense of CONFIG_SND_KCTL_JACK.
thank your for your link.
i know how to solve my question.
amixer scontrols
to find the corresponding name. then
amixer set "Headphone Jack Sense" off
to disable it no matter the headphone is plugged in or not.
these will be coded into my "alarm" script for nap.

Similar Messages

  • How do i use the headphone jack as an input on a macbook pro 9,2.... the option just isn't in the sound app.

    how do i use the headphone jack as an input on a macbook pro 9,2.... the option just isn't in the sound app.
    all i have is the internal mic option, can anyone help?
    thanks

    You should also ask this in the MacBook Pro forum. This is the forum for the white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • How to know whether the javascript is disabled or not while loading the jsp

    Hi,
    My query is like how to know whether the javascript is disabled or not while loading the Application main JSP in Mozilla browser.
    I want some Java code or JavaScript code.

    To the point, just let JS fire a specific HTTP request inside the same session.
    This can be done in several ways. 1) Create a hidden <img> element and set the `src` attribute so that it will request a (fake) image from the server. The server just have to intercept on this specific request. 2) Fire an ajaxical request and let the server intercept on it. You can use a Filter for this which sets a token in the session scope to inform that the client has JS enabled.

  • How to know whether the Content Type at Library level is Inheriting Parent Content type or not Using Powershell?

    Hi,
    How to know whether the Content Type at Library level is Inheriting Parent Content type or not using Powershell?
    Is there any property for that? Or Do I need to compare the Content type Id's at Site collection level and Library level?
    Any help would be greatly appreciated.
    Thank you,
    AA.

    Hi Ashok,
    For a content type, there is an attribute called Inherits, the value of this attribute determines whether the content type inherits fields from its parent content type when it is created.
    If Inherits is TRUE, the child content type inherits all fields that are in the parent, including fields that users have added.
    If Inherits is FALSE or absent and the parent content type is a built-in type, the child content type inherits only the fields that were in the parent content type when SharePoint Foundation was
    installed. The child content type does not have any fields that users have added to the parent content type.
    More information, please refer to the link:
    https://msdn.microsoft.com/en-us/library/office/aa544268.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to know whether the current database is using a password file or not?

    How to know whether the current database is using a password file or not?

    The remote_password_file is the parameter that determines if you can use or not a password file. The values this parameter can have are NONE, SHARED, EXCLUSIVE. It is pretty obvious, if it is set to either SHARED or EXCLUSIVE the oracle instance has enabled the access through a password file for the SYSDBA and SYSOPER roles.
    ~ Madrid

  • How do know that the battery is fully charged on ios 7

    How do know that the battery is fully charged on ios 7

    When you turn it on from sleep mode, below the time on the lock screen it says how much charged it is.

  • I just opened my mail, and I don't find absolutely nothing, no message.  The application is empty! how I can retrieve the information?!! do not know what happened

    I just opened my mail, and I don't find absolutely nothing, no message.  The application is empty! how I can retrieve the information?!! do not know what happened

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99460)

  • HT1349 how to know if the product r bought from apple store or digi?

    how to know if the porduct r bought from apple store, digi or maxis?

    It doesn't matter whether it was puchased at an Apple Store or at an Apple-Authorized Retailer.  The warranty coverage and options are the same.
    Use selfsolve.apple.com to determine if that device is still covered under warranty.

  • My phone thinks the headphones are plugged in and I can't get any sounds.  How to fix?

    My iphone 5 thinks that the headphones are plugged in and they are not.  I used them earlier today but they are no longer plugged in to the phone. I can't get any sound (text alerts, ringing, etc) on the phone outside headphones.  Any ideas on how to fix?

    I have resolved my own problem thanks to reviewing other discussions. The solution that worked for me and that was suggested by an Apple store associate some time ago was to plug and unplug my headphone jack into the iPad four times. On the fourth time leave the headphone jack connected and rotate the plug clockwise, then remove and try your sound. When you use the external volume control the HEADPHONE label should be gone. It appears I have to do this now every time after I've used my headphone jack.

  • Speakers only work when the headphones are plugged in

    I have an HP Pavilion dv6-6163cl.  I purchased it about 1 year ago.  I use windows 7 and have not altered anything.  My internal speakers stopped working about a month ago.  I uninstalled the IDT audio driver and reinstalled it with the updated driver.  I ran troubleshoot and it said they are working properly. 
    I noticed that if I plug in headphones or external speakers into the headphone jack, then the internal speakers do work and turn on.  This is backwards.  The internal speakers should work when nothing is plugged into the headphone jacks.  There is no setting in sound settings or driver settings to fix this.
    I never used headphones or plugged anything in to the headphone jacks, so I'm not sure what changed.  How do I fix this?

    Hello cgoldberg11,
    Take a look at this link, which has troubleshooting steps that should help you resolve this issue.  Please let me know if this helps.
    Good luck!
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • How to know whether balance carry forward has happened or not

    How to know , whether balance carry forward has happened or not for a perticular GL account or for the company code as a whole?

    If the account is a balance sheet account, you can merely look at the beginning balance for the same balance sheet account for the beginning of the next fiscal year FS10N. The beginning balance will equal the previous year's ending balance. Since this does not happen automatically, you will know that carry forward has not been done if a balance sheet account has no beginning balance in the following fiscal year.
    If you are talking about For P&L GL accounts, you can check the acvitity in the retained earnings accounts to make sure that they have been updated for the P&L activity. You can identify the retained earnings account by looking at the master data for the account in the section "P&L statmt acct type" and pulling up the menu to see the actual retained earnings account number.
    You can perform carry foward (GVTR) as many times as you want but normally once it has been ran, any postings to a  previous fiscal year are automatically carried forward to the current year after that initial run.

  • How can i view nikon images in photoshop? i have cs4 so the camera raw plug-in is not an option and i've lost my disk from the initial purchase of the D90.

    how can i view nikon images in photoshop? i have cs4 so the camera raw plug-in is not an option and i've lost my disk from the initial purchase of the D90.

    The NEF file only gives a little "nef" icon.  i was able to convert the NEF to DNG on the old computer and then brought the files over to the new computer.  On the old computer, the NEF files were depicted as little jpeg's so I would be able to see a picture of what each file represented.  On the new computer, both the NEF files and the DNG files are depicted with icons, "nef" or "dng", but not as little pictures.  On the new computer, though, I am to import the DNG's into Adobe and edit them so that is working regardless of whether or not a picture is present for the icon of each file.  I've downloaded the DNG converter from Adobe and will try the conversion directly on the new computer when I get home from work.  I do appreciate your responses and will let you know how it works.
    I am curious then, since right now the files are represented by little "nef"'s and little "dng"'s: If I also download the viewNX (spelling might be wrong, sorry) from nikon, do you know if that maintains the file as a RAW format file but allows a picture representation of the RAW file for the icon?  (That would make it easier to choose which RAW files I would choose to edit and which to not even bother with as an initial culling if that makes sense.
    Cheers.

  • I paid for XI today but still have no idea how to edit pdfs - the XI worked fine but im not even sure if XI is downloaded correctly

    i paid for XI today but still have no idea how to edit pdfs - the XI worked fine but im not even sure if XI is downloaded correctly@@

    Hello Leo,
    Please look at following videos to learn, How to Edit PDF file:
    http://tv.adobe.com/watch/i-didnt-know-acrobat-xi-could-do-that-tutorials/pdf-editor-edit- text-and-images-in-pdf-file/
    http://tv.adobe.com/watch/learn-acrobat-xi/editing-a-pdf-in-adobe-acrobat-xi/
    Regards,
    Anoop

  • How i know that my iphone is factory unlocked or not?

    how i know that my iphone is factory unlocked or not surely?

    Did you request to have your phone to be unlocked by your carrier? Only the carrier can officially unlock it.

  • How to know whether my system is J2EE compliant or not?

    How to know whether my system is J2EE compliant or not?
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Administrator>java -version
    java version "1.6.0_16"
    Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
    Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)Is my box J2EE compliant?

    Trust me - I've been developing on an XP box for years and Java 1.6 for a good amount of time. This has been using Tomcat, JBoss, and Glassfish (and I try hard to forget about Oracle OC4J). These are application servers that implement part (Tomcat) or all (the rest) of the J2EE specification.
    Having said that, you'll want at least 2GB of RAM and a hundred or so megabytes of disk space. Less RAM will work but slowly. A reasonable processor (I'd say at least 1.5GHz or above) will speed development.

Maybe you are looking for

  • Another iPod locking up -- any chance of service from Apple?

    Yesterday, it froze in the middle of a song at 5:21 (according to the clock display) and never came unfrozen. The battery died, I plugged it in when I got home, it charged overnight, and I was listening to a song today and it froze again. The advice

  • How to remove a stuck CD/DVD in drive

    I recently purchased a new to me MacBook. I had a new hard drive installed, and I told the technician that I'd install the system software. I guess I forgot to tell him to format the drive. I went to install Snow Leopard, and nothing happened! I trie

  • How do I open MS Office 2000 Word Processor on iMac

    Used to use Microsoft 2000 Word Processor on Dell Laptop.  My iMac is 2 weeks old and documents have successfully been transferred from the Dell to Mac via Maxtor external hard drive.   How can I open the Word Processing documents - NOT to use, but t

  • Error massage when loading illustrator

    Hi I'm getting an error message when i'm loading the illustrator app on mac OS. The message is: "Error loading plugins. wacexportfile.aip" Pls advice. Chen

  • How to make totem display subtitles of xvid movie

    I am informed that xine-lib and totem are enable to load subtitles of a Xvid movie, but I just can't turn it on, anybody has successed? I usually have two kinds of subtitle, one is srt format, the other is idx and sub format.