Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with installing on DietPi #7

Open
megatron-lives opened this issue Feb 27, 2021 · 6 comments
Open

Help with installing on DietPi #7

megatron-lives opened this issue Feb 27, 2021 · 6 comments

Comments

@megatron-lives
Copy link

Hi.

this is not an issue really, but I would be greatful for advise. I am trying to replicate the ability to have a bluetooth speaker as a Squeelite player in LMS as in PiCorePlayer and found you excellent instructions. I'm running DietPi on a RP3 and can connect to the bluetooth speaker, but it does not appear in the list of players in LMS.

I'm still quite a novice so would appreciate help. I believe everything installed correctly, the only observations I made were:

  1. when running:
    image

I get these recommendations - do I need to install and of these dependancies?

image

  1. after running 'autoreconf --install' for bluez-alsa, I receive this message:

"aclocal: warning: couldn't open directory 'm4': No such file or directory"

  1. The bluetooth-monitor service is listed in DietPi as 'activiting' constantly, but I can't see anything in the logs to suggest there is an error....

I would be so greatful for some advise and thank you very much for the instructions

@oweitman
Copy link
Owner

ok,

  1. the suggested packages are normaly not needed.
  2. this is a warning. did you recognize if the compile process ends successfuly?
    Especially the following command ends without an error
    make && sudo make install
    3,) can you please check whether the bluezalsa.service is also running without errors

if you found no errors we have to look into detail, if the running applications are have a problem with the parameters.

a)
please recheck the pairing of your bluetooth device and if the device connects or disconnects if you enable/disable the bluetooth speaker in the bluetoothctl tool

b)
can you please change the following line


to
dbg = True

and stop the service with
sudo systemctl stop btspeaker-monitor.service
and run the script on commandline with (i hope i remember this right)
sudo python /etc/pyserver/btspeaker-monitor.py
after that, the issued command should be printed on screen, if you enable or disable your speaker.
PS: i saw a little difference between the printed and the issued command with the hci parameter.

debug(SQUEEZE_LITE, '-o', 'bluealsa:HCI=%s,DEV=%s,PROFILE=a2dp' % ( hci,dev), '-n', name, '-m', dev, '-f', '/dev/null')

players[key] = Popen([SQUEEZE_LITE, '-o', 'bluealsa:DEV=%s,PROFILE=a2dp' % ( dev), '-n', name, '-m', dev , '-f', '/dev/null'], stdout=DEVNULL, stderr=DEVNULL, shell=False)

after you know the connected/disconnected command
you can try both versions and you can issue this command by yourself on the commandline and check if there are some errors.

@megatron-lives
Copy link
Author

megatron-lives commented Feb 27, 2021

Hi oweitman thanks for the reply.

Answers below:

"2: this is a warning. did you recognize if the compile process ends successfuly?
Especially the following command ends without an error
make && sudo make install"

No errors when running this command to my knowledge - If I reran the command would be the suitable to ascertain if indeed errors are presented?

3,) can you please check whether the bluezalsa.service is also running without errors

I'm not sure the best way/standard way to report service log errors, but in DietPi below are details related to the service, which is stated to be running. Please let me know if there is a standard log location you require. I ran 'sudo systemctl start bluezalsa.service' and still can't see bluezalsa, only 'bluetooth':

image

image

a)
please recheck the pairing of your bluetooth device and if the device connects or disconnects if you enable/disable the bluetooth speaker in the bluetoothctl tool

connects fine:

image

disconnects fine too:

image

b) change dbg = True, restarted service and ran sudo python /etc/pyserver/btspeaker-monitor.py:

image

Apologies, but I'm not sure what you want me to try regarding lines 33 (debug) and 34 (player) as above

Still no luck getting this working with the steps described above

Thank you so much for your help! I look forward to hearing from you

@oweitman
Copy link
Owner

ok we found the problem.
one of the dependencies is deprecated.
therefore there was possibly also a problem when compiling

i must try it by myself and i hope to find a solution.

@megatron-lives
Copy link
Author

Thank you. I'm glad you figured it out. I'm happy to continue myself with picoreplayer instead of dietpi so you may close this issue if you wish as I don't want you doing too much extra work just to get this working on my part. Thanks

@oweitman
Copy link
Owner

this is not a problem with dietpi in particular.
this will also happen with the other linux operating systems.
dietpi is probably just a little newer

@megatron-lives
Copy link
Author

I understand thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants