xfce4, xorg work in progress

This commit is contained in:
Daniel Langbein 2021-05-05 16:20:25 +02:00
parent a50732fdfe
commit 0a25b823cc
12 changed files with 259 additions and 7 deletions

View File

@ -2,7 +2,7 @@
_pkgname=base-efi
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.1.6
pkgver=0.1.7
pkgrel=1
pkgdesc="base packages for headless Arch installation"
arch=('any')
@ -27,6 +27,8 @@ depends+=('ntfs-3g')
depends+=('de-p1st-grub' 'efibootmgr')
# pacman config
depends+=('de-p1st-pacman')
# makepkg config (part of pacman)
depends+=('de-p1st-makepkg')
# sudo itself is part of base-devel, but sudo configuration is not ;)
depends+=('de-p1st-sudo')
# shell

View File

@ -0,0 +1,24 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=gpu-amdgpu
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="AMDGPU"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
# "DRI driver for 3D acceleration"
depends=(mesa)
# "DDX driver for 2D acceleration"
depends+=(xf86_video_amdgpu)
# "Vulkan support"
depends+=(vulkan_radeon)
# "HW-vide-acceleration: VA-API"
depends+=(libva_mesa_driver)
# "HW-vide-acceleration: VDPAU"
depends+=(mesa_vdpau)
optdepends=()
provides=('de-p1st-gpu') # implicitly provides $pkgname

View File

