Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

surface linux support #202

Open
KUKARAF opened this issue Aug 17, 2024 · 1 comment
Open

surface linux support #202

KUKARAF opened this issue Aug 17, 2024 · 1 comment
Labels

Comments

@KUKARAF
Copy link

KUKARAF commented Aug 17, 2024

Feature Description

adding kernel support for surface linux
https://github.com/linux-surface/linux-surface/wiki/Installation-and-Setup

Rationale

huge part of the hardware does not work without the kernel and i fail to see a obvious way of adding it

Additional Information

No response

@KUKARAF KUKARAF added the triage label Aug 17, 2024
@KUKARAF KUKARAF changed the title surface linux for vanilla os surface linux support Aug 17, 2024
@juan11iguel
Copy link

(warning, I am just starting to discover vanilla os so take my take with a grain of salt)

This would probably have to be achieved by creating a custom image by forking this repo and modifying recipe.yml

Here is a draft taking the instructions from linux-surface - Installation-and-Setup

name: Vanilla Desktop
id: desktop

stages:
- id: build
  base: ghcr.io/vanilla-os/core:dev
  singlelayer: false
  labels:
    maintainer: Vanilla OS Contributors
  args:
    DEBIAN_FRONTEND: noninteractive
  runs:
    commands:
      - echo 'APT::Install-Recommends "1";' > /etc/apt/apt.conf.d/01norecommends

  modules:
	...
    - name: install-linux-surface
        type: shell
        commands:
        # Import keys
        - wget -qO - https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc | gpg --dearmor | dd of=/etc/apt/trusted.gpg.d/linux-surface.gpg
        # Update repository configuration
        - echo "deb [arch=amd64] https://pkg.surfacelinux.com/debian release main" | tee /etc/apt/sources.list.d/linux-surface.list
        - apt update
        # Install linux-surface kernel and its dependencies
        - apt install linux-image-surface linux-headers-surface libwacom-surface iptsd
        # Install linux-surface bootloader so that the kernel is bootable without disabling secureboot
        - sudo apt install linux-surface-secureboot-mok
        # Post-install instructions
        # Install CPU microcode firmware for the latest CPU updates
        - apt install intel-microcode

This probably won't work just as is, and I am unsure how this image would be kept updated as new versions of the base are updated. Maybe this is not the best approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants