[SOLVED] Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-17 Thread Franco Martelli

On 30/04/24 at 14:07, Alexandre Rossi wrote:

Hi,


Basically I've the same issue described here:
https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers

The speaker-test program is provided by the alsa-utils package. I'm using
Debian 12 Bookworm, I've no ~/.asoundrc file. My /proc/asound/cards returns:

~$ cat /proc/asound/cards
  0 [SB ]: HDA-Intel - HDA ATI SB
   HDA ATI SB at 0xfe40 irq 16
  1 [NVidia ]: HDA-Intel - HDA NVidia
   HDA NVidia at 0xfe08 irq 57

I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3
jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).


I assume your cabling is right and your SB soundcard has surround out
(3 jacks as you describe it, and not mic and line out for instance). The labels
on the jacks would confirm that, so would the user manual of your motherboard or
sound card.


The issue is that speaker-test doesn't play sound to the correct speaker. If
I run:

~$ speaker-test -Dplug:surround51 -c6 -s3 -f75

The sound comes from (Center), (Front right), (Rear left) and (Rear right)
speakers instead (Front right) only.


What's bothering me is that you get sound from multiple speakers while
instructing out on only one.

The usual issues of these setups with surround analog out are:
- channel mapping issues (driver/hardware mismatch)
- software downmixing to stereo

There are other usual issues with surrount digital out but this is not
your setup.

You can have a look at [1] for software fixes on this.

[1] https://alsa.opensrc.org/SurroundSound


I solved by buying a Toslink (S/PDIF) optical cable, and using thus the 
"Surround 5.1 Digital output" and unplugging the three jacks analog 
cable. Now speaker-test works nicely:


~$ speaker-test -c6 -l1 -twav

speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 349525
Period size range from 10 to 116509
Using max buffer size 349524
Periods = 4
was set period_size = 87381
was set buffer_size = 349524
 0 - Front Left
 4 - Center
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
 5 - LFE
Time per period = 8,720806

maybe it was a hardware issue with the DAC of my Logitech Z906, it seems 
that with the three jacks analog cable it downmix to stereo, thanks anyway.


Cheers,
--
Franco Martelli



Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-10 Thread Franco Martelli

Hi Alexandre,

On 07/05/24 at 11:56, Alexandre Rossi wrote:


My hypothesis: speaker-test outputs directly to ALSA (kernel) but ALSA redirects
to pulseaudio (the 99-pulse.conf file) and pulseaudio Output profile is stereo.
Therefore, pulseaudio downmixes 5.1 to stereo. That would explain why only
front-left and front-right output sound.

To confirm, you can either:
- move away that 99-pulse.conf file so that speaker-test use directly and only
   ALSA
- configure pulseaudio output profile for surround5.1 (you can use command line
   $ pacmd set-card-profile 0 output:output:analog-surround-51 or
   pavucontrol (graphical)


~# systemctl stop pulseaudio
Failed to stop pulseaudio.service: Unit pulseaudio.service not loaded.


pulseaudio is usually a *user* service and socket activated (starts 
automatically
if some app wants to use it). To stop it, the following should work:
$ systemctl --user stop pulseaudio.socket  # stop the socket to prevent auto 
start
$ systemctl --user stop pulseaudio.service # stop the daemon


I moved the 99-pulse.conf file into root directory, then rebooted but 
"speaker-test" does the same result of my first post.
I think that PulseAudio is already configured for surround, see 
attachment for the output of "pacmd info" command. The two "systemctl" 
commands to stop PulseAudio worked, thank you very much it was a new 
thing for me.


I tried to boot Debian 12.5 in rescue-mode and I tested "speaker-test" 
but ditto, same result of my first post.


When I was in rescue-mode and trying to play sound in the console, this 
message appeared on the screen, I don't know whether it matters:


snd_hda_intel :00:14.2: IRQ timing workaround is activated for card 
#0. Suggest a bigger bdl_pos_adj.


It's driving me utterly bonkers, maybe a hardware issue?

Lastly I've asked for support to the alsa-user mailing-list on 
SourceForge but I got no answer at the moment.


--
Franco Martelli


pacmdInfo.txt.gz
Description: application/gzip


Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-07 Thread Alexandre Rossi
Hi,

> > My understanding is that pulseaudio uses alsa for kernel interface and
> > that speaker-test uses alsa directly. So if one cannot get speaker-test
> > to sound right, it cannot work with pulseaudio. That why I suggest 
> > workarounds
> > in alsa conf (asoundrc).
> 
> I tried several configurations of ~/.asoundrc in these days but nothing
> works with "speaker-test". Well some configurations let "aplay" to use
> rear-left, rear-right, front-center speakers but "speaker-test" never sends
> sound to front-center, rear-left, rear-right and LFE with this command:
> [...]
> Just now, checking the ALSA configuration in /etc/alsa/conf.d/ I found the
> 99-pulse.conf file:
> 
> ~# cat /etc/alsa/conf.d/99-pulse.conf
> # PulseAudio alsa plugin configuration file to set the pulseaudio plugin as
> # default output for applications using alsa when pulseaudio is running.
> [...]
> 
> Does Debian use Pulseaudio daemon as default output for ALSA applications?
> Could it be a Pulseaudio misconfiguration? Should I try to uninstall it or
> how can I stop Pulseaudio? If I do "killall pulseaudio" it re-spawns
> immediately and "systemctl" doesn't work:

My hypothesis: speaker-test outputs directly to ALSA (kernel) but ALSA redirects
to pulseaudio (the 99-pulse.conf file) and pulseaudio Output profile is stereo.
Therefore, pulseaudio downmixes 5.1 to stereo. That would explain why only
front-left and front-right output sound.

To confirm, you can either:
- move away that 99-pulse.conf file so that speaker-test use directly and only
  ALSA
- configure pulseaudio output profile for surround5.1 (you can use command line
  $ pacmd set-card-profile 0 output:output:analog-surround-51 or
  pavucontrol (graphical)

> ~# systemctl stop pulseaudio
> Failed to stop pulseaudio.service: Unit pulseaudio.service not loaded.

pulseaudio is usually a *user* service and socket activated (starts 
automatically
if some app wants to use it). To stop it, the following should work:
$ systemctl --user stop pulseaudio.socket  # stop the socket to prevent auto 
start
$ systemctl --user stop pulseaudio.service # stop the daemon

Cheers,

Alex



Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-06 Thread Franco Martelli

On 02/05/24 at 09:10, Alexandre Rossi wrote:

What's bothering me is that you get sound from multiple speakers while
instructing out on only one.

The usual issues of these setups with surround analog out are:
- channel mapping issues (driver/hardware mismatch)
- software downmixing to stereo

There are other usual issues with surrount digital out but this is not
your setup.

You can have a look at [1] for software fixes on this.

[1]https://alsa.opensrc.org/SurroundSound

The link you posted it shows rather outdated fixes, it talked about Jackd
daemon and surround, but I have pulseaudio daemon, maybe I've pulseaudio
daemon misconfiguration

My understanding is that pulseaudio uses alsa for kernel interface and
that speaker-test uses alsa directly. So if one cannot get speaker-test
to sound right, it cannot work with pulseaudio. That why I suggest workarounds
in alsa conf (asoundrc).


I tried several configurations of ~/.asoundrc in these days but nothing 
works with "speaker-test". Well some configurations let "aplay" to use 
rear-left, rear-right, front-center speakers but "speaker-test" never 
sends sound to front-center, rear-left, rear-right and LFE with this 
command:


~$ LC_ALL=C speaker-test -c 6 -D surround51 -t wav

speaker-test 1.2.8

Playback device is surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 349504
Period size range from 32 to 174752
Using max buffer size 349504
Periods = 4
was set period_size = 174752
was set buffer_size = 349504
 0 - Front Left
 4 - Front Center
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
 5 - LFE
Time per period = 21.908826
 0 - Front Left
^C 4 - Front Center
Transfer failed: Bad address

In place of "surround51" I've set the pcm.X  specified in 
~/.asoundrc trying so several configurations.
Just now, checking the ALSA configuration in /etc/alsa/conf.d/ I found 
the 99-pulse.conf file:


~# cat /etc/alsa/conf.d/99-pulse.conf
# PulseAudio alsa plugin configuration file to set the pulseaudio plugin as
# default output for applications using alsa when pulseaudio is running.
hook_func.pulse_load_if_running {
lib "libasound_module_conf_pulse.so"
func "conf_pulse_hook_load_if_running"
}

@hooks [
{
func pulse_load_if_running
files [
"/usr/share/alsa/pulse-alsa.conf"
]
errors false
}
]

Does Debian use Pulseaudio daemon as default output for ALSA 
applications? Could it be a Pulseaudio misconfiguration? Should I try to 
uninstall it or how can I stop Pulseaudio? If I do "killall pulseaudio" 
it re-spawns immediately and "systemctl" doesn't work:


~# systemctl stop pulseaudio
Failed to stop pulseaudio.service: Unit pulseaudio.service not loaded.

Any help it's very appreciated, thanks in advance.
--
Franco Martelli



Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-02 Thread Alexandre Rossi
Hi,

> > > The issue is that speaker-test doesn't play sound to the correct speaker. 
> > > If
> > > I run:
> > > 
> > > ~$ speaker-test -Dplug:surround51 -c6 -s3 -f75
> > > 
> > > The sound comes from (Center), (Front right), (Rear left) and (Rear right)
> > > speakers instead (Front right) only.
> > 
> > What's bothering me is that you get sound from multiple speakers while
> > instructing out on only one.
> > 
> > The usual issues of these setups with surround analog out are:
> > - channel mapping issues (driver/hardware mismatch)
> > - software downmixing to stereo
> > 
> > There are other usual issues with surrount digital out but this is not
> > your setup.
> > 
> > You can have a look at [1] for software fixes on this.
> > 
> > [1] https://alsa.opensrc.org/SurroundSound
> 
> The link you posted it shows rather outdated fixes, it talked about Jackd
> daemon and surround, but I have pulseaudio daemon, maybe I've pulseaudio
> daemon misconfiguration

My understanding is that pulseaudio uses alsa for kernel interface and
that speaker-test uses alsa directly. So if one cannot get speaker-test
to sound right, it cannot work with pulseaudio. That why I suggest workarounds
in alsa conf (asoundrc).

Alex



Re: Graphic Equalizer for Sound

2024-05-01 Thread Dan Ritter
Richmond wrote: 
> Dan Ritter  writes:
> 
> > Richmond wrote: 
> > Let's put in a broad bell that will cover bass and low treble
> > voices: tap the first gear icon on top of a slider. By default,
> > all these bands are configurable and set to no change, so we're
> > going to co-opt the first one.
> >
> > The controls you now see should be Type, Mode and Slope. Set
> > Type to Bell, ignore Mode and Slope for now.
> >
> > Underneath are Frequency and Quality, with a display in between
> > telling you the width of that combination. Let's select a center
> > frequency of 200Hz, with a Q of 1.25. The width should say about
> > 160Hz, which will affect 40 to 360Hz (200 +/- 160). Click the
> > gear icon again, and then adjust the slider up about 6 dB.
> 
> OK I did this. But over on the right there is still 194hz and 241hz
> which cover the same range.

That's a leftover thought from graphic equalizers, where each
slider has a fixed center frequency, a fixed shape, and a fixed
width. This is a parametric equalizer.

It starts out displaying 20 or so sliders all of which are set
to zero. Setting them to zero means they don't affect anything.

We then changed the frequency center of the first slider, setting it
to 200Hz.  On a graphic EQ, that's like grabbing the nearest fixed slider
and forcing it to adjust the frequency you actually want.

> Also the user interface appears to get stuck so the dialog won't go
> away.

Try clicking outside it. 
 
> I can't hear lower voices still, maybe PC speakers won't play them anyway.

The spectral display above will show you what frequencies are being
produced -- that's post-effects, so any changes you introduce with the
equalizer will be shown.

Try plugging in headphones? 

-dsr-



Re: Graphic Equalizer for Sound

2024-05-01 Thread Richmond
Dan Ritter  writes:

> Richmond wrote: 
>> Dan Ritter  writes:
>> 
>> > Parametric EQs are not the same as graphic EQs, but they are
>> > reasonably easy to understand and offer much more control.
>> >
>> > Suppose you want to boost all the bass below 50Hz. The
>> > parametric type you want is a "shelf", the frequency is 50Hz,
>> > the Q doesn't matter (because it's a shelf) and the volume
>> > change is whatever you want -- +3dB is a safe number to produce
>> > an audible effect without being overwhelming.
>> >
>> 
>> What I want to do is make it easier to hear the lower voices in choral
>> music, or even better, hear only the lower voices, i.e. eliminate the
>> upper voices. Perhaps a 'shelf' would do that, but I cannot find
>> anything called 'shelf' in the user interface. I am bewildered.
>
> Human voices tend to be 80-8000Hz
>
> On the left hand side top, there's a Presets drop-down. Create a
> new Output preset by typing in a name and tapping the + button.
>
> At the bottom center, click on Effects.
>
> On the left, you will have a list of effects. Select Equalizer.

OK I got the equalizer. Unfortunately installing the software again has
broken bluetooth speakers again, but I can still hear through the PC
speakers...

>
> Let's put in a broad bell that will cover bass and low treble
> voices: tap the first gear icon on top of a slider. By default,
> all these bands are configurable and set to no change, so we're
> going to co-opt the first one.
>
> The controls you now see should be Type, Mode and Slope. Set
> Type to Bell, ignore Mode and Slope for now.
>
> Underneath are Frequency and Quality, with a display in between
> telling you the width of that combination. Let's select a center
> frequency of 200Hz, with a Q of 1.25. The width should say about
> 160Hz, which will affect 40 to 360Hz (200 +/- 160). Click the
> gear icon again, and then adjust the slider up about 6 dB.

OK I did this. But over on the right there is still 194hz and 241hz
which cover the same range.

Also the user interface appears to get stuck so the dialog won't go
away.

I can't hear lower voices still, maybe PC speakers won't play them anyway.

>
> Play some choral music. Better? Worse? Play with the settings
> until you get what you want. Then go back to Presets and use +
> to save the current settings under the name you chose.
>
> -dsr-



Re: Graphic Equalizer for Sound

2024-05-01 Thread Franco Martelli

On 01/05/24 at 18:21, Richmond wrote:


I am using a web browser to play Youtube and Spotify.

I got into a real mess with this, as my bluetooth speakers stopped
working, "Bluetooth connect failed: br-connection-profile-unavailable"
and then when I removed pipewire I lost all sound completely. I have it
working again now by trial and error.



I know nothing about bluetooth speakers but if pipewire is not a viable 
solution for you, you could try to install "libasound2-plugin-equal" and 
"alsamixergui" packages then makes changes to your ~/.asoundrc 
accordingly to what's explained in the README:


~$ less /usr/share/doc/libasound2-plugin-equal/README

then you can run the ALSA equalizer with the following command:

~$ alsamixergui -D equal

maybe other readers may have a better solution.

Cheers,

--
Franco Martelli



Re: Graphic Equalizer for Sound

2024-05-01 Thread Richmond
Franco Martelli  writes:

> On 01/05/24 at 14:33, Richmond wrote:
>> Is it possible to have a graphic equalizer for sound output? I am using
>> the Mate desktop. I installed EasyEffects from a flatpak and it appears
>> on the menu but does nothing. I don't know the command line. Probably
>> there is an error.
>> Debian 12.
>> 
>
> Usually graphical equalizer are built in into the audio player, which
> audio player are you using? Clementine ¹  has a powerful equalizer
> with sound effects but maybe you'll prefer Rhythmbox that has an
> equalizer provided apart. ²
>

I am using a web browser to play Youtube and Spotify.

I got into a real mess with this, as my bluetooth speakers stopped
working, "Bluetooth connect failed: br-connection-profile-unavailable"
and then when I removed pipewire I lost all sound completely. I have it
working again now by trial and error.



Re: Graphic Equalizer for Sound

2024-05-01 Thread Dan Ritter
Richmond wrote: 
> Dan Ritter  writes:
> 
> > Parametric EQs are not the same as graphic EQs, but they are
> > reasonably easy to understand and offer much more control.
> >
> > Suppose you want to boost all the bass below 50Hz. The
> > parametric type you want is a "shelf", the frequency is 50Hz,
> > the Q doesn't matter (because it's a shelf) and the volume
> > change is whatever you want -- +3dB is a safe number to produce
> > an audible effect without being overwhelming.
> >
> 
> What I want to do is make it easier to hear the lower voices in choral
> music, or even better, hear only the lower voices, i.e. eliminate the
> upper voices. Perhaps a 'shelf' would do that, but I cannot find
> anything called 'shelf' in the user interface. I am bewildered.

