Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old September 21st, 2007   #1
blagojedrovski
First Cup of Ubuntu
 
Join Date: Sep 2007
Beans: 2
Thumbs down Ubuntu 7.04 on Amilo Li 1705 problem

Hi, sorry for my poor English. it's a great honor to be a part of this forum, i have just installed Ubuntu 7.04 and absolutely fell in love with it. Instalation went great, Ubuntu booted and i thought everything went well.

My problems are theese:

1. My resolution is stuck in 800x600 mode, and somehow can't change it... I've searched in many forums, found drivers on viaarena.com but they can't be installed, since either i'm being a major jackass (because im used to work in windows enviroment) and doing something wrong or i simply can't understand what to do I also came across "dpkg-reconfigure xserver-xorg" command (not sure about spelling it right) and after 3 long long hours of changing xorg.config file somehow managed to fix my resolution but my lame "CN896 VIA Chrome9™" integrated graphics videocard isn't working correctly (works only with the vesa driver)...

2. My sound card which works on my laptop speaker, but when i plug in my headphones it stops, i take my headphones out, it works again (funny huh)... Btw VIA HD Audio Codec VT1708 paired with VT8237A

As i said http://www.viaarena.com/default.aspx...Type=3&OSID=45 has drivers for almoust everything i need but i can't install them. Can someone PLEASE PLEASE PLEASE help me out a bit, this is one hell of an operating system and i intend to learn more and more about it!

Thank You In Advance!!!
blagojedrovski is offline   Reply With Quote
Old September 22nd, 2007   #2
leonidas666
Just Give Me the Beans!
 
Join Date: May 2007
Beans: 68
Re: Ubuntu 7.04 on Amilo Li 1705 problem

Quote:
Originally Posted by blagojedrovski View Post
2. My sound card which works on my laptop speaker, but when i plug in my headphones it stops, i take my headphones out, it works again (funny huh)... Btw VIA HD Audio Codec VT1708 paired with VT8237A
Do you mean to say that there is no sound also on the headphones when you plug in the headphones? Otherwise i think this is a quite usual behavior, when you plug in the headphones the output to the speaker will automatically stop (but of course you should be able to hear something with the headphones)
Otherwise some laptops have lots of different switches for the audio card. You can see these switches if you open the mixer window. One laptop i used had a switch "headphone sense", and this would enable or disable the automatically muting of the speakers when the headphones are inserted. Maybe you can find some setting there.
leonidas666 is offline   Reply With Quote
Old October 14th, 2007   #3
kecsap
5 Cups of Ubuntu
 
Join Date: Sep 2006
Beans: 24
Re: Ubuntu 7.04 on Amilo Li 1705 problem

I had the same problem and found the solution which works me:

You must patch the hda_codec.c in alsa-driver sources, recompile and install:

http://forums.viaarena.com/messagevi...threadid=77358

That's all
kecsap is offline   Reply With Quote
Old October 31st, 2007   #4
squil
First Cup of Ubuntu
 
Join Date: Oct 2007
Beans: 3
Re: Ubuntu 7.04 on Amilo Li 1705 problem

I got it to work as well !

the main steps are the following :

Download the latest alsa driver

Code:
tar -xvjf alsa-driver-1.x.xx.tar.bz2
open 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;
}
by :


Code:
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;
}

now, in order to compile :
Code:
cd alsa-driver-1.xx.xx
./configure
make
sudo make install
Reboot and that should work fine.

Last edited by squil; October 31st, 2007 at 01:22 PM..
squil is offline   Reply With Quote
Old November 18th, 2007   #5
blagojedrovski
First Cup of Ubuntu
 
Join Date: Sep 2007
Beans: 2
Re: Ubuntu 7.04 on Amilo Li 1705 problem

I am so sorry for not responding for such a long time, i've had soo many work this past weeks it was impossible to have some spare time... Anyway THANK YOU a lot, i've done what you told me and it's all working now... Just love the 7.04 version
blagojedrovski is offline   Reply With Quote
Old February 4th, 2008   #6
oreja
First Cup of Ubuntu
 
Join Date: Dec 2007
Beans: 4
Re: Ubuntu 7.04 on Amilo Li 1705 problem

I found the solution which works witch Amilo Pro (Fujitsu Siemens)
You have to add two lines to file /etc/modprobe.d/alsa-base

//add this lines
options snd-hda-intel model=3stack enable=yes
options snd-hda-intel model=auto position_fix=1 enable=yes

and restart laptop. I hope it helps.
oreja is offline   Reply With Quote
Old May 23rd, 2008   #7
shanix
Just Give Me the Beans!
 
Join Date: Jun 2006
Beans: 69
Ubuntu Karmic Koala (testing)
Re: Ubuntu 7.04 on Amilo Li 1705 problem

Has anyone test the hardware on 8.04 yet??
shanix is offline   Reply With Quote
Old May 31st, 2008   #8
gnuslov
First Cup of Ubuntu
 
Join Date: Apr 2006
My beans are hidden!
Re: Ubuntu 7.04 on Amilo Li 1705 problem

I have an everex gbook va1500v, which has the same sound hardware as the poster that started the thread, and I can report than squil's patch to alsa-drivers works on 8.04, but ONLY if you remove the alsa-driver folder from your /lib/modules/`uname -r`/ubuntu/sound/ directory and replace it with a symbolic link to "../../kernel/sound/" where your new alsa-driver modules are stored.
gnuslov is offline   Reply With Quote
Old May 31st, 2008   #9
davidryderuk
Just Give Me the Beans!
 
Join Date: Nov 2007
Beans: 79
Re: Ubuntu 7.04 on Amilo Li 1705 problem

Thanks,
This works for me in Hardy as well with a Hi-grade computer and via vt1708 audio chip after following squil and gnuslov's instructions. Do you know if this fix going to make it into the unpatched version of alsa at some stage? (it took me about 6 months to find this fix, after i first started with Linux)
davidryderuk is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:39 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry