Open rakhenmanoa opened 3 years ago
I have no idea how to help you there.
This project is meant for Arch Linux (and it's derivatives) and be built with makepkg -si
command.
I guess I should have written this in the readme.
I can certainly try getting it to work on Ubuntu but I have no idea how far I can get. I will leave this issue open until I test it
I attempted to get this to work in Ubuntu but failed. I'll just add a help-wanted label on this for now
I compiled the module manually and it worked but somehow i dont't know why dkms don't
Le sam. 1 janv. 2022 à 11:27, Kyuunex @.***> a écrit :
I attempted to get this to work in Ubuntu but failed. I'll just add a help-wanted label on this for now
— Reply to this email directly, view it on GitHub https://github.com/Kyuunex/hid-sony-clone-fix-dkms/issues/1#issuecomment-1003526252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI5PXGNLS6O7GWH4WN5GRBDUT23IZANCNFSM5FK6623A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
A quick hack for ubuntu so you don't have to use makepkg:
export VER=$(uname -r | cut -c1-4);
wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-ids.h
wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-sony.c
sed -i 's/drivers\/hid\///g' hid-sony-clone-fix.patch
git apply hid-sony-clone-fix.patch
mv hid-sony.c hid-sony-clone.c
make
To hotplug the driver:
sudo rmmod hid_sony
sudo insmod hid-sony-clone.ko
It worked with the dragon controller
Thank you so much, btw I manually patched the sony-hid.c file and then build it match the kernel I'm using. It worked that way also
Le mar. 19 avr. 2022, 22:31, Vitor Ramos @.***> a écrit :
A quick hack for ubuntu so you don't have to use makepkg:
export VER=$(uname -r | cut -c1-4); wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-ids.h wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-sony.c sed -i 's/drivers\/hid\///g' hid-sony-clone-fix.patch git apply hid-sony-clone-fix.patch mv hid-sony.c hid-sony-clone.c make
To hotplug the driver:
sudo rmmod hid_sony sudo insmod hid-sony-clone.ko
It worked with the dragon controller
— Reply to this email directly, view it on GitHub https://github.com/Kyuunex/hid-sony-clone-fix-dkms/issues/1#issuecomment-1103015608, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI5PXGKFQEHKRVX6BLOYT7DVF4CXNANCNFSM5FK6623A . You are receiving this because you authored the thread.Message ID: @.***>
I managed to get this to build on mx linux with a slight adaptation from @VitorRamos code:
export VER=$(uname -r | cut -c1-3);
wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-ids.h
wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-sony.c
sed -i 's/drivers\/hid\///g' hid-sony-clone-fix.patch
git apply hid-sony-clone-fix.patch
mv hid-sony.c hid-sony-clone-fix.c
make
And then found out this patch (or equivalent) is already in the liquorix kernel for MX linux...
Thank you very much. I tested the kernel 6.2 and the new ds4 driver from sony works also by default on it.
Le ven. 24 févr. 2023 à 11:52, Bernardo Bandos @.***> a écrit :
I managed to get this to build on mx linux with a slight adaptation from @VitorRamos https://github.com/VitorRamos code: export VER=$(uname -r | cut -c1-3); wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-ids.h wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-sony.c sed -i 's/drivers\/hid\///g' hid-sony-clone-fix.patch git apply hid-sony-clone-fix.patch mv hid-sony.c hid-sony-clone-fix.c make And then found out this patch (or equivalent) is already in the liquorix kernel for MX linux...
— Reply to this email directly, view it on GitHub https://github.com/Kyuunex/hid-sony-clone-fix-dkms/issues/1#issuecomment-1443491493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI5PXGPW4VMSFS5NNJ3W7J3WZCHHDANCNFSM5FK6623A . You are receiving this because you authored the thread.Message ID: @.***>
Thanks for the update. If hid-playstation
driver from 6.2 works out of the box, then I'll probably archive this project as there would be no need for this patch going forward.
I'll wait for 6.2 to roll out in Arch and other distros and test it, before archiving.
The modified version provided by @jbbandos works in Debian. Thank you.
A quick hack for ubuntu so you don't have to use makepkg:
export VER=$(uname -r | cut -c1-4); wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-ids.h wget https://raw.githubusercontent.com/torvalds/linux/v$VER/drivers/hid/hid-sony.c sed -i 's/drivers\/hid\///g' hid-sony-clone-fix.patch git apply hid-sony-clone-fix.patch mv hid-sony.c hid-sony-clone.c make
To hotplug the driver:
sudo rmmod hid_sony sudo insmod hid-sony-clone.ko
It worked with the dragon controller
I confirm that this works, but you have to update the obj-m in make file to:
obj-m += hid-sony-clone.o
Hello, I have this kind of errror when I try to compile : make -C /lib/modules/5.11.0-37-generic/build V=1 M=/home/rakhenmanoa/GIT/hid-sony-clone-fix-dkms modules make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.11.0-37-generic » test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) make -f ./scripts/Makefile.build obj=/home/rakhenmanoa/GIT/hid-sony-clone-fix-dkms \ single-build= \ need-builtin=1 need-modorder=1 make[2]: Aucune règle pour fabriquer la cible « /home/rakhenmanoa/GIT/hid-sony-clone-fix-dkms/hid-sony-clone-fix.o », nécessaire pour « /home/rakhenmanoa/GIT/hid-sony-clone-fix-dkms/hid-sony-clone-fix.mod ». Arrêt. make[1]: [Makefile:1849 : /home/rakhenmanoa/GIT/hid-sony-clone-fix-dkms] Erreur 2 make[1] : on quitte le répertoire « /usr/src/linux-headers-5.11.0-37-generic » make: *** [Makefile:5 : all] Erreur 2