Human voices tend to be 80-8000Hz

On the left hand side top, there's a Presets drop-down. Create a
new Output preset by typing in a name and tapping the + button.

At the bottom center, click on Effects.

On the left, you will have a list of effects. Select Equalizer.

Let's put in a broad bell that will cover bass and low treble
voices: tap the first gear icon on top of a slider. By default,
all these bands are configurable and set to no change, so we're
going to co-opt the first one.

The controls you now see should be Type, Mode and Slope. Set
Type to Bell, ignore Mode and Slope for now.

Underneath are Frequency and Quality, with a display in between
telling you the width of that combination. Let's select a center
frequency of 200Hz, with a Q of 1.25. The width should say about
160Hz, which will affect 40 to 360Hz (200 +/- 160). Click the
gear icon again, and then adjust the slider up about 6 dB.

Play some choral music. Better? Worse? Play with the settings
until you get what you want. Then go back to Presets and use +
to save the current settings under the name you chose.

-dsr-



Re: Graphic Equalizer for Sound

2024-05-01 Thread Franco Martelli

On 01/05/24 at 14:33, Richmond wrote:

Is it possible to have a graphic equalizer for sound output? I am using
the Mate desktop. I installed EasyEffects from a flatpak and it appears
on the menu but does nothing. I don't know the command line. Probably
there is an error.

Debian 12.



Usually graphical equalizer are built in into the audio player, which 
audio player are you using? Clementine ¹  has a powerful equalizer with 
sound effects but maybe you'll prefer Rhythmbox that has an equalizer 
provided apart. ²


Cheers,

¹ https://packages.debian.org/bookworm/clementine
² https://wiki.gnome.org/Apps/Rhythmbox/Plugins/ThirdParty
--
Franco Martelli



Re: Graphic Equalizer for Sound

2024-05-01 Thread Richmond
Curt  writes:

> Why install from flatpak when there is a native Debian package?
>

To cut a long story short: user error. :(

So I have it working now...



Re: Graphic Equalizer for Sound

2024-05-01 Thread Richmond
Dan Ritter  writes:

> Parametric EQs are not the same as graphic EQs, but they are
> reasonably easy to understand and offer much more control.
>
> Suppose you want to boost all the bass below 50Hz. The
> parametric type you want is a "shelf", the frequency is 50Hz,
> the Q doesn't matter (because it's a shelf) and the volume
> change is whatever you want -- +3dB is a safe number to produce
> an audible effect without being overwhelming.
>

What I want to do is make it easier to hear the lower voices in choral
music, or even better, hear only the lower voices, i.e. eliminate the
upper voices. Perhaps a 'shelf' would do that, but I cannot find
anything called 'shelf' in the user interface. I am bewildered.



Re: Graphic Equalizer for Sound

2024-05-01 Thread Dan Ritter
Richmond wrote: 
> Is it possible to have a graphic equalizer for sound output? I am using
> the Mate desktop. I installed EasyEffects from a flatpak and it appears
> on the menu but does nothing. I don't know the command line. Probably
> there is an error.

I don't know anything about why a flatpak would work or not.

You can apt install easyeffects ; it requires PipeWire. Running
it should produce a window full of available effects for both
input and output including a parametric equalizer.

Parametric EQs are not the same as graphic EQs, but they are
reasonably easy to understand and offer much more control.

Suppose you want to boost all the bass below 50Hz. The
parametric type you want is a "shelf", the frequency is 50Hz,
the Q doesn't matter (because it's a shelf) and the volume
change is whatever you want -- +3dB is a safe number to produce
an audible effect without being overwhelming.

If you have a room with one length being 4m, it might have a
resonance at 86Hz. To dial that down, you would select a bell
shaped parameter, centered at 86Hz, and play with the Q until
the range is 83-89Hz. Then reduce it by 3 or 6 dB and listen.

Does that help?

-dsr-



Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-01 Thread Franco Martelli

Hi Alexandre,

On 30/04/24 at 14:07, Alexandre Rossi wrote:

Hi,


Basically I've the same issue described here:
https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers

The speaker-test program is provided by the alsa-utils package. I'm using
Debian 12 Bookworm, I've no ~/.asoundrc file. My /proc/asound/cards returns:

~$ cat /proc/asound/cards
  0 [SB ]: HDA-Intel - HDA ATI SB
   HDA ATI SB at 0xfe40 irq 16
  1 [NVidia ]: HDA-Intel - HDA NVidia
   HDA NVidia at 0xfe08 irq 57

I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3
jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).


I assume your cabling is right and your SB soundcard has surround out
(3 jacks as you describe it, and not mic and line out for instance). The labels
on the jacks would confirm that, so would the user manual of your motherboard or
sound card.


The MoBo is an old ASUSTeK Computer Inc. M5A99X EVO (R1.0) and it has 
three jacks of different colors to connect to the Logitech Z906 case, 
there aren't labels, only colored jacks: Orange, Black and Lime there is 
also a Gray jack for "Side speakers" so the hardware support up to 
Surround 7.1 in addition it also have an optical S/PDIF out port unused.

The audio device is:

~# lspci -nnv -s 00:14.2
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] 
SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
Subsystem: ASUSTeK Computer Inc. SBx00 Azalia (Intel HDA) 
[1043:84fb]
Flags: bus master, slow devsel, latency 32, IRQ 16, NUMA node 
0, IOMMU group 10

Memory at fe40 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel





The issue is that speaker-test doesn't play sound to the correct speaker. If
I run:

~$ speaker-test -Dplug:surround51 -c6 -s3 -f75

The sound comes from (Center), (Front right), (Rear left) and (Rear right)
speakers instead (Front right) only.


What's bothering me is that you get sound from multiple speakers while
instructing out on only one.

The usual issues of these setups with surround analog out are:
- channel mapping issues (driver/hardware mismatch)
- software downmixing to stereo

There are other usual issues with surrount digital out but this is not
your setup.

You can have a look at [1] for software fixes on this.

[1] https://alsa.opensrc.org/SurroundSound


The link you posted it shows rather outdated fixes, it talked about 
Jackd daemon and surround, but I have pulseaudio daemon, maybe I've 
pulseaudio daemon misconfiguration, I tried what suggested here:


https://askubuntu.com/a/1304054

but unluckily  it doesn't work, this is what's enabled in 
/etc/pulse/daemon.conf:


~$ grep -v "^#\|^;\|^[[:space:]]*$" /etc/pulse/daemon.conf
remixing-produce-lfe = yes
remixing-consume-lfe = yes
lfe-crossover-freq = 80

and this is what's in the log after a reboot:

~# journalctl -b | grep pulseaudio
mag 01 14:57:28 itek systemd[1254]: Listening on pulseaudio.socket - 
Sound System.
mag 01 14:57:28 itek systemd[1254]: Starting pulseaudio.service - Sound 
Service...
mag 01 14:57:32 itek systemd[1254]: Started pulseaudio.service - Sound 
Service.
mag 01 14:57:48 itek pulseaudio[1273]: Hole in stream, cannot fast 
forward LFE filter
mag 01 14:57:48 itek pulseaudio[1273]: Hole in stream, cannot fast 
forward LFE filter
mag 01 14:57:54 itek plasmashell[1390]: org.kde.plasma.pulseaudio: No 
object for name "alsa_output.pci-_00_14.2.analog-surround-51.monitor"


any clue? Thank you very much

--
Franco Martelli



Re: Graphic Equalizer for Sound

2024-05-01 Thread Curt
On 2024-05-01, Richmond  wrote:
> Is it possible to have a graphic equalizer for sound output? I am using
> the Mate desktop. I installed EasyEffects from a flatpak and it appears
> on the menu but does nothing. I don't know the command line. Probably
> there is an error.

Why install from flatpak when there is a native Debian package?

At any rate, the wiki informs me that you need to install pipewire to
get the easyeffects app to work. You don't mention pipewire, so maybe
your problem lies in not having this essential dependency installed.

I'm unfamiliar with flatplak, so I don't whether it would've installed
this dependency, as would've occurred had you simply relied on our
venerable deb system, which generally works like the proverbial charm.

https://packages.debian.org/bookworm/pipewire

(an audio and video processing engine multimedia server).



> Debian 12.
>
>


-- 




Graphic Equalizer for Sound

2024-05-01 Thread Richmond
Is it possible to have a graphic equalizer for sound output? I am using
the Mate desktop. I installed EasyEffects from a flatpak and it appears
on the menu but does nothing. I don't know the command line. Probably
there is an error.

Debian 12.



Re: speaker-test: no correct sound output on LFE and others speakers

2024-04-30 Thread Alexandre Rossi
Hi,

> Basically I've the same issue described here:
> https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers
> 
> The speaker-test program is provided by the alsa-utils package. I'm using
> Debian 12 Bookworm, I've no ~/.asoundrc file. My /proc/asound/cards returns:
> 
> ~$ cat /proc/asound/cards
>  0 [SB ]: HDA-Intel - HDA ATI SB
>   HDA ATI SB at 0xfe40 irq 16
>  1 [NVidia ]: HDA-Intel - HDA NVidia
>   HDA NVidia at 0xfe08 irq 57
> 
> I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3
> jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).

I assume your cabling is right and your SB soundcard has surround out
(3 jacks as you describe it, and not mic and line out for instance). The labels
on the jacks would confirm that, so would the user manual of your motherboard or
sound card.

> The issue is that speaker-test doesn't play sound to the correct speaker. If
> I run:
> 
> ~$ speaker-test -Dplug:surround51 -c6 -s3 -f75
> 
> The sound comes from (Center), (Front right), (Rear left) and (Rear right)
> speakers instead (Front right) only.

What's bothering me is that you get sound from multiple speakers while
instructing out on only one.

The usual issues of these setups with surround analog out are:
- channel mapping issues (driver/hardware mismatch)
- software downmixing to stereo

There are other usual issues with surrount digital out but this is not
your setup.

You can have a look at [1] for software fixes on this.

[1] https://alsa.opensrc.org/SurroundSound

Thanks,

Alex



speaker-test: no correct sound output on LFE and others speakers

2024-04-29 Thread Franco Martelli

Hi everyone,

Basically I've the same issue described here:
https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers

The speaker-test program is provided by the alsa-utils package. I'm 
using Debian 12 Bookworm, I've no ~/.asoundrc file. My 
/proc/asound/cards returns:


~$ cat /proc/asound/cards
 0 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xfe40 irq 16
 1 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0xfe08 irq 57

I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3 
jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).


Clementine ¹  audio player seems it works well, but I'm unsure that the 
sound go to the correct speaker.


The issue is that speaker-test doesn't play sound to the correct 
speaker. If I run:


~$ speaker-test -Dplug:surround51 -c6 -s3 -f75

speaker-test 1.2.8

Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 349504
Period size range from 32 to 174752
Using max buffer size 349504
Periods = 4
was set period_size = 174752
was set buffer_size = 349504
  - Front Right

The sound comes from (Center), (Front right), (Rear left) and (Rear 
right) speakers instead (Front right) only. If I run:


~$ speaker-test -Dplug:surround51 -c6 -s6 -f75

speaker-test 1.2.8

Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 349504
Period size range from 32 to 174752
Using max buffer size 349504
Periods = 4
was set period_size = 174752
was set buffer_size = 349504
  - LFE

I've no sound from the Subwoofer. Does anybody know how can I test the 
speakers of my 3D Dolby surround system? Please help.



¹ https://packages.debian.org/bookworm/clementine
--
Franco Martelli



Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-28 Thread Curt
On 2024-04-22, Charlie Gibbs  wrote:
>
> TL;DR: Copying an existing /home into a fresh Debian installation
> causes audio in Steam games to glitch - but all other sound is OK.

I have only the most vaporous ideas about Steam, but have you tried
backing up and then recreating (if such a thing is possible) your user profile
~/.steam or ~/.config/steam files?




Re: SOLVED: Re: Glitchy sound in Steam games after hard drive upgrade

2024-04-23 Thread eben

On 4/24/24 00:46, Charlie Gibbs wrote:

On 2024-04-22 16:50, Jeffrey Walton wrote:


What are the old and new hard drive model numbers and specs?


Correction: the 4TB drive is a Western Digital WD40EFPX.  I was reading
it by shining a flashlight through a gap in the frame and squinting from
a wide angle because I didn't want to take the box apart yet again.


Note for the future: hdparm -i can give you that info.  If you think that's
changed since boot, hdparm -I reads it from the drive.




SOLVED: Re: Glitchy sound in Steam games after hard drive upgrade

2024-04-23 Thread Charlie Gibbs

On 2024-04-22 16:50, Jeffrey Walton wrote:


What are the old and new hard drive model numbers and specs?


Correction: the 4TB drive is a Western Digital WD40EFPX.  I was reading
it by shining a flashlight through a gap in the frame and squinting from
a wide angle because I didn't want to take the box apart yet again.

I've trying several of the suggestions people have kindly posted here.
The /etc directory on the new drive was getting messed up badly enough
that I decided to try copying the 500GB drive's root partition to the
4TB drive using dd.  The machine hung partway through the subsequent
boot.  So I wiped the root partition and re-installed Debian from
scratch, leaving the /home partition intact.

But the real magic was the re-installation of the Steam launcher.
Since my Portal icons were on my desktop, and clicking them made it
run (sort of), I was fooled into thinking everything was still there.
But I found a detailed set of instructions for installing Steam at
https://wiki.debian.org/Steam and followed them.  This installed or
overlaid the missing or broken parts and presto! my sound is now clean.

