ading2210 / shimboot

Boot a desktop Linux distribution from a Chrome OS RMA shim.
https://shimboot.ading.dev
GNU General Public License v3.0
135 stars 41 forks source link

X11 GPU acceleration does not work (Gemini Lake - octopus - Debian Stable on Linux 4.14) #45

Open kkilobyte opened 3 months ago

kkilobyte commented 3 months ago

Describe the bug When trying to enable GPU acceleration using the apt and echo commands found in the FaQ of the readme, GPU acceleration will not enable with i915 or i965 driver and using X11.

To Reproduce Steps to reproduce the behavior:

  1. Run sudo apt install libglx-amber0 libegl-amber0 && echo "MESA_LOADER_DRIVER_OVERRIDE=i965" | sudo tee -a /etc/environment or replace i965 with i915.
  2. Reboot the system.
  3. Login to any X11 desktop enviroment.
  4. Try to do anything with animations or constant screen refreshing (like opening the app menu or typing quickly).
  5. See screen tearing and jittery or no animations.

Expected behavior Any animations should be smooth and visible while not seeing any screen tearing regardless if you use Wayland or X11.

Screenshots / Photos VIDEO - https://github.com/user-attachments/assets/24ee73a4-a027-41de-845d-084f95bbe8bb

image

Target ChromeOS Device (please complete the following information):

Additional context

This only happens in X11. Wayland works fine with the i965 driver. This GitHub Issue was created before I discovered Wayland worked. I am using a prebuilt v1.1.1 image from the releases tab and I have replaced LightDM and XFCE4 with SDDM and KDE 5. I have Debian itself on the eMMC while using a SD card as the bootloader, and used dpkg-reconfigure to change the timezone from UTC to PDT. Using TerraOS with Arch with a similar disk configuration with the SD card being the bootloader and Arch being on the eMMC I still had proper GPU acceleration.

ading2210 commented 3 months ago

Can you send your Xorg.0.log file? If you're using wayland currently try Xorg.

kkilobyte commented 3 months ago

Can you send your Xorg.0.log file? If you're using wayland currently try Xorg.

everytime i tried to use wayland i just got a black screen so i just assumed the shim kernel was too old for wayland

edit: wayland works fine

either way here is the Xorg.0.log file

ading2210 commented 3 months ago

Did GPU acceleration work before you switched out XFCE for KDE?

kkilobyte commented 3 months ago

i'll recheck but xfce did have screen tearing but i passed that off as xfce being xfce

edit: yeah no switching back to xfce made no difference even after switching back to lightdm too

edit 2: i got kde wayland to boot but even the cursor lags (for 30 seconds) and everything becomes 100x slower which makes wayland not even worth using, even opening a minimized apps takes like 30 seconds to load

edit 3: i was using the i915 driver instead of the i965 driver, wayland works fine

kkilobyte commented 3 months ago

NEVERMIND,

The i965 driver worked after being enabled and rebooted, and then logging into a Wayland session with smooth animations and zero screen tearing, although X11 still presents a screen tearing effect with sluggish or no animations.

The i915 driver is completely borked on both Wayland and X11 however i915 is meant for Apollolake anyways iirc, (Celeron N4000 is Geminilake).

Will keep the issue open tho for now for those X11 fanboys.

kkilobyte commented 1 month ago

Just for documentation purposes, I have tested on Celeron N4020 and N4000 varients of octopus phaser360 (Lenovo 300e Chromebook Gen 2 (Intel)) with the same issue.