GithubHelp home page GithubHelp logo

yzerl / hidclient-bluez5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 505e06b2/hidclient-bluez5

0.0 0.0 0.0 26 KB

Turn your Linux PC into a Bluetooth Keyboard+Mouse - for Ubuntu 18.04 + Bluez 5

Shell 3.49% Python 6.69% C 89.65% Makefile 0.17%

hidclient-bluez5's Introduction

hidclient - Bluez 5 / Systemd

This specific fork is for compatibility with Bluez version 5. The target system is Ubuntu 18.04, but this may work for more recent versions. The program will remain almost identical to the original, but the instructions to run it will differ.

This setup specifically works for a Ps4, as you need the Pause key to act as the PS Button - this has been changed to Scroll Lock in this fork, check line 802 if you would like to edit it

One time setup

  1. Enable bluetoothd, probably via sudo systemctl enable bluetooth and ensure it's been started
  2. Edit /etc/systemd/system/dbus-org.bluez.service and perform the following change:
ExecStart=/usr/lib/bluetooth/bluetoothd
                   |
                   V
ExecStart=/usr/lib/bluetooth/bluetoothd  --compat -P input
  1. Restart the systemd daemon with sudo systemctl daemon-reload
  2. Compile the hidclient with make, you may need to install libbluetooth-dev

Notes

  • --compat enables the use of sdptool
  • -P input seems to be the only way to disable the input plugin in Bluez 5

Helper script

DEFINITELY use launch.py to automate connecting/pairing to your host - make sure to alter to your needs as it will NOT work ootb

Pairing

Read example.sh to see an example of approximate steps to run this program and things that must happen on your Bluetooth stack for this to work. You must be able to run the program, while also having control of an input device so that you may pair either through bluetoothctl (discoverable on + default-agent), or something like Blueman

Running

Use essentially the same steps as above, just instead of attempting to pair, manually connect. This is easy with bluetoothctl, and can be automated with echo "xx:xx:xx:xx:xx:xx" | bluetoothctl

hidclient-bluez5's People

Contributors

505e06b2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.