Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173903 - Nvidia bad detection with livecd-tools in x-setup
Summary: Nvidia bad detection with livecd-tools in x-setup
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-09 12:56 UTC by gouZ
Modified: 2007-04-09 16:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gouZ 2007-04-09 12:56:37 UTC
lspci output :

01:00.0 VGA compatible controller: nVidia Corporation GeForce Go 7400 (rev a1)

the probleme is in this awk command in /sbin/livecd-functions.sh :

92: NVIDIA_CARD=$(echo ${NVIDIA} | awk 'BEGIN {RS=" "} /(NV|nv|G|C)[0-9]+/ {print $1}' | cut -d. -f1 | sed 's/ //' | sed 's:[^0-9]::g')

it returns nothing because their is a space between Go and 7400, and because Go is not in (NV|nv|G|C)...


Reproducible: Always

Steps to Reproduce:
1.having the same lspci output as me
2.having the livecd-tools installed (i'm working on a livecd)
3./etc/init.d/x-setup start



Expected Results:  
x-setup should have set up opengl in /etc/env.d/03opengl (eselect) for this nvidia card

This is my first submission, say it if it isn't the way i should do it... Sorry for my so poor english, im' french :)
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-09 16:36:00 UTC
The code is correct.  The problem is that the lspci/pci.ids information is incorrect.  All cards should be listed in the format of:

nVidia Corporation G73 [GeForce Go 7400]

Company, chip name, [Marketing name]

This is according to upstream's wishes.  Because of this, I consider this a bug in the upstream data, not the parsing we do on the data.

http://pciids.sourceforge.net/

The best solution is to submit a fixed listing for your card upstream.