How to show more hardware info in Puppy 1.07

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

How to show more hardware info in Puppy 1.07

#1 Post by pakt »

Start -> Control Panel -> Hardware probe -> Query_PCI tries hard to show what hardware your PC has, but it usually shows mostly "null" in its output leaving you mainly in the dark. "lspci" reveals even less information.

Running Puppy 1.0.7, here is the output from "lspci" on my laptop:
  • # lspci
    0:0.0 8086:3580 (rev 02)
    0:0.1 8086:3584 (rev 02)
    0:0.3 8086:3585 (rev 02)
    0:2.0 8086:3582 (rev 02)
    0:2.1 8086:3582 (rev 02)
    0:29.0 8086:24c2 (rev 01)
    0:29.1 8086:24c4 (rev 01)
    0:29.2 8086:24c7 (rev 01)
    0:29.7 8086:24cd (rev 01)
    0:30.0 8086:2448 (rev 81)
    0:31.0 8086:24cc (rev 01)
    0:31.1 8086:24ca (rev 01)
    0:31.5 8086:24c5 (rev 01)
    0:31.6 8086:24c6 (rev 01)
    1:1.0 104c:ac44 (rev 02)
    1:1.1 104c:8029
    1:3.0 14e4:4320 (rev 03)
    1:8.0 8086:103d (rev 81)
    2:0.0 1033:0035 (rev 41)
    2:0.1 1033:0035 (rev 41)
    2:0.2 1033:00e0 (rev 02)
    #
This doesn't tell me much - basically just the vendor info (xxxx:xxxx).
However, the information output from "lspci" can be easily improved.

Here is how:

1. Download the text file http://pciids.sourceforge.net/pci.ids

2. Copy it to /usr/local/share/

3. That's it!

Now when I run "lspci" on my laptop, I get this output:
  • # lspci
    0:0.0 Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
    0:0.1 Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
    0:0.3 Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
    0:2.0 Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
    0:2.1 Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
    0:29.0 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
    0:29.1 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
    0:29.2 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
    0:29.7 Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
    0:30.0 Intel Corporation 82801 Mobile PCI Bridge (rev 81)
    0:31.0 Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
    0:31.1 Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
    0:31.5 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
    0:31.6 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
    1:1.0 Texas Instruments PCI4510 PC card Cardbus Controller (rev 02)
    1:1.1 Texas Instruments PCI4510 IEEE-1394 Controller
    1:3.0 Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
    1:8.0 Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 81)

    2:0.0 NEC Corporation USB (rev 41)
    2:0.1 NEC Corporation USB (rev 41)
    2:0.2 NEC Corporation USB 2.0 (rev 02)
    #
By using this information along with the data from "lspci -n" to show only vendor data:
  • # lspci -n
    0:0.0 8086:3580 (rev 02)
    0:0.1 8086:3584 (rev 02)
    0:0.3 8086:3585 (rev 02)
    0:2.0 8086:3582 (rev 02)
    0:2.1 8086:3582 (rev 02)
    0:29.0 8086:24c2 (rev 01)
    0:29.1 8086:24c4 (rev 01)
    0:29.2 8086:24c7 (rev 01)
    0:29.7 8086:24cd (rev 01)
    0:30.0 8086:2448 (rev 81)
    0:31.0 8086:24cc (rev 01)
    0:31.1 8086:24ca (rev 01)
    0:31.5 8086:24c5 (rev 01)
    0:31.6 8086:24c6 (rev 01)
    1:1.0 104c:ac44 (rev 02)
    1:1.1 104c:8029
    1:3.0 14e4:4320 (rev 03)
    1:8.0 8086:103d (rev 81)
    2:0.0 1033:0035 (rev 41)
    2:0.1 1033:0035 (rev 41)
    2:0.2 1033:00e0 (rev 02)
    #
It is fairly easy to identify what hardware I have and then find the drivers/modules I need for, eg the network cards, from the internet. :D

Paul

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

Good tip - how does this compare with Start / control panel / Xproc
from the menu would you say?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

#3 Post by pakt »

