Debian Bullseye for OpenFrame

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bullseye for OpenFrame

Post by roobarb! »

proddick wrote: Sun Jul 23, 2023 11:59 pm I built a Joggler using the latest Bullseye build (5.10.186) and in the past the "of-install" script to install Squeezeplay worked, but sadly it now fails. It seems to be trying to download 7.8 from https://openbeak.net/openframe/squeezeplay/v7.8/ but the folder is empty. Any chance you can restore it?
And that's what backups are for, kids! 😅

What you were seeing was a link back to a build directory somewhere else on the old server, which I had obliterated thinking it was all cached junk.

With a little luck the files will be there now, please let me know if things still work (or not).
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

Not quite there yet

Code: Select all

Installation of Xserver completed.
--2023-07-28 13:53:14--  https://birdslikewires.net/download/openframe/squeezepl                                                                                                             ay/v7.8/
Resolving birdslikewires.net (birdslikewires.net)... 2001:41d0:8:e648::1, 5.135.                                                                                                             163.72
Connecting to birdslikewires.net (birdslikewires.net)|2001:41d0:8:e648::1|:443..                                                                                                             . connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://openbeak.net/openframe/squeezeplay/v7.8/ [following]
--2023-07-28 13:53:15--  https://openbeak.net/openframe/squeezeplay/v7.8/
Resolving openbeak.net (openbeak.net)... 141.147.74.255
Connecting to openbeak.net (openbeak.net)|141.147.74.255|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/tmp/index.html’

index.html              [ <=>                ]    1018  --.-KB/s    in 0s

2023-07-28 13:53:15 (5.71 MB/s) - ‘/tmp/index.html’ saved [1018]

--2023-07-28 13:53:15--  https://birdslikewires.net/download/openframe/squeezepl                                                                                                             ay/v7.8/.md5
Resolving birdslikewires.net (birdslikewires.net)... 2001:41d0:8:e648::1, 5.135.                                                                                                             163.72
Connecting to birdslikewires.net (birdslikewires.net)|2001:41d0:8:e648::1|:443..                                                                                                             . connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://openbeak.net/openframe/squeezeplay/v7.8/.md5 [following]
--2023-07-28 13:53:15--  https://openbeak.net/openframe/squeezeplay/v7.8/.md5
Resolving openbeak.net (openbeak.net)... 141.147.74.255
Connecting to openbeak.net (openbeak.net)|141.147.74.255|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-07-28 13:53:15 ERROR 404: Not Found.

cat: /tmp/.md5: No such file or directory
md5sum: /tmp/: Is a directory

No checksums! Looks like the download failed.
and this gives

Image

ronnie
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bullseye for OpenFrame

Post by roobarb! »

Man in a van wrote: Fri Jul 28, 2023 2:03 pm Not quite there yet
Ahh, the old script still points to BirdsLikeWires backend and not the new dedicated server.

Could you edit line 148 in the /usr/local/sbin/of-install script and change the SQPSERVER string to:

Code: Select all

SQPSERVER="https://openbeak.net/openframe/squeezeplay/v7.8"
That should have it. I've updated the script for the next build.

BTW, you got through to me perfectly on Mastodon - I just had no idea who it was with that username! Had me confused! :lol:
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

All good Boss! :)

Code: Select all


of@openframe:~$ sudo of-install squeezeplay
Installing squeezeplay...

--2023-07-29 10:58:09--  https://openbeak.net/openframe/squeezeplay/v7.8/squeezeplay-7.8.1-1002.tgz
Resolving openbeak.net (openbeak.net)... 141.147.74.255
Connecting to openbeak.net (openbeak.net)|141.147.74.255|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12277664 (12M) [application/octet-stream]
Saving to: ‘/tmp/squeezeplay-7.8.1-1002.tgz’

squeezeplay-7.8.1-1002.tgz                      100%[====================================================================================================>]  11.71M  4.42MB/s    in 2.6s

2023-07-29 10:58:12 (4.42 MB/s) - ‘/tmp/squeezeplay-7.8.1-1002.tgz’ saved [12277664/12277664]

--2023-07-29 10:58:12--  https://openbeak.net/openframe/squeezeplay/v7.8/squeezeplay-7.8.1-1002.tgz.md5
Resolving openbeak.net (openbeak.net)... 141.147.74.255
Connecting to openbeak.net (openbeak.net)|141.147.74.255|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 64 [application/octet-stream]
Saving to: ‘/tmp/squeezeplay-7.8.1-1002.tgz.md5’

squeezeplay-7.8.1-1002.tgz.md5                  100%[====================================================================================================>]      64  --.-KB/s    in 0s

2023-07-29 10:58:12 (8.90 MB/s) - ‘/tmp/squeezeplay-7.8.1-1002.tgz.md5’ saved [64/64]

