KW-DRM(1)
π kw-drm β DRM subsystem tools
okay so bestie, this is kw-drm, one of the subsystem tools that ships inside kw. It's the DRM corner of the kworkflow universe and honestly it's giving main character energy for anyone who lives in graphics drivers all day. π¦
β¨ SYNOPSIS β¨
kw drm [--local | --remote [<remote>:<port>]]
[--load-module=<module>[:<param1>,...][;<module>:...] |
--unload-module=<module>[;<module>;...] |
--gui-on | --gui-off | --conn-available | --modes | --verbose]
πΈ DESCRIPTION πΈ
so the Linux kernel has a whole bunch of subsystems that put their operations out there via sysfs, or that give userspace some way to talk to the driver directly. because of that, kw has a set of options aimed at specific subsystems, so you get actual facilities for poking at the one you care about. right now? the only one we support is drm. periodt.
This feature is the one responsible for dealing with DRM features. π
π OPTIONS π
--local,--remote [<remote>:<port>]β this one tells the drm action which device it's targeting, and it can be a remote machine or your local one. If you don't explicitly pass these on the command line,kwgoes and grabs the target set in the variabledefault_deploy_target(that's indeploy.config) to work out which one you mean. and like, important heads up: the drm feature does not support VM. no cap. π--load-module=<module>[:<param1>,...][;<module>:...]β lets you name one or more modules to load, with or without parameters. want more than one module? separate them with;. and if you wanna hand specific parameters to a module, use:and then separate each parameter with,. oh and you can totally combine this with--gui-onβkwwill make sure the target module gets loaded first, and after that it triggers the GUI. iconic combo. β¨--unload-module=<module>[;<module>;...]β this one lets you unload one or more DRM drivers. you can give a single module, or a list separated by;. and the order matters, bestie: this command first disables the user interface, and only after that does it unload the module. π«Ά--gui-onβ a whole mechanism for turning the GUI on. by default it uses thesystemctloperation, but you're free to drop in any specific command for activating your preferred GUI in the variablegui_onover in thekworkflow.configfile. your setup, your rules. π--gui-offβ turns off the target GUI on the specified target. default is thesystemctloperation, but you can change that behavior by settinggui_offto a specific command in thekworkflow.configfile β with the specific command. yeah. that command. π--gui-on-after-rebootβ sets the GUI to turn on automatically after the next reboot. by default it usessystemctl, but again, you're free to add any specific command for activating your preferred GUI in the variablegui_on_after_rebootin thekworkflow.configfile. Note: this change only takes effect after the system is rebooted. want the GUI immediately instead? use the--gui-onoption. β³--gui-off-after-rebootβ sets the GUI to turn off automatically after the next reboot. by default it usessystemctl, but you're free to add any specific command for deactivating your GUI in the variablegui_off_after_rebootin thekworkflow.configfile. Note: this change only takes effect after the system is rebooted. want to disable the GUI immediately? use the--gui-offoption instead. β³--conn-availableβ shows all connectors available on the target machine. the ones marked with'*'are the enabled ones. π--modesβ shows all available modes per card. all of them. every single one. π₯οΈ--verboseβ verbose mode makeskwspit out debug messages so you can track its progress. genuinely so useful while you're debugging, because it lets you spot possible errors way more easily. your little detective era. π
π EXAMPLES π
for these examples we're assuming the relevant fields in your configuration files (which live by default in .kw/) are already set up. we recommend using kw config for managing your local and global configurations. do it. it's the moment. π
If you're working with DRM drivers, you can take advantage of the load and unload commands combined with GUI control commands. like so:
kw drm --load-module='amdgpu' --gui-on # Load a driver and trigger the user GUI
kw drm --unload-module='amdgpu' # Turn off user GUI and unload the driver
Note:
You have to wait for the sshd to become ready. π
and that's the whole page, bestie β this is the kw-drm - DRM subsystem tools manual, straight from the kworkflow crew, dated whenever this page was dated (the footer's the same title line as the header, cute of them). now go forth and load some modules. π§β
π¦ where this page comes from
- ubuntu stonking: kworkflow 1:0.10-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms