Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Readme.md

Requirements:

  • Go
  • rfcomm
  • hcitools

Installation

go get github.com/satran/autolock

If you want to compile in your phone's address, then you can do it with

go build -ldflags '-X main.addr the:addr' github.com/satran/autolock

If you don't do this, you'll have to add the address for each invocation of autolock.

Enabling Bluetooth

You can use rfkill to enable your bluetooth device if it is blocked: sudo rfkill list to list the devices, and sudo rfkill unblock hci0 tu unblock.

If hciconfig says DOWN in the third line, the device can be started with sudo hciconfig hci0 up. After this hcitool dev shall list the device.

Getting phone's bluetooth address

Use ``hcitool scan` AFTER you've enabled scanning on your phone.

Errors

Can't open RFCOMM control socket: Protocol not supported: sudo modprobe -v rfcomm

About

Lock/unlock your machine using your phone

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.