amilo-forum.com

Everything you need to know about Amilo and Lifebook laptops by Fujitsu

Amilo Li1705 - No sound from headphone-jack

Everything around Linux and Unix-like operating systems.

Re: Amilo Li1705 - No sound from headphone-jack

Postby tzotzolyno » Sat Mar 21, 2009 12:50 am

Can you provide a step-by-step guide of this sound bug for a complete beginner, please?
I really want to have a functional non-microsoft OS on my laptop but with these sound and video problems it is really awful.
User avatar
tzotzolyno
 
Posts: 16
Joined: Fri May 09, 2008 8:26 pm
Location: Cluj-Napoca/Romania
Notebook:
  • Amilo Li 1705

Re: Amilo Li1705 - No sound from headphone-jack

Postby rozakia » Sat Mar 21, 2009 10:55 am

For Ubuntu 8.10 the sound issue (guide with help of all the posts I read over the internet):

Go to

http://www.alsa-project.org/main/index.php/Main_Page

Download alsa-driver-1.0.19

ftp://ftp.alsa-project.org/pub/driver/a ... 19.tar.bz2

Save it on desktop.

Open the terminal, and do the command which takes you to the place where the downloaded alsa is (the desktop, if you downloaded it there).

It starts with

cd

and the path.

E.g. cd /home/x/Desktop

Afterwards, do this command, so as to extract the downloaded alsa archive.

tar -xvjf alsa-driver-1.x.xx.tar.bz2

Then, on desktop you'll see a new folder with alsa driver.

Enter the folder with the click of the mouse to this destination:

alsa-kernel/pci/hda/patch_via.c

Change code

static int patch_vt1708(struct hda_codec *codec)
{
struct via_spec *spec;
int err;

/* create a codec specific record */
spec = kcalloc(1, sizeof(*spec), GFP_KERNEL);
if (spec == NULL)
return -ENOMEM;

codec->spec = spec;


/* automatic parse from the BIOS config */
err = vt1708_parse_auto_config(codec);
if (err < 0) {
via_free(codec);
return err;
} else if (!err) {
printk(KERN_INFO "hda_codec: Cannot set up configuration "
"from BIOS. Using genenic mode...\n");
}


spec->stream_name_analog = "VT1708 Analog";
spec->stream_analog_playback = &vt1708_pcm_analog_playback;
spec->stream_analog_capture = &vt1708_pcm_analog_capture;

spec->stream_name_digital = "VT1708 Digital";
spec->stream_digital_playback = &vt1708_pcm_digital_playback;
spec->stream_digital_capture = &vt1708_pcm_digital_capture;


if (!spec->adc_nids && spec->input_mux) {
spec->adc_nids = vt1708_adc_nids;
spec->num_adc_nids = ARRAY_SIZE(vt1708_adc_nids);
spec->mixers[spec->num_mixers] = vt1708_capture_mixer;
spec->num_mixers++;
}

codec->patch_ops = via_patch_ops;

codec->patch_ops.init = via_auto_init;
#ifdef CONFIG_SND_HDA_POWER_SAVE
spec->loopback.amplist = vt1708_loopbacks;
#endif

return 0;
}



with




static int patch_vt1708(struct hda_codec *codec)
{
unsigned int pin_hp;
struct via_spec *spec;
int err;

/* create a codec specific record */
spec = kcalloc(1, sizeof(*spec), GFP_KERNEL);
if (spec == NULL)
return -ENOMEM;

codec->spec = spec;

/* Ajout SQ071031 */
pin_hp=snd_hda_codec_read(codec, 0x20, 0, AC_VERB_GET_CONFIG_DEFAULT, 0);
pin_hp=pin_hp&0x3FFFFFFF;
snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, pin_hp>>24);


/* automatic parse from the BIOS config */
err = vt1708_parse_auto_config(codec);
if (err < 0) {
via_free(codec);
return err;
} else if (!err) {
printk(KERN_INFO "hda_codec: Cannot set up configuration "
"from BIOS. Using genenic mode...\n");
}


spec->stream_name_analog = "VT1708 Analog";
spec->stream_analog_playback = &vt1708_pcm_analog_playback;
spec->stream_analog_capture = &vt1708_pcm_analog_capture;

spec->stream_name_digital = "VT1708 Digital";
spec->stream_digital_playback = &vt1708_pcm_digital_playback;
spec->stream_digital_capture = &vt1708_pcm_digital_capture;


if (!spec->adc_nids && spec->input_mux) {
spec->adc_nids = vt1708_adc_nids;
spec->num_adc_nids = ARRAY_SIZE(vt1708_adc_nids);
spec->mixers[spec->num_mixers] = vt1708_capture_mixer;
spec->num_mixers++;
}

codec->patch_ops = via_patch_ops;

codec->patch_ops.init = via_auto_init;
#ifdef CONFIG_SND_HDA_POWER_SAVE
spec->loopback.amplist = vt1708_loopbacks;
#endif

return 0;
}

Save the modified file. Leave the folder & open again the terminal.

Write:

sudo apt-get install build-essential xmlto

After you finished installing these, type in terminal again the command to lead you to the folder with alsa driver. The alsa driver with patch

cd alsa-driver-1.xx.xx

Which does not actually look like this, but:

cd /home/x/Dexktop/alsa-driver-1.0.19

Then do

./configure

(me, i did directly sudo ./configure , but it can break sound if things are not ok, so not safe to do that)

then, the next command in terminal will be, if no error:

make

(i also did sudo make)

then:

sudo make install

then reboot.

If you want, you can also read the other sound posts, like:

http://ubuntuforums.org/showthread.php?t=556217

https://bugs.launchpad.net/ubuntu/+sour ... bug/184314

