Enable MT6797 Wi-Fi/BT, PipeWire audio GUI, cursor autohide, and dev tools
- Add MT6797 CONSYS Wi-Fi/BT factory-firmware patch (0005), native EAPOL TX, 5 GHz NO_IR/regulatory-notifier fixes, TKIP/CCMP admission, initramfs regdb, and geminux-wifi-nvram - Order OpenRC polkit startup before NetworkManager/ModemManager and harden geminux-net with non-blocking scans, mesh SSID grouping, password masking toggle, and BT A2DP/HFP/LE/HID support - Add geminux-audio PipeWire/WirePlumber/UCM2 playback & recording control GUI alongside st and dmenu XFixes cursor autohide - Preinstall requested CLI/dev tools (bash, coreutils, build-base, git, nmtui, perl/SSL, curl-dev, janet, jpm, etc.) and set bash as system-wide default shell
This commit is contained in:
1 parent
ba7b86e570
commit
6aea73cbeb
92 files changed
+5524
-198
No files matched your search
@@ -0,0 +1,8 @@
|
||||
[device]
|
||||
# mt6797 mac80211 requires vif->addr == perm_addr when adding/opening wlan0.
|
||||
wifi.scan-rand-mac-address = no
|
||||
|
||||
[connection]
|
||||
wifi.cloned-mac-address = permanent
|
||||
# mt6797 mac80211 requires RSN capabilities without MFPC/MFPR (802.11w disabled).
|
||||
wifi-sec.pmf = 1
|
||||
@@ -0,0 +1,5 @@
|
||||
[General]
|
||||
UserspaceHID = true
|
||||
ClassicBondedOnly = false
|
||||
LEAutoSecurity = true
|
||||
IdleTimeout = 0
|
||||
@@ -1,6 +1,11 @@
|
||||
[General]
|
||||
Name = Geminux-GeminiPDA
|
||||
FastConnectable = false
|
||||
ControllerMode = dual
|
||||
FastConnectable = true
|
||||
Experimental = true
|
||||
KernelExperimental = true
|
||||
JustWorksRepairing = always
|
||||
|
||||
[Policy]
|
||||
AutoEnable = false
|
||||
AutoEnable = true
|
||||
ReconnectAttempts = 7
|
||||
@@ -0,0 +1 @@
|
||||
rc_need="polkit"
|
||||
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<policy group="wheel">
|
||||
<allow send_destination="org.bluez"/>
|
||||
<allow send_interface="org.bluez.Agent1"/>
|
||||
<allow send_interface="org.bluez.AgentManager1"/>
|
||||
<allow send_interface="org.bluez.MediaEndpoint1"/>
|
||||
<allow send_interface="org.bluez.MediaPlayer1"/>
|
||||
<allow send_interface="org.bluez.Profile1"/>
|
||||
<allow send_interface="org.freedesktop.DBus.ObjectManager"/>
|
||||
<allow send_interface="org.freedesktop.DBus.Properties"/>
|
||||
</policy>
|
||||
<policy group="plugdev">
|
||||
<allow send_destination="org.bluez"/>
|
||||
<allow send_interface="org.bluez.Agent1"/>
|
||||
<allow send_interface="org.bluez.AgentManager1"/>
|
||||
<allow send_interface="org.bluez.MediaEndpoint1"/>
|
||||
<allow send_interface="org.bluez.MediaPlayer1"/>
|
||||
<allow send_interface="org.freedesktop.DBus.ObjectManager"/>
|
||||
<allow send_interface="org.freedesktop.DBus.Properties"/>
|
||||
</policy>
|
||||
</busconfig>
|
||||
@@ -0,0 +1 @@
|
||||
SHELL=/bin/bash
|
||||
@@ -7,7 +7,7 @@ LOG_FILE="/var/log/geminux-hwinit.log"
|
||||
depend() {
|
||||
need localmount udev
|
||||
after geminux-usb-gadget sshd dbus elogind
|
||||
before tinydm networkmanager wpa_supplicant modemmanager geminux-leds geminux-powerd geminux-ccci
|
||||
before tinydm networkmanager wpa_supplicant modemmanager bluetooth geminux-leds geminux-powerd geminux-ccci
|
||||
}
|
||||
|
||||
log_msg() {
|
||||
@@ -57,7 +57,28 @@ start() {
|
||||
fi
|
||||
|
||||
if [ "${GEMINUX_ENABLE_CONSYS:-yes}" = "yes" ]; then
|
||||
load_group consys mt6797-consys mt6797-wlan-core mac btmt6797
|
||||
if command -v iw >/dev/null 2>&1; then
|
||||
iw reg reload >> "$LOG_FILE" 2>&1 || true
|
||||
fi
|
||||
if [ -x /usr/sbin/geminux-wifi-nvram ]; then
|
||||
if /usr/sbin/geminux-wifi-nvram >> "$LOG_FILE" 2>&1; then
|
||||
log_msg " geminux-wifi-nvram: OK"
|
||||
else
|
||||
log_msg " geminux-wifi-nvram: non-fatal"
|
||||
fi
|
||||
fi
|
||||
load_group consys mt6797-consys mt6797-wlan-core mac
|
||||
w_i=0
|
||||
while [ "$w_i" -lt 60 ] && [ ! -d /sys/class/net/wlan0 ]; do
|
||||
usleep 100000 2>/dev/null || break
|
||||
w_i=$((w_i + 1))
|
||||
done
|
||||
if [ -d /sys/class/net/wlan0 ]; then
|
||||
log_msg " consys wlan0: ready"
|
||||
else
|
||||
log_msg " consys wlan0: not present after wait"
|
||||
fi
|
||||
load_group consys_bt algif_rng algif_aead uhid uinput rfcomm bnep hidp btmt6797
|
||||
fi
|
||||
|
||||
if [ "${GEMINUX_ENABLE_CCCI:-yes}" = "yes" ]; then
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Larger PipeWire quantum buffers reduce audio DSP/CPU wakeups for battery life.
|
||||
context.properties = {
|
||||
default.clock.rate = 48000
|
||||
default.clock.min-quantum = 1024
|
||||
default.clock.min-quantum = 128
|
||||
default.clock.quantum = 2048
|
||||
default.clock.max-quantum = 4096
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Allow local Geminux desktop users (wheel/netdev/plugdev/lp) to control NetworkManager, ModemManager, and BlueZ without a Polkit agent.
|
||||
polkit.addRule(function(action, subject) {
|
||||
if ((action.id.indexOf("org.freedesktop.NetworkManager.") === 0 ||
|
||||
action.id.indexOf("org.freedesktop.ModemManager1.") === 0 ||
|
||||
action.id.indexOf("org.bluez.") === 0) &&
|
||||
(subject.isInGroup("wheel") || subject.isInGroup("netdev") ||
|
||||
subject.isInGroup("plugdev") || subject.isInGroup("lp"))) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
@@ -2,6 +2,7 @@
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export LANGUAGE=en_US.UTF-8
|
||||
export SHELL=/bin/bash
|
||||
export TERMINAL=st
|
||||
export EDITOR=nano
|
||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# valid login shells
|
||||
/bin/sh
|
||||
/bin/ash
|
||||
/bin/bash
|
||||
/usr/bin/bash
|
||||
@@ -0,0 +1,7 @@
|
||||
# Geminux bash login shell profile
|
||||
if [ -r "$HOME/.profile" ]; then
|
||||
. "$HOME/.profile"
|
||||
fi
|
||||
if [ -r "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
@@ -4,6 +4,10 @@ SUBSYSTEM=="leds", RUN+="/bin/chgrp wheel /sys%p/brightness", RUN+="/bin/chmod 0
|
||||
KERNEL=="ccci_*", GROUP="dialout", MODE="0660"
|
||||
KERNEL=="ccci_monitor", SYMLINK+="ccci_md_ctl"
|
||||
SUBSYSTEM=="video4linux", GROUP="video", MODE="0660"
|
||||
KERNEL=="rfkill", GROUP="plugdev", MODE="0664"
|
||||
KERNEL=="uhid", GROUP="input", MODE="0660"
|
||||
KERNEL=="uinput", GROUP="input", MODE="0660"
|
||||
SUBSYSTEM=="hidraw", GROUP="input", MODE="0660"
|
||||
|
||||
# Enable USB autosuspend on non-HID peripherals
|
||||
ACTION=="add", SUBSYSTEM=="usb", ENV{ID_INPUT}=="", TEST=="power/control", ATTR{power/control}="auto"
|
||||
@@ -1,5 +1,22 @@
|
||||
# Suspend idle ALSA and BlueZ audio nodes after 3 seconds to gate audio clocks.
|
||||
# Suspend idle ALSA and BlueZ audio nodes after 3 seconds and prioritize MT6351 HiFi audio.
|
||||
monitor.alsa.rules = [
|
||||
{
|
||||
matches = [ { device.name = "alsa_card.platform-sound" } ]
|
||||
actions = {
|
||||
update-props = {
|
||||
device.description = "Gemini Built-in Audio"
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
matches = [ { device.name = "alsa_card.platform-bluetooth-voice-sound" } ]
|
||||
actions = {
|
||||
update-props = {
|
||||
device.description = "MT6797 BT-CVSD Voice Bridge"
|
||||
device.profile = "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
matches = [ { node.name = "~alsa_.*" } ]
|
||||
actions = {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Enable BlueZ 5 high-quality codecs (SBC-XQ, AAC, LDAC, aptX), HSP/HFP mSBC duplex headset,
|
||||
# BLE Audio (LC3 BAP), and hardware volume control in WirePlumber.
|
||||
monitor.bluez.properties = {
|
||||
bluez5.enable-sbc-xq = true
|
||||
bluez5.enable-msbc = true
|
||||
bluez5.enable-hw-volume = true
|
||||
bluez5.hfphsp-backend = "native"
|
||||
bluez5.roles = [ a2dp_sink a2dp_source bap_sink bap_source hsp_hs hsp_ag hfp_hf hfp_ag ]
|
||||
}
|
||||
Reference in new issue
Block a user