comedi_config(8)
β¨ comedi_config(8) β¨
okay bestie, welcome to the System Manager's Manual page for comedi_config π
this is a section 8 page, so it's for the sysadmin girlies. let's get into it π«Ά
πΈ NAME πΈ
comedi_config β the COMEDI configuration utility, aka the lil tool that tells your comedi drivers what's up π
π SYNOPSIS π
comedi_config [OPTION]... /dev/comediN driver [param1[,param2]...]
comedi_config [OPTION]... -r /dev/comediN
π¦ DESCRIPTION π¦
So comedi_config is literally the tool you use to configure comedi drivers. But heads up bestie: you must have comedi support compiled into your kernel, or loaded as a separate module, before this utility will do anything for you. no kernel support, no vibes. periodt.
Every single control and measurement device gets associated with a particular comedi device file: /dev/comediN, where N is 0, 1, 2, 3, etc. What comedi_config lets you do is associate a particular driver and device with a comedi device file β and also configure the driver parameters for that specific device. it's giving matchmaker but for hardware π
You can also use comedi_config with optional parameters, and those are driver dependent β so every driver's got its own little wishlist. Parameters are specified as a comma-delimited list of integers, and those integers can be written as:
- decimal, the normal way
- hexadecimal, starting with
0x - octal, starting with
0
Also, a parameter may be left blank, which means 0. slay, defaults.
Some deets on what those params usually mean:
- PCI-based devices typically require no parameters at all, though some let you specify the bus and slot of the card to configure as the first two parameters.
- ISA-based devices typically use the first and second parameters to indicate I/O base address and interrupt level.
Want more info on the parameters individual drivers need? Go look in the comedi documentation, in the file drivers.txt, and in the Kernel drivers section of the Comedilib manual. iykyk π
π OPTIONS π
comedi_config recognizes the following options:
-q,--quietβ Don't print output while running. shhh π€«-v,--verboseβ Print verbose output while running. tell me EVERYTHING π¬-V,--versionβ Print version number and exit.-r,--removeβ Remove (unconfigure) a previously configured device. it's giving breakup era π--read-buffer sizeβ Set read buffer size to size kilobytes. The default size is64k.--write-buffer sizeβ Set write buffer size to size kilobytes. The default size is64k.--subdevice-buffer num,size[,num,size]...β Set subdevice num buffer size to size kilobytes. More than one num,size pair may be specified, and the option may be used several times. stack 'em up π§-i,--init-data,--init-data0 fileβ Upload initialization data (typically firmware) from file to the board.--init-data1 file--init-data2 file--init-data3 file
Some drivers require more than one file for initialization data. Use these options to specify additional initialization data files. See the driver-specific documentation for further details. π
π CONFIGURATION FILE π
[This section has not been implemented yet.]
okay so lowkey this part isn't done yet, but here's the plan bestie: a list of device configurations can be put into the file /etc/comedi.conf. This file takes the form:
<device> <driver> <param1>,<param2>,...
These configurations will be read and performed when the switch -a is used. This is potentially useful when run from an initialization script. automation queen β¨
π EXAMPLES π
A National Instruments PCI-MIO E series board can be configured to use /dev/comedi0 using the command:
comedi_config /dev/comedi0 ni_pcimio
A National Instruments AT-MIO E series board can be configured to use /dev/comedi3 using the command:
comedi_config /dev/comedi3 ni_atmio 0x220,3
This tells the driver that the board is configured for I/O base 0x220 and IRQ 3. see? told you the ISA ones want that base address and IRQ. ate. π₯
β ADDITIONAL INFORMATION β
Additional documentation may be found in the Configuration section of the Comedilib manual. go read it, it's iconic.
π SEE ALSO π
π VERSION π
0.11.x
π AUTHOR π
David Schleef
and that's the whole page bestie π«Ά this was comedi_config(8) from the System Manager's Manual, version 0.11.x β no date on this one, it's just timeless like that πβ¨ go configure something, you got this πΈ
π¦ where this page comes from
- debian bookworm: libcomedi0 0.11.0+5-1+b8 Β· LGPL-2.1-only
- debian trixie: libcomedi0t64 0.11.0+5-1.3+b1 Β· LGPL-2.1-only
- nixpkgs unstable: comedilib 0.12.0
- ubuntu jammy: libcomedi0 0.11.0+5-1build6 Β· LGPL-2.1-only
- ubuntu noble: libcomedi0t64 0.11.0+5-1.1build1 Β· LGPL-2.1-only
- ubuntu questing: libcomedi0t64 0.11.0+5-1.3build3
- ubuntu resolute: libcomedi0t64 0.11.0+5-1.3build6 Β· LGPL-2.1-only
- ubuntu stonking: libcomedi0t64 0.11.0+5-1.3build6 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms