From 37eee321e5fe6b6409c31f2753aa549d36456ccc Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 16 Jan 2021 00:25:32 -0500 Subject: [PATCH] set to use one camera, add Grub instructions --- README.md | 17 +++++++++++++++++ src/main.rs | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 36e3d17224..9d2947caad 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,23 @@ sudo apt install k4a-tools sudo apt install libk4a1.1-dev ``` +Modify this: + +``` +sudo sh -c 'echo 2047 > /sys/module/usbcore/parameters/usbfs_memory_mb' +``` + +Grub bootloader modifications: + +``` +sudo vi /etc/default/grub +``` + +Then modify this directive to add the following: + +``` +GRUB_CMDLINE_LINUX_DEFAULT="[KEEP EXISTING PARTS THE SAME] usbcore.usbfs_memory_mb=2047" +``` Ubuntu 20.04 LTS Support diff --git a/src/main.rs b/src/main.rs index 58d32d6965..abcbae5bf7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,7 +110,7 @@ pub fn main() -> AnyhowResult<()> { }; let capture_provider: Arc = if opts.enable_cameras { - let multi_device = MultiDeviceCapturer::new(2, Some(1)) + let multi_device = MultiDeviceCapturer::new(1, Some(1)) .expect("multi-device create"); multi_device.start_cameras().expect("start cameras");