You are not logged in.

#1 2005-11-10 23:05:26

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Tpowa's "Simple Hardware Detection"

Info posted by Judd, here:  http://www.archlinux.org/blog/2005/11/1 … detection/

Any of the rest of you playing around with this?  I decided to give it a go and it seems to work pretty well, at least thus far.  It reminds me of hwd/lshwd but no entry is needed in rc.conf and it does allow for faster boot times than those you get when using hotplug.

Anyway, it looks like it might have potential.


oz

Offline

#2 2005-11-11 10:30:22

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Tpowa's "Simple Hardware Detection"

well, dude, hwd and lshwd could be run straight from rc.sysinit too if you wanted wink

Offline

#3 2005-11-11 12:41:12

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Tpowa's "Simple Hardware Detection"

you all miss one point, this detection runs with basic linux utils and is really precise in loading modules.
greetings
tpowa

Offline

#4 2005-11-11 12:56:23

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Tpowa's "Simple Hardware Detection"

tpowa wrote:

you all miss one point, this detection runs with basic linux utils and is really precise in loading modules.
greetings
tpowa

Er...no.  I didn't miss that at all.  I was just saying that running from rc.sysinit was not restricted to anything - few people realize how easy it is to customize the initscripts smile

Offline

#5 2005-11-11 15:04:03

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: Tpowa's "Simple Hardware Detection"

Yeah, I'd think you could run just about anything from rc.sysinit with the correct coding placed in it.


oz

Offline

#6 2005-11-11 17:02:15

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,294
Website

Re: Tpowa's "Simple Hardware Detection"

I am using custom kernel.
Kernel: 2.6.11.5-w4l-ARCH

[root@localhost /]# /sbin/hwdetect.sh -load-modules
find: /sys/bus/pci/drivers/Intel(R) 830M/845G/852GM/855GM/865G Framebuffer Driver: No such file or directory
cat: /tmp/modprobe: No such file or directory
sort: open failed: /tmp/modules-plain: No such file or directory
cat: /tmp/modprobe: No such file or directory
rm: cannot remove `/tmp/modules-plain': No such file or directory
rm: cannot remove `/tmp/modprobe': No such file or directory
[root@localhost /]#


Markku

Offline

#7 2005-11-11 17:07:46

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Tpowa's "Simple Hardware Detection"

rasat for me sounds this like you have everything in the kernel , dont you?
EDIT: Ah thanks i changed the script to look in /sys/devices only

Offline

#8 2005-11-11 17:28:08

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,294
Website

Re: Tpowa's "Simple Hardware Detection"

Kernel: 2.6.13-ARCH
No error messages. But also no modules were loaded same as with my custom kernel.

For the test, I tagged the MODULE line in my rc.conf
# MODULES=(!usbserial !ide-scsi uhci_hcd 8139too lp parport_pc snd_intel8x0)


Markku

Offline

#9 2005-11-11 17:33:07

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Tpowa's "Simple Hardware Detection"

rasat try to change the line with find /sys
to find /sys/devices, that should fix your trouble.

Offline

#10 2005-11-11 17:50:09

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,294
Website

Re: Tpowa's "Simple Hardware Detection"

tpowa wrote:

... to find /sys/devices, that should fix your trouble.

Nop, no modules are loaded.

I suggest, you test it on a fresh Arch install with base packages only to make sure any type of module loader is not installed.


Markku

Offline

#11 2005-11-11 17:51:52

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Tpowa's "Simple Hardware Detection"

rasat i mean to test you should try -show-modules

Offline

#12 2005-11-12 00:29:38

sabrewolf
Member
Registered: 2004-10-26
Posts: 45

Re: Tpowa's "Simple Hardware Detection"

kernel2.6.14-SDF1(archck1) no problems  8)


[code]sorry for my english [/code]

Offline

#13 2005-11-12 01:32:43

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Tpowa's "Simple Hardware Detection"

Here's my results:

# hwdetect -show-modules
Detected module: "pcmcia_core"
Detected module: "rsrc_nonstatic"
Detected module: "yenta_socket"
Detected module: "usbcore"
Detected module: "uhci-hcd"
Detected module: "snd-seq-device"
Detected module: "snd-page-alloc"
Detected module: "snd-pcm"
Detected module: "snd-rawmidi"
Detected module: "snd-timer"
Detected module: "snd"
Detected module: "snd-mpu401-uart"
Detected module: "snd-ac97-bus"
Detected module: "snd-ac97-codec"
Detected module: "snd-es1968"
Detected module: "soundcore"
Detected module: "p80211"
Detected module: "prism2_usb"

and for comparison:

# lshwd
00:00.0 Host bridge: Intel Corp.|440BX/ZX - 82443BX/ZX Host bridge (intel-agp)
00:01.0 PCI bridge: Intel Corp.|440BX/ZX - 82443BX/ZX AGP bridge (agpgart)
00:04.0 Class ffff: Texas Instruments|PCI1225 PC Card Controller (yenta_socket)
00:04.1 Class ffff: Texas Instruments|PCI1225 PC Card Controller (yenta_socket)
00:07.0 Bridge: Intel Corp.|82371AB PIIX4 ISA (unknown)
00:07.1 IDE interface: Intel Corp.|82371AB PIIX4 IDE (ata_piix)
00:07.2 USB Controller: Intel Corp.|82371AB PIIX4 USB (uhci_hcd)
00:07.3 Bridge: Intel Corp.|82371AB PIIX4 ACPI - Bus Master IDE Controller (sonypi)
00:08.0 Multimedia audio controller: ESS Technology|ES1978 Maestro 2E (snd_es1968)
01:00.0 VGA compatible controller: ATI|Rage Mobility P/M AGP 2x (ati)
001:002 USB Vendor Specific Class: NetGear, Inc.|MA111 (prism2_usb)
001:001 USB Hub: Virtual|Hub (hub)
---:--- Mouse: Generic PS/2 Wheel Mouse [/dev/psaux] (msintellips/2)

