File tree Expand file tree Collapse file tree 4 files changed +10
-23
lines changed Expand file tree Collapse file tree 4 files changed +10
-23
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ DEST_MODULE_LOCATION[0]="/kernel/drivers/hid"
10
10
MAKE[0]=" make -C '${kernel_source_dir} ' M='${dkms_tree} /${PACKAGE_NAME} /${PACKAGE_VERSION} /build/src' VERSION='${PACKAGE_VERSION} ' modules"
11
11
CLEAN=" make -C '${kernel_source_dir} ' M='${dkms_tree} /${PACKAGE_NAME} /${PACKAGE_VERSION} /build/src' clean"
12
12
13
- BUILD_EXCLUSIVE_KERNEL_MIN=" 4.18 .0"
13
+ BUILD_EXCLUSIVE_KERNEL_MIN=" 5.12 .0"
14
14
BUILD_EXCLUSIVE_CONFIG=" CONFIG_HID CONFIG_INPUT_FF_MEMLESS CONFIG_POWER_SUPPLY"
15
15
16
16
AUTOINSTALL=" yes"
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- # TODO Remove ERTM after kernel patch is deployed in the wild
3
+ # DKMS now defaults to kernel 5.12 minimum, remove ERTM override
4
4
ERTM_OVERRIDE=" /etc/modprobe.d/99-xpadneo-bluetooth.conf"
5
- DISABLE_ERTM=" /sys/module/bluetooth/parameters/disable_ertm"
6
-
7
- if [ " $( uname -r | awk -F. ' { printf "%03d%03d",$1,$2 }' ) " -ge 005012 ]; then
8
- echo " Not disabling ERTM, kernel version doesn't require it..."
9
- elif [ " $( readlink " ${ERTM_OVERRIDE} " 2> /dev/null) " = " /dev/null" ]; then
10
- echo " Not disabling ERTM, local override in place..."
11
- elif [ -L " ${ERTM_OVERRIDE} " ]; then
12
- echo >&2 " WARNING: '${ERTM_OVERRIDE} ' is an arbitrary symlink, this is not supported."
13
- echo >&2 " Skipping ERTM fixup, you're expected to manage the options on your own..."
14
- else
15
- echo " Disabling ERTM permanently (requires reboot)..."
16
- echo " options bluetooth disable_ertm=y" > " ${ERTM_OVERRIDE} "
17
- echo " HINT: If you want to prevent this in the future, run 'ln -snf /dev/null ${ERTM_OVERRIDE} '."
18
-
19
- if [ -w " ${DISABLE_ERTM} " ]; then
20
- echo " Disabling ERTM instantly..."
21
- echo " Y" > " ${DISABLE_ERTM} "
22
- fi
23
- fi
5
+ [ -L " ${ERTM_OVERRIDE} " ] || { echo " Forcing removal of ERTM override..." ; rm -f " ${ERTM_OVERRIDE} " ; }
24
6
25
7
echo " Installing modalias database..."
26
8
install -D -m 0644 -t /etc/modprobe.d etc-modprobe.d/xpadneo.conf
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- # TODO Remove ERTM after kernel patch is deployed in the wild
3
+ # DKMS now defaults to kernel 5.12 minimum, remove ERTM override
4
4
ERTM_OVERRIDE=" /etc/modprobe.d/99-xpadneo-bluetooth.conf"
5
-
6
5
[ -L " ${ERTM_OVERRIDE} " ] || { echo " Uninstalling ERTM override..." ; rm -f " ${ERTM_OVERRIDE} " ; }
7
6
8
7
echo " Uninstalling modalias database..."
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ if [[ ! -d /sys/devices/virtual/misc/uhid ]]; then
12
12
13
13
fi
14
14
15
+ if [ " $( uname -r | awk -F. ' { printf "%03d%03d",$1,$2 }' ) " -ge 005012 ]; then
16
+
17
+ >&2 echo " WARNING: kernel 5.12 or lower will not be supported due to known ERTM issues"
18
+
19
+ fi
20
+
15
21
echo " * deploying DKMS package"
16
22
make " ${MAKE_OPTS[@]} " VERSION=" ${VERSION} " install || maybe_already_installed
17
23
You can’t perform that action at this time.
0 commit comments