-
Notifications
You must be signed in to change notification settings - Fork 1
USB setup
Olivier Guyon edited this page Nov 26, 2019
·
6 revisions
By default Ubuntu sets the USB-FS memory size to 16Mb for USB devices. In the context of transferring a high resolution image, it's not enough... But there is a way to gain access to a higher amount of RAM for buffering.
There is a permanent way and a temporary way to do it:
In /etc/default/grub text file, modify:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.usbfs_memory_mb=1000"
Update grub :
$ sudo update-grub
Reboot computer
Enter this command in a terminal :
$ sudo sh -c 'echo 1000 > /sys/module/usbcore/parameters/usbfs_memory_mb'
To confirm the change has been done, type :
$ cat /sys/module/usbcore/parameters/usbfs_memory_mb
You can find more info on USB-FS here : https://www.flir.com/support-center/iis/machine-vision/application-note/understanding-usbfs-on-linux/