Many thanks to everyone for your help.  This a good lesson to not take
too many things for granted, and also to be a bit more adventurous.
(A full Debian re-install really doesn't take that long...)

--
/~\  Charlie Gibbs  |  You can't save the earth
\ /|  unless you're willing to
 X   I'm really at ac.dekanfrus |  make other people sacrifice.
/ \  if you read it the right way.  |-- Dogbert the green consultant



Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-23 Thread Stefan Monnier
> I doubt the new drive is slower than the old drive:

Overall, agreed.  Tho AFAICT the new drive spins slower (5400rpm vs
7200rpm), so it has a slightly higher rotational latency.  This means
that in *some* cases it can be slower.
Now, I have no idea whether that's the cause of the glitches.


Stefan



Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-23 Thread David Christensen

On 4/23/24 09:02, debian-u...@howorth.org.uk wrote:

Charlie Gibbs  wrote:

On 2024-04-22 16:50, Jeffrey Walton wrote:


What are the old and new hard drive model numbers and specs?


The old drive is a Western Digital WD5000YS (500GB SATA).
The new drive is a Western Digital Red, WF40EFPX (4TB SATA).


According to my searches, there's no such disk as a WF40EFPX. Are you
sure that's what it is? If by any chance it is a WD40EFRX then that is
certainly slower than your old drive, so may cause some problems as
suggested.



I doubt the new drive is slower than the old drive:

- https://www.harddrivebenchmark.net/hdd.php?hdd=WDC%20WD5000YS

WDC WD5000YS  425

- https://www.harddrivebenchmark.net/hdd.php?hdd=WDC%20WD40EFRX

WDC WD40EFRX1,943


David




Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-23 Thread David Christensen

On 4/22/24 21:26, Charlie Gibbs wrote:

On 2024-04-22 16:50, Jeffrey Walton wrote:

What are the old and new hard drive model numbers and specs?


The old drive is a Western Digital WD5000YS (500GB SATA).



https://www.newegg.com/western-digital-re2-wd5000ys-500gb/p/N82E16822136032?Item=N82E16822136032



The new drive is a Western Digital Red, WF40EFPX (4TB SATA).



https://www.westerndigital.com/products/internal-drives/wd-red-plus-sata-3-5-hdd?sku=WD40EFPX


Both drives are spinning rust.  I'm upgrading for the increased 
capacity, i.e. to store more MP3s and videos.


Many thanks to all who have replied.  When my schedule permits me to 
continue experimenting, I'm going to try copying /etc from the old drive 
to the new one.   I've already learned how _not_ to do this:


Boot from the new drive
$ su root
# cd /
# mv etc etc.ori
# rsync -av /mnt/backup/etc .

The second line makes the system fall over and makes logins impossible. 
It took a boot from the rescue CD to undo the damage, which fortunately 
was easy since the deadly step at least succeeded in backing up /etc.


Next time I'll do it while booted from the old drive.



Copying an entire /etc directory from one machine to another requires a 
highly controlled environment and lot of engineering.  I have always 
migrated /etc settings from one OS instance to another OS instance by 
hand, one service/ configuration file at a time.



Can you leave the 500 GB HDD operational and use the 4 TB HDD for data?


David



Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-23 Thread debian-user
Charlie Gibbs  wrote:
> On 2024-04-22 16:50, Jeffrey Walton wrote:
> 
> > What are the old and new hard drive model numbers and specs?  
> 
> The old drive is a Western Digital WD5000YS (500GB SATA).
> The new drive is a Western Digital Red, WF40EFPX (4TB SATA).

According to my searches, there's no such disk as a WF40EFPX. Are you
sure that's what it is? If by any chance it is a WD40EFRX then that is
certainly slower than your old drive, so may cause some problems as
suggested.



Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-22 Thread Charlie Gibbs

On 2024-04-22 16:50, Jeffrey Walton wrote:


What are the old and new hard drive model numbers and specs?


The old drive is a Western Digital WD5000YS (500GB SATA).
The new drive is a Western Digital Red, WF40EFPX (4TB SATA).

If the old hard drive was spinning rust, it is acceptable to replace it 
with a solid state drive. I did it several times in the past. But 
nowadays a new machine usually (always?) comes with a SSD, so you 
usually don't need to upgrade for performance reasons.


Both drives are spinning rust.  I'm upgrading for the increased 
capacity, i.e. to store more MP3s and videos.


Many thanks to all who have replied.  When my schedule permits me to 
continue experimenting, I'm going to try copying /etc from the old drive 
to the new one.   I've already learned how _not_ to do this:


Boot from the new drive
$ su root
# cd /
# mv etc etc.ori
# rsync -av /mnt/backup/etc .

The second line makes the system fall over and makes logins impossible. 
It took a boot from the rescue CD to undo the damage, which fortunately 
was easy since the deadly step at least succeeded in backing up /etc.


Next time I'll do it while booted from the old drive.

--
/~\  Charlie Gibbs  |  "Some of you may die,
\ /|  but it's a sacrifice
 X   I'm really at ac.dekanfrus |  I'm willing to make."
/ \  if you read it the right way.  |-- Lord Farquaad (Shrek)



Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-22 Thread Jeffrey Walton
On Mon, Apr 22, 2024 at 5:03 AM Charlie Gibbs  wrote:

> I should probably be posting this to the Steam forums, but
> most of the denizens there are Windows people so I might be
> better off letting you Debian gurus have a go at it first.
>
> TL;DR: Copying an existing /home into a fresh Debian installation
> causes audio in Steam games to glitch - but all other sound is OK.
>
> Full description:
>
> I have a machine in the living room that stores MP3s and videos
> and serves them to other machines on our network as well as playing
> them locally on our TV's big screen.  I also play a few Steam games
> (e.g. Portal) on it.  It's a 2007-vintage machine, but it has 8GB
> of RAM and enough CPU power to do the job, and runs the latest
> version of Bookworm.
>
> Recently I decided to upgrade its storage capacity, and replaced
> its 500GB hard drive (which was pretty large at the time I bought
> it) with a 4TB drive.  I did an install from scratch using a
> network install CD, then copied my /home partition (using rsync)
> from the old drive.  Everything works great with one exception:
> when I fire up Portal the sound gets glitches about once a second.
> This only happens with Steam games; I can play MP3s and videos
> with mpv and the sound is perfect, as it is when watching YouTube
> videos.  If I swap the old drive back in everything is fine.
>
> Obviously my Steam programs and configuration files are in my
> home directory, since the updated system comes up icons and all
> without re-installing Steam, and can find everything it needs to
> run the games.  But perhaps there are a few files somewhere else
> (/usr?) containing information critical to audio for Steam.
>
> Any ideas?
>

What are the old and new hard drive model numbers and specs?

If the old hard drive was spinning rust, it is acceptable to replace it
with a solid state drive. I did it several times in the past. But nowadays
a new machine usually (always?) comes with a SSD, so you usually don't need
to upgrade for performance reasons.


Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-22 Thread Stefan Monnier
> Recently I decided to upgrade its storage capacity, and replaced
> its 500GB hard drive (which was pretty large at the time I bought
> it) with a 4TB drive.  I did an install from scratch using a
> network install CD, then copied my /home partition (using rsync)
> from the old drive.
[...]
> (Side question: is this an acceptable way to upgrade a hard drive?)

It's acceptable enough that we'll keep talking to you.  

Personally, assuming the 500GB drive was basically full, I suspect I'd
have just done a `dd` copy of the 500GB drive to the new drive, followed
by a quick `gparted` run to resize on-the-fly the partitions (in order
to get access to the extra 3.5GB).

> Everything works great with one exception:
> when I fire up Portal the sound gets glitches about once a second.
> This only happens with Steam games; I can play MP3s and videos
> with mpv and the sound is perfect, as it is when watching YouTube
> videos.  If I swap the old drive back in everything is fine.

I suspect the difference is that the Steam games keep your machine very
busy whereas playing a video isn't nearly as demanding, so the machine
ends up too busy to refill the sound buffer before its empty.

As for why this happens with the new disk and not with the old
disk, ...
AFAICT it can be either due to the new install such as a difference in
the configuration and/or installed software (e.g. one using pulseaudio
and the other pipewire), or due to the new hardware, presumably because
some operations are slower.

Can you boot with both disks connected?  If so, can you try to boot off
of the 500GB and then use the /home from the 4TB drive (and vice versa)?
I think you should be able to do that by booting to "rescue" where
(after entering the root password) you'd do something like

umount /home
mount /dev/the/other/home/partition /home
exit

I'd tend to think that a modern 4TB drive should be no slower than
a 500GB drive, no matter the operation, but maybe the new drive has
a particularly small cache, or maybe it's shingled and the Steam game
makes a fair amount of writes to the disk which ends up affecting the
reads needed to fetch the next chunk of sound?


Stefan



Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-22 Thread David Christensen

On 4/21/24 22:33, Charlie Gibbs wrote:

I should probably be posting this to the Steam forums, but
most of the denizens there are Windows people so I might be
better off letting you Debian gurus have a go at it first.

TL;DR: Copying an existing /home into a fresh Debian installation
causes audio in Steam games to glitch - but all other sound is OK.

Full description:

I have a machine in the living room that stores MP3s and videos
and serves them to other machines on our network as well as playing
them locally on our TV's big screen.  I also play a few Steam games
(e.g. Portal) on it.  It's a 2007-vintage machine, but it has 8GB
of RAM and enough CPU power to do the job, and runs the latest
version of Bookworm.

Recently I decided to upgrade its storage capacity, and replaced
its 500GB hard drive (which was pretty large at the time I bought
it) with a 4TB drive.  I did an install from scratch using a
network install CD, then copied my /home partition (using rsync)
from the old drive.  Everything works great with one exception:
when I fire up Portal the sound gets glitches about once a second.
This only happens with Steam games; I can play MP3s and videos
with mpv and the sound is perfect, as it is when watching YouTube
videos.  If I swap the old drive back in everything is fine.

Obviously my Steam programs and configuration files are in my
home directory, since the updated system comes up icons and all
without re-installing Steam, and can find everything it needs to
run the games.  But perhaps there are a few files somewhere else
(/usr?) containing information critical to audio for Steam.

Any ideas?

(Side question: is this an acceptable way to upgrade a hard drive?)



Copying a home directory from one OS instance to another OS instance 
sounds risky, especially as I run various OS's.  I have several 
instances of Debian 11, and would not consider them to be identical 
enough to try it.  I only touch the content I create or have learned how 
to manage.



I put my OS on a small SSD and the vast majority of my data on HDD RAID 
in a file server.



As I am the only user on my Debian daily driver, I leave the /home 
directory on the root file system and keep as little as possible in it.



I mount the file server shares under /mnt, and create symlinks in my 
home directory that point into the mounted file system.



I use CVS for project working directories.  To migrate to a new home 
directory, I check in the projects in the old home and check out the 
project in the new home.



I use Firefox and its sync feature.  To migrate to a new home, I start 
Firefox, log in, wait for my settings to sync, and then check all of the 
settings by hand.



I use Thunderbird.  To migrate to a new home, I create a tarball of my 
Thunderbird profile directory on the old machine, expand the tarball on 
the new machine, and configure Thunderbird to use that profile.



I do not attempt to migrate any of the various home directory 
configuration directories; I let the installer and/or package manager 
create them, and let the desktop, apps, etc., manage them.



David



Re: Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-22 Thread Michel Verdier
On 2024-04-21, Charlie Gibbs wrote:

> Obviously my Steam programs and configuration files are in my
> home directory, since the updated system comes up icons and all
> without re-installing Steam, and can find everything it needs to
> run the games.  But perhaps there are a few files somewhere else
> (/usr?) containing information critical to audio for Steam.

Do you sync /etc ? Configuration is mainly there.

> (Side question: is this an acceptable way to upgrade a hard drive?)

There is other ways but yes if you also sync /etc :)



Subject: Glitchy sound in Steam games after hard drive upgrade

2024-04-21 Thread Charlie Gibbs

I should probably be posting this to the Steam forums, but
most of the denizens there are Windows people so I might be
better off letting you Debian gurus have a go at it first.

TL;DR: Copying an existing /home into a fresh Debian installation
causes audio in Steam games to glitch - but all other sound is OK.

Full description:

I have a machine in the living room that stores MP3s and videos
and serves them to other machines on our network as well as playing
them locally on our TV's big screen.  I also play a few Steam games
(e.g. Portal) on it.  It's a 2007-vintage machine, but it has 8GB
of RAM and enough CPU power to do the job, and runs the latest
version of Bookworm.

Recently I decided to upgrade its storage capacity, and replaced
its 500GB hard drive (which was pretty large at the time I bought
it) with a 4TB drive.  I did an install from scratch using a
network install CD, then copied my /home partition (using rsync)
from the old drive.  Everything works great with one exception:
when I fire up Portal the sound gets glitches about once a second.
This only happens with Steam games; I can play MP3s and videos
with mpv and the sound is perfect, as it is when watching YouTube
videos.  If I swap the old drive back in everything is fine.

Obviously my Steam programs and configuration files are in my
home directory, since the updated system comes up icons and all
without re-installing Steam, and can find everything it needs to
run the games.  But perhaps there are a few files somewhere else
(/usr?) containing information critical to audio for Steam.

Any ideas?

(Side question: is this an acceptable way to upgrade a hard drive?)

--
/~\  Charlie Gibbs  |  Life is perverse.
\ /|  It can be beautiful -
 X   I'm really at ac.dekanfrus |  but it won't.
/ \  if you read it the right way.  |-- Lily Tomlin



Re: Bluetooth sound problems playing from a web browser

2024-04-08 Thread Richmond
Thanks, I tried it but it turns out to be a wifi/usb problem I think.

Jan Krapivin  writes:

> Have you tried a LIVE-version of another Linux distribution? It will
> be interesting to compare.
>
> вс, 7 апр. 2024 г. в 22:30, Richmond :
>
> Richmond  writes:
>
> > Richmond  writes:
> >
> >> When playing videos in a web browser, and sending the sound to
> a
> >> bluetooth speaker (amazon echo) I get playback problems;
> stuttering,
> >> sound quality reduction to AM radio level or lower). These
> things can
> >> clear up after a minute or two, or be reduced.
> >>
> >> When playing from nvlc however I get no such problems. (I
> haven't
> >> tried vlc so I am not sure if it is just that it is a command
> line).
> >>
> >> I have tried google-chrome and firefox-esr.
> >>
> >> Perhaps there is some other browser which will work? Maybe I
> need to
> >> isolate the process from the browser? I tried pop-out picture
> on you
>     >> tube and it improved but there was still stuttering.
> >
> > I installed Falkon and Konqueror. I tried Falkon and it worked
> fine, no
> > sound problems. But then I tried Google-chrome again and that
> was
> > working fine too, and so was Firefox-esr. The problems have
> gone away
> > and even rebooting doesn't bring them back. Maybe one of those
> browsers
> > brought a better library with it.
>
> These problems have come back again. I have tried rebooting. I
> tried
> sending the same audio from an android phone and it works fine.
> How do I
> find out what the problems is? I cannot see errors in journalctl
>



Re: Bluetooth sound problems playing from a web browser

2024-04-08 Thread Richmond
Lee  writes:

> On Sun, Apr 7, 2024 at 3:30 PM Richmond wrote:
>>
>> Richmond writes:
>>
>> > Richmond writes:
>> >
>> >> When playing videos in a web browser, and sending the sound to a
>> >> bluetooth speaker (amazon echo) I get playback problems;
>> >> stuttering, sound quality reduction to AM radio level or
>> >> lower). These things can clear up after a minute or two, or be
>> >> reduced.
>> >>
>> >> When playing from nvlc however I get no such problems. (I haven't
>> >> tried vlc so I am not sure if it is just that it is a command
>> >> line).
>> >>
>> >> I have tried google-chrome and firefox-esr.
>> >>
>> >> Perhaps there is some other browser which will work? Maybe I need
>> >> to isolate the process from the browser? I tried pop-out picture
>> >> on you tube and it improved but there was still stuttering.
>> >
>> > I installed Falkon and Konqueror. I tried Falkon and it worked
>> > fine, no sound problems. But then I tried Google-chrome again and
>> > that was working fine too, and so was Firefox-esr. The problems
>> > have gone away and even rebooting doesn't bring them back. Maybe
>> > one of those browsers brought a better library with it.
>>
>> These problems have come back again.
>
> So unless you've updated or installed new hardware or software it's
> probably not a firmware/software issue.
>
>> I have tried rebooting. I tried sending the same audio from an
>> android phone and it works fine. How do I find out what the problems
>> is? I cannot see errors in journalctl
>
> It's possible that wifi or usb 3.0 could be interfering with your
> bluetooth speakers - eg
> https://www.zdnet.com/article/usb-3-and-usb-c-devices-can-cause-problems-with-wi-fi-and-bluetooth-connections-but-theres-a-solution/

Thanks, I think this is the answer! I was having no problems today but
noticed that the PC was connected to 5Ghz. Sometimes it connects at
2.4Ghz. When I disabled 5Ghz and forced the PC to use 2.4Ghz the problem
came back. So now all I need to do is seperate those services and/or tie
the PC to 5Ghz.