In order to install Ubuntu 8.10 on Amilo Li 1705 there are other info on internet to help you with the video issue. But Ubuntu 8.04 works out of the box, so if you are complete beginner, it's safer that one. :) & you need also to do even some more steps to alsa to work on ubuntu 8.04, I guess, at least that's my perspective & experience with it. :)
rozakia
 
Posts: 13
Joined: Sun Feb 10, 2008 5:01 pm

Re: Amilo Li1705 - No sound from headphone-jack

Postby tzotzolyno » Sat Mar 21, 2009 2:20 pm

Thank you very much. I've instaled for a while 8.10 with this indications from Ubuntu Forum: http://ubuntuforums.org/showthread.php?t=979018
It work good but i've never been able to clinch this sound bug.

Thank you again. Now I'l give a try! Whish me luck! :wink:

P.S. The sound doesn't work in Ubuntu 9.04 Beta.
User avatar
tzotzolyno
 
Posts: 16
Joined: Fri May 09, 2008 8:26 pm
Location: Cluj-Napoca/Romania
Notebook:
  • Amilo Li 1705

Re: Amilo Li1705 - No sound from headphone-jack

Postby tzotzolyno » Thu Apr 09, 2009 7:41 pm

Now, I've installed Ubuntu 9.04. The patch for the alsa driver described here by rozakia works very well for this beta release of Ubuntu.
I've installed it because of a strange „re-mute” of the headphones in 8.10 after some software instalation. I suspect some conflicts.

Well...these are good news! :wink:

(sorry for my bad english, again)

Later Edit:
So, there seems to be some problems with the stability of this patch (in 8.10 and 9.04 too). Recompilling doesn't help. :?
User avatar
tzotzolyno
 
Posts: 16
Joined: Fri May 09, 2008 8:26 pm
Location: Cluj-Napoca/Romania
Notebook:
  • Amilo Li 1705

Re: Amilo Li1705 - No sound from headphone-jack

Postby rozakia » Thu Apr 09, 2009 10:44 pm

yea, i have as well. strange sounds on the login screen, sometimes i need to change default sound settings as some software should work. but..headphone settings are always there :)

when you receive some "kernel headers" or so, through updates from ubuntu, & sound is muted, nothing strange in that. just "official settings" :) it's normal. they mute sound. i don't have idea which other software mutes sound, but sometimes that's normal.
rozakia
 
Posts: 13
Joined: Sun Feb 10, 2008 5:01 pm

Re: Amilo Li1705 - No sound from headphone-jack

Postby tzotzolyno » Fri Apr 10, 2009 6:35 am

Actually, I really don't know how to change to default the sound settings. Now, for example, I can't hear any sound from headphones...and that's a status since yesterday.
In 8.10, when Ubuntu updated the kernel I've reinstalled the pached audio driver. It worked.
But now...I listen sounds/music just with my mono loud-speaker. :cry:
What exactly do you do to change to default sound setings? I've never seen that they muted sound...just imediately after the recompilation of the patched driver.
User avatar
tzotzolyno
 
Posts: 16
Joined: Fri May 09, 2008 8:26 pm
Location: Cluj-Napoca/Romania
Notebook:
  • Amilo Li 1705

Re: Amilo Li1705 - No sound from headphone-jack

Postby rozakia » Fri Apr 10, 2009 10:17 am

do you have some sound volume control on screen? desktop? if you right-click on it some menu appears. click on "open volume control". click on "preferences" & then tick all the boxes you find there. afterwards, more settings should appear. then "options" & "independent hp" options should be set to "off" for headphones to work. i think also capture settings are muted after update of kernel.

other volume options are in system> preferences. "sound", or, if you can't find this desktop icon, there should be some other there called "volume control".
rozakia
 
Posts: 13
Joined: Sun Feb 10, 2008 5:01 pm

Re: Amilo Li1705 - No sound from headphone-jack

Postby tzotzolyno » Fri Apr 10, 2009 3:45 pm

rozakia wrote:do you have some sound volume control on screen? desktop? if you right-click on it some menu appears. click on "open volume control". click on "preferences" & then tick all the boxes you find there. afterwards, more settings should appear. then "options" & "independent hp" options should be set to "off" for headphones to work. i think also capture settings are muted after update of kernel.

Thank you very much. I've never thought to search if that boxes are ticked. Now it works! :D


For those who want to intall Ubuntu 8.04 on a Fujitsu-Siemens Amilo Li 1705 and to resolve the sound and video issue:http://ubuntuforums.org/showthread.php?t=1124185

Thanks to rozakia again and to many others! :D
User avatar
tzotzolyno
 
Posts: 16
Joined: Fri May 09, 2008 8:26 pm
Location: Cluj-Napoca/Romania
Notebook:
  • Amilo Li 1705

Re: Amilo Li1705 - No sound from headphone-jack

Postby tzotzolyno » Wed Jun 02, 2010 12:30 pm

I'm back!
For the headphone problem in Ubuntu 10.04 check this. It works 100%! :D
User avatar
tzotzolyno
 
Posts: 16
Joined: Fri May 09, 2008 8:26 pm
Location: Cluj-Napoca/Romania
Notebook:
  • Amilo Li 1705

Re: Amilo Li1705 - No sound from headphone-jack

Postby Blaecleah75 » Sat Jan 15, 2011 5:45 am

tzotzolyno wrote:I'm back!
For the headphone problem in Ubuntu 10.04 check this. It works 100%! :D


I have the same problem about Ubuntu but mine is I like my headphone jack to be dual so I can add additional Headphone. I have bought another jack but it doesn’t seem to work, both headphones have no sound when I use it. My question is do I have to buy another soundcard so as to add additional headphones for Ubuntu?
Blaecleah75
 
Posts: 1
Joined: Sat Jan 15, 2011 5:13 am

Previous

Return to Linux / Unix / BSD