1333777a3406d52ec915c46bc26f5f4f
1333777a3406d52ec915c46bc26f5f4f

Checksums match, continuing...
Enabling Xserver start as 'squeezeplay' by systemd...Created symlink /etc/systemd/system/getty.target.wants/startx.service → /lib/systemd/system/startx.service.
 done.
Writing /home/squeezeplay/.xinitrc... done.
Configuring splash theme 'squeezeplay'... updating initramfs... done.
Enabling 'grubquiet'... done.
Installation of SqueezePlay completed.
of@openframe:~$ sudo reboot
Sorry I forgot the "J" word, it was the first time I have ever "Mastodoned" :? :oops: :roll:

ronnie
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bullseye for OpenFrame

Post by roobarb! »

Man in a van wrote: Sat Jul 29, 2023 11:05 am All good Boss! :)

...

Sorry I forgot the "J" word, it was the first time I have ever "Mastodoned" :? :oops: :roll:
Excellent! 👍

I am very much enjoying the world of the toot. Absolutely nothing in the feed I haven't asked for and nerds a-plenty. :lol:
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
proddick
Posts: 29
Joined: Fri Feb 22, 2013 10:59 am

Re: Debian Bullseye for OpenFrame

Post by proddick »

roobarb! wrote: Sat Jul 29, 2023 2:50 am
Man in a van wrote: Fri Jul 28, 2023 2:03 pm Not quite there yet
Ahh, the old script still points to BirdsLikeWires backend and not the new dedicated server.

Could you edit line 148 in the /usr/local/sbin/of-install script and change the SQPSERVER string to:

Code: Select all

SQPSERVER="https://openbeak.net/openframe/squeezeplay/v7.8"
That should have it. I've updated the script for the next build.
Brilliant - all installed and working. Thank you very much!
proddick
Posts: 29
Joined: Fri Feb 22, 2013 10:59 am

Re: Debian Bullseye for OpenFrame

Post by proddick »

@roobarb and others... A weird one and I am a bit clueless as to how to troubleshoot.

For background, I have a Joggler running the legacy Squeezeplayer OS in our lounge which is connected to a Sabaj A3 amplifier with built in USB DAC. This is the last unit on my list to upgrade to something newer...

I built a new Joggler with the 5.10.186 build and installed all updates. I then installed Squeezeplay using the modified script as above. Testing the unit on my workbench with the internal speaker worked OK. I then tested with a low-cost USB DAC (16 bit, 48Khz) and it also worked OK.

However, when I connect the Sabaj to the USB hub the Joggler boots OK but as soon as Squeezeplay runs it crashes to a $ prompt and the unit is no longer accessible on the LAN.

I assume this is an issue with the USB Audio driver not working correctly with the higher spec DAC in the Sabaj - IIRC it is max 24bit, 96Khz.

If I plug in the amp while Squeezeplayer is running I can see the device being detected -

Code: Select all

 "usbcore: registered new interface driver snd-usb-audio"  
Any suggestions how I could debug and ideally fix this?

Thanks!
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

proddick wrote: Mon Aug 07, 2023 8:35 pm @roobarb and others... A weird one and I am a bit clueless as to how to troubleshoot.
snip
Any suggestions how I could debug and ideally fix this?

Thanks!
I think it is the OS

I have only tried it lately with the internal speaker and it works fine.

Tonight I have tried connecting an external dac, which I know has previously worked and it does not connect to the dac.

I have tried with the updates applied and without the updates applied and have no luck

I tried adding squezelite, as per

viewtopic.php?f=2&t=5141

But no luck with that

Internal speaker works fine

I'll try and look again later today

ronnie
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

proddick wrote: Mon Aug 07, 2023 8:35 pm @roobarb and others... A weird one and I am a bit clueless as to how to troubleshoot.

Any suggestions how I could debug and ideally fix this?

