https://github.com/simplyceo/generikit-hid-sony
Generic PlayStation patches. Those that were revoked by the sages.
https://github.com/simplyceo/generikit-hid-sony
controller custom driver generic kernel linux playstation
Last synced: 10 months ago
JSON representation
Generic PlayStation patches. Those that were revoked by the sages.
- Host: GitHub
- URL: https://github.com/simplyceo/generikit-hid-sony
- Owner: SimplyCEO
- License: gpl-2.0
- Created: 2022-05-27T05:14:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-07T23:39:18.000Z (over 1 year ago)
- Last Synced: 2025-03-26T18:57:26.204Z (about 1 year ago)
- Topics: controller, custom, driver, generic, kernel, linux, playstation
- Language: C
- Homepage:
- Size: 5.24 MB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

Generic PlayStation patches. Those that were revoked by the sages.
Usage
-----
Having to patch a file and build a entire kernel is a medium-level of knowledge to the majority of users.
But choosing which file to compile is a hard task. And that is what this repository is for.
Dependencies
------------
In the middle of the repository journey, most of the systems will have a automated install.
But this day is most likely to happen very far from now. So, consider having the following:
| Package | URL |
|---------------|---------------------------------------------------|
| git | https://ftp.gnu.org/gnu/git/ |
| gcc | https://ftp.gnu.org/gnu/gcc/ |
| make | https://ftp.gnu.org/gnu/make/ |
It is necessary the usage of kernel headers. Each distribution have a different package.
They can also be manually compiled. See [this](https://www.kernel.org/doc/html/latest/kbuild/modules.html).
Optional: Other C compilers can be used too, but keep in mind that your kernel NEED to be compiled
by the same provided compiler.
Compiling
---------
Tip: "su -c" can be your root manager, sudo, doas, or another...
Just remember that you need to remove the quote marks (") from every given "su -c" command.
Clone the repository:
```sh
git clone https://github.com/SimplyCEO/generikit-hid-sony.git
cd generikit-hid-sony/
```
Using DKMS:
```sh
su -c "sh dkms-install.sh"
```
Manually compiling:
```sh
make && su -c "make install clean"
```
Remove the older driver in order to load the generikit one:
```sh
printf "blacklist hid-sony\n" | su -c "tee /etc/modprobe.d/generikit.conf"
```
To load the original driver, unload `generikit-hid-sony` and load `hid-sony`:
```sh
su -c "modprobe --remove generikit-hid-sony"
su -c "modprobe hid-sony"
```
To return the generikit driver, do the other way around.
Removing
--------
Using DKMS:
```sh
su -c "sh dkms-remove.sh"
```
Inspiration
-----------
One time this patch got revoked by the zen-kernel programmers.
Just like they said:
> "I'd really prefer we don't add code for fakes."
Even knowing it is generic, the device continue being a device.
Contribution
------------
You are more than welcome to submit a fix that got revoked by the team.
If your fix has bugs in some architecture, consider putting a description in the `warning.txt` file.
All the contribution should be directly sent to the `devel` branch.
```sh
git checkout devel
```
References
----------
My first [closed pull request](https://github.com/zen-kernel/zen-kernel/pull/279), a concept of what the project become.
PS3 generic controller [forum discussion](https://retropie.org.uk/forum/topic/28263/playstation-3-controller-not-connecting-wired-on-new-pi4-retropie-build/7)... huge thanks to doug and [b3n](https://github.com/btlogy)!