Re: [e-users] How can I get system sounds?

2021-06-27 Thread Carsten Haitzler
On Sun, 27 Jun 2021 22:36:09 +0200 Massimo Maiurana  said:

> Carsten Haitzler ha scritto il 27/06/21 alle 11:09:
> > On Sun, 27 Jun 2021 08:03:35 +0200 Massimo Maiurana 
> > said:
> > 
> >> I don't know it this is related, but sometimes in my PC enlightenment
> >> seems to loose connection with pulse: mixer doesn't show any card, I get
> >> only dummy device. Restarting the E session restores the connection,
> >> though.
> > 
> > pulseaudio might be crashing?
> 
> I don't think so as pavucontrol is still perfecty functional in that 
> situation.

just check - does the PID change?

> > again - libpulse handles connecting to and
> > talking to pulseaudio. the mixer module just uses libpulse to talk to
> > pulseaudio. loss of connection would suggest pulseaudio is going away and
> > that closes the connection.
> > 
> >> Massimo Maiurana
> >>
> >> Masaru Nomiya ha scritto il 27/06/21 alle 01:56:
> >>> Hello,
> >>>
> >>> I rebooted, but no sounds from e.
> >>>
> >>> In the Message;
> >>>
> >>> Subject: Re: [e-users] How can I get system sounds?
> >>> Message-ID : <20210626234417.9f9757fe0a5a34e230529...@rasterman.com>
> >>> Date & Time: Sat, 26 Jun 2021 23:44:17 +0100
> >>>
> >>> [CH] == Carsten Haitzler  has written:
> >>>
> >>> [...]
> >>> MN> > But, it's a mystery for me.
> >>> MN> > Why the pulseaudio's settings problem is specific to me  ?
> >>>
> >>> CH>  I don't know. All I can think of was pulseaduio not running (as
> >>> CH>  your user - not as root or some other user). All Enlightenment
> >>> CH>  does is talk to the pulseaudio daemon using libpluse - like you
> >>> CH>  use xlib to talk to the xserver.
> >>>
> >>> I can fully understand wha you mean, I think.
> >>>
> >>> But, pulsedaemon does always run just after booting.
> >>> Because,
> >>>
> >>> 1. After booting, I can always hear the switching on sound of mu USB
> >>> DAC.
> >>>
> >>> 2. I always begin  the PC operation with starting music via audacious.
> >>>
> >>> 
> >>>
> >>> One question.
> >>>
> >>> As a root, accessing to pulseaudio is always denied ;
> >>>
> >>> # aplay /home/masaru/wav/Track\ 2.wav
> >>> XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid
> >>> 1000! (This could e.g. happen if you try to connect to a non-root
> >>> PulseAudio as a root user, over the native protocol. Don't do that.) ALSA
> >>> lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access
> >>> denied
> >>>
> >>> aplay: main:831: audio open error: Connection refused
> >>>
> >>> Is this phenomena within your expectations?
> >>>
> >>> Thanks.
> >>>
> >>> ---
> >>> ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
> >>> ┃\/彡
> >>> ┗━━┛ "Bill! You married with Computer.
> >>> Not with Me!"
> >>>"No..., with money."
> >>>
> >>>
> >>> ___
> >>> enlightenment-users mailing list
> >>> enlightenment-users@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> >>>
> >>
> > 
> > 
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
Carsten Haitzler - ras...@rasterman.com



___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] How can I get system sounds?

2021-06-27 Thread Massimo Maiurana

Carsten Haitzler ha scritto il 27/06/21 alle 11:09:

On Sun, 27 Jun 2021 08:03:35 +0200 Massimo Maiurana  said:


I don't know it this is related, but sometimes in my PC enlightenment
seems to loose connection with pulse: mixer doesn't show any card, I get
only dummy device. Restarting the E session restores the connection, though.


pulseaudio might be crashing?


I don't think so as pavucontrol is still perfecty functional in that 
situation.



again - libpulse handles connecting to and
talking to pulseaudio. the mixer module just uses libpulse to talk to
pulseaudio. loss of connection would suggest pulseaudio is going away and that
closes the connection.


Massimo Maiurana

Masaru Nomiya ha scritto il 27/06/21 alle 01:56:

Hello,

I rebooted, but no sounds from e.

In the Message;

Subject: Re: [e-users] How can I get system sounds?
Message-ID : <20210626234417.9f9757fe0a5a34e230529...@rasterman.com>
Date & Time: Sat, 26 Jun 2021 23:44:17 +0100

[CH] == Carsten Haitzler  has written:

[...]
MN> > But, it's a mystery for me.
MN> > Why the pulseaudio's settings problem is specific to me  ?

CH>  I don't know. All I can think of was pulseaduio not running (as
CH>  your user - not as root or some other user). All Enlightenment
CH>  does is talk to the pulseaudio daemon using libpluse - like you
CH>  use xlib to talk to the xserver.