Notwithstanding that mouse entry in lshwd, I'd like to see evdev detected for my Synaptics touchpad - hotplug can do this, but lshwd and hwdetect can not.

Offline

#14 2005-11-12 08:22:53

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Tpowa's "Simple Hardware Detection"

hm with evdev i'm not sure, hotplug tries to load a lot of modules, that's the reason for being slow, if evdev is not exported by /sys it cannot be autodetected.

And please remeber, this script shows you only modules that can be loaded, if the stuff is already in kernel it doesn't show you the modules.
the script has benn updated yesterday evening, so please try the new one.

greetings
tpowa

Offline

#15 2005-11-12 08:54:54

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Tpowa's "Simple Hardware Detection"

Hi,

Can you add version to your script (please) so I can keep track of changes ;-)

running hwdetect -show-modules seems ok


Mr Green

Offline

#16 2005-11-12 09:48:17

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: Tpowa's "Simple Hardware Detection"

it loads everything ok
mike@Atlantis ~]$ hwdetect -show-modules
Detected module: "agpgart"
Detected module: "intel-agp"
Detected module: "hw_random"
Detected module: "tpm"
Detected module: "tpm_atmel"
Detected module: "tpm_infineon"
Detected module: "tpm_nsc"
Detected module: "i2c-algo-bit"
Detected module: "i2c-i801"
Detected module: "i2c-i810"
Detected module: "i2c-core"
Detected module: "tulip"
Detected module: "pci_hotplug"
Detected module: "shpchp"
Detected module: "usblp"
Detected module: "usbcore"
Detected module: "ehci-hcd"
Detected module: "uhci-hcd"
Detected module: "usbhid"
Detected module: "usb-storage"
Detected module: "intelfb"
Detected module: "nvidia"
Detected module: "snd-page-alloc"
Detected module: "snd-timer"
Detected module: "snd"
Detected module: "snd-ac97-bus"
Detected module: "snd-ac97-codec"
Detected module: "snd-intel8x0"
Detected module: "soundcore"
[mike@Atlantis ~]$

Offline

#17 2005-11-12 10:54:57

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Tpowa's "Simple Hardware Detection"

No change for me with the new version.

Offline

#18 2005-11-12 12:14:35

swiergot
Member
From: Kraków, Poland
Registered: 2005-01-08
Posts: 145

Re: Tpowa's "Simple Hardware Detection"

[swiergot@enterprise tmp]$ ./hwdetect -show-modules
Detected module: "agpgart"
Detected module: "via-agp"
Detected module: "i2c-viapro"
Detected module: "i2c-core"
Detected module: "ide-core"
Detected module: "generic"
Detected module: "via82cxxx"
Detected module: "gameport"
Detected module: "8139cp"
Detected module: "8139too"
Detected module: "via-ircc"
Detected module: "mii"
Detected module: "pci_hotplug"
Detected module: "shpchp"
Detected module: "usbcore"
Detected module: "ehci-hcd"
Detected module: "uhci-hcd"
Detected module: "nvidia"
Detected module: "crc-ccitt"
Detected module: "irda"
Detected module: "snd-seq-device"
Detected module: "snd"
Detected module: "snd-page-alloc"
Detected module: "snd-rawmidi"
Detected module: "snd-timer"
Detected module: "snd-mpu401-uart"
Detected module: "snd-ac97-bus"
Detected module: "snd-ac97-codec"
Detected module: "snd-via82xx"
Detected module: "soundcore"
swiergot@enterprise tmp]$ lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50)
01:00.0 VGA compatible controller: nVidia Corporation NV20 [GeForce3 Ti200] (rev a3)

Seems okay, however there are two issues:

1) 8139cp and 8139too are both detected but only 8139too should,
2) loading via-agp and running a 3D application (ie. tuxracer or glxgears) hangs my computer for good.

Offline

#19 2005-11-12 12:27:12

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Tpowa's "Simple Hardware Detection"

1) 8139cp and 8139too are both detected but only 8139too should,

Same here .....


Mr Green

Offline

#20 2005-11-12 12:36:06

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Tpowa's "Simple Hardware Detection"

this 8139 is a very old bug, that comes from the kernel itself, it is not fixable.
they both have the same entries, but it doesn't hurt to load 8139cp and 8139too, because one of it fails.

Offline

#21 2005-11-12 13:17:05

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Tpowa's "Simple Hardware Detection"

swiergot, confirmed the crash, but this only happens when you load tha agp driver when nvidia is already loaded, else it works.

Offline

#22 2005-11-12 13:24:58

swiergot
Member
From: Kraków, Poland
Registered: 2005-01-08
Posts: 145

Re: Tpowa's "Simple Hardware Detection"

So, is via-agp not needed with nvidia loaded or is it a bug in either modules? Anyway, IMHO hwdetect must not let the crash happen.

Offline

#23 2005-11-12 13:30:53

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Tpowa's "Simple Hardware Detection"

no i mean, if you use it with -load option on statup it will not happen the crash, because agp gets loaded before nvidia is loaded.

Offline

#24 2005-11-12 13:36:34

swiergot
Member
From: Kraków, Poland
Registered: 2005-01-08
Posts: 145

Re: Tpowa's "Simple Hardware Detection"

And then loading nvidia will not crash?

Offline

#25 2005-11-12 13:38:50

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Tpowa's "Simple Hardware Detection"

try it: load your agp module before! nvidia then it shouldn't crash

Offline

Board footer

Powered by FluxBB