Page 15 of 29 FirstFirst ... 5131415161725 ... LastLast
Results 141 to 150 of 281

Thread: snd_hda_intel options database

  1. #141
    Join Date
    May 2008
    Beans
    2

    Re: snd_hda_intel options database

    Helpppppppppppp

    I have a Hp dv6-2170us the issue is that on the headphones and speakers work at the same time.Please help me I will provide any info


    *** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 3: INTEL HDMI 0 [INTEL HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 7: INTEL HDMI 1 [INTEL HDMI 1]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    danny@danny-laptop:~$

  2. #142
    Join Date
    May 2008
    Location
    Ohio, USA
    Beans
    6,905
    Distro
    Ubuntu Gnome 15.04 Vivid Vervet

    Re: snd_hda_intel options database

    markbuntu specifically asked
    Please do not post problems or ask for help here
    In other words, please start a new thread, with a proper title and any pertinent info. If you'd like to PM me the link to your post, I will be glad to help.

  3. #143
    Join Date
    Mar 2007
    Location
    Columbus, OH
    Beans
    19
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: snd_hda_intel options database

    HP Pavilion dv7 3065dx
    Running Karmic, which has ALSA 1.0.20

    Out of the box, sound did not work. Eventually got everything working including the mic by adding the following to alsa-base.conf
    Code:
    options snd-hda-intel model=hp-dv5 enable_msi=1

  4. #144
    Join Date
    May 2010
    Beans
    4

    Re: snd_hda_intel options database

    hi, i am using an acer aspire 4736Z laptop and i can't seem to make the mic work. apart from that, everything else is ok. do you know of any configuration which might be able to help me out?

    here are some details i got from my laptop:

    Code:
    cat /proc/asound/card0/codec#* | grep Codec
    
    Codec: Realtek ALC888
    Codec: LSI ID 1040
    Codec: Intel G45 DEVCTG
    Code:
    aplay -l
    
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 3: INTEL HDMI [INTEL HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    i did try to configure it using

    Code:
    sudo nano /etc/modprobe.d/alsa-base.conf
    and added
    Code:
    options snd-hda-intel model=acer
    but it didn't help me at all. please help!

  5. #145
    Join Date
    May 2005
    Beans
    153

    Re: snd_hda_intel options database

    First of all, thanks xtrman. Really, it's just great of you to share this. I am now using, very successfully, your "hda-verb" speaker shutdown method.

    I also tried compiling your daemon (also awesome), but I got an error, I can't seem to resolve the meaning of the error from the code, way beyond my pay grade, so I was wondering if it mike make any more sense to you.

    After trying:

    Code:
    gcc main.cpp -o pinsensed
    and got the following error:

    Code:
    /tmp/ccUFwPiX.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
    collect2: ld returned 1 exit status
    Also I might mention, this is a brand new 10.04 install, which is still under pretty heavy renovation, so I suppose I could be missing some code building components (I installed "build-essentials" which, in the past, has done the job for me).

    Please let me know if you have any thoughts. regardless getting some control over this audio thing has been a great thing, thanks again!

    promet
    ************************************************** ****
    HUZZAH UBUNTU, HUZZAH!

  6. #146
    Join Date
    Apr 2010
    Beans
    3

    Re: snd_hda_intel options database

    Try compiling with g++ instead of gcc.

  7. #147
    Join Date
    Aug 2009
    Beans
    8

    Re: snd_hda_intel options database

    You can build a program using c++ which can solve your problem

  8. #148
    Join Date
    May 2010
    Location
    Hyderabad
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: snd_hda_intel options database

    Quote Originally Posted by butoyzki View Post
    hi, i am using an acer aspire 4736Z laptop and i can't seem to make the mic work. apart from that, everything else is ok. do you know of any configuration which might be able to help me out?

    here are some details i got from my laptop:

    Code:
    cat /proc/asound/card0/codec#* | grep Codec
    
    Codec: Realtek ALC888
    Codec: LSI ID 1040
    Codec: Intel G45 DEVCTG
    Code:
    aplay -l
    
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 3: INTEL HDMI [INTEL HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    i did try to configure it using

    Code:
    sudo nano /etc/modprobe.d/alsa-base.conf
    and added
    Code:
    options snd-hda-intel model=acer
    but it didn't help me at all. please help!
    I had the same problem for conexant chips so i googled 'conexant audio drivers for linux' ...I suggest you try 'realtek audio drivers for linux'
    http://ubuntuforums.org/showpost.php...8&postcount=38

  9. #149
    Join Date
    Mar 2010
    Beans
    16

    Exclamation Re: snd_hda_intel options database

    Quote Originally Posted by xtrman View Post
    For the Conexant 5069 card I have found a way to mute the internal speakers.
    Download hda-verb from ftp://ftp.suse.com/pub/people/tiwai/...erb-0.3.tar.gz.
    Then execute
    Code:
    sudo hda-verb /dev/snd/hwC0D0 0x1f 0x701 1
    to turn the internal speakers off and
    Code:
    sudo hda-verb /dev/snd/hwC0D0 0x1f 0x701 0
    to turn them on again.

    I have also filed a bug report upstream on this.

    Edit: I have now created a daemon to automattically mute and unmute the internal speakers when headphones are plugged in and removed.
    Program:
    Code:
    /* 
     * File:   main.cpp
     * Author: xtr
     *
     * Created on April 26, 2010, 5:26 PM
     */
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <ctype.h>
    #include <unistd.h>
    #include <sys/ioctl.h>
    #include <sys/io.h>
    #include <sys/types.h>
    #include <sys/fcntl.h>
    #include <syslog.h>
    #include <signal.h>
    
    #include <stdint.h>
    typedef uint8_t u8;
    typedef uint16_t u16;
    typedef uint32_t u32;
    typedef uint64_t u64;
    
    #define HDA_VERB(nid,verb,param)    ((nid)<<24 | (verb)<<8 | (param))
    #define HDA_IOCTL_VERB_WRITE        _IOWR('H', 0x11, struct hda_verb_ioctl)
    
    struct hda_verb_ioctl {
        u32 verb;    /* HDA_VERB() */
        u32 res;    /* response */
    };
    
    void daemonize()
    {
        pid_t pid, sid;
    
        /* Fork off the parent process */
        pid = fork();
        if (pid < 0) {
                exit(EXIT_FAILURE);
        }
        /* If we got a good PID, then
           we can exit the parent process. */
        if (pid > 0) {
                exit(EXIT_SUCCESS);
        }
    
        /* Change the file mode mask */
        umask(0);
    
        /* Open any logs here */
        openlog("pinsensed", LOG_PID, LOG_DAEMON);
        /* Create a new SID for the child process */
        sid = setsid();
        if (sid < 0) {
                /* Log any failure here */
                exit(EXIT_FAILURE);
        }
    
        /* Change the current working directory */
        if ((chdir("/")) < 0) {
                /* Log any failure here */
                exit(EXIT_FAILURE);
        }
    
    
        /* Close out the standard file descriptors */
        close(STDIN_FILENO);
        close(STDOUT_FILENO);
        close(STDERR_FILENO);
    
    }
    
    bool done = false;
    
    void trpsig(int)
    {
        done = true;
    }
    
    int main(int argc, char** argv) {
        daemonize();
        signal(SIGTERM, &trpsig);
    
        int fd, state;
        struct hda_verb_ioctl val;
        syslog(LOG_INFO, "Daemon started.");
        fd = open("/dev/snd/hwC0D0", O_RDWR);
        if (fd < 0) {
            syslog(LOG_ERR, "Failed to open snd device.");
                exit(EXIT_FAILURE);
        }
        val.verb = HDA_VERB(0x19, 0x0f09, 0x0);
            if (ioctl(fd, HDA_IOCTL_VERB_WRITE, &val) < 0)
                syslog(LOG_ERR, "Failed to write hda verb.");
        state = val.res >> 31;
        syslog(LOG_INFO, "Starting input value: %0x", state);
        while(!done)
        {
            sleep(1);
            val.verb = HDA_VERB(0x19, 0x0f09, 0x0);
            if (ioctl(fd, HDA_IOCTL_VERB_WRITE, &val) < 0)
                syslog(LOG_ERR, "Failed to write hda verb.");
    
            if(state != (val.res >> 31))
            {
                state = (val.res >> 31);
                syslog(LOG_INFO, "New input value: %0x", state);
                if(state == 0x1)
                    val.verb = HDA_VERB(0x1f, 0x701, 0x1);
                else
                    val.verb = HDA_VERB(0x1f, 0x701, 0x0);
                if (ioctl(fd, HDA_IOCTL_VERB_WRITE, &val) < 0)
                    syslog(LOG_ERR, "Failed to write hda verb.");
            }
        }
        close(fd);
        syslog(LOG_INFO, "Daemon stopped.");
        exit(EXIT_SUCCESS);
    }
    Compile with g++ main.cpp -o pinsensed
    Run with sudo ./pinsensed
    Hello,

    I'm new on ubuntu and using 10.04 on Asus K52F.
    Somebody can give me a step by step instruction for this trick?

    Thanks in advanced

  10. #150
    Join Date
    Jun 2010
    Beans
    8

    Re: snd_hda_intel options database

    Oh my god, this worked sooo perfectly! Thank you so much. (I use pavilion dv7 HP)

Page 15 of 29 FirstFirst ... 5131415161725 ... 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
  •