Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to copy alsa config from other linux distro?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Wojtek_
Guru
Guru


Joined: 28 May 2006
Posts: 397
Location: London

PostPosted: Thu Jan 18, 2007 12:09 am    Post subject: How to copy alsa config from other linux distro? Reply with quote

Hello,
Couple of days ago I installed something called CyberLink PowerCinema Linux. I think it can be considered as a separate linux distro that converts your pc to a 'media pc' (boots in 15 seconds and allows only to watch movies, videos, tv listen to mp3 and so on). I know that most of you will say that I have to be some stupid Windows guy, but in fact I don't always want to boot the whole system just to watch a dvd. This software is available from my laptop's manufacturer's website so it didn't require any further tweaking.
The way it works is pretty simple - I just had to create a folder on my drive that contains all the PowerCinema stuff and then boot it from grub. Here is the list of files it uses: zlib1.dll, io_install.exe, initrd.gz, bootsect.orig, menu.lst, bzImage, image, stage1, wrd.
Now here is my question - Gentoo could never handle my soundcard properly (intel hda - I wrote loads of posts about it on this forum), whereas this PowerCinema thing does use my card correctly - all the bugs from Gentoo are gone (when I plug headphones the sound doesn't come from the speakers, I can use the volume wheel etc). Does anyone know if it is possible to get the alsa configuration from this distro and paste it to Gentoo? As far as I know the sourcecode is available on the publishers website - just tell me which file to look for.
I would be very thankful for any help.
Cheers,
Wojtek
_________________
Fujitsu-Siemens Amilo Xi-1546
Intel Centrino Duo T2600 (2,16GHz)
2x1GB DDR2 RAM
ATi Mobility Radeon X1800 256MB DDR3
2x120GB HDD
Intel High Definition Audio
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu Jan 18, 2007 2:57 am    Post subject: Reply with quote

Well, it installed files somewhere. Look through those.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Wojtek_
Guru
Guru


Joined: 28 May 2006
Posts: 397
Location: London

PostPosted: Thu Jan 18, 2007 10:52 am    Post subject: Reply with quote

In fact, there is no 'installation' process - I simply downloaded the files from Fujitsu website, put them in the directory, created a new grub entry and that's it.
_________________
Fujitsu-Siemens Amilo Xi-1546
Intel Centrino Duo T2600 (2,16GHz)
2x1GB DDR2 RAM
ATi Mobility Radeon X1800 256MB DDR3
2x120GB HDD
Intel High Definition Audio
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu Jan 18, 2007 1:10 pm    Post subject: Reply with quote

Ok, but it has files that it uses to configure things, right?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Wojtek_
Guru
Guru


Joined: 28 May 2006
Posts: 397
Location: London

PostPosted: Thu Jan 18, 2007 3:16 pm    Post subject: Reply with quote

The folder contains only files listed in my first post. Do you think any of them can contain the settings?
_________________
Fujitsu-Siemens Amilo Xi-1546
Intel Centrino Duo T2600 (2,16GHz)
2x1GB DDR2 RAM
ATi Mobility Radeon X1800 256MB DDR3
2x120GB HDD
Intel High Definition Audio
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu Jan 18, 2007 6:31 pm    Post subject: Reply with quote

Quote:
The folder contains only files listed in my first post.


Ok, that'll teach me to pay attention. Well, it might be inside initrd.gz. I'm wondering what the image and wrd files are. Try doing "file wrd" and "file image" to see if it can identify the file type. One of them is probably an archive or something like a cramfs/squashfs, in which case it contains basically the entire system.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Wojtek_
Guru
Guru


Joined: 28 May 2006
Posts: 397
Location: London

PostPosted: Thu Jan 18, 2007 9:42 pm    Post subject: Reply with quote

Here's what I got:
Code:

wojtek@eniac ~/PCM $ file wrd
wrd: Linux rev 1.0 ext3 filesystem data
wojtek@eniac ~/PCM $ file image
image: Linux rev 1.0 ext3 filesystem data

I have no idea what it means:).
_________________
Fujitsu-Siemens Amilo Xi-1546
Intel Centrino Duo T2600 (2,16GHz)
2x1GB DDR2 RAM
ATi Mobility Radeon X1800 256MB DDR3
2x120GB HDD
Intel High Definition Audio
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Thu Jan 18, 2007 11:44 pm    Post subject: Reply with quote

