Gentoo Archives: gentoo-catalyst

From: Chris Gianelloni <wolf31o2@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] livecd-functions.sh and nvidia
Date: Mon, 12 Dec 2005 19:11:01
Message-Id: 1134414519.24432.5.camel@cgianelloni.nuvox.net
In Reply to: [gentoo-catalyst] livecd-functions.sh and nvidia by Nicolas Raspail
1 On Mon, 2005-12-12 at 18:44 +0100, Nicolas Raspail wrote:
2 > Hi,
3 >
4 > I think the pattern to detect an nvidia card is wrong in
5 > livecd-functions.sh :
6 >
7 > NVIDIA_CARD=$(echo ${NVIDIA} | awk 'BEGIN {RS=" "} /NV[0-9]+/ {print
8 > $1}' | cut -d. -f1 | sed 's/ //' | sed 's:[^0-9]::g'
9 >
10 > Here is the output of lspci on my system :
11 >
12 > 0000:01:00.0 VGA compatible controller: nVidia Corporation nv40 [GeForce
13 > 6800 Ultra] (rev a1)
14 >
15 > The regexp try to math a pattern like NV followed by numbers, but my
16 > card appears as nv40, lowercase, and it isn't detected.
17 >
18 > If I modify the line like this
19 >
20 > NVIDIA_CARD=$(echo ${NVIDIA} | awk 'BEGIN {RS="
21 > ";IGNORECASE="1"} /NV[0-9]+/ {print $1}' | cut -d. -f1 | sed 's/ //' |
22 > sed 's:[^0-9]::g'
23 >
24 > the output is 40, which seems to be ok. As I'm not an awk user, perhaps,
25 > my little modification is ugly, and someone has a better one ?
26 >
27 > To test my solution, I will write an fsscript that modify the
28 > livecd-functions.sh, rebuild my livecd and test the new iso.
29
30 Normally, this would be filed as a bug unless you were looking for
31 discussion on it. I do have one question for you, where is your pci.ids
32 coming from on the machine that is showing that for lspci? All Nvidia
33 cards should be using capitals. It very well could be the pci.ids being
34 shipped with the pciutils ebuild causing the issue. At any rate, I've
35 committed a fix to CVS for this, since we should be able to check for
36 this problem.
37
38 --
39 Chris Gianelloni
40 Release Engineering - Strategic Lead
41 x86 Architecture Team
42 Games - Developer
43 Gentoo Linux

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-catalyst] livecd-functions.sh and nvidia Nicolas Raspail <nicolas@×××××××××××××××.net>