Page 20 of 29 FirstFirst ... 101819202122 ... LastLast
Results 191 to 200 of 281

Thread: snd_hda_intel options database

  1. #191
    Join Date
    Apr 2007
    Location
    Kent - England.
    Beans
    145
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: snd_hda_intel options database

    Fujitsu Siemens Amilo pi1505 works with:

    Code:
    options snd-hda-intel model=3stack-dig
    This enabled the speakers when only the headphone jack appeared to work.

    Using 10.04/Mint 9 Isadora. I have never had to do this before (mind you, I have been using Jaunty until updates stopped yesterday!)

    Ubuntu forums I love you.

  2. #192
    Join Date
    Sep 2006
    Beans
    152

    Re: snd_hda_intel options database

    Sony VAIO VGN-NR31S

    it works using "basic" in /etc/modprobe.d/alsa-base.conf


    Code:
    options snd-hda-intel model=basic
    ...on debian squeeze. I left Ubuntu months ago, because is now a monster full of unuseful things and complications.

  3. #193
    Join Date
    Jan 2008
    Beans
    2

    Re: snd_hda_intel options database

    for Toshiba Satellite C650
    options snd-hda-intel model=ideapad

  4. #194
    Join Date
    May 2008
    Location
    USA
    Beans
    13
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: snd_hda_intel options database

    Ubuntu 10.10 x86_64
    Intel DP55WG Motherboard

    aplay -l
    card 0: Intel [HDA Intel], device 0: ALC889 Analog [ALC889 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: ALC889 Digital [ALC889 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0


    /etc/modprobe.d/alsa-base.conf
    options snd-hda-intel model=6stack-dig

    Works fine. You can select either Analog or Digital SPDIF from the Hardware Tab in Sound Preferences.

  5. #195
    Join Date
    Aug 2005
    Beans
    368

    Re: snd_hda_intel options database

    I am writing an article on how to put these model information into the Alsa, so that in newer versions of Linux it would work without a hitch.
    If anyone wants to be my guinea pig and follow the instructions, please PM me.
    If all goes well, you will be a Linux kernel contributor (the change is added to the Linux kernel).

  6. #196
    Join Date
    Jul 2006
    Beans
    70

    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.
    I just purchased an asus k52f notebook. your fix here worked awesome. thank you.

  7. #197
    Join Date
    Jul 2006
    Beans
    70

    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

    This fix works for me. However, I have to re-apply the fix every time I bootup, as it does not stay fixed after reboot. (specifically, I have to run both Compile with g++ main.cpp -o pinsensed AND sudo ./pinsensed). Could someone assist me with how to have Ubuntu apply this fix automatically everytime I log in? I'd really appreciate it and offer my deepest thanks.

  8. #198
    Join Date
    Aug 2005
    Beans
    368

    Re: snd_hda_intel options database

    Quote Originally Posted by ericmc783 View Post
    This fix works for me. However, I have to re-apply the fix every time I bootup, as it does not stay fixed after reboot. (specifically, I have to run both Compile with g++ main.cpp -o pinsensed AND sudo ./pinsensed). Could someone assist me with how to have Ubuntu apply this fix automatically everytime I log in? I'd really appreciate it and offer my deepest thanks.
    What you would do is copy the program into some location of your system

    Code:
    sudo cp pinsensed /usr/local/bin/
    and then edit the rc.local file for local bootup programs with

    Code:
    sudo gedit /etc/rc.local
    and in the editor add the line '/usr/local/bin/pinsensed'. You add this before the 'exit 0' line. Finally reboot, and that's it!

  9. #199
    Join Date
    Dec 2010
    Beans
    5

    Re: snd_hda_intel options database

    I'm using lenovo 3000Y500 7761 52Q with Ubuntu 10.04. Subwoofer and mic are not working, however, the two front speakers are working, but the sound is too low if the subwoofer is not working. Can someone suggest what is to be added in alsa-base.conf?

    I've been stuck on this for more than a week.

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

    Re: snd_hda_intel options database

    Quote Originally Posted by lxapp View Post
    I'm using lenovo 3000Y500 7761 52Q with Ubuntu 10.04. Subwoofer and mic are not working, however, the two front speakers are working, but the sound is too low if the subwoofer is not working. Can someone suggest what is to be added in alsa-base.conf?

    I've been stuck on this for more than a week.
    Use the alsa-info-script to provide detailed information.
    Run this command in a terminal:
    Code:
    wget http://www.alsa-project.org/alsa-info.sh -O alsa-info.sh && bash alsa-info.sh
    Choose the upload option and provide a link for the output.
    [Terminal="Applications->Accessories->Terminal"]

Page 20 of 29 FirstFirst ... 101819202122 ... 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
  •