chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

Hcitools Clock Returned Failed! Can't Operate #200

Open JasonXPPen opened 1 year ago

JasonXPPen commented 1 year ago

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?

git-developer commented 1 year ago

Probably a duplicate of https://github.com/chrippa/ds4drv/issues/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