The PC is a laptop but I never move it from the desktop. I am using a
USB mouse and USB keyboard adapter to an old IBM keyboard.

> https://sortatechy.com/spot-and-fix-bluetooth-interference-with-wifi/
>
> If your PC is using wireless and can use a 5Ghz channel, try moving
> your PC wireless to a 5Ghz channel first.  If you PC only supports
> 2.4Gh wireless you can install linssid
> https://packages.debian.org/bookworm/linssid and pick a relatively
> unused channel for your PC wireless.  Or just try channels 1, 6 and 11
> and see if any of those makes a difference..
>
> If you're using a USB 3.0 device on your PC try turning it off or
> moving it to a USB 2.0 port and see if that fixes the bluetooth
> interference.
>
> Regards, Lee



Re: Bluetooth sound problems playing from a web browser

2024-04-07 Thread Lee
On Sun, Apr 7, 2024 at 3:30 PM Richmond wrote:
>
> Richmond writes:
>
> > Richmond writes:
> >
> >> When playing videos in a web browser, and sending the sound to a
> >> bluetooth speaker (amazon echo) I get playback problems; stuttering,
> >> sound quality reduction to AM radio level or lower). These things can
> >> clear up after a minute or two, or be reduced.
> >>
> >> When playing from nvlc however I get no such problems. (I haven't
> >> tried vlc so I am not sure if it is just that it is a command line).
> >>
> >> I have tried google-chrome and firefox-esr.
> >>
> >> Perhaps there is some other browser which will work? Maybe I need to
> >> isolate the process from the browser? I tried pop-out picture on you
> >> tube and it improved but there was still stuttering.
> >
> > I installed Falkon and Konqueror. I tried Falkon and it worked fine, no
> > sound problems. But then I tried Google-chrome again and that was
> > working fine too, and so was Firefox-esr. The problems have gone away
> > and even rebooting doesn't bring them back. Maybe one of those browsers
> > brought a better library with it.
>
> These problems have come back again.

So unless you've updated or installed new hardware or software it's
probably not a firmware/software issue.

> I have tried rebooting. I tried
> sending the same audio from an android phone and it works fine. How do I
> find out what the problems is? I cannot see errors in journalctl

It's possible that wifi or usb 3.0 could be interfering with your
bluetooth speakers - eg
https://www.zdnet.com/article/usb-3-and-usb-c-devices-can-cause-problems-with-wi-fi-and-bluetooth-connections-but-theres-a-solution/
https://sortatechy.com/spot-and-fix-bluetooth-interference-with-wifi/

If your PC is using wireless and can use a 5Ghz channel, try moving
your PC wireless to a 5Ghz channel first.
If you PC only supports 2.4Gh wireless you can install linssid
  https://packages.debian.org/bookworm/linssid
and pick a relatively unused channel for your PC wireless.  Or just
try channels 1, 6 and 11 and see if any of those makes a difference..

If you're using a USB 3.0 device on your PC try turning it off or
moving it to a USB 2.0 port and see if that fixes the bluetooth
interference.

Regards,
Lee



Re: Bluetooth sound problems playing from a web browser

2024-04-07 Thread Jan Krapivin
Have you tried a LIVE-version of another Linux distribution? It will be
interesting to compare.

вс, 7 апр. 2024 г. в 22:30, Richmond :

> Richmond  writes:
>
> > Richmond  writes:
> >
> >> When playing videos in a web browser, and sending the sound to a
> >> bluetooth speaker (amazon echo) I get playback problems; stuttering,
> >> sound quality reduction to AM radio level or lower). These things can
> >> clear up after a minute or two, or be reduced.
> >>
> >> When playing from nvlc however I get no such problems. (I haven't
> >> tried vlc so I am not sure if it is just that it is a command line).
> >>
> >> I have tried google-chrome and firefox-esr.
> >>
> >> Perhaps there is some other browser which will work? Maybe I need to
> >> isolate the process from the browser? I tried pop-out picture on you
> >> tube and it improved but there was still stuttering.
> >
> > I installed Falkon and Konqueror. I tried Falkon and it worked fine, no
> > sound problems. But then I tried Google-chrome again and that was
> > working fine too, and so was Firefox-esr. The problems have gone away
> > and even rebooting doesn't bring them back. Maybe one of those browsers
> > brought a better library with it.
>
> These problems have come back again. I have tried rebooting. I tried
> sending the same audio from an android phone and it works fine. How do I
> find out what the problems is? I cannot see errors in journalctl
>
>


Re: Bluetooth sound problems playing from a web browser

2024-04-07 Thread Richmond
Richmond  writes:

> Richmond  writes:
>
>> When playing videos in a web browser, and sending the sound to a
>> bluetooth speaker (amazon echo) I get playback problems; stuttering,
>> sound quality reduction to AM radio level or lower). These things can
>> clear up after a minute or two, or be reduced.
>>
>> When playing from nvlc however I get no such problems. (I haven't
>> tried vlc so I am not sure if it is just that it is a command line).
>>
>> I have tried google-chrome and firefox-esr.
>>
>> Perhaps there is some other browser which will work? Maybe I need to
>> isolate the process from the browser? I tried pop-out picture on you
>> tube and it improved but there was still stuttering.
>
> I installed Falkon and Konqueror. I tried Falkon and it worked fine, no
> sound problems. But then I tried Google-chrome again and that was
> working fine too, and so was Firefox-esr. The problems have gone away
> and even rebooting doesn't bring them back. Maybe one of those browsers
> brought a better library with it.

These problems have come back again. I have tried rebooting. I tried
sending the same audio from an android phone and it works fine. How do I
find out what the problems is? I cannot see errors in journalctl



Re: Bluetooth sound problems playing from a web browser

2024-03-30 Thread Richmond
Richmond  writes:

> When playing videos in a web browser, and sending the sound to a
> bluetooth speaker (amazon echo) I get playback problems; stuttering,
> sound quality reduction to AM radio level or lower). These things can
> clear up after a minute or two, or be reduced.
>
> When playing from nvlc however I get no such problems. (I haven't
> tried vlc so I am not sure if it is just that it is a command line).
>
> I have tried google-chrome and firefox-esr.
>
> Perhaps there is some other browser which will work? Maybe I need to
> isolate the process from the browser? I tried pop-out picture on you
> tube and it improved but there was still stuttering.

I installed Falkon and Konqueror. I tried Falkon and it worked fine, no
sound problems. But then I tried Google-chrome again and that was
working fine too, and so was Firefox-esr. The problems have gone away
and even rebooting doesn't bring them back. Maybe one of those browsers
brought a better library with it.



Bluetooth sound problems playing from a web browser

2024-03-30 Thread Richmond
When playing videos in a web browser, and sending the sound to a
bluetooth speaker (amazon echo) I get playback problems; stuttering,
sound quality reduction to AM radio level or lower). These things can
clear up after a minute or two, or be reduced.

When playing from nvlc however I get no such problems. (I haven't tried
vlc so I am not sure if it is just that it is a command line).

I have tried google-chrome and firefox-esr.

Perhaps there is some other browser which will work? Maybe I need to
isolate the process from the browser? I tried pop-out picture on you
tube and it improved but there was still stuttering.



Re: Bluetooth sound problems Debian 12 GNOME

2024-03-18 Thread Charles Curley
On Mon, 18 Mar 2024 13:32:18 +0300
Jan Krapivin  wrote:

> Small problem is that LTS Kernel 6.1 doesn’t support this device, so
> I have used Liquorix kernel, which I have installed earlier. Though,
> I don’t need this kernel, as it haven’t helped me with sound
> interrupts, which was my hope at first.

I'm glad you reached a solution. You might also check the backports
kernel, which is currently linux-image-6.6.13+bpo-amd64
6.6.13-1~bpo12+1.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Bluetooth sound problems Debian 12 GNOME

2024-03-18 Thread Jan Krapivin
Good news. Looks like I have solved the problem. As a last resort I have
bought another one wi-fi receiver, third one. It has *Realtek RTL8763BW*
chip
<https://www.realtek.com/en/products/communications-network-ics/item/rtl8763b>
and *two antennas*. And finally all works fine. I have spent some hours,
using Bluetooth headphones, waiting for problems, but they hadn’t occur.
Small problem is that LTS Kernel 6.1 doesn’t support this device, so I have
used Liquorix kernel, which I have installed earlier. Though, I don’t need
this kernel, as it haven’t helped me with sound interrupts, which was my
hope at first. So… I bought more old Wi-fi receiver with *Realtek
RTL8761BUV* chip with antenna and it also works fine, and also works with
stable 6.1 kernel.

I am glad that situation found its resolution, though it is strange for me
that USB-dongle Bluetooth receiver (I don’t know the exact model) and
receiver on an internal wi-fi adapter (AX 210) have worked so poorly both.
Though I was in the distance not more than 2 meters from receiver.

Thanks for help

пт, 15 мар. 2024 г. в 05:21, Max Nikulin :

