I am looking for a way to check to see if the bluetooth is enabled or disabled on my laptop via the terminal. Is there a command that I can use to find this information
How to Check Bluetooth Status via Terminal
12.04bluetoothcommand line
Related Solutions
touchmoused
I found a project called touchmoused
that simulates Logitech Touch Mouse app.
Description
touchmouchd will act as a server for Logitech's Touch Mouse app for IOS or other clients using the same network protocol. The Logitech Touch Mouse app will allow you to control your mouse and keyboard using your IOS device.
Implemented features
- Mouse buttons
- Mouse movement
- Two-finger scroll
- Alphanumeric key support (1..9, a..z, A..Z)
- Modifier key support (Ctrl, Alt)
- Some other keys
The software is in fact a daemon so save the script, make it executable and have a look at the help
at the bottom on how to use it. It is a year old and looks like an coding example attempt so mileage may vary
Remotepad
Besides that there is an app called Remotepad in your store.
Description
RemotePad is an open source application that controls the mouse cursor of your desktop PC. This way, you can use your iPhone or iPod touch as a wireless touchpad!
Overview
- Mouse control with a virtual touchpad.
- Software keyboard for ascii text inputs.
- Server support for major platforms, namely, Mac OS X, Windows, Linux and BSD.
- Bonjour (Zeroconf) server detection under Mac OS X.
Customizable appearence and behaviour.
- number of buttons to display
- tap clicking and dragging
- dragging with mouse button dragging
- landscape mode
- two finger tapping for secondary click
- button location (triple tapping and continuously dragging to move)
Vertical and horizontal scrolling. with two fingers with center button dragging
- Mouse (pseudo)control via accelerometer.
- Send arrow keys. (double tapping and continuously dragging to enter arrow keys)
Demo mode.
- you can show a tap view and a setup view without any servers (to enter a demo mode, tap your iPhone name and hold four seconds)
- nothing happen :-)
Dependencies
Remotepad requires build-essential
and libxtst-dev
to run. You can install them with the command:
sudo apt install build-essential libxtst-dev
Download remotepad source code.
Installation
sudo apt-get install build-essential libxtst-dev
- Download the remotepad and move it to
/opt
or where ever you want if not/opt
. - Untar/Unzip the package and this will create a directory called
RemotePad Server
cd ~/"RemotePad Server"/X11
and "make" it..../configure make sudo make install
To start it run
remotepad
.
That info can be found with hciconfig -a
:
hci0: Type: BR/EDR Bus: USB
BD Address: 5C:93:A2:A3:59:56 ACL MTU: 1022:8 SCO MTU: 183:5
UP RUNNING PSCAN ISCAN
RX bytes:1146297 acl:195 sco:10904 events:84051 errors:0
TX bytes:72067880 acl:83905 sco:10762 commands:83 errors:0
Features: 0xff 0xfe 0x0d 0xfe 0xd8 0x7f 0x7b 0x8f
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'ubuntu-0'
Class: 0x6c0100
Service Classes: Rendering, Capturing, Audio, Telephony
Device Class: Computer, Uncategorized
HCI Version: (0x7) Revision: 0x3101
LMP Version: (0x7) Subversion: 0x1
Manufacturer: Atheros Communications, Inc. (69)
The HCI Version (0x7) indicates version 4.1
The mapping of HCI version to the bluetooth specification versions are:
| HCI version | Bluetooth version |
|-------------|-------------------|
| 0 (0x0) | 1.0b |
| 1 (0x1) | 1.1 |
| 2 (0x2) | 1.2 |
| 3 (0x3) | 2.0 |
| 4 (0x4) | 2.1 |
| 5 (0x5) | 3.0 |
| 6 (0x6) | 4.0 |
| 7 (0x7) | 4.1 |
| 8 (0x8) | 4.2 |
| 9 (0x9) | 5.0 |
| 10 (0xa) | 5.1 |
Best Answer
In addition to checking for the service you can use the command
that will return all devices turned on.