View Single Post
preflex's Avatar
Posts: 172 | Thanked: 628 times | Joined on Apr 2010 @ Albuquerque, NM, USA
#60
I got pulseaudio working.
It was kind of tricky, and was muted by default.
I'll have to figure out what exactly I did, but here's an overview.

I created a user "nemo" inside the chroot, and changed his UID and GID each to 100000. I may have also added nemo to some groups. I'm not sure what actually stuck. systemd is weird.

you'll need the "xorg-xhost" package. "pavucontrol" may also be handy for looking at pulseaudio stuff, if you're unfamiliar with pacmd or pactl.


There was some extra stuff to mount:
/run
/var/lib/dbus
/tmp
/home/nemo/.config/pulse

then chroot in, set environment vars, and start kwin_wayland.

after that,
Code:
export DISPLAY=:0
xhost +
Then it gets a little weird.
Code:
sudo -u \#100000 bash
to get a shell as "nemo".

Then,
Code:
export $(dbus-launch)
export XDG_RUNTIME_DIR=/run/user/100000
export DISPLAY=:0
startlxde
Then, I unmuted the device in pavucontrol.

I was also able to get a full plasma session running in the xwayland window, but it was slow, and I couldn't disable desktop effects which were making everything even slower (using xrender, I imagine).

Still no luck running kwin_wayland --xwayland as anyone other than root.
__________________
Leap before you look.
 

The Following 17 Users Say Thank You to preflex For This Useful Post: