9

Is it possible for my computer to pretend it is a bluetooth mouse, so another device can connect to it?

An android device allow its mouse to be controlled by bluetooth without rooting it, and my computer have bluetooth, so if I could get them to speek the same language/protocol, I could send mouse-commands from the computer to the android.

Is it possible, or am I just dreaming? :-)

6

I know a project called Master Control which did exactly that: a program would read events from local /dev/input sources and resend those events either via Bluetooth HID profile or via USB using gadgetfs. This could effectively emulate either BT or USB mouse, keyboard or joystick.

The original project was built for ARM, and I'm not sure if the author (Roger Zoellner) has ever released the sources. You may want to ping him about it, so you don't have to re-implement everything from scratch.

1

Yes, that's possible. For example, hidclient allows you to use a Linux PC as a bluetooth keyboard and mouse for another device.

  • My tablet can see the computer, and its has "Audio" and "Input", but if I try to use it as "Input", it just say its unable to connect :-( Any ide how to find out why? – Puggan Se Dec 10 '16 at 20:52
  • What exactly have you done (step-by-step description of commands used)? Permissions correct for the user that runs the programs? How exactly did you try to use it as input, and what's the exact error message? What does the syslog say? – dirkt Dec 11 '16 at 7:42
  • 1
    any luck getting hidclient to work on ubuntu 16.04? I tried the readme here github.com/benizi/hidclient – Mina Michael Jan 11 '18 at 11:42
0

I don't think you are dreaming. I think that this can be done using a programming language like Python , C , etc. For example in Python with a quick search i found this tutorial based on PyBluez: https://people.csail.mit.edu/albert/bluez-intro/c212.html

By the way, May be already available apps could fit your needs. I had been using AirDroid apps a couple of years ago and i was very happy with it since i could browse my android phone by my PC using just WiFi (not cable , not BlueTooth).

PS: AirDroid does not require root access to your phone, you can use your PC Keyboard and mouse and is still available in google play. Unfortunately i can not tell for sure if AirDroid can work with BT or if there are AirDroid BT apps.

  • AirDroid sounds nice, should test it, all apps i found required rooted devices – Puggan Se Dec 1 '16 at 8:58
  • AirDroid runs without root , i have tried this thing and i can confirm it! But it is Wifi, not bluetooth. – George Vasiliou Dec 1 '16 at 9:13
  • Did you try it? – George Vasiliou Dec 1 '16 at 21:31
  • To send mouse-events, I had to use Chrome (not firefox), and I needed to connect a USB-cabel. – Puggan Se Dec 2 '16 at 14:08
  • I'm surprised that this requires a usb cable to operate... even today, their app claim that works remotelly based on wifi. – George Vasiliou Dec 2 '16 at 14:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.