powertop tries to execute hardcoded /usr/sbin/hciconfig

Bug #1717090 reported by Anatoly Borodin on 2017-09-13
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
powertop (Ubuntu)
Undecided
Unassigned

Bug Description

Ubuntu: 15.10-17.10

Toggling the "Bluetooth device interface status" tunable tries to execute commands `/usr/sbin/hciconfig hci0 up` and `/usr/sbin/hciconfig hci0 down`, and produce messages `sh: 1: /usr/sbin/hciconfig: not found`.

See bt_tunable::bt_tunable() in src/tuning/bluetooth.cpp (https://github.com/fenrus75/powertop/blob/master/src/tuning/bluetooth.cpp)

But hciconfig is in /bin in Ubuntu (see dpkg -L bluez | fgrep hciconfig), starting around the version 5.35-0ubuntu2 in Ubuntu 15.10.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in powertop (Ubuntu):
status: New → Confirmed
Brian K. White (brian-aljex) wrote :

This goes back to at least 2014.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772571

Except it sounds like maybe it shouldn't be using hciconfig at all for bt for other reasons:
http://www.spinics.net/lists/linux-bluetooth/msg64021.html

So, bluetoothctl? btmgmt?

Maybe it's just as well this hard-coded path is wrong, because after I create a symlink to /bin/hciconfig, powertop hangs sometimes on startup, and any time Itry to toggle bluetooth from within powertop. At least with the broken hardcoded path, everything else works!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.