
On Wed, 30 Jun 2021 13:38:50 +0200, Masaru Nomiya wrote:
Wolfgang Mueller has written:
[...] On Tue, 29 Jun 2021 at 23:56:40 +0200, Masaru Nomiya wrote:
What messages do you get with this? $ pulseaudio
Invoked as "pulseaudio" by root, it says: "W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified)."
Invoked as "pulseaudio" by a user, its reply is: "E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied"
If the system did not keep secret the home directory's name, I could do a "chmod 777".
Invoked as "sudo pulseaudio" by a user, it produces these 3 lines: [1] "W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified)." [2] "W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11" [3] "W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11"
Please try as an user, not necessary as a root.
Anyway,
1. please check this works or not;
$ export DISPLAY=:0
Under tcsh, this is equivalent to "setenv DISPLAY :0".
$ pulseaudio
Response: "E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied" After this failure, I retried it under bash: $ export DISPLAY=:0 $ pulseaudio Again the same error message: "E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied"
2. if works, goto 3., if not got 5.
Since it did not work, I skipped the steps 3. and 4.
3. $ echo DISPLAY=:0 >> ~/.bashrc $ source ~/.bashrc
after this,
$ pulseaudio
If works, just show the results of;
4.1 $ pacmd list-cards
4.2 $ pacmd list snd
4.3 $ pacmd list-sinks
4.4 $ aplay -L
5. If you still get the D-Bus related error messages; please show the output of this;
$ cat DBUS_SESSION_BUS_ADDRESS
Response: "cat: DBUS_SESSION_BUS_ADDRESS: No such file or directory"
Regards. at 8:80 PM JST.
Regards, at 3:00 PM CEST (GMT+2), Wolfgang