Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-05-30 Thread carsten_h
paul- wrote: > More testing to do, but I should have this integrated for pCP8. Wow! Great to hear! That would make piCorePlayer a step better (although it is the best!)! pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" display, hifiberry dac+ pro) pic

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-05-30 Thread paul-
So the trick here is that kernel module uinput needs to be loaded, then udev does it's think and creates the virtual input device. More testing to do, but I should have this integrated for pCP8. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-24 Thread cpd73
paul- wrote: > Did you try bluetooth on pCP and your pi4 (32bit). I'm sure I tested > this before, but I could get anything to connect to bluetooth today > without segfaulting bluetoothd. My Pi4 is on Raspbian (32bit) - as I use it for much more than just LMS. I have a pi-zero that I use for p

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-24 Thread paul-
Did you try bluetooth on pCP and your pi4 (32bit). I'm sure I tested this before, but I could get anything to connect to bluetooth today without segfaulting bluetoothd. I had to revert to bluez 5.50 (Which is what RaspiOS is using) Which I also built with the same options as the raspi-deb pack

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-24 Thread paul-
I'll have to install raspbian at some point. I'll pushed up python3.8-evdev.tcz to the repo (at least for 32bit). It compiled clean for me, not sure what was causing your error. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate'

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-24 Thread cpd73
paul- wrote: > Because evdev requires the device to show under /dev/input/... Which > is not done by just making a bluetooth connection alone. > > There is some other software interaction or udev rule that does > something. Ah, fair enough. Must admit I have only tested this on raspbian. I t

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-24 Thread paul-
Because evdev requires the device to show under /dev/input/... Which is not done by just making a bluetooth connection alone. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donation

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-24 Thread cpd73
paul- wrote: > Need to figure out how to connect the bluetooth controls to the kernel > HID(evdev) interface. Why do you need to do that? The code I posted was originally taken from https://github.com/liamw9534/mopidy-evtdev/blob/master/mopidy_evtdev/agent.py and works under Raspian / Raspberry

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-24 Thread paul-
going to need some more research here. Need to figure out how to connect the bluetooth controls to the kernel HID(evdev) interface. Most of the tools are for a full desktop environment. Any thoughts cpd73? piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.pico

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-24 Thread rlem
Hi cp73, would it be possible/difficult to have the LMS Material (Android) app also listen to these Bluetooth keycodes? I've just discovered SqueezePlayer & in combination with Material it's a great way to listen with my phone through headphones, but it would be even greater if you could skip so

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-24 Thread cpd73
paul- wrote: > Well it compiles fine in the upcoming pCP 8 :) That's all I have handy > to me here at work. I'll check it out. > > I have a handful of bluetooth devices, I'll do some tests too. I've only have 2 types of BT speakers; a cheap Chinese waterproof speaker for the shower, and a

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-23 Thread paul-
Well it compiles fine in the upcoming pCP 8 :) That's all I have handy to me here at work. I'll check it out. I have a handful of bluetooth devices, I'll do some tests too. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (h

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-23 Thread cpd73
paul- wrote: > I looked at your python code too. Do you know how consistent those > buttons are across devices. To be honest, I have no idea. But, they seem reasonable to me. I stumbled upon them when looking for AVRCP support. paul- wrote: > I already have urllib3 package built, and I think

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-23 Thread paul-
Those issues are really fun to track down. Pretty sure that is a gcc10 compatibility issue with the code. I'll take a look this weekend to see if I can help you out. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://ww

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-23 Thread cpd73
Greg Erskine wrote: > Python is a optional extra that will be installed when required. Its on my pCP7 - but I'm guessing that is due to the bluetooth support. Greg Erskine wrote: > I am not sure if pip is installed as a dependency of Python. It's not. I installed it, and setuptools. However,

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-23 Thread Greg Erskine
Most pCP installs will not have Python loaded. Loading Python would add 20% or 30% to the size of pCP. By default, pCP does have microPython loaded but with very few modules. Python is a optional extra that will be installed when required. I am not sure if pip is installed as a dependency of Py

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-23 Thread cpd73
carsten_h wrote: > That is interesting! > > My LMS Server is on a Pi with piCorePlayer installation and the > Bluetooth headphone will be connected to another Pi with piCorePlayer > Installation and Jivelite on a 7" Display. > Will this also work or does the speaker/headphone has to be connecte

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-23 Thread Wirrunna
cpd73 wrote: > I have a script I use on a Pi4 to connect BT speakers to LMS. I've just > (today!) updated this to handle prev/next and play/pause buttons on the > speakers - pressing the buttons sends the relevant JSONRPC command to > LMS. I'd like to add this change to pCP's implementation, but

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-23 Thread carsten_h
cpd73 wrote: > I have a script I use on a Pi4 to connect BT speakers to LMS. That is interesting! My LMS Server is on a Pi with piCorePlayer installation and the Bluetooth headphone will be connected to another Pi with piCorePlayer Installation and Jivelite on a 7" Display. Will this also work

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-23 Thread cpd73
I have a script I use on a Pi4 to connect BT speakers to LMS. I've just (today!) updated this to handle prev/next and play/pause buttons on the speakers - pressing the buttons sends the relevant JSONRPC command to LMS. I'd like to add this change to pCP's implementation, but I use the 'evdev' and

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-21 Thread Paul Webster
carsten_h wrote: > > > I had a quick look at the code and at first glance it looks like it > finds LMS on the network and then issues commands to it ... which > implies to me it would work with any player ... although I presume it is > looking for the player that matches the system that this c

Re: [SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-21 Thread carsten_h
It seems there is lmsmpris (from Hifiberry OS): https://github.com/hifiberry/lmsmpris which can control squeezelite. But maybe it needs to run on the LMS Server, which is of no use for a simple client. pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon one case pi3b+ (7\" di

[SlimDevices: Unix] piCorePlayer/squeezelite and Bluetooth media control?

2021-04-21 Thread carsten_h
Hello! I searched a little bit for Bluetooth media controls in Linux because it would be great to use the media controls on my headphone to control my piCorePlayer. What I found is this: https://wiki.archlinux.org/index.php/MPRIS#Bluetooth So it seems that the mpris-proxy has to be started to r