diff --git a/arch-install.sh b/arch-install.sh index 538fa37..371c7a5 100755 --- a/arch-install.sh +++ b/arch-install.sh @@ -1248,7 +1248,7 @@ function abfrage() { [[ -z "${nvidia}" ]] && nvidia=n if lspci | grep -e VGA -e 3D -m 1 | grep AMD; then - read -p "Have you a AMD Graphic-Card or a Steam Deck? : [amd/steam/N] " amd + read -p "Have you a AMD Graphic-Card or a Steam Deck? : [amd/deck/N] " amd fi [[ -z "${amd}" ]] && amd=n @@ -1624,10 +1624,16 @@ if [ "${amd}" == "amd" ]; then arch-chroot ${mountpoint} pacman -Sy lib32-amdvlk amdvlk opencl-mesa lib32-opencl-mesa --needed --noconfirm # https://wiki.archlinux.org/title/Vulkan#Selecting_Vulkan_driver echo "VK_ICD_FILENAMES=\"/usr/share/vulkan/icd.d/amd_icd64.json\"" >> ${mountpoint}/etc/environment -elif [ "${amd}" == "steam" ]; then +elif [ "${amd}" == "deck" ]; then arch-chroot ${mountpoint} pacman -Sy lib32-amdvlk amdvlk opencl-mesa lib32-opencl-mesa --needed --noconfirm # https://wiki.archlinux.org/title/Vulkan#Selecting_Vulkan_driver echo "AMD_VULKAN_ICD=RADV" >> ${mountpoint}/etc/environment + cp -v /opt/${repo}/steam-deck/xorg.conf.d/* ${mountpoint}/etc/X11/xorg.conf.d/ + + # An open-source Linux userspace driver for Valves Steam Deck hardware. + # https://open-sd.gitlab.io/opensd-docs/opensd-docs/latest/users_manual/run> + arch-chroot ${mountpoint} su "${user}" -c "aurinstaller opensd-git" + arch-chroot ${mountpoint} su "${user}" -c "systemctl --user enable opensd" fi if [ "${multicard}" == "y" ]; then diff --git a/steam-deck/xorg.conf.d/30-monitor.conf b/steam-deck/xorg.conf.d/30-monitor.conf new file mode 100644 index 0000000..c66b364 --- /dev/null +++ b/steam-deck/xorg.conf.d/30-monitor.conf @@ -0,0 +1,4 @@ +Section "Monitor" + Identifier "eDP" + Option "Rotate" "right" +EndSection diff --git a/steam-deck/xorg.conf.d/90-touchscreen.conf b/steam-deck/xorg.conf.d/90-touchscreen.conf new file mode 100644 index 0000000..3f4a0a6 --- /dev/null +++ b/steam-deck/xorg.conf.d/90-touchscreen.conf @@ -0,0 +1,7 @@ +Section "InputClass" + Identifier "Coordinate Transformation Matrix" + MatchIsTouchscreen "on" + MatchDevicePath "/dev/input/event*" + MatchDriver "libinput" + Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1" +EndSection