Lobster wrote:Good tip - how does this compare with Start / control panel / Xproc
from the menu would you say?
From Start -> Control Panel -> Xproc system information -> Advanced:
  • PCI devices found:
    Bus 0, device 0, function 0:
    Host bridge: Intel Corp. 82852/855GM Host Bridge (rev 2).
    Bus 0, device 0, function 1:
    System peripheral: PCI device 8086:3584 (Intel Corp.) (rev 2).
    Bus 0, device 0, function 3:
    System peripheral: PCI device 8086:3585 (Intel Corp.) (rev 2).
    Bus 0, device 2, function 0:
    VGA compatible controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 2).
    IRQ 11.
    Prefetchable 32 bit memory at 0xf0000000 [0xf7ffffff].
    Non-prefetchable 32 bit memory at 0xfaf80000 [0xfaffffff].
    I/O at 0xc000 [0xc007].
    Bus 0, device 2, function 1:
    Display controller: Intel Corp. 82852/855GM Integrated Graphics Device (#2) (rev 2).
    Prefetchable 32 bit memory at 0xe8000000 [0xefffffff].
    Non-prefetchable 32 bit memory at 0xfaf00000 [0xfaf7ffff].
    Bus 0, device 29, function 0:
    USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 1).
    IRQ 11.
    I/O at 0xbf80 [0xbf9f].
    Bus 0, device 29, function 1:
    USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 1).
    IRQ 11.
    I/O at 0xbf40 [0xbf5f].
    Bus 0, device 29, function 2:
    USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 1).
    IRQ 11.
    I/O at 0xbf20 [0xbf3f].
    Bus 0, device 29, function 7:
    USB Controller: Intel Corp. 82801DB USB2 (rev 1).
    IRQ 11.
    Non-prefetchable 32 bit memory at 0xfaeffc00 [0xfaefffff].
    Bus 0, device 30, function 0:
    PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 129).
    Master Capable. No bursts. Min Gnt=4.
    Bus 0, device 31, function 0:
    ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 1).
    Bus 0, device 31, function 1:
    IDE interface: Intel Corp. 82801DBM Ultra ATA Storage Controller (rev 1).
    IRQ 11.
    I/O at 0xbfa0 [0xbfaf].
    Non-prefetchable 32 bit memory at 0x20000000 [0x200003ff].
    Bus 0, device 31, function 5:
    Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio Controller (rev 1).
    IRQ 7.
    I/O at 0xd800 [0xd8ff].
    I/O at 0xdc40 [0xdc7f].
    Non-prefetchable 32 bit memory at 0xfaeff800 [0xfaeff9ff].
    Non-prefetchable 32 bit memory at 0xfaeff400 [0xfaeff4ff].
    Bus 0, device 31, function 6:
    Modem: Intel Corp. 82801DB AC'97 Modem Controller (rev 1).
    IRQ 7.
    I/O at 0xd400 [0xd4ff].
    I/O at 0xd080 [0xd0ff].
    Bus 1, device 1, function 0:
    CardBus bridge: Texas Instruments PCI4510 PC card Cardbus Controller (rev 2).
    IRQ 11.
    Master Capable. Latency=168. Max Lat=5.
    Non-prefetchable 32 bit memory at 0x20001000 [0x20001fff].
    Bus 1, device 1, function 1:
    FireWire (IEEE 1394): Texas Instruments PCI4510 IEEE-1394 Controller (rev 0).
    IRQ 11.
    Master Capable. Latency=32. Min Gnt=2.Max Lat=4.
    Non-prefetchable 32 bit memory at 0xfcfff800 [0xfcffffff].
    Non-prefetchable 32 bit memory at 0xfcff8000 [0xfcffbfff].
    Bus 1, device 3, function 0:
    Network controller: Broadcom Corporation BCM94306 802.11g (rev 3).

    IRQ 7.
    Master Capable. Latency=32.
    Non-prefetchable 32 bit memory at 0xfcffc000 [0xfcffdfff].
    Bus 1, device 8, function 0:
    Ethernet controller: Intel Corp. 82801BD PRO/100 VE (MOB) Ethernet Controller (rev 129).

    IRQ 11.
    Master Capable. Latency=32. Min Gnt=8.Max Lat=56.
    Non-prefetchable 32 bit memory at 0xfcffe000 [0xfcffefff].
    I/O at 0xecc0 [0xecff].
    Bus 2, device 0, function 0:
    USB Controller: PCI device 1033:0035 (rev 65).
    IRQ 11.
    Master Capable. Latency=8. Min Gnt=1.Max Lat=42.
    Non-prefetchable 32 bit memory at 0x20800000 [0x20800fff].
    Bus 2, device 0, function 1:
    USB Controller: PCI device 1033:0035 (rev 65).
    IRQ 11.
    Master Capable. Latency=8. Min Gnt=1.Max Lat=42.
    Non-prefetchable 32 bit memory at 0x20801000 [0x20801fff].
    Bus 2, device 0, function 2:
    USB Controller: PCI device 1033:00e0 (rev 2).
    IRQ 11.
    Master Capable. Latency=68. Min Gnt=16.Max Lat=34.
    Non-prefetchable 32 bit memory at 0x20802000 [0x208020ff].