@ -0,0 +1,66 @@
# AMD Graphics Card
Good overview (table):
* [wiki.gentoo.org/Radeon](https://wiki.gentoo.org/wiki/Radeon#Feature_support)
* [wiki.gentoo.org/AMDGPU](https://wiki.gentoo.org/wiki/AMDGPU#Feature_support)
## AMDGPU
From gentoo wiki one should use AMDGPU e.g. for:
> AMD Zen 2 "4000" series 7nm laptop APUs
### AMDGPU (mandatory packages)
* archwiki -> AMDGPU -> Installation
* archwiki -> Xorg -> AMD
* archwiki -> Lenovo-IdeaPad-S540-13ARE (Ryzen 7 4800U CPU)
* archwiki -> Hardware_video_acceleration -> ATI/AMD
* HW-video-accel verification:
* run `vainfo` and `vdpauinfo` as non-root
**TODO**: archwiki -> kernel-mode-setting -> early-kms-start
For AMDGPU: in /etc/mkinitcpio.conf include "amdgpu" in MODULES=(...).
Otherwise Xorg might not start properly.
```shell
# "DRI driver for 3D acceleration"
depends=(mesa)
# "DDX driver for 2D acceleration"
depends+=(xf86_video_amdgpu)
# "Vulkan support"
depends+=(vulkan_radeon)
# "HW-vide-acceleration: VA-API"
depends+=(libva_mesa_driver)
# "HW-vide-acceleration: VDPAU"
depends+=(mesa_vdpau)
```
### AMDGPU PRO (optional packages)
* archwiki -> AMDGPU#AMDGPU_PRO
* archwiki -> AMDGPU_PRO
The amdgpu-pro-installer contains proprietary components for
AMDGPU (it works on top of AMDGPU).
Quote about the opengl part (from archwiki -> AMDGPU):
> From Radeon Software 18.50 vs Mesa 19 benchmarks article:
> When it comes to OpenGL games, the RadeonSI Gallium3D driver
> simply dominates the proprietary AMD OpenGL driver.
```shell
# proprietary OpenGL implementation
depends+=(amdgpu-pro-libgl)
# proprietary OpenCL implementation
depends+=(opencl-amd)
# proprietary Vulkan implementation
depends+=(vulkan-amdgpu-pro)
# Advanced Media Framework implementation
depends+=(amf-amdgpu-pro)
```

View File

@ -28,6 +28,12 @@ BIOS_TYPE=uefi
LEAVE_MOUNTED=1
PACSTRAP_INTERACTIVE=1
# Additional pacman packages, e.g. to specify the preferred providers and avoid questions during pacstrap
# Additional pacman packages
# E.g. to specify the preferred providers and avoid questions during pacstrap
# -> Choose providers for initramfs, de-p1st-kernel, de-p1st-ucode
#
# Even though de-p1st-mkinitcpio depends on mkinitcpio,
# pacstrap will still ask for an provider for initramfs
# except if we explicitly add mkinitcpio here
ADDITIONAL_PKGS=('mkinitcpio' 'de-p1st-kernel-lts' 'de-p1st-ucode-placeholder')
# TODO: add initramfs to depends of base-efi?

View File

@ -0,0 +1,69 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=xfce4
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="XFCE4 with configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
depends=()
# ============== DRIVERS ==============
depends+=(de-p1st-gpu)
# ============== xorg and XFCE4 ==============
#
# xfce4 group
# pacman -Sg xfce4 | sed 's|^xfce4 |depends+=(|; s|$|)|'
depends+=(xfce4-meta)
# some pkgs from xfce4-goodies group, except e.g.
# ristretto (image viewer)
# xfce4-artwork
# xfce4-time-out-plugin (take breaks)
# xfce4-timer-plugin
# xfce4-xkb-plugin (keyboard layouts)
depends+=(mousepad thunar-archive-plugin thunar-media-tags-plugin xfce4-genmon-plugin xfce4-notifyd xfce4-screensaver xfce4-screenshooter xfce4-weather-plugin xfce4-whiskermenu-plugin)
#
# thunar optional dependencies:
# - gvfs: for trash support, mounting with udisk and remote
# filesystems (e.g. webdav)
depends+=(gvfs)
# NetworkManager applet
depends+=(network-manager-applet)
# keyring/secrets
# -> https://wiki.archlinux.org/index.php/GNOME/Keyring
depends+=(gnome-keyring libsecret)
# ============== display manager ==============
depends+=(sddm)
makedepends=('git')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+${url}.git")
noextract=()
sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 img/face.jpg "$pkgdir"/etc/skel/.face
# === display manager ===
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset
install -Dm0644 autologin.conf "$pkgdir"/etc/sddm.conf.d/autologin.conf
}

View File

@ -1,5 +1 @@
depend on de-p1st-theme, xfce4-meta (AUR)
denend on de-p1st-graphic-driver
-> proved by de-p1st-graphic-driver-amd and
de-p1st-graphic-driver-nvidia and
de-p1st-graphic-driver-intel

View File

@ -0,0 +1,18 @@
[Autologin]
Relogin=false
Session=xfce
# Session=plasma
User=yoda
[General]
HaltCommand=/usr/bin/systemctl poweroff
RebootCommand=/usr/bin/systemctl reboot
# [Theme]
# # ls /usr/share/sddm/themes
# # "breeze" is part of plasma-workspace
# Current=breeze
[Users]
MaximumUid=60000
MinimumUid=1000

View File

@ -0,0 +1,9 @@
Pixabay License: https://pixabay.com/service/license/
Credits:
* https://pixabay.com/users/ribastank-805206/
Source:
* https://pixabay.com/photos/yoda-starwars-actionfigure-667955/
* https://free-images.com/display/yoda_starwars_actionfigure_667955.html

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 818 KiB

View File

@ -0,0 +1 @@
enable sddm.service

61
pkg/xorg-meta/PKGBUILD Normal file
View File

@ -0,0 +1,61 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_reponame=arch
pkgname="xorg-meta"
pkgver=0.0.1
pkgrel=1
pkgdesc="Meta package for installing the xorg group"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
depends=()
# xorg group
# pacman -Sg xorg | sed 's|^xorg |depends+=(|; s|$|)|'
depends+=(xf86-video-vesa) # if no specific driver is found by xorg, then this generic one is used
depends+=(xorg-bdftopcf)
depends+=(xorg-docs)
depends+=(xorg-font-util)
depends+=(xorg-fonts-100dpi)
depends+=(xorg-fonts-75dpi)
depends+=(xorg-fonts-encodings)
depends+=(xorg-iceauth)
depends+=(xorg-mkfontscale)
depends+=(xorg-server)
depends+=(xorg-server-common)
depends+=(xorg-server-devel)
depends+=(xorg-server-xephyr)
depends+=(xorg-server-xnest)
depends+=(xorg-server-xvfb)
depends+=(xorg-sessreg)
depends+=(xorg-setxkbmap)
depends+=(xorg-smproxy)
depends+=(xorg-x11perf)
depends+=(xorg-xauth)
depends+=(xorg-xbacklight)
depends+=(xorg-xcmsdb)
depends+=(xorg-xcursorgen)
depends+=(xorg-xdpyinfo)
depends+=(xorg-xdriinfo)
depends+=(xorg-xev)
depends+=(xorg-xgamma)
depends+=(xorg-xhost)
depends+=(xorg-xinput)
depends+=(xorg-xkbcomp)
depends+=(xorg-xkbevd)
depends+=(xorg-xkbutils)
depends+=(xorg-xkill)
depends+=(xorg-xlsatoms)
depends+=(xorg-xlsclients)
depends+=(xorg-xmodmap)
depends+=(xorg-xpr)
depends+=(xorg-xprop)
depends+=(xorg-xrandr)
depends+=(xorg-xrdb)
depends+=(xorg-xrefresh)
depends+=(xorg-xset)
depends+=(xorg-xsetroot)
depends+=(xorg-xvinfo)
depends+=(xorg-xwayland)
depends+=(xorg-xwd)
depends+=(xorg-xwininfo)
depends+=(xorg-xwud)