I can fully understand wha you mean, I think.

But, pulsedaemon does always run just after booting.
Because,

1. After booting, I can always hear the switching on sound of mu USB
DAC.

2. I always begin  the PC operation with starting music via audacious.



One question.

As a root, accessing to pulseaudio is always denied ;

# aplay /home/masaru/wav/Track\ 2.wav
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid
1000! (This could e.g. happen if you try to connect to a non-root
PulseAudio as a root user, over the native protocol. Don't do that.) ALSA
lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied

aplay: main:831: audio open error: Connection refused

Is this phenomena within your expectations?

Thanks.

---
┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "Bill! You married with Computer.
Not with Me!"
   "No..., with money."


___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users










___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] How can I get system sounds?

2021-06-27 Thread Jérémy Zurcher
On Sunday 27 June 2021  08:56, Masaru Nomiya wrote :
> Hello,
> 
> I rebooted, but no sounds from e.
> 
> In the Message; 
> 
>   Subject: Re: [e-users] How can I get system sounds?
>   Message-ID : <20210626234417.9f9757fe0a5a34e230529...@rasterman.com>
>   Date & Time: Sat, 26 Jun 2021 23:44:17 +0100
> 
> [CH] == Carsten Haitzler  has written:
> 
> [...]
> MN> > But, it's a mystery for me.
> MN> > Why the pulseaudio's settings problem is specific to me  ?
> 
> CH>  I don't know. All I can think of was pulseaduio not running (as
> CH>  your user - not as root or some other user). All Enlightenment
> CH>  does is talk to the pulseaudio daemon using libpluse - like you
> CH>  use xlib to talk to the xserver.
> 
> I can fully understand wha you mean, I think.
> 
> But, pulsedaemon does always run just after booting.
> Because,
> 
> 1. After booting, I can always hear the switching on sound of mu USB
>   DAC.
> 
> 2. I always begin  the PC operation with starting music via audacious.
> 
> 
> 
> One question.
> 
> As a root, accessing to pulseaudio is always denied ;
> 
> # aplay /home/masaru/wav/Track\ 2.wav 
> XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! 
> (This could e.g. happen if you try to connect to a non-root PulseAudio as a 
> root user, over the native protocol. Don't do that.)
> ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access 
> denied

yes, it's a pulseaudio policy, mpv does the same to me and switches to ALSA, 
but works.


> 
> aplay: main:831: audio open error: Connection refused
> 
> Is this phenomena within your expectations?
> 
> Thanks.
> 
> ---
> ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
> ┃\/彡
> ┗━━┛ "Bill! You married with Computer.
>   Not with Me!"
>  "No..., with money."
> 
> 
> ___
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
--- Hell'O from Yverdoom

Jérémy (jeyzu)


___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] How can I get system sounds?

2021-06-27 Thread Carsten Haitzler
On Sun, 27 Jun 2021 08:56:05 +0900 Masaru Nomiya  said:

> Hello,
> 
> I rebooted, but no sounds from e.
> 
> In the Message; 
> 
>   Subject: Re: [e-users] How can I get system sounds?
>   Message-ID : <20210626234417.9f9757fe0a5a34e230529...@rasterman.com>
>   Date & Time: Sat, 26 Jun 2021 23:44:17 +0100
> 
> [CH] == Carsten Haitzler  has written:
> 
> [...]
> MN> > But, it's a mystery for me.
> MN> > Why the pulseaudio's settings problem is specific to me  ?
> 
> CH>  I don't know. All I can think of was pulseaduio not running (as
> CH>  your user - not as root or some other user). All Enlightenment
> CH>  does is talk to the pulseaudio daemon using libpluse - like you
> CH>  use xlib to talk to the xserver.
> 
> I can fully understand wha you mean, I think.
> 
> But, pulsedaemon does always run just after booting.
> Because,

does it run as you, or root? below seems to imply pulse is running as you.

> 1. After booting, I can always hear the switching on sound of mu USB
>   DAC.
> 
> 2. I always begin  the PC operation with starting music via audacious.

when you play audio... is pulseaudio using cpu? it's > 0% cpu?

> 
> 
> One question.
> 
> As a root, accessing to pulseaudio is always denied ;
> 
> # aplay /home/masaru/wav/Track\ 2.wav 
> XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000!
> (This could e.g. happen if you try to connect to a non-root PulseAudio as a
> root user, over the native protocol. Don't do that.) ALSA lib pulse.c:243:
> (pulse_connect) PulseAudio: Unable to connect: Access denied

oh... this is just aplay's pulse support not liking $XDG_RUNTIME_DIR because you
have inherited that environment variable from the user and that points to the
user (UID 1000) runtime dir. the runtime dir is the "freedesktop standards"
directory to put sockets and other "only used at runtime" files that do not
need to stay after a user has logged out or the system restarts. so this is
where some temporary data and socket and such files goe. it's normally in some
tmpfs or ramdisk so it consumes ram/ to put stuff here, so don't put large
files that stay around unless you like to allocate that ram for that.

> aplay: main:831: audio open error: Connection refused
> 
> Is this phenomena within your expectations?

yes. :) explained above.

