I’ve been fiddling with Linux for years, but I still consider myself a novice in many respects. Maybe the DietPi forum isn’t the best place to ask such general Linux questions… If so, kindly point me in the right direction.
Anyway, I’ve installed DietPi on several devices since discovering it over a year ago, and one thing I’ve consistently struggled with is getting plug-and-play devices (microphones, webcams, additional displays, etc.) to “just work” when they’re plugged in.
This is especially (maybe exclusively) true when I am not using a desktop environment. For example, I’ve deployed a few laptops with X and the Openbox window manager.
- If a display is plugged in while DietPi is running, nothing happens. I assume this is because the Openbox autostart file only runs once at boot. I have an
xrandrcommand in there to extend the primary display. Maybe there’s a better way to handle this. - When I plug in a webcam, I need to reboot in order to use the built in mic. Camera is fine.
- For selecting the audio output device, I had to install PulseAudio along with
pavucontrol(which is easier than manually figuring out the necessary configurations). The latter gives me a GUI to set the default audio device.
I suspect that many of these “issues” would go away if I used a full-blown desktop environment and that I’m responsible for wiring up all the udev, X, and audio plumbing that a full DE (like XFCE or GNOME) normally handles automatically. However, I’ve been opting for something like Openbox because it’s relatively easy to lock down due to its minimalism.
I guess my question is, are there some base rules/configs/scripts that I can create on each of these systems that handle detecting and configuring devices gracefully?