I looked at the source of Xproc - it gets its pci info from /proc/pci (type "cat /proc/pci" in a terminal to see what I mean). The listings are not identical but do overlap. Note that Xproc does not identify the last three devices (2:0.0, 2:0.1 and 2:0.2) by manufacturer. lspci shows them to be NEC devices. Xproc successfully identifies my network interfaces, just as lspci does.

IMHO, the output of "lspci" would be easier to filter for script use, especially in combination with the "vendor" data from "lspci -n". On the negative side though, the file pci.ids makes Puppy 383K bigger - and that we can do without...

I wonder why Puppy's hardware probe doesn't make use of the information from /proc/pci ?

Paul

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

This is tiny and good - and can be added to the probe
Please PM (personal message) Barry about this in case he does not see it. Hopefully we can add this to 1.0.9 / Puppy2
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

sccat
Posts: 160
Joined: Mon 22 Aug 2005, 04:22

#5 Post by sccat »

Very good!

I will use it to identify my hardware.

Is it in Puppy 2 now?

User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

#6 Post by pakt »

sccat wrote:Very good!

I will use it to identify my hardware.

Is it in Puppy 2 now?
The pci.ids file is quite big. If I remember correctly, Barry has extracted certain parts of the file to use for detecting some hardware in Puppy2.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#7 Post by BarryK »

yes, i wrote a little script that extracts just the usb and pcmcia info from
pci.ids, which is all i wanted for auto-detection at bootup.

limeylew
Posts: 5
Joined: Tue 13 Jun 2006, 11:58
Location: Benbrook Texas

Re: How to show more hardware info in Puppy

#8 Post by limeylew »

pakt wrote:Start -> Control Panel -> Hardware probe -> Query_PCI tries hard to show what hardware your PC has, but it usually shows mostly "null" in its output leaving you mainly in the dark. "lspci" reveals even less information.

Running Puppy 1.0.7, here is the output from "lspci" on my laptop:
  • # lspci
    0:0.0 8086:3580 (rev 02)
    0:0.1 8086:3584 (rev 02)
    0:0.3 8086:3585 (rev 02)
    0:2.0 8086:3582 (rev 02)
    0:2.1 8086:3582 (rev 02)
    0:29.0 8086:24c2 (rev 01)
    0:29.1 8086:24c4 (rev 01)
    0:29.2 8086:24c7 (rev 01)
    0:29.7 8086:24cd (rev 01)
    0:30.0 8086:2448 (rev 81)
    0:31.0 8086:24cc (rev 01)
    0:31.1 8086:24ca (rev 01)
    0:31.5 8086:24c5 (rev 01)
    0:31.6 8086:24c6 (rev 01)
    1:1.0 104c:ac44 (rev 02)
    1:1.1 104c:8029
    1:3.0 14e4:4320 (rev 03)
    1:8.0 8086:103d (rev 81)
    2:0.0 1033:0035 (rev 41)
    2:0.1 1033:0035 (rev 41)
    2:0.2 1033:00e0 (rev 02)
    #
