mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
feat(deck): Switch to new steamdeck-dsp package for audio.
chore: Minor adjustments to how services are enabled by default
This commit is contained in:
parent
8a1d9dcb6b
commit
0857277629
@ -400,6 +400,7 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
|
||||
RUN rpm-ostree install \
|
||||
jupiter-fan-control \
|
||||
jupiter-hw-support-btrfs \
|
||||
steamdeck-dsp \
|
||||
powerbuttond \
|
||||
HandyGCCS \
|
||||
vpower \
|
||||
@ -484,18 +485,22 @@ RUN /tmp/image-info.sh && \
|
||||
systemctl enable sddm.service \
|
||||
; fi && \
|
||||
systemctl enable bazzite-autologin.service && \
|
||||
systemctl enable jupiter-fan-control.service && \
|
||||
systemctl enable btrfs-dedup@run-media-mmcblk0p1.timer && \
|
||||
systemctl enable vpower.service && \
|
||||
systemctl enable ds-inhibit.service && \
|
||||
systemctl enable cec-onboot.service && \
|
||||
systemctl enable cec-onpoweroff.service && \
|
||||
systemctl enable cec-onsleep.service && \
|
||||
systemctl --global enable steam-web-debug-portforward.service && \
|
||||
systemctl --global enable sdgyrodsu.service && \
|
||||
systemctl --global disable sdgyrodsu.service && \
|
||||
systemctl disable input-remapper.service && \
|
||||
systemctl disable ublue-update.timer && \
|
||||
systemctl disable handycon.service && \
|
||||
systemctl disable jupiter-fan-control.service && \
|
||||
systemctl disable vpower.service && \
|
||||
systemctl disable jupiter-biosupdate.service && \
|
||||
systemctl disable jupiter-controller-update.service && \
|
||||
systemctl disable ryzenadj.service && \
|
||||
systemctl disable batterylimit.service && \
|
||||
rm -f /usr/etc/sddm.conf && \
|
||||
rm -f /usr/etc/default/bazzite && \
|
||||
rm -rf \
|
||||
|
@ -232,6 +232,7 @@ Ported SteamOS and ChimeraOS packages, among others used by Bazzite, are built o
|
||||
|[sddm-sugar-steamOS](https://github.com/JiayuanWen/sddm-sugar-steamOS)||
|
||||
|[sdgyrodsu](https://github.com/kmicki/SteamDeckGyroDSU)||
|
||||
|[steam-patch](https://github.com/KyleGospo/steam-patch)||
|
||||
|steamdeck-dsp||
|
||||
|steamdeck-gnome-presets||
|
||||
|steamdeck-kde-presets||
|
||||
|steamdeck-kde-presets-desktop||
|
||||
|
@ -1,71 +0,0 @@
|
||||
context.modules = [
|
||||
{ name = libpipewire-module-filter-chain
|
||||
args = {
|
||||
node.description = "Noise Canceling source"
|
||||
media.name = "Noise Canceling source"
|
||||
filter.graph = {
|
||||
nodes = [
|
||||
{
|
||||
type = ladspa
|
||||
name = rnnoise
|
||||
plugin = /usr/lib64/ladspa/librnnoise_ladspa.so
|
||||
label = noise_suppressor_stereo
|
||||
control = {
|
||||
"VAD Threshold (%)" = 23.0
|
||||
"VAD Grace Period (ms)" = 200
|
||||
}
|
||||
}
|
||||
{
|
||||
type = ladspa
|
||||
name = equaliser
|
||||
plugin = /usr/lib64/ladspa/caps.so
|
||||
label = Eq10X2
|
||||
control = {
|
||||
"31 Hz" 0
|
||||
"63 Hz" 0
|
||||
"125 Hz" 0
|
||||
"250 Hz" 0
|
||||
"500 Hz" 0
|
||||
"1 kHz" 0
|
||||
"2 kHz" 0
|
||||
"4 kHz" 0
|
||||
"8 kHz" -3
|
||||
"16 kHz" -3
|
||||
}
|
||||
}
|
||||
{
|
||||
type = ladspa
|
||||
name = compressor
|
||||
plugin = /usr/lib64/ladspa/caps.so
|
||||
label = CompressX2
|
||||
control = {
|
||||
"measure" 1
|
||||
"mode" 1
|
||||
"threshold" 0.5
|
||||
"strength" 0.25
|
||||
"attack" 0.75
|
||||
"release" 0.5
|
||||
"gain (dB)" 12
|
||||
}
|
||||
}
|
||||
]
|
||||
links = [
|
||||
{ output = "rnnoise:Output (L)" input = "equaliser:in.l" }
|
||||
{ output = "rnnoise:Output (R)" input = "equaliser:in.r" }
|
||||
{ output = "equaliser:out.l" input = "compressor:in.l" }
|
||||
{ output = "equaliser:out.r" input = "compressor:in.r" }
|
||||
]
|
||||
}
|
||||
capture.props = {
|
||||
node.name = "capture.rnnoise_source"
|
||||
node.passive = true
|
||||
audio.rate = 48000
|
||||
}
|
||||
playback.props = {
|
||||
node.name = "rnnoise_source"
|
||||
media.class = Audio/Source
|
||||
audio.rate = 48000
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
@ -1,25 +0,0 @@
|
||||
bluez_monitor.properties = {
|
||||
-- we only want these audio profiles:
|
||||
-- 0000110a-0000-1000-8000-00805f9b34fb Audio Source
|
||||
-- 0000110b-0000-1000-8000-00805f9b34fb Audio Sink
|
||||
-- 0000110d-0000-1000-8000-00805f9b34fb Advanced Audio Distribution
|
||||
["bluez5.roles"] = "[ a2dp_sink a2dp_source ]",
|
||||
|
||||
-- And only this one headset related profile:
|
||||
-- 00001112-0000-1000-8000-00805f9b34fb Headset
|
||||
-- disabled: 00001108-0000-1000-8000-00805f9b34fb hsp_hs
|
||||
-- disabled: 0000111e-0000-1000-8000-00805f9b34fb hfp_hs
|
||||
-- disabled: 0000111f-0000-1000-8000-00805f9b34fb hfp_ag
|
||||
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> * <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
-- NOTE: check hfphsp-backend below as that also affects hs/hf profiles
|
||||
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> * <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
["bluez5.headset-roles"] = "[ hsp_ag ]",
|
||||
|
||||
-- HFP/HSP backend (default: native).
|
||||
-- Available values: any, none, hsphfpd, ofono, native
|
||||
-- setting this to "none" disables all headset roles
|
||||
["bluez5.hfphsp-backend"] = "none",
|
||||
|
||||
-- Disable dummy AVRCP player
|
||||
["bluez5.dummy-avrcp-player"] = false
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
--ACP5X card hardware never hibernates, so remove the pops and lags.
|
||||
|
||||
table.insert (alsa_monitor.rules, {
|
||||
matches = {
|
||||
{
|
||||
-- Matches all sources from card acp5x
|
||||
{ "node.name", "matches", "alsa_input.*" },
|
||||
{ "alsa.card_name", "matches", "acp5x" },
|
||||
},
|
||||
|
||||
{
|
||||
-- Matches all sources from card acp6x
|
||||
{ "node.name", "matches", "alsa_input.*" },
|
||||
{ "alsa.card_name", "matches", "acp6x" },
|
||||
},
|
||||
|
||||
{
|
||||
-- Matches all sources from SOF drivers
|
||||
{ "node.name", "matches", "alsa_input.*" },
|
||||
{ "alsa.card_name", "matches", "sof-nau8821-max" },
|
||||
},
|
||||
|
||||
{
|
||||
-- Matches all sinks from card acp5x
|
||||
{ "node.name", "matches", "alsa_output.*" },
|
||||
{ "alsa.card_name", "matches", "acp5x" },
|
||||
},
|
||||
|
||||
{
|
||||
-- Matches all sinks from card acp6x
|
||||
{ "node.name", "matches", "alsa_output.*" },
|
||||
{ "alsa.card_name", "matches", "acp6x" },
|
||||
},
|
||||
|
||||
{
|
||||
-- Matches all sinks from card acp6x
|
||||
{ "node.name", "matches", "alsa_output.*" },
|
||||
{ "alsa.card_name", "matches", "sof-nau8821-max" },
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
apply_properties = {
|
||||
["session.suspend-timeout-seconds"] = 0,
|
||||
["api.alsa.headroom"] = 1024,
|
||||
|
||||
}
|
||||
})
|
@ -1,25 +0,0 @@
|
||||
-- HDMI output is always plugged in card 0 (HD_Audio Generic)
|
||||
-- We always give higher priority to nodes from that card
|
||||
-- Disable suspend timeout for HDMI to remove audio delay after idle
|
||||
|
||||
table.insert (alsa_monitor.rules, {
|
||||
matches = {
|
||||
{
|
||||
-- Matches all sources from card HD-Audio Generic
|
||||
{ "node.name", "matches", "alsa_input.*" },
|
||||
{ "alsa.card_name", "matches", "HD-Audio Generic" },
|
||||
},
|
||||
{
|
||||
-- Matches all sinks from card HD-Audio Generic
|
||||
{ "node.name", "matches", "alsa_output.*" },
|
||||
{ "alsa.card_name", "matches", "HD-Audio Generic" },
|
||||
},
|
||||
},
|
||||
apply_properties = {
|
||||
["priority.driver"] = 900,
|
||||
["priority.session"] = 900,
|
||||
["api.alsa.period-size"] = 256,
|
||||
["api.alsa.headroom"] = 1024,
|
||||
["session.suspend-timeout-seconds"] = 0
|
||||
}
|
||||
})
|
@ -1,21 +0,0 @@
|
||||
-- PS4/PS5 Controller output is always referenced as Wireless Controller
|
||||
-- We always give the lowest priority to nodes from that card
|
||||
|
||||
table.insert (alsa_monitor.rules, {
|
||||
matches = {
|
||||
{
|
||||
-- Matches all sources from card Controller
|
||||
{ "node.name", "matches", "alsa_input.*" },
|
||||
{ "alsa.card_name", "matches", "Wireless Controller" },
|
||||
},
|
||||
{
|
||||
-- Matches all sinks from card Wireless Controller
|
||||
{ "node.name", "matches", "alsa_output.*" },
|
||||
{ "alsa.card_name", "matches", "Wireless Controller" },
|
||||
},
|
||||
},
|
||||
apply_properties = {
|
||||
["priority.driver"] = 99,
|
||||
["priority.session"] = 99,
|
||||
}
|
||||
})
|
@ -116,16 +116,22 @@ else
|
||||
fi
|
||||
|
||||
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then
|
||||
if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then
|
||||
RESOLUTION=$(lshw -json -c display | jq -r .[]."configuration"."resolution")
|
||||
if [[ "${RESOLUTION}" = "1200,1920" ]]; then
|
||||
echo "Jupiter with DeckHD detected, disabling BIOS updates..."
|
||||
systemctl disable --now jupiter-biosupdate.service
|
||||
else
|
||||
echo "Jupiter hardware detected, skipping further setup..."
|
||||
if [[ ":Jupiter:Galileo:" =~ ":$SYS_ID:" ]]; then
|
||||
if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then
|
||||
RESOLUTION=$(lshw -json -c display | jq -r .[]."configuration"."resolution")
|
||||
if [[ "${RESOLUTION}" = "1200,1920" ]]; then
|
||||
echo "Jupiter with DeckHD detected, disabling BIOS updates..."
|
||||
systemctl disable --now jupiter-biosupdate.service
|
||||
else
|
||||
echo "Jupiter hardware detected, skipping further setup..."
|
||||
fi
|
||||
elif [[ ":Galileo:" =~ ":$SYS_ID:" ]]; then
|
||||
echo "Galileo hardware detected, skipping further setup..."
|
||||
fi
|
||||
elif [[ ":Galileo:" =~ ":$SYS_ID:" ]]; then
|
||||
echo "Galileo hardware detected, skipping further setup..."
|
||||
|
||||
systemctl enable --now jupiter-fan-control.service
|
||||
systemctl enable --now vpower.service
|
||||
systemctl --global enable --now sdgyrodsu.service
|
||||
else
|
||||
echo "Generic device detected. Performing setup..."
|
||||
if [[ ":ROG Ally RC71L_RC71L:AYANEO GEEK:AYANEO 2:AYANEO 2S:AOKZOE A1 AR07:G1618-04:G1619-04:83E1:" =~ ":$SYS_ID:" ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user