You are not logged in.
Yes, I can vaguely remember reading that, but I think that's only for newer kernel versions, so if you don't mind that then drop it. I don't have any pcmcia cards, so can't test for you.
Offline
k, here it is for your testings -
http://user-contributions.org/projects/ … rc1.tar.gz
please report any problems with the new engine...
> changes
version 2.0-rc1
+ recoded all detection methods
+ removed pci/usbutils dependencies and parsing /proc/bus instead
+ removed pcmcia scanner (pcmcia devices listed under /proc/bus/pci)
+ added subvendorid/subdeviceid for pci devices
+ fixed colors for light-backround terminals
enjoy
Offline
I like it
works perfectly so far
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
fixed ugly usb module name bug. get 2.0-rc2 here :
Offline
it fails to detect which module that is needed for my firewire hardware (Texas Instruments|PCI 4510 iEEE-1394 controller )
otherwise all look good (well, my nvidia geforce 4200go is recognised and the module it wanna load is vesa..but then again, not everyone has nvidia drivers loaded )
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
Hello, I tested lshwd-2.0-r2 but it doesn't show any output
what I did was
tar -xzf lshwd-2.0-rc2.tar.gz
cd lshwd-2.0-rc2
make
./lshwd
but than it doesn't output anything
the old lshwd (form pacman) works
Please tell me if you need more info or if I do something wrong
David
Offline
Offline
thanks, under root it works!
the old lshwd also works as a user, maybe it should show a error message when not root?
David
Offline
done. now users can browse devices as before. also, as before, only root is able to retrieve the usbfs module name if one isnt found in the usbtable.
lshwd 2.0-rc3 : http://user-contributions.org/projects/ … rc3.tar.gz
Offline
I love lshwd and hwd, it's so much faster as hotplug
Offline
Would it be possible to detect the parallel-port and printer? And I noticed it detects my Scanner and assigns the modul "scanner" which does not exist in kernel 2.6
Offline
hmm... intresting... i never thought about printer detection... i have no idea if/how this can be done, but i'll check it out.
regarding the "scanner" module - what is the correct module name for 2.6? this should be changed in the pcitable file. please submit the new module name (here or to Rasat which maintain the table files) so we can update it. tnx.
:idea: and now for some great news :
2.0-rc4 is nearly finished - i added sysfs support and it was easy enough tnx to the new lshwd structure. the usb gave me a bit of a headache but its all sorted now. im just waiting for some firewire devices to code the sysfs_firewire detection. currently both procfs & sysfs methods are supported in lshwd (switch to sysfs with -s parameter), and i might remove the procfs in the future, but not likely soon. another option is to use sysfs as default and move procfs as optional. still need todo some more debugging before final decision...
stay tuned
Offline
Modules loaded by hotplug:
[pierre@athlon ~]$ lsmod
Module Size Used by
nvidia 3914300 12
snd_emu10k1 103684 2
snd_rawmidi 26272 1 snd_emu10k1
snd_seq_device 8460 2 snd_emu10k1,snd_rawmidi
snd_ac97_codec 77944 1 snd_emu10k1
snd_pcm_oss 55584 0
snd_mixer_oss 20544 1 snd_pcm_oss
snd_pcm 97608 4 snd_emu10k1,snd_ac97_codec,snd_pcm_oss
snd_timer 26948 2 snd_emu10k1,snd_pcm
snd_page_alloc 9668 2 snd_emu10k1,snd_pcm
snd_util_mem 4352 1 snd_emu10k1
snd_hwdep 9760 1 snd_emu10k1
snd 56164 12 snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwdep
soundcore 10080 1 snd
ehci_hcd 36168 0
usbhid 28224 0
uhci_hcd 32528 0
via_rhine 24388 0
mii 5056 1 via_rhine
lp 11076 0
parport_pc 36228 1
parport 37640 2 lp,parport_pc
usbcore 124472 4 ehci_hcd,usbhid,uhci_hcd
lshwd:
[pierre@athlon ~]$ lshwd
00:00.0 Host bridge: Advanced Micro Devices|AMD-751 [Irongate] System Controller (amd-k7-agp)
00:01.0 PCI bridge: Advanced Micro Devices|AMD-751 PCI to PCI bridge (unknown)
00:07.0 ISA bridge: Advanced Micro Devices|AMD-756 PCI to ISA bridge (unknown)
00:07.1 IDE interface: Advanced Micro Devices|AMD-756 (Viper) Bus Master IDE controller (amd74xx)
00:07.3 Bridge: Advanced Micro Devices|AMD-756 Power Management Controller (i2c-amd756)
00:09.0 Ethernet controller: VIA Technologies|VT6102 [Rhine II 10/100] (via-rhine)
00:0a.0 USB Controller: VIA Technologies|VT82C586B USB (uhci_hcd)
00:0a.1 USB Controller: VIA Technologies|VT82C586B USB (uhci_hcd)
00:0a.2 USB Controller: VIA Technologies Inc|VT8235 USB Enhanced Controller (ehci-hcd)
00:0c.0 Multimedia audio controller: Creative Labs|SB Live! (audio) (snd-emu10k1)
00:0c.1 Input device controller: Creative Labs|SB Live! (joystick) (emu10k1-gp)
01:05.0 VGA compatible controller: nVidia Corp.|Riva TNT 128 (nv)
003:001 USB Hub: Virtual|Hub (unknown)
002:005 USB Human Interface Devices: Logitech Inc.|Optical Mouse [/dev/input/mice] (usbhid)
002:004 USB : Hewlett-Packard|ScanJet 4300C (scanner)
002:001 USB Hub: Virtual|Hub (unknown)
001:001 USB Hub: Virtual|Hub (unknown)
With kernel26 you do not need a scanner-modul. Sane runs with libusb. For the printer I need " lp" and "parport_pc".
As you can see some modules for the sb-live would not be loaded by lshwd.
Edit: I replaced htoplug with lshwd nd it loads the following modules:
nvidia 3914300 12
usbhid 28224 0
snd_emu10k1 103684 2
snd_rawmidi 26272 1 snd_emu10k1
snd_seq_device 8460 2 snd_emu10k1,snd_rawmidi
snd_ac97_codec 77944 1 snd_emu10k1
snd_pcm 97608 3 snd_emu10k1,snd_ac97_codec
snd_timer 26948 2 snd_emu10k1,snd_pcm
snd_page_alloc 9668 2 snd_emu10k1,snd_pcm
snd_util_mem 4352 1 snd_emu10k1
snd_hwdep 9760 1 snd_emu10k1
snd 56164 10 snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer,snd_hwdep
soundcore 10080 1 snd
ehci_hcd 36168 0
uhci_hcd 32528 0
via_rhine 24388 0
mii 5056 1 via_rhine
lp 11076 0
parport_pc 36228 1
parport 37640 2 lp,parport_pc
usbcore 124472 4 usbhid,ehci_hcd,uhci_hcd
Only lp ad parport_pc must be loaded by hand. It seems as if lshwd might be a great replacment for the horplug-deamon. It`s quite fast. :-)
Offline
tnx for the input. i will try looking into the parallel thingie once i'll have some free time.
since it will take me sometime to get firewire devices, im releasing 2.0-rc4 so ppl can start testing the new sysfs support (using "-s" parameter).
[edit]PS. using the new sysfs allows users to retireve attached module to usb device (only allowed for root under procfs). [/edit]
> changes
version 2.0-rc4
+ added sysfs support (EXPERIMENTAL)
+ fixed memory leak
+ fixed classid in usb_procfs scanner
+ fixed some small bugs
Offline
Works for me. It finds "hub" instead of "unknown" for the USB hub with sysfs, which seems better (not that I used hub, but I would if I had a usb mouse). That was the only difference.
Offline
i dropped pcmcia detection since from what i've learned all pcmcia devices are listed under /proc/bus/pci <snip> i'd like to confirm this please
Hope I'm not too late with this, but my pcmcia Bluetooth card does not show up in /proc/bus/pci, AFAICS. I'm looking at the devices file in that directory, and my wifi card shows up fine, presumably because it's Cardbus, and handled as a pci device. The bluetooth card is "original" pcmcia, handled by cardmgr.
I'll try 2.0-rc4 to see what comes up.
<Later>
OK, I've just tried rc4, and the output is exactly the same as the current release 1.1.3 - the pcmcia card is not detected.
Offline
Great work on this z4ziggy ! I'm still newby, but its proven as a great help in getting a few things running right .
Writing stories for a machine.
Offline
tnx ppl.
the usb module (hub) is shown on procfs too, but only with root since it uses ioctl to retrieve it. on sysfs its in a file, so any user can retrieve it.
regarding the pcmcia - ok... so some devices just have to make problems, do they? i'll recode the pcmcia and add it, see if u get the pcmcia device listed. please wait for 2.0-rc5.
Offline
I ran both as root, and only with -s it found 'hub'.
Offline
strange. it should have displayed the attached module name on both occasions.
regarding the pcmcia - ive added back the pcmcia procfs detection, and will release it with rc5 once the firewire will be finished too. then what is left is the pcmcia sysfs scanner...
Offline
Would it be possible to detect the parallel-port and printer? And I noticed it detects my Scanner and assigns the modul "scanner" which does not exist in kernel 2.6
Among the general hardwares, detecting parallel-port devices is still missing. In hwd-4.6 I tried reading the kernel message but couldn't find an unique criteria, so it was removed in 4.7. Morover, usb devices are taking over parallel-port and there is little feedback to work with.
Markku
Offline
I'm playing with gentoo currently.. and he has lshw and similar tools. I've got:
description: Notebook
product: 110 series
vendor: Compaq
version: 0F09
serial: 6D1CKFKZ50H6
width: 32 bits
capabilities: smbios-2.3 dmi-2.3
configuration: chassis=notebook uuid=00EEC858-6763-0010-AB16-68FCDA576968
*-core
description: Motherboard
product: 0734
vendor: Compaq
physical id: 0
version: Rev.A
serial: None
*-firmware
description: BIOS
vendor: Phoenix Technologies LTD
physical id: 0
version: 0F08 (08/20/2001)
size: 88KB
capacity: 448KB
capabilities: pci pcmcia pnp upgrade shadowing cdboot bootselect int5p
rintscreen int9keyboard int14serial int17printer int10video acpi agp biosbootspe
cification
*-cpu
description: CPU
product: Pentium III (Coppermine)
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: 6.8.10
slot: Socket 370
size: 850MHz
width: 32 bits
clock: 100MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 sep
mtrr pge mca cmov pat pse36 mmx fxsr sse
*-cache:0
description: L1 cache
physical id: 9
slot: L1 Cache
size: 32KB
capacity: 128KB
capabilities: asynchronous internal write-back
*-cache:1
description: L2 cache
physical id: a
slot: L2 Cache
size: 256KB
capacity: 1MB
capabilities: burst internal write-through
*-memory
description: System Memory
physical id: c
slot: System board or motherboard
size: 256MB
capacity: 384MB
*-bank:0
description: DIMM DRAM Synchronous
physical id: 0
slot: M1
size: 64MB
width: 32 bits
*-bank:1
description: DIMM DRAM Synchronous
physical id: 1
slot: M2
size: 128MB
width: 32 bits
*-bank:2
description: DIMM DRAM Synchronous
physical id: 2
slot: M3
size: 64MB
width: 32 bits
*-pci
description: Host bridge
product: VT8601 [Apollo ProMedia]
vendor: VIA Technologies, Inc.
physical id: f8000000
bus info: pci@00:00.0
version: 05
width: 32 bits
clock: 33MHz
resources: iomemory:f8000000-fbffffff
*-pci
description: PCI bridge
product: VT8601 [Apollo ProMedia AGP]
vendor: VIA Technologies, Inc.
physical id: 1
bus info: pci@00:01.0
version: 00
width: 32 bits
clock: 66MHz
capabilities: pci normal_decode bus_master cap_list
*-display
description: VGA compatible controller
product: CyberBlade i1
vendor: Trident Microsystems
physical id: 0
bus info: pci@01:00.0
logical name: /dev/fb0
version: 6a
size: 8MB
width: 32 bits
clock: 66MHz
capabilities: vga bus_master cap_list fb
configuration: depth=8 driver=tridentfb frequency=59.94Hz mode=6
40x480 visual=pseudocolor xres=640 yres=480
resources: iomemory:f5000000-f57fffff iomemory:f4100000-f411ffff
iomemory:f4800000-f4ffffff irq:9
*-isa
description: ISA bridge
product: VT82C686 [Apollo Super South]
vendor: VIA Technologies, Inc.
physical id: 7
bus info: pci@00:07.0
version: 22
width: 32 bits
clock: 33MHz
capabilities: isa bus_master cap_list
configuration: driver=parport_pc
*-ide
description: IDE interface
product: VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE
vendor: VIA Technologies, Inc.
physical id: 7.1
bus info: pci@00:07.1
version: 10
width: 32 bits
clock: 33MHz
capabilities: ide bus_master cap_list
configuration: driver=VIA_IDE
resources: ioport:1460-146f
*-ide:0
description: IDE Channel 0
physical id: 0
bus info: ide@0
logical name: ide0
clock: 33MHz
*-disk
description: ATA Disk
product: TOSHIBA MK2023GAS
vendor: Toshiba
physical id: 0
bus info: ide@0.0
logical name: /dev/hda
version: MA014A
serial: 34CR0614T
size: 18GB
capacity: 18GB
capabilities: ata dma lba iordy smart security pm apm
configuration: apm=off mode=udma2 smart=on
*-ide:1
description: IDE Channel 1
physical id: 1
bus info: ide@1
logical name: ide1
clock: 33MHz
*-cdrom
description: DVD reader
product: LG DVD-ROM DRN-8060B
physical id: 0
bus info: ide@1.0
logical name: /dev/hdc
version: 3.10
serial: 2000/12/02
capabilities: packet atapi cdrom removable nonmagnetic dma lb
a iordy audio dvd
configuration: mode=udma2
*-usb
description: USB Controller
product: VT82xxxxx UHCI USB 1.1 Controller
vendor: VIA Technologies, Inc.
physical id: 7.2
bus info: pci@00:07.2
version: 10
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master cap_list
configuration: driver=uhci_hcd
resources: ioport:1440-145f irq:11
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.11-gentoo-r9 uhci_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 2.06
capabilities: usb-1.10
configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
*-usb
description: Mouse
product: USB-PS/2 Optical Mouse
vendor: Logitech
physical id: 2
bus info: usb@1:2
version: 11.10
capabilities: usb-2.00
configuration: driver=usbhid maxpower=98mA speed=1.5MB/s
*-bridge UNCLAIMED
description: Bridge
product: VT82C686 [Apollo Super ACPI]
vendor: VIA Technologies, Inc.
physical id: 7.4
bus info: pci@00:07.4
version: 30
width: 32 bits
clock: 33MHz
capabilities: bridge cap_list
resources: irq:10
*-multimedia UNCLAIMED
description: Multimedia audio controller
product: VT82C686 AC97 Audio Controller
vendor: VIA Technologies, Inc.
physical id: 7.5
bus info: pci@00:07.5
version: 20
width: 32 bits
clock: 33MHz
capabilities: cap_list
resources: ioport:1000-10ff ioport:1474-1477 ioport:1470-1473 irq:9
*-network DISABLED
description: Ethernet interface
product: 82557/8/9 [Ethernet Pro 100]
vendor: Intel Corp.
physical id: 9
bus info: pci@00:09.0
logical name: eth0
version: 09
serial: 00:d0:59:80:c5:91
size: 10MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp mii 10bt 10b
t-fd 100bt 100bt-fd autonegociation
configuration: autonegociation=on broadcast=yes driver=e100 driverv
ersion=3.3.6-k2-NAPI duplex=half firmware=N/A link=no multicast=yes port=MII spe
ed=10MB/s
resources: iomemory:f4020000-f4020fff ioport:1400-143f iomemory:f40
00000-f401ffff irq:11
*-communication
description: Serial controller
product: LT WinModem
vendor: Agere Systems (former Lucent Microelectronics)
physical id: 9.1
bus info: pci@00:09.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: 8250 cap_list
configuration: driver=serial
resources: ioport:1478-147f iomemory:f4021000-f4021fff irq:11
*-pcmcia
description: CardBus bridge
product: PCI1410 PC card Cardbus Controller
vendor: Texas Instruments
physical id: a
bus info: pci@00:0a.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: pcmcia bus_master cap_list
configuration: driver=yenta_cardbus
resources: iomemory:f800000-f800fff irq:11
*-usb:0
description: USB Controller
product: USB
vendor: NEC Corporation
physical id: 1
bus info: pci@02:00.0
version: 41
width: 32 bits
clock: 33MHz
capabilities: ohci bus_master cap_list
configuration: driver=ohci_hcd
resources: iomemory:10000000-10000fff irq:11
*-usbhost
product: OHCI Host Controller
vendor: Linux 2.6.11-gentoo-r9 ohci_hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 2.06
capabilities: usb-1.10
configuration: driver=hub maxpower=0mA slots=3 speed=12.0MB/s
*-usb:1
description: USB Controller
product: USB
vendor: NEC Corporation
physical id: 0.1
bus info: pci@02:00.1
version: 41
width: 32 bits
clock: 33MHz
capabilities: ohci bus_master cap_list
configuration: driver=ohci_hcd
resources: iomemory:10001000-10001fff irq:11
*-usbhost
product: OHCI Host Controller
vendor: Linux 2.6.11-gentoo-r9 ohci_hcd
physical id: 1
bus info: usb@3
logical name: usb3
version: 2.06
capabilities: usb-1.10
configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
*-usb:2
description: USB Controller
product: USB 2.0
vendor: NEC Corporation
physical id: 0.2
bus info: pci@02:00.2
version: 02
width: 32 bits
clock: 33MHz
capabilities: ehci bus_master cap_list
configuration: driver=ehci_hcd
resources: iomemory:10002000-100020ff irq:11
*-usbhost
product: EHCI Host Controller
vendor: Linux 2.6.11-gentoo-r9 ehci_hcd
physical id: 1
bus info: usb@4
logical name: usb4
version: 2.06
capabilities: usb-2.00
configuration: driver=hub maxpower=0mA slots=5 speed=480.0MB/s
*-usb
description: Mass storage device
product: Mass Storage Device
vendor: USB2.0 External
physical id: 1
bus info: usb@4:1
logical name: scsi1
version: 0.01
serial: DEF108F5BB96
capabilities: usb-2.00 scsi emulated scsi-host
configuration: driver=usb-storage maxpower=0mA speed=480.0MB/s
*-cdrom
description: DVD writer
product: DVDRW SOHW-1633S
vendor: LITE-ON
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/cdrom1
logical name: /dev/dvd1
logical name: /dev/scd0
logical name: /dev/sr0
version: BS0H
capabilities: removable audio cd-r cd-rw dvd dvd-r
You can download it from http://gentoo.zie.pg.gda.pl/distfiles/l … .04.tar.gz
Offline
looks very intresting project. i might look at his drives/cdrom enum to add to lshwd.
Offline
Seems to work well.
For my information, does ver. 2.0 still uses the pci-, usb- and pcmciatable? If it does, in what directory will the tables be located? Currently in 1.x they are in /usr/share/hwdata
Markku
Offline
yep, still using the table files.
as before, they can be located at same directory as the binary (lshwd) or under /usr/share/hwdata.
Offline