sebanc / brioche

An alternative to Crostini / Crouton for devices running brunch
GNU General Public License v3.0
77 stars 8 forks source link

GUI App show with a broken graphics #37

Open neptalactone opened 2 years ago

neptalactone commented 2 years ago

I just finished install ChromeOS through brunch and find this so it got me curious and want to try it. long story short i install 2 container, kali and arch linux. I install a desktop on both. then proceed to try to launch GUI App from cros shell with: brioche app .

The apps appear, but it shows a broken graphics. i already tried to run with sommelier and use --dri-device argument to try to change the rendering card/gpu. but none of it works.

Screenshot 2022-06-26 21 49 28

That is the screenshot from Kleopatra app that i tried to run.

For reference, this is my hardware specs: Acer Nitro 5 AN515-43 CPU: AMD Ryzen 5 3550H iGPU: Vega 8 dGPU: RX550X

And also if i tried to run a full desktop with command: brioche desktop plasma. Nothing appear.

Any ideas?

neptalactone commented 2 years ago

Okay, i managed to test and resolved it. There is this line in the brioche script near the end of the file:

  1. for executing an app from command (brioche app ): sommelier -X --x-display=:1 --shm-driver=noop --drm-device=/dev/dri/card$CONTAINER_GPU --glamor $SOMMELIER_ARGS ~/.brioche_last_app.sh
  2. for executing desktop from command (brioche desktop <desktops): sommelier -X --x-display=:1 --shm-driver=noop --drm-device=/dev/dri/card$CONTAINER_GPU --glamor $SOMMELIER_ARGS xinit ~/.brioche_last_desktop.sh -- /usr/bin/Xephyr -resizeable -fullscreen :2

I have to change the card thing from --drm-device variable to entries that i found on /dev/dri, both on the container and from the host so it will be using my other GPU, (i don't know which are which). From that line in brioche script, i change from the default card0 (0 is the value of $CONTAINER_GPU variable) to card1 manually.