1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
1. Usage
========
hwinfo [debug=deb_flag] [log=log_file] [list[+]=hw_item] [[+|-]probe_option1] [[+|-]probe_option2] ...
Examples:
hwinfo
- probes for nearly everything
hwinfo +all
- probes for everything
hwinfo log=hw_log
- default probing, output is written to hw_log
*** Please don't use "hwinfo >some_log 2>&1" to store the output into a
log file! ***
hwinfo -all +ide
- probe for ide drives only
hwinfo +all -isapnp -floppy
- probe for everything *except* isapnp and floppies
Some probing flags do not stand for complete modules but enable additional
features; e.g. "pci.range" or "cdrom.info".
Example:
hwinfo -all +cdrom
gives a list of all cdrom's
hwinfo -all +cdrom.info
additionally reads the iso9660 info
To get a list of all supported probing flags, call 'hwinfo -all'.
2. Environment variables/kernel cmdline parameters
==================================================
You can control the hardware probing using the environment variable
"hwprobe" and the kernel cmdline parameters "hwprobe" & "x11".
If "hwprobe" is set on the kernel cmdline, the environment variable
"hwprobe" is ignored. Otherwise, the meaning of both is exactly the same.
x11
- Controls the X server/X version to prefer. It is either "3" or "4" or the
name of the X server/X server module to use (XF3: server name without
the leading "XF86_", XF4: the server module name).
Examples:
x11=3
o prefer XFree86 3.x over 4.x (if possible)
x11=SVGA
o use the XF86_SVGA server (*** Even if the server does not
support the card! ***)
x11=nv
o use the XF4 nv_drv.o driver (*** Even if the module does not
support the card! ***)
hwprobe
- Controls which probing flags should *always* be set/cleared. (These
settings *cannot* be overridden by command line switches.)
Examples:
hwprobe=-isapnp
o *never* do any isapnp probing
hwprobe=-braille,-modem
o don't look for braille displays & modems
- Allows you to add and remove hardware from the probing results. In this case
the syntax is (-: remove, +: add at end of list, <nothing>: add at begin of
list):
hwprobe=[+-]<device_class>:<vendor_id>:<device_id>[:<unix_device_file>]
<device_class>, <vendor_id> and <device_id> are device ids as used by libhd.
See the output of hwinfo for examples. In connection with "-", you can use
"*" as a placeholder that matches every id.
Note: <unix_device_file> is optional.
Note2: you cannot usefully *add* hardware that needs more info than that
given by the hwprobe entry. Disks & floppies are notable examples.
(But you can *remove* them.)
Here is a typical hwinfo output for a mouse, with the relevant ids
underlined (<device_class> is the combined base_class & sub_class),
[see 1st example below]:
14: PS/2 00.0: 10500 PS/2 Mouse
^^^^^ --> <device_class>
[Created at mouse.110]
Vendor: s0200 "Unknown"
^^^^^ --> <vendor_id>
Model: 0002 "Generic PS/2 Mouse"
^^^^ --> <device_id>
Device File: /dev/psaux
^^^^^^^^^^ --> <unix_device_file>
Driver Info #0:
XFree86 Protocol: ps/2
GPM Protocol: ps2
Attached to: #8 (PS/2 Controller)
Examples:
hwprobe=+10500:s200:2:/dev/psaux
o add a ps/2 mouse [at the end of the hardware list]
hwprobe=10500:s200:2:/dev/psaux
o add a ps/2 mouse [at the start of the hardware list, so it
is our default mouse]
hwprobe=+10b00:s5001:0:/dev/ttyS0
o add a braille display connected to /dev/ttyS0
hwprobe=-10500:s200:2:/dev/psaux
o remove ps/2 mice attached to /dev/psaux
hwprobe=-10500:s200:2
o remove all ps/2 mice
hwprobe=-10500:*:*
o remove all ps/2 mice
hwprobe=-*:*:*:/dev/hdc
o remove /dev/hdc
hwprobe=+401:1274:5000
o add an ensoniq sound card
Grafics cards are are slightly trickier:
hwprobe=+300:1014:b7
o add a Fire GL1 card
Note: this way you'll get a multihead config. You'll probably
rather want the following example.
hwprobe=-300:*:*,+300:1014:b7
o remove all graphics cards; then add a Fire GL1 card
hwprobe=+400:121a:1
o add a 3fx voodoo card (Note the class "400", not "300"!)
- for more ids, see "src/ids/names.*" and "src/ids/drivers.*"
|