Summary: | kcmopengl 3d card is always unkwnown | ||
---|---|---|---|
Product: | [Unmaintained] kcontrol | Reporter: | Ilya Korniyko <k_ilya> |
Component: | kcminfo | Assignee: | Helge Deller <deller> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | patch to fix it |
Description
Ilya Korniyko
2005-05-19 16:18:02 UTC
Created attachment 11106 [details]
patch to fix it
SVN commit 416133 by deller: fix Bug 105963: kcmopengl 3d card is always unkwnown BUG:105963 M +7 -2 trunk/KDE/kdebase/kcontrol/info/opengl.cpp --- trunk/KDE/kdebase/kcontrol/info/opengl.cpp #416132:416133 @@ -109,10 +109,15 @@ if (!line.isEmpty()) { dri_info.module = line.mid(0, line.find(0x20)); - QRegExp rx = QRegExp("\\bPCI:([0-9a-fA-F]:[0-9a-fA-F]:[0-9a-fA-F])\\b"); + // possible formats, for regression testing + // line = " PCI:01:00:0"; + // line = " pci:0000:01:00.0" + QRegExp rx = QRegExp("\\b[Pp][Cc][Ii][:]([0-9a-fA-F]+[:])?([0-9a-fA-F]+[:][0-9a-fA-F]+[:.][0-9a-fA-F]+)\\b"); if (rx.search(line)>0) { - dri_info.pci = rx.cap(1); + dri_info.pci = rx.cap(2); int end = dri_info.pci.findRev(':'); + int end2 = dri_info.pci.findRev('.'); + if (end2>end) end=end2; dri_info.pci[end]='.'; QString cmd = QString("lspci -m -v -s ") + dri_info.pci; committed to KDE 3.4 branch as well (svn commit #416134). Thanks for the bug report & patch! |