> Thanks.
> 
> ---
> ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
> ┃\/彡
> ┗━━┛ "Bill! You married with Computer.
>   Not with Me!"
>  "No..., with money."
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
Carsten Haitzler - ras...@rasterman.com



___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] How can I get system sounds?

2021-06-27 Thread Carsten Haitzler
On Sun, 27 Jun 2021 08:03:35 +0200 Massimo Maiurana  said:

> I don't know it this is related, but sometimes in my PC enlightenment  
> seems to loose connection with pulse: mixer doesn't show any card, I get  
> only dummy device. Restarting the E session restores the connection, though.

pulseaudio might be crashing? again - libpulse handles connecting to and
talking to pulseaudio. the mixer module just uses libpulse to talk to
pulseaudio. loss of connection would suggest pulseaudio is going away and that
closes the connection.

> Massimo Maiurana
> 
> Masaru Nomiya ha scritto il 27/06/21 alle 01:56:
> > Hello,
> > 
> > I rebooted, but no sounds from e.
> > 
> > In the Message;
> > 
> >Subject: Re: [e-users] How can I get system sounds?
> >Message-ID : <20210626234417.9f9757fe0a5a34e230529...@rasterman.com>
> >Date & Time: Sat, 26 Jun 2021 23:44:17 +0100
> > 
> > [CH] == Carsten Haitzler  has written:
> > 
> > [...]
> > MN> > But, it's a mystery for me.
> > MN> > Why the pulseaudio's settings problem is specific to me  ?
> > 
> > CH>  I don't know. All I can think of was pulseaduio not running (as
> > CH>  your user - not as root or some other user). All Enlightenment
> > CH>  does is talk to the pulseaudio daemon using libpluse - like you
> > CH>  use xlib to talk to the xserver.
> > 
> > I can fully understand wha you mean, I think.
> > 
> > But, pulsedaemon does always run just after booting.
> > Because,
> > 
> > 1. After booting, I can always hear the switching on sound of mu USB
> >DAC.
> > 
> > 2. I always begin  the PC operation with starting music via audacious.
> > 
> > 
> > 
> > One question.
> > 
> > As a root, accessing to pulseaudio is always denied ;
> > 
> > # aplay /home/masaru/wav/Track\ 2.wav
> > XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid
> > 1000! (This could e.g. happen if you try to connect to a non-root
> > PulseAudio as a root user, over the native protocol. Don't do that.) ALSA
> > lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied
> > 
> > aplay: main:831: audio open error: Connection refused
> > 
> > Is this phenomena within your expectations?
> > 
> > Thanks.
> > 
> > ---
> > ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
> > ┃\/彡
> > ┗━━┛ "Bill! You married with Computer.
> >Not with Me!"
> >   "No..., with money."
> > 
> > 
> > ___
> > enlightenment-users mailing list
> > enlightenment-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> > 
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
Carsten Haitzler - ras...@rasterman.com



___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] How can I get system sounds?

2021-06-27 Thread Massimo Maiurana
I don't know it this is related, but sometimes in my PC enlightenment  
seems to loose connection with pulse: mixer doesn't show any card, I get  
only dummy device. Restarting the E session restores the connection, though.


Massimo Maiurana

Masaru Nomiya ha scritto il 27/06/21 alle 01:56:

Hello,

I rebooted, but no sounds from e.

In the Message;

   Subject: Re: [e-users] How can I get system sounds?
   Message-ID : <20210626234417.9f9757fe0a5a34e230529...@rasterman.com>
   Date & Time: Sat, 26 Jun 2021 23:44:17 +0100

[CH] == Carsten Haitzler  has written:

[...]
MN> > But, it's a mystery for me.
MN> > Why the pulseaudio's settings problem is specific to me  ?

CH>  I don't know. All I can think of was pulseaduio not running (as
CH>  your user - not as root or some other user). All Enlightenment
CH>  does is talk to the pulseaudio daemon using libpluse - like you
CH>  use xlib to talk to the xserver.

I can fully understand wha you mean, I think.

But, pulsedaemon does always run just after booting.
Because,

1. After booting, I can always hear the switching on sound of mu USB
   DAC.

2. I always begin  the PC operation with starting music via audacious.



One question.

As a root, accessing to pulseaudio is always denied ;

# aplay /home/masaru/wav/Track\ 2.wav
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! 
(This could e.g. happen if you try to connect to a non-root PulseAudio as a 
root user, over the native protocol. Don't do that.)
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access 
denied

aplay: main:831: audio open error: Connection refused

Is this phenomena within your expectations?

Thanks.

---
┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "Bill! You married with Computer.
   Not with Me!"
  "No..., with money."


___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users




___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users