chrippa/ds4drv

Hcitools Clock Returned Failed! Can't Operate

JasonXPPen opened this issue · 1 comments

Hello there! I need help! I got an error while starting ds4drv! look at this code!

unikittygamesreactions@penguin:~$ ds4drv
[error][daemon] 'hcitool clock' returned error. Make sure your bluetooth device is powered up with 'hciconfig hciX up'.

I'm running This on Chrome OS!
Can someone help me fix this problem?

Probably a duplicate of #123.

Workaround:

  1. Run:
    mkdir -p /opt/ds4drv-workaround
    cat <<'EOF' >/opt/ds4drv-workaround/hcitool
    #!/bin/sh
    case "${1}" in
      clock) ;;
      *) exec /usr/bin/hcitool "${@}"
    esac
    EOF
    chmod +x /opt/ds4drv-workaround/hcitool
    
  2. Prepend this directory to the PATH when running ds4drv:
    PATH="/opt/ds4drv-workaround:${PATH}" ds4drv