From 21f9ed99496f6a3491d2a36a0bee7b655a47332b Mon Sep 17 00:00:00 2001 From: wonky Date: Tue, 27 Aug 2024 09:03:20 +0000 Subject: [PATCH] Update udev-usb-sync.conf --- udev-usb-sync.conf | 52 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/udev-usb-sync.conf b/udev-usb-sync.conf index 31683ee..5e98857 100644 --- a/udev-usb-sync.conf +++ b/udev-usb-sync.conf @@ -1,5 +1,53 @@ -# default values +# The configuration file is part of udev-usb-sync package +# +# MIT License +# +# Copyright (c) 2023 Frede Hundewadt (@linux-aarhus) +# +# Permission is hereby granted, free of charge,to any person obtaining a copy +# of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# +# @linux-aarhus - root.nix.dk +# +# configuration : /etc/usb-dev-sync/usb-dev-sync.conf +# triggered by : /usr/lib/udev/rules.d/99-usb-sync.rules +# +# contributors: @megavolt (Manjaro Forum) +# : @linux-aarhus (Manjaro Forum) +# inspired by : @kwg (EndeavourOS Forum) +# +# The values used can be modified if you need to do so +# The commented default usually works well #use_tweaks=1 -#max_bytes=16777216 +#use_bandwith=1 + #max_ratio=50 +# strict limit requires kernel >= 6.2 #strict_limit=1 + +# a sane default bandwidth value +#max_bytes=16777216 + +# bandwith based limitation requires >= 6.1 +# values as reported by the device ATTRS{speed} +# These values seem to be good and stable. +# It buffers 0,01s of the current bandwidth. +#max_bytes_12=10485 +#max_bytes_480=629145 +#max_bytes_5000=655369 +#max_bytes_10000=13107200