You are not logged in.
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
well, dude, hwd and lshwd could be run straight from rc.sysinit too if you wanted
Offline
you all miss one point, this detection runs with basic linux utils and is really precise in loading modules.
greetings
tpowa
Offline
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
Offline
Yeah, I'd think you could run just about anything from rc.sysinit with the correct coding placed in it.
oz
Offline
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
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
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
rasat try to change the line with find /sys
to find /sys/devices, that should fix your trouble.
Offline
... 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
rasat i mean to test you should try -show-modules
Offline
kernel2.6.14-SDF1(archck1) no problems 8)
[code]sorry for my english [/code]
Offline
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
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
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
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
No change for me with the new version.
Offline
[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
1) 8139cp and 8139too are both detected but only 8139too should,
Same here .....
Mr Green
Offline
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
swiergot, confirmed the crash, but this only happens when you load tha agp driver when nvidia is already loaded, else it works.
Offline
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
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
And then loading nvidia will not crash?
Offline
try it: load your agp module before! nvidia then it shouldn't crash
Offline