> On 14/03/2024 19:06, Jan Krapivin wrote:
> >
> > What do you think about QUANT parameter in */pw-top/*? Can it influence
> > sound quality? I wasn't able to change it with
> >
> > pw-metadata -n settings 0 clock.force-quantum 2048
>
> Sorry, my experience with tuning PipeWire is limited to switching audio
> profiles (A2DP codecs, HSF) from UI.
>
> I think in you case it would be more productive to enable debug logs
> either in bluetoothd or PipeWire to find either the host or the device
> drops or lost connections causing pauses till reconnect.
>
>
>


Re: Bluetooth sound problems Debian 12 GNOME

2024-03-14 Thread Max Nikulin

On 14/03/2024 19:06, Jan Krapivin wrote:


What do you think about QUANT parameter in */pw-top/*? Can it influence 
sound quality? I wasn't able to change it with


pw-metadata -n settings 0 clock.force-quantum 2048


Sorry, my experience with tuning PipeWire is limited to switching audio 
profiles (A2DP codecs, HSF) from UI.


I think in you case it would be more productive to enable debug logs 
either in bluetoothd or PipeWire to find either the host or the device 
drops or lost connections causing pauses till reconnect.





Re: Bluetooth sound problems Debian 12 GNOME

2024-03-14 Thread Jan Krapivin
> You may try to discriminate hardware/software issues when you comparing
> different laptops by booting various live images (GNOME, xfce, etc.).
>

 I will try... Thank you.

What do you think about QUANT parameter in *pw-top*? Can it influence sound
quality? I wasn't able to change it with

*pw-metadata -n settings 0 clock.force-quantum 2048*


Re: Bluetooth sound problems Debian 12 GNOME

2024-03-13 Thread Max Nikulin

On 13/03/2024 17:43, Jan Krapivin wrote:
While watching */pactl subscribe /*command output, i have noticed that 
there was a change from sink 414 to sink 213 when sound interrupt occurred


"Event 'change' on sink-input #414

Can this information be of any help?


It is expected due to


Mar 11 23:14:11 deb /usr/libexec/gdm-x-session[1449]: (II) event25 - Haylou W1 
(AVRCP): device removed
Mar 11 23:14:11 deb pipewire-pulse[1359]: mod.protocol-pulse: client 
0x58b39dbbea40 [GNOME Settings]: ERROR command:-1 (invalid) tag:358 error:25 
(Input/output error)
Mar 11 23:14:11 deb /usr/libexec/gdm-x-session[1449]: (II) config/udev: 
removing device Haylou W1 (AVRCP)


journalctl running with root privileges may provide more details.

You may try to discriminate hardware/software issues when you comparing 
different laptops by booting various live images (GNOME, xfce, etc.). I 
admit that it is inconvenient since it may require at least a half of an 
hour to test each variant and regular working environment is unavailable.




Re: Bluetooth sound problems Debian 12 GNOME

2024-03-13 Thread Jan Krapivin
> Run the command as root, but you already have enough keywords to search
> in bug reports and discussions related to PipeWire and pulseaudio. The
> latter may have some workarounds for specific models of headphones.


Thanks, i will try to research this topic.


> PipeWire mailing list or forum may be a better place to discuss the issue.
>

OK

While watching *pactl subscribe *command output, i have noticed that there
was a change from sink 414 to sink 213 when sound interrupt occurred

"Event 'change' on sink-input #414
Event 'change' on sink-input #414
Event 'change' on sink-input #414
Event 'change' on sink-input #213
Event 'change' on sink-input #213
Event 'change' on sink-input #213"

Can this information be of any help?


Re: Bluetooth sound problems Debian 12 GNOME

2024-03-12 Thread Max Nikulin

On 12/03/2024 03:48, Jan Krapivin wrote:


"Mar 11 22:20:13 deb wireplumber[1357]: RFCOMM receive command but modem 
not available: AT+XIAOMI=1,1,102,85,88,27,174"


Just a wild guess, unlikely it is true. Headphones might report battery 
charge level using a vendor protocol extension. 85 and 88 are decreasing 
in later messages.


Sound stream may be interrupted when headphones decide to balance 
battery discharge by switching device that communicates with laptop.


Perhaps messages related to input devices are different because it is 
Wayland session while I use KDE with X11 session, so in my case 
messages are "Watching system buttons" instead of "KEYBOARD...".


You may use --since and --until journalctl options to get system logs 
for the same time intervals you posted.





Re: Bluetooth sound problems Debian 12 GNOME

2024-03-12 Thread Max Nikulin

On 12/03/2024 03:48, Jan Krapivin wrote:


As for journald i have a lot of such errors, but they don't influence 
the audio quality:


"Mar 11 22:20:13 deb wireplumber[1357]: RFCOMM receive command but modem 
not available: AT+XIAOMI=1,1,102,85,88,27,174"


Headphones might expect some response to some of these command and might 
drop connection otherwise.



journalctl -f
Hint: You are currently not seeing messages from other users and the system.
  Users in groups 'adm', 'systemd-journal' can see all messages.


Run the command as root, but you already have enough keywords to search 
in bug reports and discussions related to PipeWire and pulseaudio. The 
latter may have some workarounds for specific models of headphones.



Mar 11 23:14:11 deb gsd-media-keys[1744]: Unable to get default sink
Mar 11 23:14:11 deb /usr/libexec/gdm-x-session[1449]: (II) event25 - Haylou W1 
(AVRCP): device removed
Mar 11 23:14:11 deb gsd-media-keys[1744]: Unable to get default sink
Mar 11 23:14:11 deb /usr/libexec/gdm-x-session[1449]: (II) event25 - Haylou W1 
(AVRCP): device removed
Mar 11 23:14:11 deb /usr/libexec/gdm-x-session[1449]: (**) Option "fd" "78"
Mar 11 23:14:11 deb /usr/libexec/gdm-x-session[1449]: (II) UnloadModule: 
"libinput"
Mar 11 23:14:11 deb /usr/libexec/gdm-x-session[1449]: (II) systemd-logind: 
releasing fd for 13:89
Mar 11 23:14:11 deb /usr/libexec/gdm-x-session[1449]: (EE) systemd-logind: 
failed to release device: Device not taken
Mar 11 23:14:12 deb wireplumber[1357]: set volume 74 failed for transport 
/org/bluez/hci0/dev_9C_19_C2_1B_A7_25/sep4/fd1 (No such property 'Volume')
Mar 11 23:14:14 deb /usr/libexec/gdm-x-session[1449]: (II) config/udev: Adding 
input device Haylou W1 (AVRCP) (/dev/input/event25)
Mar 11 23:14:14 deb /usr/libexec/gdm-x-session[1449]: (**) Haylou W1 (AVRCP): Applying 
InputClass "libinput keyboard catchall"
Mar 11 23:14:14 deb /usr/libexec/gdm-x-session[1449]: (II) Using input driver 
'libinput' for 'Haylou W1 (AVRCP)'


So device disappears for some reason. Perhaps driver receives something 
unexpected, perhaps headphone do not receive something they expect.



Mar 11 23:24:28 deb /usr/libexec/gdm-x-session[1449]: (II) XINPUT: Adding extended input 
device "Haylou W1 (AVRCP)" (type: KEYBOARD, id 20)


Check if similar lines are logged on Mint. KEYBOARD looks a bit strange, 
but perhaps it is normal for GNOME.


PipeWire mailing list or forum may be a better place to discuss the issue.





Re: Bluetooth sound problems Debian 12 GNOME

2024-03-12 Thread Jan Krapivin
It is strange. I can see in a Debian mailing list an answer

- *From*: Ottavio Caruso 
- *Date*: Mon, 11 Mar 2024 16:50:45 +

"Not sure if this is your case, I had the same problem but I upgraded from
11 to 12. The transition from pulse to pipewire was not smooth. So I nuked
anything *pulse* and *bluetooth* and reinstalled from scratch using the
Debian guide:

https://wiki.debian.org/PipeWire

Is this a brand new installation or an upgrade?"

But i can't see it in my mailbox


*ANSWER*


No, this is a clean new installation. And it looks like i have the
same problem on another laptop with Debian 12 XFCE (Pulseaudio).

But the problem is with *TWO* headsets, so i am in question whats
happening with Debian, because Linux Mint and Android works fine...





пн, 11 мар. 2024 г. в 23:48, Jan Krapivin :

> Hello again. I have used *pactl subscribe *command and i think that in
> the moment of sound interrupt there are the corresponding lines:
>
> "Event 'remove' on sink-input #353
> Event 'new' on sink-input #358
> Event 'change' on sink-input #358"
>
> As for journald i have a lot of such errors, but they don't influence the
> audio quality:
>
> "Mar 11 22:20:13 deb wireplumber[1357]: RFCOMM receive command but modem
> not available: AT+XIAOMI=1,1,102,85,88,27,174"
>
> There are some other mentions of the bluetooth/headphones, but they don't
> meet the moment of sound issues. Full journald -f log is in an attachment.
>
> I must say that i had an opportunity today to test a laptop with Debian 12
> XFCE laptop with Pulseaudio and the problem is the same there. But, as i
> said, on a laptop with Linux Mint XFCE everything is fine. That's strange.
> What is the main difference between Linux Mint and Debian here..?
>
> I also tried Liquorix 6.7 kernel but it didn't help.
>
> Thanks.
>


Re: Bluetooth sound problems Debian 12 GNOME

2024-03-11 Thread Jan Krapivin
Hello again. I have used *pactl subscribe *command and i think that in the
moment of sound interrupt there are the corresponding lines:

"Event 'remove' on sink-input #353
Event 'new' on sink-input #358
Event 'change' on sink-input #358"

As for journald i have a lot of such errors, but they don't influence the
audio quality:

"Mar 11 22:20:13 deb wireplumber[1357]: RFCOMM receive command but modem
not available: AT+XIAOMI=1,1,102,85,88,27,174"

There are some other mentions of the bluetooth/headphones, but they don't
meet the moment of sound issues. Full journald -f log is in an attachment.

I must say that i had an opportunity today to test a laptop with Debian 12
XFCE laptop with Pulseaudio and the problem is the same there. But, as i
said, on a laptop with Linux Mint XFCE everything is fine. That's strange.
What is the main difference between Linux Mint and Debian here..?

I also tried Liquorix 6.7 kernel but it didn't help.

Thanks.
journalctl -f
Hint: You are currently not seeing messages from other users and the system.
  Users in groups 'adm', 'systemd-journal' can see all messages.
  Pass -q to turn off this notice.
Mar 11 21:28:16 deb wireplumber[1357]: RFCOMM receive command but modem not 
available: AT+BTRH?
Mar 11 21:28:16 deb wireplumber[1357]: RFCOMM receive command but modem not 
available: AT+XIAOMI=1,1,102,100,100,27,174
Mar 11 21:29:21 deb systemd[1331]: Started 
app-gnome-gnome\x2dterminal-6829.scope - Application launched by gsd-media-keys.
Mar 11 21:29:21 deb dbus-daemon[1367]: [session uid=1000 pid=1367] Activating 
via systemd: service name='org.gnome.Terminal' 
unit='gnome-terminal-server.service' requested by ':1.131' (uid=1000 pid=6829 
comm="gnome-terminal")
Mar 11 21:29:21 deb systemd[1331]: Starting gnome-terminal-server.service - 
GNOME Terminal Server...
Mar 11 21:29:22 deb dbus-daemon[1367]: [session uid=1000 pid=1367] Successfully 
activated service 'org.gnome.Terminal'
Mar 11 21:29:22 deb systemd[1331]: Started gnome-terminal-server.service - 
GNOME Terminal Server.
Mar 11 21:29:22 deb systemd[1331]: Started 
vte-spawn-82cf01f4-467e-44e1-b0e3-19af9cb02a2a.scope - VTE child process 6864 
launched by gnome-terminal-server process 6834.
Mar 11 21:30:27 deb systemd[1331]: Started 
app-gnome-gnome\x2dterminal-7042.scope - Application launched by gsd-media-keys.
Mar 11 21:30:27 deb systemd[1331]: Started 
vte-spawn-6e59a663-467e-40c5-9553-ad6b513aeecb.scope - VTE child process 7048 
launched by gnome-terminal-server process 6834.
Mar 11 21:33:03 deb gnome-shell[1624]: Wallpaper Slideshow: Changing 
wallpaper...
Mar 11 21:33:03 deb gnome-shell[1624]: Wallpaper Slideshow: Current wallpaper 
"a2.jpg"
Mar 11 21:33:03 deb gnome-shell[1624]: Wallpaper Slideshow: Wallpapers in 
queue: 8
Mar 11 21:33:03 deb gnome-shell[1624]: Wallpaper Slideshow: Next slide in 600 
seconds.
Mar 11 21:41:51 deb gnome-shell[1624]: JS ERROR: Gio.DBusError: 
GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such property 
“IconAccessibleDesc”
   
_promisify/proto[asyncFunc]/

Re: Bluetooth sound problems Debian 12 GNOME

2024-03-11 Thread Jan Krapivin
пн, 11 мар. 2024 г. в 07:50, Max Nikulin :

>
> Are there anything in journalctl output (executed as root) around these
> events?
>

I guess that no, but i will recheck.


> Is XFCE configured to use pulseaudio or PipeWire as GNOME?
>

Pulseaudio


> Another option might be LC3 codec from Bluetooth LE (5.2 Basic Audio
> Profile) if it is supported by the headphones.
>

Unfortunately it's not supported.


> Either a software/hardware bug or some piece of software disables power
> saving for handsfree/headset profiles to achieve low latency, but for
> A2DP device tries to sleep after some period of time.
>

 Hm, i will try to research that, thank you.

Arch Linux wiki pages have long troubleshooting sections.
>

Yes, I saw but found nothing relatable to my view.

Last resort might be dumping bluetooth traffic, but perhaps it is better
> to ask in some mailing list or forum more close to Bluetooth stack
> developers.
>

I have installed Wireshark, but somehow i can't find bluetooth connection
to capture
(https://forums.debian.net/viewtopic.php?p=795020#p795020)


Re: Bluetooth sound problems Debian 12 GNOME

2024-03-11 Thread Max Nikulin

Please, respond to the mailing list.

On 11/03/2024 11:50, Max Nikulin wrote:

https://wiki.debian.org/BluetoothUser/a2dp

Last resort might be dumping bluetooth traffic


The link above has an example

dumpcap -i bluetooth0

Another tool is

hcidump -w /tmp/bt.pcap

However at first I would check logs using journalctl. Maybe debug should 
be enabled for bluez and PipeWire.




Re: Bluetooth sound problems Debian 12 GNOME

2024-03-10 Thread Max Nikulin

On 10/03/2024 21:07, Jan Krapivin wrote:
Hello! I have a problem with sound quality when using bluetooth 
headphones on Debian 12 GNOME.


Every ~20 minutes, sometimes less, sometimes more, sound interrupts for 
a 1-5 seconds with complete silence.


Are there anything in journalctl output (executed as root) around these 
events?


At first I thought that problem can be in the headphones, though it have 
worked fine with Android phone and Linux Mint XFCE on a other laptop.


Is XFCE configured to use pulseaudio or PipeWire as GNOME?

So I bought another headphones with support of different codecs: SBC, 
AAC, and AptX.


Another option might be LC3 codec from Bluetooth LE (5.2 Basic Audio 
Profile) if it is supported by the headphones.


Though in mSBC there are no interruptions. I wonder why mSBC works fine 
and SBC no..?


Either a software/hardware bug or some piece of software disables power 
saving for handsfree/headset profiles to achieve low latency, but for 
A2DP device tries to sleep after some period of time. At least SBC 
allows to decrease bitrate if connection is unreliable. I have read 
somewhere that current drivers can not increase bitrate without 
reconnection. It is just speculations, do not take it too serious.


Arch Linux wiki pages have long troubleshooting sections. Debian ones 
are partially outdated:

https://wiki.debian.org/BluetoothUser
https://wiki.debian.org/BluetoothUser/a2dp

Last resort might be dumping bluetooth traffic, but perhaps it is better 
to ask in some mailing list or forum more close to Bluetooth stack 
developers.




Bluetooth sound problems Debian 12 GNOME

2024-03-10 Thread Jan Krapivin
Hello! I have a problem with sound quality when using bluetooth headphones
on Debian 12 GNOME.

Every ~20 minutes, sometimes less, sometimes more, sound interrupts for a
1-5 seconds with complete silence.

At first I thought that problem can be in the headphones, though it have
worked fine with Android phone and Linux Mint XFCE on a other laptop.

So I bought another headphones with support of different codecs: SBC, AAC,
and AptX.

And I have the same problem, but now I hear not only silence but also a
crackling, when sound interrupts.

I tried different codecs, including AAC (
https://forums.debian.net/viewtopic.php?p=777598#p777598). But the problem
prevails.

Yes, I must of course mention that there is absolutely no problems, when
using non-bluetooth devices like speakers, headphones etc.

The only workaround is to use HSP mSBC codec in Heandsfree mode, but the
sound is awful.

Though in mSBC there are no interruptions. I wonder why mSBC works fine and
SBC no..?


My system is (inxi)

Bluetooth:

Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8

bus-ID: 1-10:3 chip-ID: 8087:0032 class-ID: e001

Report: hciconfig ID: hci0 rfk-id: 0 state: up address: 

Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff

link-mode: peripheral accept service-classes: rendering, capturing, object

transfer, audio, telephony


Audio:

Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel

Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel

Device-3: Creative Sound Blaster Play! 3 type: USB

driver: hid-generic,snd-usb-audio,usbhid

API: ALSA v: k6.1.0-18-amd64 status: kernel-api

Server-1: PipeWire v: 0.3.65 status: active


What have i tried?

Creating choppy-under-load.conf file in
/home/ja/.config/pipewire/pipewire-pulse.conf.d/ with


“context.properties = {

default.clock.quantum = 8192

default.clock.min-quantum = 8192

}”


Creating switch-on-connect.conf file with


pulse.cmd = [

{ cmd = "load-module" args = "module-always-sink" flags = [ ] }

{ cmd = "load-module" args = "module-switch-on-connect" }

]


Unfortunately I have no ideas what to try further as I am not a
power-user/techy.

I have tried to use PulseAudio, pipe-wire media session and not
Wireplumber, backported version of PipeWire, but all these attempts left me
with GDM/Gnome removed from the system! As Gnome now have
Pipewire/Wireplumber as dependency.

I want to try all options possible (if any) before I ditch Gnome in favour
of DE, that supports Pulseaudio.

P.S. I have tried two different bluetooth hardware modules, one on a Wi-fi
chip and one USB-stick, with no difference.


Re: Playing a sound when initrd wants a password

2024-01-28 Thread Max Nikulin

On 28/01/2024 00:07, Curt wrote:

(Anyway, this is what my personal robot explained to me and may be subject to
imperfection and error.)


I find it over-sophisticated and, being put after the recipe, extremely 
unfriendly to those who get it in search engine results. Unfortunately 
bootup(7) is really complicated.


Anyway, the world has changed.



Re: Playing a sound when initrd wants a password

2024-01-28 Thread Stefan Monnier
[ Sorry, didn't read the actual post, just answering the Subject:  ]

What makes you think initrd will be satisfied with a sound?


Stefan 



Re: Playing a sound when initrd wants a password

2024-01-27 Thread Nicolas George
David Wright (12024-01-26):
> It looks as if the root directory is decrypted by
> /usr/share/initramfs-tools/scripts/local-top/cryptroot
> and, from its prereqs, that this script makes sure it
> is the last to run from scripts/local-top, by actually
> being run from scripts/local-block/cryptroot.
> (Correct me if I'm wrong: I'm a tyro in here.)
> 
> I notice that there is a slew of empty directories in
> /etc/initramfs-tools/scripts/, and I can only assume
> that anything you drop into these gets merged with
> those in /usr/share/initramfs-tools/scripts/ when
> the initramfs is built.
> 
> There is no scripts/local-block/ directory under /etc/,
> possibly because it's not intended that you interfere
> with the "ordering trick" mentioned above.

Thanks for pulling on this plate of spaghetti for me.

> So I would try dropping a logging/printing script into
> /etc/initramfs-tools/scripts/local-top/ in order to see
> whether it runs, and at the right time. The script
> could also look and see what support is already
> available for making noises.

That would run the script just before cryptsetup is called. That is
almost what I want, but the small gap is blocking: cryptsetup might ask
for the password several times (if the user types it wrong), and the
sound must be played again too in that case.

Regards,

-- 
  Nicolas George



Re: Playing a sound when initrd wants a password

2024-01-27 Thread Nicolas George
Curt (12024-01-27):
> (Anyway, this is what my personal robot explained to me and may be subject to
> imperfection and error.)

I started explaining all the ways this answer is obviously nonsensical,
but I got fed up and deleted it.

If I wanted the answers from a stupid AI, I could have asked directly. I
wrote to this list in the small hope of having an answer from somebody
competent who knows what about the issue.

-- 
  Nicolas George, starting a list



Re: Playing a sound when initrd wants a password

2024-01-27 Thread Geert Stappers
On Sat, Jan 27, 2024 at 05:07:37PM -, Curt wrote:
> On 2024-01-26, Nicolas George wrote:
> > Curt (12024-01-26):
> >> A play-sound.timer unit file in /usr/lib/systemd/system-generators/initrd
> >> directory.
> >
> > I see no mention of this directory on the web. Where did yo find the
> > idea of using it, I want to check the doc.
> 
> I guess that path should've been /usr/local/lib/systemd/system-generators/*.

Emphasing "guess"

 
> https://manpages.debian.org/testing/systemd/systemd.generator.7.en.html

Text from that URL:

  Generators are small executables placed in
  /lib/systemd/system-generators/ and other directories listed
  above. systemd(1) will execute these binaries very early at bootup and
  at configuration reload time — before unit files are loaded. Their
  main purpose is to convert configuration and execution context
  parameters that are not native to the service manager into dynamically
  generated unit files, symlinks or unit file drop-ins, so that they
  can extend the unit file hierarchy the service manager subsequently
  loads and operates on.
 
> > And what should I put in the timer file to express “when a password is
> > asked”?
> 
> > In fact, what relation do you see between a timer and cryptsetup asking
> > for a password?
> >
> 

} Harmfull text

 
> 
> (Anyway, this is what my personal robot explained to me

Do mankind a favor and next time start with expressing that.


> and may be subject to imperfection and error.)
 
I'm fairly sure it is an error.
And the first two laws of Clarke say I should not have sent this email.

 
Groeten
Geert Stappers
[1] https://en.wikipedia.org/wiki/Clarke%27s_three_laws
-- 
Silence is hard to parse



Re: Playing a sound when initrd wants a password

2024-01-27 Thread Curt
On 2024-01-26, Nicolas George  wrote:
> Curt (12024-01-26):
>> A play-sound.timer unit file in /usr/lib/systemd/system-generators/initrd
>> directory.
>
> I see no mention of this directory on the web. Where did yo find the
> idea of using it, I want to check the doc.

I guess that path should've been /usr/local/lib/systemd/system-generators/*.

https://manpages.debian.org/testing/systemd/systemd.generator.7.en.html

> And what should I put in the timer file to express “when a password is
> asked”?

> In fact, what relation do you see between a timer and cryptsetup asking
> for a password?
>


**Step 1: Create the Timer Unit File**

1. Create a timer unit file named `play-sound-cryptsetup.timer` in the
`/usr/local/lib/systemd/system-generators/initrd` directory.

2. Add the following content to the `play-sound-cryptsetup.timer` file:

```
[Unit]
Description=Play sound when cryptsetup prompts for a password

[Timer]
OnBootSec=0

[Install]
WantedBy=initrd.target
```
This timer will be triggered immediately after the initrd is loaded, ensuring
the sound is played at the very beginning of the boot process.

**Step 2: Create the Service Unit File**

1. Create a service unit file named `play-sound-cryptsetup.service` in the same
directory as the timer unit file 
(`/usr/local/lib/systemd/system-generators/initrd`).

2. Add the following content to the `play-sound-cryptsetup.service` file:

```
[Unit]
Description=Play sound when cryptsetup prompts for a password

[Service]
Type=oneshot
ExecStart=/usr/bin/cryptsetup --key-file /dev/null open-dialog cryptluks
ExecStartPost=/bin/play -q /path/to/your/sound.wav
```

Replace `cryptluks` with the actual device name of your encrypted partition.

**Step 3: Create the Initrd Image**

1. Build the initrd image using the `mkinitrd` tool:

```
mkinitrd -f /boot/initramfs-$(uname -r).img -v
```

2. Update the initrd image to be used by systemd:

```
sudo update-initramfs -u
```

**Step 4: Enable and Start the Timer**

1. Enable the timer to ensure it runs every time the system boots:

```
sudo systemctl enable play-sound-cryptsetup.timer
```

2. Start the timer to play the sound immediately:

```
sudo systemctl start play-sound-cryptsetup.timer
```

Now, every time you boot your system and cryptsetup prompts for a password, the
specified sound file (`/path/to/your/sound.wav`) will play. 

(Anyway, this is what my personal robot explained to me and may be subject to
imperfection and error.)



Re: Playing a sound when initrd wants a password

2024-01-26 Thread David Wright
On Fri 26 Jan 2024 at 16:13:26 (+0100), Nicolas George wrote:
> Hi.
> 
> Yet another strange question. Is there a supported¹ way to have
> cryptsetup play a specific sound when it asks the password for the root
> partition from the initrd?
> 
> I think brttty (braille) is already running at this point (no occasion
> to test yet), but a recognizable sound would be something nice to
> propose I think.

It looks as if the root directory is decrypted by
/usr/share/initramfs-tools/scripts/local-top/cryptroot
and, from its prereqs, that this script makes sure it
is the last to run from scripts/local-top, by actually
being run from scripts/local-block/cryptroot.
(Correct me if I'm wrong: I'm a tyro in here.)

I notice that there is a slew of empty directories in
/etc/initramfs-tools/scripts/, and I can only assume
that anything you drop into these gets merged with
those in /usr/share/initramfs-tools/scripts/ when
the initramfs is built.

There is no scripts/local-block/ directory under /etc/,
possibly because it's not intended that you interfere
with the "ordering trick" mentioned above.

So I would try dropping a logging/printing script into
/etc/initramfs-tools/scripts/local-top/ in order to see
whether it runs, and at the right time. The script
could also look and see what support is already
available for making noises.

Cheers,
David.



Re: Playing a sound when initrd wants a password

2024-01-26 Thread Nicolas George
Curt (12024-01-26):
> A play-sound.timer unit file in /usr/lib/systemd/system-generators/initrd
> directory.

I see no mention of this directory on the web. Where did yo find the
idea of using it, I want to check the doc.

And what should I put in the timer file to express “when a password is
asked”?

In fact, what relation do you see between a timer and cryptsetup asking
for a password?

-- 
  Nicolas George



Re: Playing a sound when initrd wants a password

2024-01-26 Thread Curt
On 2024-01-26, Nicolas George  wrote:
> Curt (12024-01-26):
>> I guess a systemd timer unit constitutes a hack.
>
> A systemd timer in the initrd? Can you elaborate?
>

A play-sound.timer unit file in /usr/lib/systemd/system-generators/initrd
directory.

A play-sound.service file in the same directory (that plays the sound).

Build and update the initrd image.

Enable and start timer.

Untried and untested and possibly erroneous.





Re: Playing a sound when initrd wants a password

2024-01-26 Thread Nicolas George
Curt (12024-01-26):
> I guess a systemd timer unit constitutes a hack.

A systemd timer in the initrd? Can you elaborate?

-- 
  Nicolas George



Re: Playing a sound when initrd wants a password

2024-01-26 Thread Curt
On 2024-01-26, Nicolas George  wrote:
> Hi.
>
> Yet another strange question. Is there a supported¹ way to have
> cryptsetup play a specific sound when it asks the password for the root
> partition from the initrd?
>
> I think brttty (braille) is already running at this point (no occasion
> to test yet), but a recognizable sound would be something nice to
> propose I think.
>
> Thanks.
>
> 1: No need to suggest I can hack the initrd to replace askpass by a
> script that plays the sound before running the real askpass, I already
> thought of it. I would like something robust, avoid hacks.
>

I guess a systemd timer unit constitutes a hack.





Playing a sound when initrd wants a password

2024-01-26 Thread Nicolas George
Hi.

Yet another strange question. Is there a supported¹ way to have
cryptsetup play a specific sound when it asks the password for the root
partition from the initrd?

I think brttty (braille) is already running at this point (no occasion
to test yet), but a recognizable sound would be something nice to
propose I think.

Thanks.

1: No need to suggest I can hack the initrd to replace askpass by a
script that plays the sound before running the real askpass, I already
thought of it. I would like something robust, avoid hacks.

-- 
  Nicolas George



Re: no sound

2024-01-19 Thread Gareth Evans


> On 19 Jan 2024, at 05:56, Maureen L Thomas  wrote:
> 
> … I used Lucky Backup but I cannot figure out how to restore.  I read the 
> book and it is confusing …

Do you mean this?

https://luckybackup.sourceforge.net/manual.html#restore

If not, is it helpful?

Best wishes,
Gareth


Re: no sound

2024-01-18 Thread David Christensen

On 1/18/24 21:56, Maureen L Thomas wrote:
I had a1T drive that has my backup on it.  I used Lucky Backup but I 
cannot figure out how to restore.  I read the book and it is confusing. 
I can't just more them over from that HD to the one that is in the 
computer because they are locked.  I will be dragging all future backups 
as you have said.  So much easier. Thank You



What is the make and model of the 1 TB disk?  It is installed in your 
computer?  Is it mounted?  Can you list its contents?



David







Re: no sound

2024-01-18 Thread Maureen L Thomas
I had a1T drive that has my backup on it.  I used Lucky Backup but I 
cannot figure out how to restore.  I read the book and it is confusing.  
I can't just more them over from that HD to the one that is in the 
computer because they are locked.  I will be dragging all future backups 
as you have said.  So much easier. Thank You


On 1/19/24 12:34 AM, David Christensen wrote:

On 1/18/24 20:08, Maureen L Thomas wrote:
I answered all your questions.  I believe I am using wayland.  I 
appreciate your help.;



YW.  :-)



On 1/18/24 1:12 AM, David Christensen wrote:

On 1/17/24 17:40, Maureen L Thomas wrote:
Well I did a back-up, that didn't work, but I didn't know it at the 
time, 


The back up failed?  :-(

Do you need help with data recovery? 

>

Too late for that.



Ouch.


Please get started doing some kind of backups.  Simple approaches 
include:


1.  Connect a USB drive (flash, HDD, SSD, whatever).  Hopefully, the 
desktop environment will display a pop-up dialog with to mount the USB 
drive file system and display it in a file manager.  Then open another 
file manager.  Drag and drop files from your hard disk drive or solid 
state drive to the USB drive to back up.  Drag them the other way to 
restore.  It helps to create folders with year, month, day-of-month 
names (e.g. 20240118) on the USB drive, so that you can back up the 
same file repeatedly and retain older copies.  Then put the USB drive 
off-site, get another USB drive, and continue with backups.  Every 
month or so, swap the on-site and off-site USB drives.


2.  If your computer has a CD/DVD/BD burner drive, buy a spindle of 
blank discs.  Look for a CD/DVD/BD burner application via your Start 
menu (or whatever it is called).  Burn important files to an optical 
disc periodically, and as needed.  Keep the burned discs off-site.



Another useful strategy is to put your operating system on one HDD/SSD 
and put your data on a second HDD/SSD.  When you need to re-install 
your operating system, you can shut down, disconnect the data drive 
SATA cable, boot installer media, and install the operating system.  
When the new operating system is working, you shutdown, connect the 
data disk SATA cable, boot, and configure the system to mount the data 
drive.



Did you install a graphical desktop?  If so, which one? 


I installed Gnome for the desk top



Okay.



What backport package(s) did you require?


deb https://ftp.debian.org/debian/ bookworm-backports contrib main 
non-free non-free-firmware



Okay.


I now have a system that works but I cannot find any utility to fix 
the top bar the way I want it. Any hints?


If you are using Xfce, right click on a blank area of any panel and 
choose Panel -> Panel Preferences.  This will give you a multi-tab 
app that you can use to customize all the panels.



I use Xfce and am unfamiliar with Gnome.  Perhaps another reader who 
uses the Gnome desktop can provide instructions for customizing the 
desktop interface.



David


Re: no sound

2024-01-18 Thread David Christensen

On 1/18/24 20:08, Maureen L Thomas wrote:
I answered all your questions.  I believe I am using wayland.  I 
appreciate your help.;



YW.  :-)



On 1/18/24 1:12 AM, David Christensen wrote:

On 1/17/24 17:40, Maureen L Thomas wrote:
Well I did a back-up, that didn't work, but I didn't know it at the 
time, 


The back up failed?  :-(

Do you need help with data recovery?   

>

Too late for that.



Ouch.


Please get started doing some kind of backups.  Simple approaches include:

1.  Connect a USB drive (flash, HDD, SSD, whatever).  Hopefully, the 
desktop environment will display a pop-up dialog with to mount the USB 
drive file system and display it in a file manager.  Then open another 
file manager.  Drag and drop files from your hard disk drive or solid 
state drive to the USB drive to back up.  Drag them the other way to 
restore.  It helps to create folders with year, month, day-of-month 
names (e.g. 20240118) on the USB drive, so that you can back up the same 
file repeatedly and retain older copies.  Then put the USB drive 
off-site, get another USB drive, and continue with backups.  Every month 
or so, swap the on-site and off-site USB drives.


2.  If your computer has a CD/DVD/BD burner drive, buy a spindle of 
blank discs.  Look for a CD/DVD/BD burner application via your Start 
menu (or whatever it is called).  Burn important files to an optical 
disc periodically, and as needed.  Keep the burned discs off-site.



Another useful strategy is to put your operating system on one HDD/SSD 
and put your data on a second HDD/SSD.  When you need to re-install your 
operating system, you can shut down, disconnect the data drive SATA 
cable, boot installer media, and install the operating system.  When the 
new operating system is working, you shutdown, connect the data disk 
SATA cable, boot, and configure the system to mount the data drive.



Did you install a graphical desktop?  If so, which one?  


I installed Gnome for the desk top



Okay.



What backport package(s) did you require?


deb https://ftp.debian.org/debian/ bookworm-backports contrib main non-free 
non-free-firmware



Okay.


I now have a system that works but I cannot find any utility to fix 
the top bar the way I want it. Any hints?


If you are using Xfce, right click on a blank area of any panel and 
choose Panel -> Panel Preferences.  This will give you a multi-tab app 
that you can use to customize all the panels.



I use Xfce and am unfamiliar with Gnome.  Perhaps another reader who 
uses the Gnome desktop can provide instructions for customizing the 
desktop interface.



David



Re: no sound

2024-01-18 Thread Maureen L Thomas
I answered all your questions.  I believe I am using wayland.  I 
appreciate your help.;


On 1/18/24 1:12 AM, David Christensen wrote:

On 1/17/24 17:40, Maureen L Thomas wrote:
Well I did a back-up, that didn't work, but I didn't know it at the 
time, 



The back up failed?  :-(


Do you need help with data recovery?   Too late for that.


and did a reinstallation from scratch. 



Did you install using debian-12.4.0-amd64-netinst.iso?


Did you install a graphical desktop?  If so, which one?  I installed 
Gnome for the desk top



I now have my sound back 



Good.  :-)


after I added back ports to my repositories. 



Do you mean backports?

https://backports.debian.org/





What backport package(s) did you require? deb 
https://ftp.debian.org/debian/ bookworm-backports contrib main 
non-free non-free-firmware



I now have a system that works but I cannot find any utility to fix 
the top bar the way I want it. Any hints?



If you are using Xfce, right click on a blank area of any panel and 
choose Panel -> Panel Preferences.  This will give you a multi-tab app 
that you can use to customize all the panels.



David


Re: no sound

2024-01-17 Thread David Christensen

On 1/17/24 17:40, Maureen L Thomas wrote:
Well I did a back-up, that didn't work, but I didn't know it at the 
time, 



The back up failed?  :-(


Do you need help with data recovery?


and did a reinstallation from scratch.  



Did you install using debian-12.4.0-amd64-netinst.iso?


Did you install a graphical desktop?  If so, which one?


I now have my sound back 



Good.  :-)


after I added back ports to my repositories. 



Do you mean backports?

https://backports.debian.org/


What backport package(s) did you require?


I now have a system that 
works but I cannot find any utility to fix the top bar the way I want 
it.  Any hints?



If you are using Xfce, right click on a blank area of any panel and 
choose Panel -> Panel Preferences.  This will give you a multi-tab app 
that you can use to customize all the panels.



David



no sound

2024-01-17 Thread Maureen L Thomas
Well I did a back-up, that didn't work, but I didn't know it at the 
time, and did a reinstallation from scratch.  I now have my sound back 
after I added back ports to my repositories.  I now have a system that 
works but I cannot find any utility to fix the top bar the way I want 
it.  Any hints?


Moe


Re: Problem with sound disappearing

2024-01-16 Thread Andrew M.A. Cater
On Tue, Jan 16, 2024 at 10:16:12PM +0700, Max Nikulin wrote:
> On 16/01/2024 13:04, Maureen Thomas wrote:
> > My sound has been working just fine the day before that.  Now nothing.
> 
> Have a look into PipeWire articles in ArchLinux and Debian wiki.
>

This certainly. It's also relatively easy to mute a Mozilla window
and not notice - Ctrl-M should mute/unmute - or clicking on the 
speaker icon in the appropriate tab.

[I say this as someone who was significantly caught out by this
recently - it's too easy to miss and spend 1/2 hour trying to 
work out what's gone wrong. In my case, it was a video call
where the other participants know me well enough not to make
fun of my efforts :) ]

All the very best,

Andy 



Re: Problem with sound disappearing

2024-01-16 Thread Max Nikulin

On 16/01/2024 13:04, Maureen Thomas wrote:

My sound has been working just fine the day before that.  Now nothing.


Have a look into PipeWire articles in ArchLinux and Debian wiki.



Re: Problem with sound disappearing

2024-01-15 Thread David Christensen

*** PLEASE DO NOT TOP POST *** PLEASE REPLY AT THE BOTTOM ***


On 1/14/24 16:03, Maureen L Thomas wrote:
I am using a Lenovo computer with 8G of memory and 1 TB hard drive, 
AMD Ryzen 3 2200g w/radion vega graphices x4, Graphics Gallium 0.4 
llvmpipe, it is running 64 bit Debian.  Processor is Intel Core 
i3-9100T, CPU 3.10GHz, Realtec 8821CE wireless lan 802.11 ac  PCI-E 
NIC.


My problem is all of a sudden I have no sound at all.  I have checked
all my settings and they have not changed at all so I should have had
sound.  There is none no matter what I have done. I need help
please.



On 1/14/24 17:21, Maureen L Thomas wrote:

Sorry I forgot I am using Debian Bookworm and it is updated with the
 latest updates.



On 1/14/24 23:58, David Christensen wrote:

What desktop environment are you using?

What application are you using?

What speakers are you using?  If external, have you checked the
cables -- both sound and power?  The power adapter?  The AC cable?
The AC outlet?



On 1/15/24 12:31, Maureen L Thomas wrote:
I am using Gnome and the application is firefox with you tube, the 
speakers are internal only.  I have checked to make sure I didn't 
turn something off by accident and everything is telling me that it 
is working.



On 1/15/24 22:04, Maureen Thomas wrote:
My sound has been working just fine the day before that.  Now 
nothing.



Do you have any *.wav or *.mp3 files on your computer?  If so, try 
double-clicking on one.  Hopefully, a music player app will open the 
file and start playing it.



Alternatively, does your computer have a CD/DVD/BD drive?  If so, insert 
a music CD.  Hopefully, a music player app will open and play the CD. 
Or, you might get a chooser dialog asking what to do; try to find a 
choice that plays the CD.



My guess is that some sound system feature got misconfigured, such as a 
mixer setting.  On Xfce, I have a panel with an icon that looks like a 
speaker.  If I left click on it, I get some mute buttons and sliders I 
can adjust.  If I right click and choose Properties, I get a tabbed 
pop-up window with more settings.  Looking in the menu (e.g. Start 
button) -> Multimedia -> PulseAudio Volume Control, a tabbed app starts 
with lots of settings.  I expect Gnome has similar features.  See what 
you can find.  Look for icons with an "X" on them, that might mean mute. 
 Click on them to turn muting off.



If the above ideas fail, do you know how to issue root commands in a 
terminal?



David



Re: Problem with sound disappearing

2024-01-15 Thread Maureen Thomas
 My sound has been working just fine the day before that.  Now nothing.

On Monday, January 15, 2024 at 03:32:09 PM EST, Maureen L Thomas 
 wrote:  
 
  
I am using Gnome and the application is firefox with you tube, the speakers are 
internal only.  I have checked to make sure I didn't turn something off by 
accident and everything is telling me that it is working.
 
 On 1/15/24 2:58 AM, David Christensen wrote:
  
On 1/14/24 16:03, Maureen L Thomas wrote: 
 > I am using a Lenovo computer with 8G of memory and 1 TB hard drive, AMD 
 > Ryzen 3 2200g w/radion vega graphices x4, Graphics Gallium 0.4 llvmpipe, 
 > it is running 64 bit Debian.  Processor is Intel Core i3-9100T, CPU 
 > 3.10GHz, Realtec 8821CE wireless lan 802.11 ac  PCI-E NIC. 
 > 
 > My problem is all of a sudden I have no sound at all.  I have checked 
 > all my settings and they have not changed at all so I should have had 
 > sound.  There is none no matter what I have done. I need help please. 
 > 
 > Moe 
 > 
 
 On 1/14/24 17:21, Maureen L Thomas wrote: 
 
Sorry I forgot I am using Debian Bookworm and it is updated with the latest 
updates. 
 
 
 
 What desktop environment are you using? 
 
 
 What application are you using? 
 
 
 What speakers are you using?  If external, have you checked the cables -- both 
sound and power?  The power adapter?  The AC cable?  The AC outlet? 
 
 
 David 
 
 
   

Re: Problem with sound disappearing

2024-01-15 Thread Thomas George



On 1/15/24 11:36, Carl Fink wrote:


On 1/15/24 02:58, David Christensen wrote:

On 1/14/24 16:03, Maureen L Thomas wrote:
> I am using a Lenovo computer with 8G of memory and 1 TB hard drive, 
AMD
> Ryzen 3 2200g w/radion vega graphices x4, Graphics Gallium 0.4 
llvmpipe,

> it is running 64 bit Debian.  Processor is Intel Core i3-9100T, CPU
> 3.10GHz, Realtec 8821CE wireless lan 802.11 ac  PCI-E NIC.
>
> My problem is all of a sudden I have no sound at all.  I have checked
> all my settings and they have not changed at all so I should have had
> sound.  There is none no matter what I have done. I need help please.
>
> Moe
>

On 1/14/24 17:21, Maureen L Thomas wrote:
Sorry I forgot I am using Debian Bookworm and it is updated with the 
latest updates.



What desktop environment are you using?


What application are you using?


What speakers are you using?  If external, have you checked the
cables -- both sound and power?  The power adapter?  The AC cable?
The AC outlet? 


One more thing. Recently, I plugged wired earbuds into my system
for the first time in months, and they were just plain not detected.
None of the GUI tools recognized that an output device existed.

What I had to do was run Alsamixer, press F6, select my sound card,
(not HDMI audio or Bluetooth audio, both of which had existed), and
then force it to be output and not input. The default Bullseye audio
system seems to be prone to failure to detect audio devices.



I have the same problem, no souud  using bookworm and gnome. I have 
tried to days and have no solution.


One detail I can add. I too plugged earbud. They register as headphones 
(unplugged) as output and Rear Microphone (plugged in) as input.




Re: Problem with sound disappearing

2024-01-15 Thread Maureen L Thomas
I am using Gnome and the application is firefox with you tube, the 
speakers are internal only.  I have checked to make sure I didn't turn 
something off by accident and everything is telling me that it is working.


On 1/15/24 2:58 AM, David Christensen wrote:

On 1/14/24 16:03, Maureen L Thomas wrote:
> I am using a Lenovo computer with 8G of memory and 1 TB hard drive, AMD
> Ryzen 3 2200g w/radion vega graphices x4, Graphics Gallium 0.4 
llvmpipe,

> it is running 64 bit Debian.  Processor is Intel Core i3-9100T, CPU
> 3.10GHz, Realtec 8821CE wireless lan 802.11 ac  PCI-E NIC.
>
> My problem is all of a sudden I have no sound at all.  I have checked
> all my settings and they have not changed at all so I should have had
> sound.  There is none no matter what I have done. I need help please.
>
> Moe
>

On 1/14/24 17:21, Maureen L Thomas wrote:
Sorry I forgot I am using Debian Bookworm and it is updated with the 
latest updates.



What desktop environment are you using?


What application are you using?


What speakers are you using?  If external, have you checked the cables 
-- both sound and power?  The power adapter?  The AC cable?  The AC 
outlet?



David


Re: Problem with sound disappearing

2024-01-15 Thread Carl Fink



On 1/15/24 02:58, David Christensen wrote:

On 1/14/24 16:03, Maureen L Thomas wrote:
> I am using a Lenovo computer with 8G of memory and 1 TB hard drive, AMD
> Ryzen 3 2200g w/radion vega graphices x4, Graphics Gallium 0.4 
llvmpipe,

> it is running 64 bit Debian.  Processor is Intel Core i3-9100T, CPU
> 3.10GHz, Realtec 8821CE wireless lan 802.11 ac  PCI-E NIC.
>
> My problem is all of a sudden I have no sound at all.  I have checked
> all my settings and they have not changed at all so I should have had
> sound.  There is none no matter what I have done. I need help please.
>
> Moe
>

On 1/14/24 17:21, Maureen L Thomas wrote:
Sorry I forgot I am using Debian Bookworm and it is updated with the 
latest updates.



What desktop environment are you using?


What application are you using?


What speakers are you using?  If external, have you checked the
cables -- both sound and power?  The power adapter?  The AC cable?
The AC outlet? 


One more thing. Recently, I plugged wired earbuds into my system
for the first time in months, and they were just plain not detected.
None of the GUI tools recognized that an output device existed.

What I had to do was run Alsamixer, press F6, select my sound card,
(not HDMI audio or Bluetooth audio, both of which had existed), and
then force it to be output and not input. The default Bullseye audio
system seems to be prone to failure to detect audio devices.
--
Carl Fink   nitpick...@nitpicking.com
Read my blog at blog.nitpicking.com.  Reviews!  Observations!



Re: Problem with sound disappearing

2024-01-14 Thread David Christensen

On 1/14/24 16:03, Maureen L Thomas wrote:
> I am using a Lenovo computer with 8G of memory and 1 TB hard drive, AMD
> Ryzen 3 2200g w/radion vega graphices x4, Graphics Gallium 0.4 llvmpipe,
> it is running 64 bit Debian.  Processor is Intel Core i3-9100T, CPU
> 3.10GHz, Realtec 8821CE wireless lan 802.11 ac  PCI-E NIC.
>
> My problem is all of a sudden I have no sound at all.  I have checked
> all my settings and they have not changed at all so I should have had
> sound.  There is none no matter what I have done. I need help please.
>
> Moe
>

On 1/14/24 17:21, Maureen L Thomas wrote:
Sorry I forgot I am using Debian Bookworm and it is updated with the 
latest updates.



What desktop environment are you using?


What application are you using?


What speakers are you using?  If external, have you checked the cables 
-- both sound and power?  The power adapter?  The AC cable?  The AC outlet?



David



Re: Problem with sound disappearing

2024-01-14 Thread Maureen L Thomas
Sorry I forgot I am using Debian Bookworm and it is updated with the 
latest updates.


On 1/14/24 7:03 PM, Maureen L Thomas wrote:


I am using a Lenovo computer with 8G of memory and 1 TB hard drive, 
AMD Ryzen 3 2200g w/radion vega graphices x4, Graphics Gallium 0.4 
llvmpipe, it is running 64 bit Debian.  Processor is Intel Core 
i3-9100T, CPU 3.10GHz, Realtec 8821CE wireless lan 802.11 ac  PCI-E NIC.


My problem is all of a sudden I have no sound at all.  I have checked 
all my settings and they have not changed at all so I should have had 
sound.  There is none no matter what I have done.  I need help please.


Moe


Problem with sound disappearing

2024-01-14 Thread Maureen L Thomas
I am using a Lenovo computer with 8G of memory and 1 TB hard drive, AMD 
Ryzen 3 2200g w/radion vega graphices x4, Graphics Gallium 0.4 llvmpipe, 
it is running 64 bit Debian.  Processor is Intel Core i3-9100T, CPU 
3.10GHz, Realtec 8821CE wireless lan 802.11 ac  PCI-E NIC.


My problem is all of a sudden I have no sound at all.  I have checked 
all my settings and they have not changed at all so I should have had 
sound.  There is none no matter what I have done. I need help please.


Moe


Re: bookworm No printer, No sound

2024-01-08 Thread Gareth Evans



> On 8 Jan 2024, at 00:21, Thomas George  wrote:
> 
> nmap finds printer ,printer ip lan address. with lan address printer's state 
> can be read and test page printed
> 
> Cups can install printer with a long ipp address, not wifi. Only the lpinfo 
> command works, the others are deprectiated, not working so it  is not 
> possible to set an lp destination.
> 
> xsane finds no devices
> 
> gnome settings sound finds output device Speakers - Built-in audio
> 
> pulseaudio volume port shows Speakers (plugged in)
> 
> Both these show a fluctuating signal when mpv plays an audio file but 
> speakers are silent
> 
> uname -a shows Debian 6.1.0-amd64 (2023-12--2) This does not change after 
> update and dist-upgrade.
> 
> Any comments welcomed,
> 
> Tom George
> 

Hi Tom,

Can you give the make and model of the printer please?

What do you mean by

> Cups can install printer with a long ipp address, not wifi.

?

Do you mean cups doesn't automatically detect the printer?

Also, have you tried the other lp... commands you refer to (I presume you mean 
lpadmin etc) with sudo, or as root?

Thanks
Gareth


bookworm No printer, No sound

2024-01-07 Thread Thomas George
nmap finds printer ,printer ip lan address. with lan address printer's 
state can be read and test page printed


Cups can install printer with a long ipp address, not wifi. Only the 
lpinfo command works, the others are deprectiated, not working so it  is 
not possible to set an lp destination.


xsane finds no devices

gnome settings sound finds output device Speakers - Built-in audio

pulseaudio volume port shows Speakers (plugged in)

Both these show a fluctuating signal when mpv plays an audio file but 
speakers are silent


uname -a shows Debian 6.1.0-amd64 (2023-12--2) This does not change 
after update and dist-upgrade.


Any comments welcomed,

Tom George



Re: Fluidsynth and pipewire: No sound

2024-01-03 Thread tomas
On Wed, Jan 03, 2024 at 01:12:24PM -0300, riveravaldez wrote:
> El martes, 2 de enero de 2024, to...@tuxteam.de escribió:
> > Hi,
> >
> > Debian 12, bookworm. I'm trying to get fluidsynth and pipewire
> > playing together.
> 
> Hi, IIRC qsynth has an option to indicate which sound server to use at
> launching. I've used it with JACK and PulseAudio:
> $ qsynth -a jack
> $ qsynth -a pulseaudio
> , or something like that. Can't remember if the manpage mentions PipeWire
> (or if it's even implemented) but I guess could worth a try.
> Also, qsynth's UI has options to choose sources and sinks that are pretty
> friendly. That also could work.
> Hope something of this helps in someway.
> Kind regards and good luck!

First of all, thanks for your reply. I actually tried qsynth.

As I mentioned in my original post, it is only happy when wrapped
in pw-jack (which, AFAIU tells it to contact pipewire's Jack
emulation). But I couldn't get it to "see" any MIDI events from
the keyboard, alas.

The most frustrating part is that I have no clue whether I'm
doing anything wrong or whether it isn't supposed to work at all.

The installed fluidsynth version (2.3.1) is said to work with
pipewire, but "fluidsynth -a" doesn't list it as a backend.

There is a GUI to control pipewire's graph (qpwgraph [1]), which
I also tried. I can "see" there what is supposed to be the keyboard,
model number and all, I can "see" some fluidsynth input (both of
them several times, all of this is frustratingly confusing), I
can even connect the keyboard's "output" to fluidsynth's "input"
(if I am interpreting all those hieroglyphs correctly, that is),
but there is no fluidsynth's "output", and all combinations I
tried in despair didn't make a beep.

A similar hardware with a Debian Bullseye (pulseaudio) does work.
I had to tinker to have the fluidsynth thing start in the user
session instead of at system boot (there was a reason for this
which I don't remember currently), but it basically worked.

At the moment I'm on the brink of throwing out pipewire and
installing pulseaudio, and wait until things settle.

Why, oh, why do we have to have this sound daemon misery every
couple of releases?

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Fluidsynth and pipewire: No sound

2024-01-03 Thread riveravaldez
El martes, 2 de enero de 2024, to...@tuxteam.de escribió:
> Hi,
>
> Debian 12, bookworm. I'm trying to get fluidsynth and pipewire
> playing together.

Hi, IIRC qsynth has an option to indicate which sound server to use at
launching. I've used it with JACK and PulseAudio:
$ qsynth -a jack
$ qsynth -a pulseaudio
, or something like that. Can't remember if the manpage mentions PipeWire
(or if it's even implemented) but I guess could worth a try.
Also, qsynth's UI has options to choose sources and sinks that are pretty
friendly. That also could work.
Hope something of this helps in someway.
Kind regards and good luck!

> TL;DR everything seems to be running as it should, but I seem
> unable to get a beep from the MIDI keyboard.
>
> I carried over the config from a working 11/Bullseye installation.
> The aim is to get a USB MIDI keyboard (see below) making noises
> on the output loudspeaker.
>
> This is what pw-link says:
>
>  | tomas@ariadne:~$ pw-link -vi
>  | Midi-Bridge:Midi Through:(playback_0) Midi Through Port-0
>  |   alsa:seq:default:client_14:playback_0
>  |   Midi Through:Midi Through Port-0
>  | Midi-Bridge:iCON iCON iKeyboard 4 mini V1-04 at usb-:00:14-0-6-
full speed:(playback_0) iCON iKeyboard 4 mini V1-04 MID
>  |   alsa:seq:default:client_16:playback_0
>  |   iCON iKeyboard 4 mini V1-04:iCON iKeyboard 4 mini V1-04 MID
>  | alsa_output.pci-_00_1f.3.analog-stereo.2:playback_FL
>  |   alsa:pcm:1:front:1:playback:playback_0
>  |   ALC298 Analog:playback_FL
>  | alsa_output.pci-_00_1f.3.analog-stereo.2:playback_FR
>  |   alsa:pcm:1:front:1:playback:playback_1
>  |   ALC298 Analog:playback_FR
>
> The second entry is said keyboard: it seems pipewire "sees" it.
>
> Starting qsynth from the command line does:
>
>> qsynth
>>   fluidsynth: error: failed to connect to the Jack server
>
> OK, there's no Jack server running. But pipewire-jack is installed.
> Wrapping it with pw-jack (as far as I understand this just sets some
> environment for the application to find the Jack emulation) seems
> to work:
>
>>   pw-jack qsynth
>
> ...no error messages.
>
> Fluidsynth is started by systemd's user session:
>
>  | tomas@ariadne:~$ cat
.config/systemd/user/default.target.wants/fluidsynth.service
>  | [Unit]
>  | Description=FluidSynth Daemon
>  | Documentation=man:fluidsynth(1)
>  | After=sound.target
>  | After=pipewire.service
>  |
>  | [Service]
>  | # added automatically, for details please see
>  | #
https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
>  | ProtectSystem=full
>  | ProtectHome=read-only
>  | ProtectHostname=true
>  | ProtectKernelTunables=true
>  | ProtectKernelModules=true
>  | ProtectKernelLogs=true
>  | ProtectControlGroups=true
>  | # end of automatic additions
>  | # required in order for the above sandboxing options to work on a user
unit
>  | PrivateUsers=yes
>  | Type=notify
>  | NotifyAccess=main
>  | EnvironmentFile=/etc/default/fluidsynth
>  | EnvironmentFile=-%h/.config/fluidsynth
>  | ExecStart=/usr/bin/fluidsynth -is $OTHER_OPTS $SOUND_FONT
>  |
>  | [Install]
>  | WantedBy=default.target
>
> (I took that over from the Bullseye instance and it references
> pipewire, so it seems the installer took care of fixing/updating
> things. Yay for the maintainers!).
>
> Still the whole thing is mute. On the old machine, hitting the
> keyboard's keys produced tones out of the loudspeaker.
>
> Now I guess I have to connect together some sources and sinks on
> fluidsynth, but I'm totally at a loss where to start, and I seem
> to be too stupid to find relevant docs.
>
> Help?
>
> Cheers & thanks
> --
> tomás
>


Fluidsynth and pipewire: No sound

2024-01-02 Thread tomas
Hi,

Debian 12, bookworm. I'm trying to get fluidsynth and pipewire
playing together.

TL;DR everything seems to be running as it should, but I seem
unable to get a beep from the MIDI keyboard.

I carried over the config from a working 11/Bullseye installation.
The aim is to get a USB MIDI keyboard (see below) making noises
on the output loudspeaker.

This is what pw-link says:

 | tomas@ariadne:~$ pw-link -vi
 | Midi-Bridge:Midi Through:(playback_0) Midi Through Port-0
 |   alsa:seq:default:client_14:playback_0
 |   Midi Through:Midi Through Port-0
 | Midi-Bridge:iCON iCON iKeyboard 4 mini V1-04 at usb-:00:14-0-6- full 
speed:(playback_0) iCON iKeyboard 4 mini V1-04 MID
 |   alsa:seq:default:client_16:playback_0
 |   iCON iKeyboard 4 mini V1-04:iCON iKeyboard 4 mini V1-04 MID
 | alsa_output.pci-_00_1f.3.analog-stereo.2:playback_FL
 |   alsa:pcm:1:front:1:playback:playback_0
 |   ALC298 Analog:playback_FL
 | alsa_output.pci-_00_1f.3.analog-stereo.2:playback_FR
 |   alsa:pcm:1:front:1:playback:playback_1
 |   ALC298 Analog:playback_FR

The second entry is said keyboard: it seems pipewire "sees" it.

Starting qsynth from the command line does:

> qsynth
>   fluidsynth: error: failed to connect to the Jack server

OK, there's no Jack server running. But pipewire-jack is installed.
Wrapping it with pw-jack (as far as I understand this just sets some
environment for the application to find the Jack emulation) seems
to work:

>   pw-jack qsynth

...no error messages.

Fluidsynth is started by systemd's user session:

 | tomas@ariadne:~$ cat 
.config/systemd/user/default.target.wants/fluidsynth.service 
 | [Unit]
 | Description=FluidSynth Daemon
 | Documentation=man:fluidsynth(1)
 | After=sound.target
 | After=pipewire.service
 | 
 | [Service]
 | # added automatically, for details please see
 | # https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
 | ProtectSystem=full
 | ProtectHome=read-only
 | ProtectHostname=true
 | ProtectKernelTunables=true
 | ProtectKernelModules=true
 | ProtectKernelLogs=true
 | ProtectControlGroups=true
 | # end of automatic additions
 | # required in order for the above sandboxing options to work on a user unit
 | PrivateUsers=yes
 | Type=notify
 | NotifyAccess=main
 | EnvironmentFile=/etc/default/fluidsynth
 | EnvironmentFile=-%h/.config/fluidsynth
 | ExecStart=/usr/bin/fluidsynth -is $OTHER_OPTS $SOUND_FONT
 | 
 | [Install]
 | WantedBy=default.target

(I took that over from the Bullseye instance and it references
pipewire, so it seems the installer took care of fixing/updating
things. Yay for the maintainers!).

Still the whole thing is mute. On the old machine, hitting the
keyboard's keys produced tones out of the loudspeaker.

Now I guess I have to connect together some sources and sinks on
fluidsynth, but I'm totally at a loss where to start, and I seem
to be too stupid to find relevant docs.

Help?

Cheers & thanks
-- 
tomás


signature.asc
Description: PGP signature


Re: Everything But Sound with Bookworm

2023-12-28 Thread Franco Martelli

On 27/12/23 at 21:47, Thomas George wrote:

If anyone reading this has suggestion of what is wrong or how to fix it


There is a bug report [1] against linux-image-6.1.0-16-amd64, which 
kernel are you running? ("uname -a" command will tell you)  Have you 
tried to boot with an old kernel image? i.e. linux-image-6.1.0-13-amd64


best regards

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059081
--
Franco Martelli



Re: Everything But Sound with Bookworm

2023-12-28 Thread Thomas George

OK no more new posts. Maybe someday the problem will solve itself

On 12/27/23 15:59, Valerio Vanni wrote:

Il 27/12/2023 21:47, Thomas George ha scritto:

gnome setup sound output device: speakers - builtin audio

pulseaudio output device port: speakers (plugged in)


It seems you are opening three thread for the same issue: audio not 
working in bookworm.

This way, informations are dispersed.







Re: Everything But Sound with Bookworm

2023-12-27 Thread Valerio Vanni

Il 27/12/2023 21:47, Thomas George ha scritto:

gnome setup sound output device: speakers - builtin audio

pulseaudio output device port: speakers (plugged in)


It seems you are opening three thread for the same issue: audio not 
working in bookworm.

This way, informations are dispersed.





Everything But Sound with Bookworm

2023-12-27 Thread Thomas George

gnome setup sound output device: speakers - builtin audio

pulseaudio output device port: speakers (plugged in)

Both of the above show an audio signal when the command

mpv Smoke\ Gets\ In\ Your\ Eyes.mp3

is entered but playback ends after 10 seconds.

The mpv text output ends with AO: [pipewire] 44100Hz

and after the playback stops  A: 00:00:10  / 00:03:23 (5%)

For all of the above alsamixer card can be set to either pulseaudio or 
HDA Intel PCH



At one point in my struggles the alsamixer card was set to pipewire. I 
can' t recover this but I never had sound with that setting either.


If anyone reading this has suggestion of what is wrong or how to fix it

Thanks,

Tom George



Re: No Sound With Bookworm

2023-12-27 Thread Valerio Vanni

Il 27/12/2023 02:04, Thomas George ha scritto:
> Pulseaudio Volume control shows a strong signal audio output but nothing
> reaches the speakers.
>
> This must be a well known problem but I can't find the answer.
I found the same issue. For me, the issue was that timidity-daemon was 
taking exclusive access to audio ports.

And uninstalling timidity-daemon didn't help.

Try this:
-look at control panel ->audio, see the available outputs / profiles
-find pipewire processes and kill them
-after some second, open again control panel -> audio and see if more 
profiles appear
-if they appear, try to select them. For me, it was "analog stereo 
output" profile and "line out" device. Perhaps it's not the same text, 
my install is not in english language".





Re: No Sound With Bookworm

2023-12-27 Thread Pocket



On 12/26/23 20:04, Thomas George wrote:
Pulseaudio Volume control shows a strong signal audio output but 
nothing reaches the speakers.


This must be a well known problem but I can't find the answer.

Please help

Tom George

I had the same issue with bookworm also. I am using LXQT and pav was not 
setup to output sound to the proper device.


On my system it had two output devices one to send audio through the 
sound card and another to use HDMI.  My speaker are connected to the 
HDMI so I needed to use that. Also make sure the proper audo device is 
not set as backup.





--
Hindi madali ang maging ako



Re: No Sound With Bookworm

2023-12-27 Thread Dan Ritter
Thomas George wrote: 
> Pulseaudio Volume control shows a strong signal audio output but nothing
> reaches the speakers.
> 
> This must be a well known problem but I can't find the answer.

Check the volume control's tabs for Output Device and
Configuration; frequently PA decides there is no output or it
should go to a recently-plugged-in device with no speakers or
headphones attached, or a muted physical volume control.



No Sound With Bookworm

2023-12-26 Thread Thomas George
Pulseaudio Volume control shows a strong signal audio output but nothing 
reaches the speakers.


This must be a well known problem but I can't find the answer.

Please help

Tom George



about sound volume

2023-11-16 Thread hlyg

i have 2 pc, using same speaker, both running aumix for bookworm

pc1 has 2 controls for loudness, Vol=90 and Pcm=46

pc2 has 1 control for loudness, how to set it so that loudness is same 
as pc1?




Re: sound cards locked, No Host

2023-11-06 Thread Thomas George

good point but no success.

used top to find blender and kill. no improvement

On 11/6/23 10:53, Marco M. wrote:

Am 06.11.2023 um 10:26:53 Uhr schrieb Thomas George:


alsactl says sound cards locked. There is a lock directory in
var/lib/alsa/asound-state

mpv song.ogg fails with message No Host

There may be solutions in the debian-user archives. I am slowly
reading these in search of a solution.

Any help?

Is any application using alsa?

What about PulseAudio or Pipewire?





Re: sound cards locked, No Host

2023-11-06 Thread Marco M.
Am 06.11.2023 um 10:26:53 Uhr schrieb Thomas George:

> alsactl says sound cards locked. There is a lock directory in 
> var/lib/alsa/asound-state
> 
> mpv song.ogg fails with message No Host
> 
> There may be solutions in the debian-user archives. I am slowly
> reading these in search of a solution.
> 
> Any help?

Is any application using alsa?

What about PulseAudio or Pipewire?



sound cards locked, No Host

2023-11-06 Thread Thomas George

Just upgraded to Bookworm

no sound.

alsactl says sound cards locked. There is a lock directory in 
var/lib/alsa/asound-state


mpv song.ogg fails with message No Host

There may be solutions in the debian-user archives. I am slowly reading 
these in search of a solution.


Any help?

Tom George




Re: Sound only as root

2023-10-18 Thread Hans
Am Mittwoch, 18. Oktober 2023, 13:16:32 CEST schrieb Greg Wooledge:
Hi Greg,

I get the same results as you got. So it is proven, that my system is in good 
condition and everything is well configured. This is an important point for my 
search! 

And no, this system is pure Debian (except that is been upgraded since many 
many years. I believe, the first installation was 2010 or so). 

Debian is so stable and reliable, so I did not need change much. Of course 
packages are uninstalled during that long time and things also changed (like 
alsa, then pulseaudio and now wireplumber / pipewire for example).

And as a carefull user, I purged old configurations (using aptitude purge ~c)

So, this is just clean Debian 12 stable. 

Hope, the vendor of the application will also have some hints. Fine is, I am 
now sure and it is proven, my system is set correctly. This is an important 
point for me.

Thanks for the feedback.

Best 

Hans

> On Wed, Oct 18, 2023 at 11:25:51AM +0200, Hans wrote:
> > I am in the group "audio".
> > 
> > correct:
> > 
> > /dev/snd = root:root , drwxr-xr-x
> > 
> > All others below /dev/snd are set
> > 
> > crw-rw--- = root:audio
> 
> It would help if you pasted the actual "ls -l" output.  Here's mine
> for comparison:
> 
> unicorn:~$ ls -l /dev/snd
> total 0
> drwxr-xr-x  2 root root   60 Oct  7 08:49 by-id/
> drwxr-xr-x  2 root root   80 Oct  7 08:49 by-path/
> crw-rw+ 1 root audio 116, 10 Oct  7 08:49 controlC0
> crw-rw+ 1 root audio 116, 12 Oct  7 08:49 controlC1
> crw-rw+ 1 root audio 116,  8 Oct  7 08:49 hwC0D0
> crw-rw+ 1 root audio 116,  9 Oct  7 08:49 hwC0D2
> crw-rw+ 1 root audio 116,  3 Oct  7 08:50 pcmC0D0c
> crw-rw+ 1 root audio 116,  2 Oct  7 08:57 pcmC0D0p
> crw-rw+ 1 root audio 116,  4 Oct  7 08:49 pcmC0D2c
> crw-rw+ 1 root audio 116,  5 Oct  7 08:50 pcmC0D3p
> crw-rw+ 1 root audio 116,  6 Oct  7 08:50 pcmC0D7p
> crw-rw+ 1 root audio 116,  7 Oct  7 08:50 pcmC0D8p
> crw-rw+ 1 root audio 116, 11 Oct  7 08:50 pcmC1D0c
> crw-rw+ 1 root audio 116,  1 Oct  7 08:49 seq
> crw-rw+ 1 root audio 116, 33 Oct  7 08:49 timer
> 
> You see those "+" signs at the ends of the permission strings?  Those
> are super important here.  When you login to Debian, there's various
> black magic that happens with "session" and "seats" and so on.  One
> of the things involved in that magic is adding your account to the
> ACL on the audio devices.  For instance,
> 
> unicorn:~$ getfacl /dev/snd/hwC0D0
> getfacl: Removing leading '/' from absolute path names
> # file: dev/snd/hwC0D0
> # owner: root
> # group: audio
> user::rw-
> user:greg:rw-
> group::rw-
> mask::rw-
> other::---
> 
> 
> If yours isn't doing that, then we have a problem.  In fact, the very
> first thing I wondered when I read your post was "Is this actually a
> Debian system, or is it something like Devuan?"  If you've altered the
> login stuff, for example by trying to remove systemd, then you might
> have broken the session/seat magic that sets up the ACLs.






  1   2   3   4   5   6   7   8   9   10   >