JacKeTUs / universal-pidff

GNU General Public License v2.0
78 stars 4 forks source link

Rework envelope check #16

Closed Lawstorant closed 2 months ago

Lawstorant commented 3 months ago

This fixes Moza FFB in games that use Sine effect to emulate constant force. Envelopes are optional so no need to set envelope which is all zeroes.

I removed the FIX_PERIODIC_ENVELOPE quirk as it's no longer needed.

Tested on Moza R9 with GT Legends and rFactor 2

jazFromHouston commented 2 months ago

Hi, there! Does not currently work for FFB with my Moza R9V2. I think the (Pull 16) would, or anything different. Here is my output:

╭─jayze@jay in ~ took 10ms ╰─λ paru -S universal-pidff-dkms-git :: Resolving dependencies... :: Calculating conflicts... :: Calculating inner conflicts...

Aur (1) Old Version New Version Make Only aur/universal-pidff-dkms-git 0.0.5.r18.g2ee89cb-1 0.0.1-1 No

:: Proceed to review? [Y/n]: y

:: Downloading PKGBUILDs... PKGBUILDs up to date nothing new to review fetching devel info... ==> Making package: universal-pidff-dkms-git 0.0.4.r40.g5416f53-1 (Fri 02 Aug 2024 02:33:32 PM CDT) ==> Retrieving sources... -> Updating universal-pidff git repo... ==> Validating source files with sha256sums... universal-pidff ... Skipped ==> Making package: universal-pidff-dkms-git 0.0.4.r40.g5416f53-1 (Fri 02 Aug 2024 02:33:34 PM CDT) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Updating universal-pidff git repo... ==> Validating source files with sha256sums... universal-pidff ... Skipped ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Creating working copy of universal-pidff git repo... Cloning into 'universal-pidff'... done. ==> Starting pkgver()... ==> Updated version: universal-pidff-dkms-git 0.0.5.r18.g2ee89cb-1 ==> Sources are ready. universal-pidff-dkms-git-0.0.1-1: parsing pkg list... :: universal-pidff-dkms-git-0.0.1-1 is up to date -- skipping build [sudo] password for jayze: loading packages... warning: universal-pidff-dkms-git-0.0.5.r18.g2ee89cb-1 is up to date -- reinstalling resolving dependencies... looking for conflicting packages...

Package (1) Old Version New Version Net Change

universal-pidff-dkms-git 0.0.5.r18.g2ee89cb-1 0.0.5.r18.g2ee89cb-1 0.00 MiB

Total Installed Size: 0.07 MiB Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] (1/1) checking keys in keyring [------------------------------------] 100% (1/1) checking package integrity [------------------------------------] 100% (1/1) loading package files [------------------------------------] 100% (1/1) checking for file conflicts [------------------------------------] 100% (1/1) checking available disk space [------------------------------------] 100% :: Running pre-transaction hooks... (1/3) Rejecting pacman transaction if running in snapshot... (2/3) Performing snapper pre snapshots for the following configurations... ==> root: 33 (3/3) Remove upgraded DKMS modules ==> dkms remove --no-depmod universal-pidff/0.0.5.r18.g2ee89cb -k 6.10.2-zen1-1-zen :: Processing package changes... (1/1) reinstalling universal-pidff-dkms-git [------------------------------------] 100% :: Running post-transaction hooks... (1/9) Arming ConditionNeedsUpdate... (2/9) Install DKMS modules ==> dkms install --no-depmod universal-pidff/0.0.5.r18.g2ee89cb -k 6.10.2-zen1-1-zen Module version for hid-universal-pidff.ko.zst exactly matches what is already found in kernel 6.10.2-zen1-1-zen. DKMS will not replace this module. You may override by specifying --force. Error! Installation aborted. ==> WARNING: `dkms install --no-depmod universal-pidff/0.0.5.r18.g2ee89cb -k 6.10.2-zen1-1-zen' exited 6 (3/9) Updating initramfs... :: Building initramfs for linux-zen (6.10.2-zen1-1-zen) :: Building fallback initramfs for linux-zen (6.10.2-zen1-1-zen) (4/9) Updating linux initcpios... (5/9) Foreign/AUR package notification boxflat-git v1.10.3r2-1 universal-pidff-dkms-git 0.0.5.r18.g2ee89cb-1 (6/9) Orphaned package notification... gcab 1.6-2 lib32-libcanberra 1:0.30+r2+gc0620e4-2 libsmbios 2.4.3-7 (7/9) Checking for .pacnew and .pacsave files... .pac* files found: /etc/locale.gen.pacnew /etc/pacman.d/mirrorlist.pacnew Please check and merge (8/9) Performing snapper post snapshots for the following configurations... ==> root: 34 (9/9) Syncing all file systems...

╭─jayze@jay in ~ as 🧙 took 1m ╰─λ

Lawstorant commented 2 months ago

@jazFromHouston I sadly don't understand what you mean and your installation output doesn't really mean anything. Could you instead create an issue and explain it better? What game are you testing? Currently, this dirver should work in most games but some like rFactor 2 won't and this PR fixes that.

If you want to test this PR, you have to clone my repository and checkout the rework-checks branch. Then you can follow the manual build and installation process