HFP/HSP profile in linux [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have Ubuntu 16.04 and already installed BlueZ 5.37, PulseAudio 10.0, and ofono 1.20 (clone from github).
And I need to use phone like modem for transmitting my phone calls to computer. I paired my telephone with PC, made device trust and connect (all actions are successfully). I think problem with ofono, because I can play music (which use the A2DP) but if i want use hends free or headset profile - I have no sound on PC.
In pacmd (PulseAudio console tool) list-cards I see my bluetooth device, but Headset Audio Gateway HFP/HSP is not avalible. Also I tested it on different devices and computers.
Thank you in advice.

I've solved in this way:
Install ofono
In /etc/pulse/default.pa find the line load-module module-bluetooth-discover and change it to load-module module-bluetooth-discover headset=ofono.
If the user pulse is not a member of group bluetooth, then add it: sudo useradd -g bluetooth pulse
VERY IMPORTANT: add this to /etc/dbus-1/system.d/ofono.conf before </busconfig>:
<policy user="pulse">
<allow send_destination="org.ofono"/>
</policy>
See: https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Bluetooth/
The good news: Now in pavucontrol I can see that the profile changes automatically from A2DP to HSP / HFP if I make a phone call, and then it magically returns to A2DP!
The bad news: it works only one time per booting (and checking if ofonod is running), then I have to reboot my Debian system.

My Solution:
I just found my solution in Fedora 26, using Plantronics Legend and Pluggable Bluetooth USB, after a lot of searching.
I am going back through my history, and updating threads with my solution where I can. This worked for me, direct from Plugable (which is the USB module I am using).
See this post: plugable-usb-bluetooth-adapter-solving-hfphsp-profile-issues-on-linux
Command Summary per Above Link:
wget https://s3.amazonaws.com/plugable/bin/fw-0a5c_21e8.hcd
sudo mkdir /lib/firmware/brcm
sudo mv fw-0a5c_21e8.hcd /lib/firmware/brcm/BCM20702A0-0a5c-21e8.hcd
sudo cp /lib/firmware/brcm/BCM20702A0-0a5c-21e8.hcd /lib/firmware/brcm/BCM20702A1-0a5c-21e8.hcd
Then reboot.

HSP/HFP Profile not available for Bluetooth headset in Fedora 20, was available in Fedora 19 change the device and test it again
SOLVING HFP/HSP AND A2DP PROFILE ISSUES ON LINUX

Related

Win 10 computer does not recognize ESP8266, no blue LED [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Flashed five ESP8266 ESP-12e by using NodeMCU firmware. Then inserted each into the USB and no blue LED on the board came on. Only flashes momentarily when inserted then turns off. After this the "device manager" said we did have a COM9 port. Now COM9 is not there in the device manager. I have the drivers for CH341SER and CP2102 installed.
Arduino IDE has "port" but grayed out.
ESPlorer says "could not find any serial port".
NodeMCU says "Error:Serial port not exist".
Any possible solutions or should I throw the computer into a river?
Some laptops couldn't provide enough power to USB ports generating erratic behavior when connecting, Wifi connections draws much more power than a typical Arduino board. Try to use an externally powered USB dock. Worked for me!
I ran into the same problem. Successfully flashed the hardware with a custom .bin file made online through https://nodemcu-build.com/ then followed this tutorial here: https://www.youtube.com/watch?v=T-oSjMCmNYk now I can upload custom programs in c language to the node mcu hardware.
You will have to then restart your arduino IDE or whatever system/software you're using and follow the basic requirements to download the board related software and options in the ide there's plenty of tutorials for that basic work. The most important is the first step above.
Let me know if that worked for you or if you need further assistance.
Cheers
It looks like bad USB cable. Try another one.

No network interfaces on Debian 8 Lenovo install [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
So I recently got the Lenovo x270, and installed Debian on it instead of the default Windows OS. I've come to find out WiFi, as well as ethernet are both shipped not working. I've tried to fix it, but nothing has worked so far. I switched from straight Debian 8 to Kali to see if it was just a problem in base Debian, but it wasn't. Laptop specs related to issue:
Intel® Dual Band Wireless-AC 8265
Kali Linux (Kernel 4.0.0)
1 Ethernet port
I installed the Intel drivers needed for the 8265 (http://www.intel.com/content/www/us/en/support/network-and-i-o/wireless-networking/000005511.html). However, this requires a kernel version of 4.6, which it doesn't seem I can get without apt-get which I can't use because I don't have internet.
I also attempted to manually add the ethernet using https://wiki.debian.org/NetworkConfiguration#Setting_up_an_Ethernet_Interface and a few other sources I've now lost, but that didn't work either. The main problem I'm having is it seems you need internet to be able to install various packages that allow you to get internet, so I'm not sure what to do. Any ideas would be a great help.
Thank you.
Without knowing the specific NIC, it's hard to say which specific driver is required though Lenovo lists the x270 has having an intel NIC. Running lspci should give you the manufacturer and device ID of the NIC, which enables you to lookup the device on sites such as http://pcidatabase.com/.
The kernel messages might contain useful debugging information, try running dmesg, it might give you information on detected devices or driver-issues.
The kernel might not have loaded the relevant module for the intel WNIC, try forcing it by running sudo modprobe iwlwifi.
Wireless networking devices require non-free firmware. For the intel 8265, this is available as a .deb-package at https://packages.debian.org/search?keywords=firmware-iwlwifi, .deb-packages can be installed using sudo dpkg -i packagename.deb.

Setting up Bluetooth automatic pairing on Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I want to use any mobile phone to connect to a IoT device via Bluetooth Classic with the serial port protocol (SPP). The IoT device has no screen and no keyboard, and it's supposed to accept connections automatically as long as the connecting phone knows a secret PIN (ie, I don't want to be forced to ssh into the IoT device to set up pairing every time a new mobile phone tries to connect).
These are the commands that I've run so far on the IoT device:
# Make the device discoverable:
hciconfig hci0 piscan
# Register SPP:
sdptool add --channel=22 SP
# Start rfcomm:
rfcomm -r watch /dev/rfcomm0 22
Unfortunately, I couldn't find any way to set up a PIN, and pairing fails when I try to connect with a mobile phone. In addition, the device is only discoverable for a short interval.
How do I configure the IoT device's Bluetooth stack (running a recent Bluez) to auto pair with any phone that knows a given PIN, and how do I make the discovery period eternal?
If anyone happens upon this question, to use (much of) the BlueZ "BT Management Sockets" C API directly from bash, try:
btmgmt --help
btmgmt add-device, btmgmt find, btmgmt discov, etc.
You can run an application which implements BlueZ DBus API. I recommands BlueZ >= 5.42.
Use the agent interface and implements your own PIN code.
After registring your agent, bluez will automaticaly call and use you own agent when a pairing is asked.
Moreover, you can set the DiscoverableTimeout to 0 through DBus with org.bluez.Adapter1 interface.
"A value of zero
means that the timeout is disabled and it will stay in
discoverable/limited mode forever."
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/adapter-api.txt (dbus adapter object doc)
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/agent-api.txt (dbus agent object doc)
https://kernel.googlesource.com/pub/scm/bluetooth/bluez/+/5.44/test/simple-agent (sample)
http://www.bluez.org/bluez-5-api-introduction-and-porting-guide/ (read at the bottom)

UEFI prevents installing linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Being Belgian, all laptops come with windowsTM pre-installed. Ingnorantly, I bought on thinking I would be able to install (K)ubuntu. I found out the UEFI is just microsoft's way to prevent you doing this. It stops you booting from USB or CD, it does not allow installing Linux or anything.
I tried the F2/F10 options and settings, I disengaged the security options, disabled secure boot, changed boot order, I tried changing HD with compatible laptop and running OS, tried to bang it against my head, nothing lets me install Linux, it just says:"no bootable device found"
UEFI dual booting Linux and Windows is big tangled mess. I've pulled it off with Ubuntu and Fedora, but after a lot of effort. There are a lot of important variables here. I'm more likely to be able to offer a solution with the following info:
Which media are you using – USB or optical?
How did you create the media? (e.g. Pendrive, Rawwrite, etc.)
Which laptop manufacturer? (This is surprisingly relevant)
Also, it will help us all in the long run if we get more insight into the specific UEFIs and start documenting this issue more thoroughly. UEFIs are embedded software typically written by third-party companies like Insyde. You can find yours by installing a Windows system detailer like Speccy or HWInfo64. See the attached screenshot from Speccy. This info is unlikely to help here and now, but it will help us long-term: I'm looking to create a repository for these UEFI boot issues if someone hasn't done so already.
Try installing Fedora 22. There is a UEFI trampoline to get passed this hurdle. If I had a UEFI machine I'd have tested this answer; it is theoretical at best.

Getting error: The smart card requires drivers that are not present on this system [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
All,
I am getting an error when trying to login with my smart card to a hyper-v guest:
"The smart card requires drivers that are not present on this system."
Any Ideas?
I am trying to use my smart card on a Hyper-V guest
-Running Windows 8.1
-Microsoft image
-Joined to the domain
-I don't see a smart card reader in device manager, but not sure if I should in Hyper-V Guest
With a host
-Running 8.1
-Not joined to the domain
-With integrated card reader
-With TPM enabled
-The smart card reader appears in device manager and has the latest driver
-The smart card appears in device manager when it is plugged in
-Connected with wired LAN
With a connection (rdp)
-That has smart cards option enabled (checked)
I have tried an external USB card reader and get the same result.
My card works on other machines that are not Hyper-V guests.
I have tried installing the smart card drivers from Lenovo on the guest which does not help.
I have searched ITWEB and binged for a solution but can't find one.
Anyone have any ideas of what I can do to get this to work?
I have got this to work now. Apparently you need a driver for the smart card itself as well and the reader. Installing this driver on my VM Guest Fixed the issue.
What I did:
Go to:
http://catalog.update.microsoft.com/v7/site/Search.aspx?q=ge…
And get:
=Gemalto - Other hardware, Smart Cards - Gemalto IDPrime MD Smart Card
=Windows 7,Windows 8,Windows 8.1 Drivers,Windows Server 2008 R2,Windows Server 2012,Windows Server 2012 R2 Drivers
=Get latest version (8.4.3.0 in my case)
Then
Download the driver from your cart to a directory
Unzip it
Right click on the .inf and click install
Try your card (no reboot necessary for me)

Resources