Maybe you could try to mount 'em via -loop :?: something like...
Code:
mount -t ext3 -o loop wrd /mnt/<sth>

_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jan 19, 2007 5:18 am    Post subject: Reply with quote

Yep, what he said. Those two files should, together, contain the entire system, / , /usr, /etc, all that stuff. Hard to say whats in what though until you mount them on a loop device.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Wojtek_
Guru
Guru


Joined: 28 May 2006
Posts: 397
Location: London

PostPosted: Fri Jan 19, 2007 10:18 am    Post subject: Reply with quote

Ok, it worked. However I have no idea which files to copy to Gentoo. Here's the list of all files that have something to do with sound:
-etc/asound.state
-usr/share/alsa/alsa.conf
-usr/share/alsa/sndo-mixer.alisp
-usr/share/alsa also contains a folder 'cards' that contains lots of *.conf files for different soundcards and 'pcm' folder that contains *.conf files like center_lfe, iec958, rear, side, modem, front, sorround40, sorround41, sorround5-, sorround51, sorround71.
_________________
Fujitsu-Siemens Amilo Xi-1546
Intel Centrino Duo T2600 (2,16GHz)
2x1GB DDR2 RAM
ATi Mobility Radeon X1800 256MB DDR3
2x120GB HDD
Intel High Definition Audio
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jan 19, 2007 10:40 am    Post subject: Reply with quote

Ok, what about stuff in /etc dealing with modules. The stuff in /usr/share/alsa isn't what we're looking for,at least I don't think so. You want to find out what options are being given to the alsa modules. To tell you the truth, I've never even looked in /usr/share/alsa, till a minute ago, so there might be something there which is important. I'll check into it.

[edit] Ok, copy the /usr/share/alsa/cards/HDA-Intel.conf to somewhere convenient and compare it to the one installed on Gentoo. Copy it to, umm, say, root's home directory or to the home directory of whatever user you're logged in as, change to that directory and do this:
Code:

diff -Naur /usr/share/alsa/cards/HDA-Intel.conf ./HDA-Intel.conf


I don't think the differences will be much, but it won't hurt to see.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Wojtek_
Guru
Guru


Joined: 28 May 2006
Posts: 397
Location: London

PostPosted: Fri Jan 19, 2007 11:17 am    Post subject: Reply with quote

Code:

eniac cards # ls
ATIIXP-MODEM.conf  CMI8338-SWIEC.conf  ICE1724.conf       VIA8233.conf
ATIIXP-SPDMA.conf  CMI8338.conf        ICH-MODEM.conf     VIA8233A.conf
ATIIXP.conf        CMI8738-MC6.conf    ICH.conf           VIA8237.conf
AU8810.conf        CS46xx.conf         ICH4.conf          VX222.conf
AU8820.conf        EMU10K1.conf        NFORCE.conf        VXPocket.conf
AU8830.conf        EMU10K1X.conf       RME9636.conf       VXPocket440.conf
Audigy.conf        ENS1370.conf        RME9652.conf       YMF744.conf
Audigy2.conf       ENS1371.conf        SI7018             aliases.alisp
AudigyLS.conf      FM801.conf          SI7018.conf        aliases.conf
Aureon51.conf      GUS.conf            TRID4DWAVENX.conf
Aureon71.conf      ICE1712.conf        VIA686A.conf

Seems like my card isn't there(!). If I could remove the splashscreen of this powercinema thing maybe I could see which modules are loaded. However, I don't know how to remove it:/. Here's the entry in my grub.conf:
Code:
title=PowerCinema
kernel (hd0,4)/PCM/bzImage root=/dev/loop0 rw acpi=off video=vesabf:ywrap,mtrr vga=788 splash=silent
initrd (hd0,4)/PCM/initrd.gz

_________________
Fujitsu-Siemens Amilo Xi-1546
Intel Centrino Duo T2600 (2,16GHz)
2x1GB DDR2 RAM
ATi Mobility Radeon X1800 256MB DDR3
2x120GB HDD
Intel High Definition Audio
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jan 19, 2007 12:03 pm    Post subject: Reply with quote

Is it the Gentoo installation that's missing the file, or PowerCinema?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jan 19, 2007 12:06 pm    Post subject: Reply with quote

Look in the /etc directory PowerCinema is using for modules.conf,modprobe.conf, files named alsa, files containing the word alsa. Getting rid of the splash screen is probably going to be more trouble than it's worth, whereas the other option just needs ls and grep
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum