Sound over HDMI works, but laptop sound isn't working after...

Hey,
First, sound over HDMI was not working on my laptop, but when I followed this section of Alsa Wiki it worked.
So I created the ~/.asoundrc file containing:
pcm.!default {
      type hw
      card 0
      device 3
But now, when I unplug my HDMI cable, and want to listen to music using my laptop built-in speakers/jack speakers, it doesn't work anymore, even if I restart Alsa.
In fact, I need to delete the .asoundrc file AND restart Alsa in order to get it work.
Is there a way to make both sound over HDMI, and built-in speakers works automatically depending on if my laptop is/is not connected to my TV ?
Thanks
Last edited by Lowra (2012-02-14 18:26:06)

You need to restore the card and/or device number to those for your laptop speakers, as determined by:
aplay -l
To do this automatically, you will need to use scripts called by udev, as described a little further down.

Similar Messages

  • Qosmio G50 No sound over HDMI

    *Qosmio G50 No sound over HDMI*
    Hi all,
    Hopefully anyone recognises the following and would be so kind to help me. I have searched the forum and tried severall of the offered solutions mainly applicable to Vista, but still.
    I hooked up my Qosmio G50 to my Philips LCD by HDMI cable. Picture is ok but there is no sound. I tested the cable with a Toshiba Satelite Pro L550 and it works allright. Picture and Sound are working. But that laptop has Intel HDMI audio.
    I'm running Windows 7 Home Premium 64 bit. I upgraded by Toshiba update DVD from Vista 64 bit. Sadly I do not know for sure if HDMI audio did work before that. I think so because I did use the laptop for watching a movie on a Panasonic plasma. But I can not remember if that was before or after the upgrade.
    Realtek HD Audio device is installed driver version 6.0.1.5923
    Realtek HDMI Output is selected als default playback device.
    Testing gives me graphical response ( the indicator flashes ) but no audible sound from my tv.
    Choosing the other audio device Realtek Digital output changes nothing and I do not believe that this would work anyway.
    I have tried removing the device and reinstalling the original drivers. I have tried REaltek drivers from their website.
    I have tried changing the view to HDMI only but that does nog change anything either.
    One thing that worries me is that under Sound / Realtek HDMI Output / properties / Supported Formats there are no formats present. The Satelite gives me DTS audio and some other. So I am wondering if there should be formats present and if so how can I change this / add any.
    Please forgive me if there are errors in the text. I am translating this from a dutch language version of Windows 7.
    Please help me. Any suggestions are welcome!

    Jeka-?? & PinkPanther thanks for your replies!
    The solution for the G30 you mention is not the one for me I am sorry to say. I have tried that one allready. Windows automatically switches on the HDMI audio out when I connect an HDMI cable. Connecting the cable before switching on the TV and laptop is a good thing to try because it eliminates possible problems with the connection. The connection in my case is ok.
    At some point I concluded that there must be a softwareproblem of some sort.
    I have found the solution over night. Could not sleep anyway. I did not know that the videodrivers are also handling HDMI audio out but in a way it makes sense. I have completely deinstalled the NVIDIA video drivers. After downloading the latest drivers and installing them everything works absolutely fine!

  • I have windows 7 and my speakers worked then after update my speakers do not work and everything checked out and says they are working and that soundcard is working but no sound now.

    I have windows 7 and my speakers worked then after update my speakers do not work and everything checked out and says they are working and that soundcard is working but no sound now.
    I have tried everything and nothing works.

    sound problems:
    #Restore speaker icon to System Task bar, right-click on clock or tray > Properties > Volume: On
    #Click on the Sound icon in System tray then on Mixer, make sure Firefox is not muted [http://dmcritchie.mvps.org/icons/fx_sound.png picture]
    <p>Additional references
    * [https://support.mozilla.com/en-US/kb/No%20sound%20in%20Firefox No sound in Firefox | Troubleshooting | Firefox Help]
    * [http://support.mozilla.com/en-US/kb/Video%20or%20audio%20does%20not%20play Video or audio does not play | Troubleshooting | Firefox Help]
    * [http://kb.mozillazine.org/Video_or_audio_does_not_play Video or audio does not play - MozillaZine Knowledge Base]

  • I dropped my iPhone 4 in the sink where it was submerged in water for not even 2 seconds I took it out and put it in a warm room by the radiator and most of it works but no sound and battery length is short and runs out quickly. Any ideals on how to help?

    I dropped my iPhone 4 in the sink where it was submerged in water for not even 2 seconds I took it out and put it in a warm room by the radiator and most of it works but no sound and battery length is short and runs out quickly. Any ideals on how to help?

    $149
    They do not repair .Apple exchange and all returned units are refurbished at The Apple plants in China
    So you get a device that looks like and functions like new
    Are you familiar with the results of water and electricity mixing

  • HT5517 video is working but no sound in airplay

    I have an Apple Tv both 2nd and 3rd generations. My vidoe is working but no sound when trying to play a video from my Iphone. I use Airport express for wi-fi. I am able to do everything else with Apple TV.

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
        1.    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
        2.    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
        3.    Restart the Apple TV (Settings > General > Restart).
        4.    Restart the Apple TV by removing ALL the cables for 30 seconds.
        5.    Restart your router.
        6.    Restart your mobile device.

  • I recently got new mac air and transferred my old version garageband projects now when I open them in 10.0.2 I can add new tracks but then nothing can record, shows its receiving sound from software inst. but no sound. I checked audio preferences and

    i recently got new mac air and transferred my old version garageband projects now when I open them in 10.0.2 I can add new tracks but then nothing can record, shows its receiving sound from software inst. but no sound. I checked audio preferences and they are set as they should be. I tried it in all the other older projects and same issue anyone have any experience like this very frustrating.  Can one download old version still ? or can you run both versions on OS10.9.5 ?

    Ok, either my question was too long or nobody seems to have an answer. Sad, either way
    Here's something I found out in the meantime, maybe this is interesting for somebody or maybe - problem's not totally solved - enough info for any of you to give me further advice.
    When I start Logic Core Audio driver de-activated, I can open old songs. Then I save them in a new folder with all audio files and a new name. And I remove all EXS24 instruments as well as the Space Designer. I quit Logic, re-open with Core Audio activated and I can open the song.
    Problem no.1: EXS24 instruments don't find the appropriate samples, but EXSMananger Pro did help me with this. Same problem with Space Designer, which doesn't find the impulse responses, connected to a certain preset.
    Two questions, every idea would be great!
    - Is there any way to teach Space Designer Presets where to look for impulse respones. I can load IR samples directly and create a new preset, but I can't use my old ones.
    - Is it possible to install Logic from scratch over an existing version? Or how should I de-install everything connected with Logic and then install a fresh version from CD?
    Thank you again,
    Joern

  • I recently got new mac air and transfered my old version garageband projects now when I open them in 10.0.2 I can add new tracks but then nothing can record shows its recieving sound from software inst. but no sound. I checked audio preferences OK

    i recently got new mac air and transferred my old version garageband projects now when I open them in 10.0.2 I can add new tracks but then nothing can record, shows its receiving sound from software inst. but no sound. I checked audio preferences and they are set as they should be. I tried it in all the other older projects and same issue anyone have any experience like this very frustrating.  Can one download old version still ?
    thanks,

    Ok, either my question was too long or nobody seems to have an answer. Sad, either way
    Here's something I found out in the meantime, maybe this is interesting for somebody or maybe - problem's not totally solved - enough info for any of you to give me further advice.
    When I start Logic Core Audio driver de-activated, I can open old songs. Then I save them in a new folder with all audio files and a new name. And I remove all EXS24 instruments as well as the Space Designer. I quit Logic, re-open with Core Audio activated and I can open the song.
    Problem no.1: EXS24 instruments don't find the appropriate samples, but EXSMananger Pro did help me with this. Same problem with Space Designer, which doesn't find the impulse responses, connected to a certain preset.
    Two questions, every idea would be great!
    - Is there any way to teach Space Designer Presets where to look for impulse respones. I can load IR samples directly and create a new preset, but I can't use my old ones.
    - Is it possible to install Logic from scratch over an existing version? Or how should I de-install everything connected with Logic and then install a fresh version from CD?
    Thank you again,
    Joern

  • HT204370 I just bought GOT season 1, and it says i need the quicktime player, which I then installed, but it still isn't working, what should I do?

    I've already tried uninstalling and then installing the quick time again, but it still isn't working. I have an ASUS laptop it that helps.

    I think this is a known problem with Lion and some installs of Logic, I've seen it mentioned before.
    Contact Apple.
    Here is a related thread.
    https://discussions.apple.com/thread/3218471?start=0&tstart=0

  • I have an iphone 5 on contract with 3 but the speaker isn't working , I've spoken with my provider and they said I need to take it back to an apple store .is this correct ? Many thanks

    I have an iphone 5 on contract with 3 but the speaker isn't working , I've spoken with my provider and they said I need to take it back to an apple store .is this correct ? Many thanks

    If you received you phone as part of the contract then surely from a legal pov your contract is with 3 not Apple unless you bought Applecare, if you bought your phone outright then put your 3 SIM into it then yes you'd have to visit an Apple store with your phone's purchase receipt.

  • I upgraded my iphone to ios 6 but now it isn't working with itunes

    I upgraded my iphone to ios 6 but now it isn't working with itunes and my itunes will not upgrade. It is stuck at 10.6.1 and my macbook is not compatible with 10.7

    A .dmg installer for iTunes version 10.6.3.25 for Mac OS can be found at the following download page on the Apple website:
    iTunes 10.6.3

  • Guest network is working but normal network isn't

    LAN works but normal Wireless doesn't work, if I connect to my guest Wireless it does work. I have a 50 address DHCP range and 8.8.8.8 as my DNS server. Time Capsule 4th GEN.

    Why have you reduced the standard range? And why use 8.8.8.8 as dns server (I presume in the TC itself??)
    Reset the TC to factory and start again.. set no guest wireless. Leave everything on default settings as far as possible.
    Use short names, no spaces and pure alphanumeric. eg TCgen4 base station name. TCwifi as wireless name.
    Keep passwords short, no spaces pure alphanumeric mix of case and numbers.. aprox 8-20 characters is plenty.

  • Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Iphone 4 slide to unlock and slide to power off will not work but all other touch features work

    Iphone 4 slide to unlock and slide to power off will not work but all other touch features work properly

    You will have to get it serviced.

  • I replaced the screen of my ipod touch 4 gen the screen is working but the touch is not working what do you think that i break please help

    i just replaced the screen of my ipod touch 4 gen and is working but the touch is not working i took it to a placed call you break it i fix it they told that is was a part that they cant change is a board or something like please help me cant i found that part or is another part like the ribbon cable ?

    Apple really does not repair your iPod except for battery replacments.They exchange your iPod for a refurbished on of the same model. For a 4G, the price is $99, $149, or $199 depending upon the capacity.
    Apple - Support - iPod - Repair pricing
    A third-party place like the following may be less expensive. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Regarding why, we are only users in this forum.  You are not addressing Apple here.

  • I got problem with home button it doesn't work but the touch ID is working ( I have 5S)

    I have the new iPhone 5S.
    And the problem is the  home button it doesn't work but the touch ID is working.
    I don't think the button is broken.  

    Hey! I just read something about it on a post by iPhone 4S Stuck at boot showing [NAND] ? at the end of the second page..... It is a lot of work by it depends on you if you want to try.... at the end if not working as varjak paw quoted you may have to replace it...... but don't give up!!!!

Maybe you are looking for