DTPARAM(1)

πŸ“¦
version 0-unstable-2024-12 Β· 2 versions
, in nixos 26.05, nixpkgs unstable

πŸ’… DTPARAM β€” manipulate parameters of the base device-tree πŸ’…

ok so this is dtparam, straight out of the General Commands Manual, and bestie it is lowkey iconic β€” it's the little command that lets you poke at the base device-tree's parameters like it's your Notes app ✨


🌸 NAME 🌸

dtparam β€” manipulate parameters of the base device-tree πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

dtparam [param=val...]

dtparam -h [param]

πŸ’– DESCRIPTION πŸ’–

okay so dtparam is a command line utility for manipulating the base device-tree's parameters. no cap, that's the whole vibe πŸ’… for example, it can be used to enable the SPI or I2C interfaces at runtime without rebooting β€” yes bestie, no reboot, we love a main character who doesn't make you restart 😭✨

and if you run dtparam with no argument at all? it prints the names of all base device-tree parameters and their description. free info, zero effort, we stan 🫢


✨ OPTIONS ✨

  • -h [param] β€” if given without param, it displays help on the application overall. but if param is specified, it prints help about that parameter in the base device-tree πŸŽ€ so -h alone = the whole app, -h + a name = just that one parameter. iykyk πŸ’œ

πŸ”₯ EXAMPLES πŸ”₯

sudo dtparam spi=on Enable the SPI interface on the GPIO header. note that root privileges are usually required for manipulating the base device-tree (hence, sudo in the example) β€” so like, yes you need the crown for this one πŸ‘‘ no skipping it πŸ™ˆ

dtparam -h spi Print help about the "spi" parameter. look at you, being all informed 🌈

sudo dtparam audio=off Disable the audio output. silence. peace. πŸ“ (but fr it just turns the audio output off)


πŸ‘€ SEE ALSO πŸ‘€

dtoverlay(1), dtmerge(1), [DTREE] β€” the whole friend group πŸ’–


🧚 REFERENCES 🧚


real talk: manipulating the base device-tree usually wants root privileges, so keep that sudo handy bestie πŸ’€

and that's the page fr fr πŸŽ€ the footer just said DTPARAM(1) and dipped β€” no extra version drama, no date moment, just the manual name chilling at the bottom. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from