I have just tried , the output is like something below 01:00.0 VGA compatible controller: ATI Technologies Inc M92 LP Subsystem: Hewlett-Packard Company Device 3644 Flags: bus master, fast devsel, latency 0, IRQ 10 Memory at 80000000 (32bit, prefetchable) [size=256M] I/O ports at 3000 [size=256] Memory at 90300000 (32bit, non-prefetchable) [size=64K] Expansion ROM at 90320000 [disabled] [size=128K] Capabilities: [50] Power Management version 3 Capabilities: [58] Express Legacy Endpoint, MSI 00 Capabilities: [a0] MSI: Enabel- Count=1/1 Maskable- 64bit+ Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 How can I find the driver according to these information ? ------------------ 原始邮件 ------------------ 发件人: "Nilesh Govindarajan"; 发送时间: 2011年10月15日(星期六) 中午11:43 收件人: "gentoo-user"; 主题: Re: [gentoo-user] Can't find driver for VGA in kernel source tree On Sat 15 Oct 2011 07:43:23 AM IST, Lavender wrote: > Hello, everyone ! I'm trying to build a kernel > manully and there is a problem. > I use lspci command and it shows my > VGA card information: > > 01:00.0 VGA compatible controller: > ATI Technologies Inc M92 LP > > Then I type > $ cd /sys/bus/pci/devices/0000:01:00.0 > $ cat vendor > $ cat device > > Now I get the vendor ID 0x1002 > and the device ID 0x9552 for my VGA card > > Then I type > $ grep -i 0x1002 include/linux/pci_ids.h > It shows #define PCI_VENDOR_ID_ATI 0x1002 > > $grep -i 0x9552 include/linux/pci_ids.h > It shows nothing > $grep -Rl PCI_VENDOR_ID_ATI > It prints a lot message, but I should notice > files in directory drivers/media video and gpu. > Here are the files in them: > /drivers/media/video/cx88/cx88-card.c > /drivers/video/aty/radeon_base.c > /drivers/video/aty/atyfb_base.c > /drivers/video/aty/aty128fb.c > /drivers/drm/radeon/radeon_agp.c > > I have searched through these files, but I didn't > find both 0x1002 and 0x9552 in one file which > means these files are not drivers I need. > If it means that there is no driver for my VGA in > kernel source tree ? But my laptop is bought two > years ago, hardware is not fashion. Have you tried lspci -v which gives verbose information about the device, including the modules involved? -- Nilesh Govindarajan http://nileshgr.com