This doesn't tell me much - basically just the vendor info (xxxx:xxxx).
However, the information output from "lspci" can be easily improved.

Here is how:

1. Download the text file http://pciids.sourceforge.net/pci.ids

2. Copy it to /usr/local/share/

3. That's it!

Now when I run "lspci" on my laptop, I get this output:
  • # lspci
    0:0.0 Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
    0:0.1 Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
    0:0.3 Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
    0:2.0 Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
    0:2.1 Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
    0:29.0 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
    0:29.1 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
    0:29.2 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
    0:29.7 Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
    0:30.0 Intel Corporation 82801 Mobile PCI Bridge (rev 81)
    0:31.0 Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
    0:31.1 Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
    0:31.5 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
    0:31.6 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
    1:1.0 Texas Instruments PCI4510 PC card Cardbus Controller (rev 02)
    1:1.1 Texas Instruments PCI4510 IEEE-1394 Controller
    1:3.0 Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
    1:8.0 Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 81)

    2:0.0 NEC Corporation USB (rev 41)
    2:0.1 NEC Corporation USB (rev 41)
    2:0.2 NEC Corporation USB 2.0 (rev 02)
    #
By using this information along with the data from "lspci -n" to show only vendor data:
  • # lspci -n
    0:0.0 8086:3580 (rev 02)
    0:0.1 8086:3584 (rev 02)
    0:0.3 8086:3585 (rev 02)
    0:2.0 8086:3582 (rev 02)
    0:2.1 8086:3582 (rev 02)
    0:29.0 8086:24c2 (rev 01)
    0:29.1 8086:24c4 (rev 01)
    0:29.2 8086:24c7 (rev 01)
    0:29.7 8086:24cd (rev 01)
    0:30.0 8086:2448 (rev 81)
    0:31.0 8086:24cc (rev 01)
    0:31.1 8086:24ca (rev 01)
    0:31.5 8086:24c5 (rev 01)
    0:31.6 8086:24c6 (rev 01)
    1:1.0 104c:ac44 (rev 02)
    1:1.1 104c:8029
    1:3.0 14e4:4320 (rev 03)
    1:8.0 8086:103d (rev 81)
    2:0.0 1033:0035 (rev 41)
    2:0.1 1033:0035 (rev 41)
    2:0.2 1033:00e0 (rev 02)
    #
It is fairly easy to identify what hardware I have and then find the drivers/modules I need for, eg the network cards, from the internet. :D

Paul
Hi, I'm pretty new to this, so my question may be rather dumb but why would you not use ' lshw ' ?

Is it too big of a file?

Kind regards.

Lewis.

****

PaulBx1
Posts: 2312
Joined: Sat 17 Jun 2006, 03:11
Location: Wyoming, USA

#9 Post by PaulBx1 »

This HOWTO no longer works, in 2.11 nor in 214. However there is now the pupscan utility, although I don't know if it is as comprehensive as the list in pci.ids.

User avatar
bostonvaulter
Posts: 269
Joined: Wed 27 Sep 2006, 03:41

#10 Post by bostonvaulter »

PaulBx1,

It seems it will work if you put the file in /usr/share rather than /usr/local/share

it might mess up my boot though, i haven't tested that yet.

tadatada
Posts: 6
Joined: Tue 15 Jul 2008, 10:06
Location: Yuxi, YunNan, China

my puppy is 4.0, how can I get more hardware info?

#11 Post by tadatada »

oh, my puppy is 4.0, in start menu, there is only a System---Hardinfo
or System ---- PupScan,
they do not so many hard info comparing with yours. what should i do?

rokytnji
Posts: 2262
Joined: Tue 20 Jan 2009, 15:54

#12 Post by rokytnji »

I hope it is Ok with the mods to update this thread. If Not. Delete My Post.

http://www.murga-linux.com/puppy/viewtopic.php?t=53986

Post Reply