Thanks!
Well I have spent about eight hours trying to solve this and find workarouds but without any joy. :(

As a controller it works fine

As soon as one moves away from the default Audio Setting, then all hell breaks loose :shock: :o :?

One used to be able to change the Audio Setting to External Direct which allowed BBC, fip, Radio Paradise, JB2 all to function by switching their bit rates.

Now, when enabling the change, all one gets is a bin screen of some sort. :o

And where, oh, where is the command "refresh squeezeplay" ? A three minute wait for a reboot is very taxing :roll:

I have tried changin settings in the /etc/asound.conf file 48000 instead of 41000 and setting the last CARD to 1 instead of 0.

That give BBC and fip but a source bit rate change give the bin screen again.

I'm going back to jivelite and squeezelite; and life ;)

ronnie
proddick
Posts: 29
Joined: Fri Feb 22, 2013 10:59 am

Re: Debian Bullseye for OpenFrame

Post by proddick »

Man in a van wrote: Tue Aug 08, 2023 1:24 pm
proddick wrote: Mon Aug 07, 2023 8:35 pm @roobarb and others... A weird one and I am a bit clueless as to how to troubleshoot.

Any suggestions how I could debug and ideally fix this?

Thanks!
Well I have spent about eight hours trying to solve this and find workarouds but without any joy. :(

As a controller it works fine

As soon as one moves away from the default Audio Setting, then all hell breaks loose :shock: :o :?

One used to be able to change the Audio Setting to External Direct which allowed BBC, fip, Radio Paradise, JB2 all to function by switching their bit rates.

Now, when enabling the change, all one gets is a bin screen of some sort. :o

And where, oh, where is the command "refresh squeezeplay" ? A three minute wait for a reboot is very taxing :roll:

I have tried changin settings in the /etc/asound.conf file 48000 instead of 41000 and setting the last CARD to 1 instead of 0.

That give BBC and fip but a source bit rate change give the bin screen again.

I'm going back to jivelite and squeezelite; and life ;)

ronnie
I feel your pain, in the early Joggler/Squeezeplay days we just downloaded and installed the software on a USB stick (or even internal) and it worked ;-)

I have several other Jogglers on 5.10.186 working fine, two have USB DACs but are low-cost 16 bit/41Khz ones.

I will persevere a bit more, my current hunch is something in the start-up Script that is causing the crash. I think testing the audio outside of Squeezeplayer is my next test...
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

Squeezelite installs and runs without a problem

The 16 bit/41Khz usb dacs most likely fit within the /etc/asound.conf paramaters. Do you have to change the default Ausio Settings to use them ?

In Ralphy's squeezeplay.sh it is possible to configure the audio output to suite the player
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

Man in a van wrote: Tue Aug 08, 2023 1:24 pm
QUESTION
And where, oh, where is the command "refresh squeezeplay" ? A three minute wait for a reboot is very taxing :roll:
ANSWER

Code: Select all

sudo systemctl restart startx.service
ronnie ;)
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bullseye for OpenFrame

Post by roobarb! »

Check /etc/asound.conf - it can be simplified for USB DACS.

There’s no issue running 24-bit/96kHz DACS, they work just fine.

Also, if you get any conflicts or weird behaviour, blacklisting the Intel sound module will disable internal audio entirely.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

I have it working, sort of

I have an old usb dac from Stoner Acoustics (UD120)

I plugged that into the usb hub and selected External Direct in the Audio Aoutput settings, restarted Squeezeplay.

I have playback but as soon as I select a source with a different bit rate the screen blanks to bin or something.

Also no dac is listed as an output.

Code: Select all

of@openframe:~$ cat /proc/asound/card1/stream0
STONERACOUSTICS DA at usb-0000:00:1d.7-4.4, high speed : USB Audio

Playback:
  Status: Running
    Interface = 2
    Altset = 1
    Packet Size = 36
    Momentary freq = 44100 Hz (0x5.8333)
    Feedback Format = 16.16
  Interface 2
    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 3 OUT (ASYNC)
    Rates: 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
    Data packet interval: 125 us
    Bits: 16
    Channel map: FL FR
  Interface 2
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (ASYNC)
    Rates: 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
    Data packet interval: 125 us
    Bits: 24
    Channel map: FL FR
  Interface 2
    Altset 3
    Format: S32_LE
    Channels: 2
    Endpoint: 3 OUT (ASYNC)
    Rates: 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
    Data packet interval: 125 us
    Bits: 32
    Channel map: FL FR
of@openframe:~$
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

I check my LMS settings and in BBC Sounds Plugin unticked the box to
Hide the audio sample rate from LMS. This can help with a specific transcoding issue on devices that can't natively support 48000
which I had done earlier.

So now, LMS v8.4.o is coverting the playback to the default setting in asound.conf
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

roobarb! wrote: Tue Aug 08, 2023 5:51 pm Check /etc/asound.conf - it can be simplified for USB DACS.

There’s no issue running 24-bit/96kHz DACS, they work just fine.

Also, if you get any conflicts or weird behaviour, blacklisting the Intel sound module will disable internal audio entirely.
I earlier found an old post by Wilberforce and changed /etc/asound.conf/ to

Code: Select all

pcm.!default {
   type hw
   card 0
   device 1
}
ctl.!default {
   type hw
   card 0
   device 1
}

I don't understand any of this, but it seems to work. There is no alsamixer but max volume can be set in the PCM volume control.

So, using Qobuz, playing a 192kHz track I get
of@openframe:~$ cat /proc/asound/card1/stream0
STONERACOUSTICS DA at usb-0000:00:1d.7-4.4, high speed : USB Audio

Playback:
Status: Running
Interface = 2
Altset = 1
Packet Size = 144
Momentary freq = 192000 Hz (0x18.0000)
Feedback Format = 16.16
and a CD track
of@openframe:~$ cat /proc/asound/card1/stream0
STONERACOUSTICS DA at usb-0000:00:1d.7-4.4, high speed : USB Audio

Playback:
Status: Running
Interface = 2
Altset = 1
Packet Size = 36
Momentary freq = 44100 Hz (0x5.8333)
Feedback Format = 16.16
I do miss selecting the device in Audio Settings though, it was much simpler when all one had to do was change the one output setting :)

Don't know how to blacklist the internal audio

ronnie
proddick
Posts: 29
Joined: Fri Feb 22, 2013 10:59 am

Re: Debian Bullseye for OpenFrame

Post by proddick »

I have several other Jogglers on 5.10.186 working fine, two have USB DACs but are low-cost 16 bit/41Khz ones.

I will persevere a bit more, my current hunch is something in the start-up Script that is causing the crash. I think testing the audio outside of Squeezeplayer is my next test...
I tried a few things with Squeezeplay 7.8.1 such as modifying /etc/asound.conf but eventually the SD card card got corrupted - possibly due to the numerous fatal crashes?

So, I decided to go off on a tangent and install Squeezeplayer 8.0.1.1402 from link below which certainly stretched my (very basic) Linux skills especially as there seems little info re doing it on the Joggler, most people seem to use Jivelite etc.

https://sourceforge.net/projects/lmscli ... lay/linux/

Anyway, I have it working to a fashion (manual start etc.) and it works with my lounge DAC and correctly switches between 44.1Khz for FLAC and 48Khz for BBC. I haven't yet tested any HD audio. However, the (seemingly known?) issue of no album art and the lack of power off is making me thinking of trying again with the Joggler specific 7.8.1 build...
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bullseye for OpenFrame

Post by roobarb! »

Man in a van wrote: Tue Aug 08, 2023 10:13 pmDon't know how to blacklist the internal audio

Code: Select all

sudo nano /etc/modprobe.d/blacklist.conf
Then paste this in and save the file.

Code: Select all

blacklist snd-hda-intel
That will prevent the internal audio system from starting and your USB device will be card 0.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 503
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bullseye for OpenFrame

Post by Man in a van »

roobarb! wrote: Wed Aug 09, 2023 7:48 pm
Man in a van wrote: Tue Aug 08, 2023 10:13 pmDon't know how to blacklist the internal audio

Code: Select all

sudo nano /etc/modprobe.d/blacklist.conf
Then paste this in and save the file.

Code: Select all

blacklist snd-hda-intel
That will prevent the internal audio system from starting and your USB device will be card 0.

Thanks, I might try that later in the week :)

My personal choice is Jivelite and squeezelite on a usb stick

The Openframe Squeezeplay does seem beset with a few problems of late (especially in regard to using the External [Direct} setting in Audio Settings.

With this regard, I have been trialling Ralphy's Squeezeplay and find that the only problem with that, is lack of Album art on playback. I have tried amending the instruction in the .sh file to
export LD_LIBRARY_PATH=$LIB_DIR:/opt/squeezeplay/lib
from
export LD_LIBRARY_PATH=$LIB_DIR:$LD_LIBRARY_PATH
as per his advice, given to me on slimdevices forum
Artwork not showing in squeezeplay/jivelite is usually caused when squeezeplay loads the system installed libpng instead of the version included in /opt/squeezeplay/lib.
The squeezeplay.sh script should set LD_LIBRARY_PATH to that folder.
Unfortunatly that is not successful

I can configure audio output in the squeezeplay.sh and autostart with a .service file

I understand that it is not possible for you at the moment to upgrade the current squeezeplay, but I do appreciate your efforts with the Bullseye and Bookworm repos :)

ronnie
User avatar
pete
Posts: 2957
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Debian Bullseye for OpenFrame

Post by pete »

OK so installed current release of Bullseye for OpenFrame and using script file to install Squeezeplayer and x windows on a USB stick.

I also installed it using the line by line method and it is doing same thing.

bul-ext2-1028-43-bullseye-5.10.189op.img.gz dated August 9, 2023

On reboot it appears to load xwindows just fine and stops at an x windows terminal prompt. I can manually go to the /opt/squeezeplay/bin directory and run Squeezeplayer but it never starts by itself on reboot.

.xinitrc squeezeplay script doesn't appear to be running correctly.

Update - August 8, 2023 - PM

Working fine now after configuring Wifi which doesn't make sense to me.

Crackling sound fixed.
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
Post Reply