Hi, I’ll try to use Debian stable image on my Pocket, I’m putting here my notes, somebody else has been asking lately about it so hope it helps. It does:
- Copy manually wireless firmware files (needed until package is available on the repositories).
- Use tuigreet and allow it to shutdown/reboot.
- NetworkManager does not show p2p wireless interface.
## Copy firmware files
### Point url to the current reform-qcacld2 package:
url="https://mntre.com/reform-debian-repo/pool/main/r/reform-qcacld2/reform-qcacld2_20240908T124926Z_arm64.deb"
mkdir /tmp/wireless_firmware
cd /tmp/wireless_firmware
curl "${url}" > reform-qcacld2_arm64.deb
ar x reform-qcacld2_arm64.deb
tar -xJpf data.tar.xz
mv etc/modprobe.d/reform-qcacld2.conf /etc/modprobe.d/
mv usr/lib/firmware/qcacld2/bdwlan30.bin /usr/lib/firmware/bdwlan30.bin
mv usr/lib/firmware/qcacld2/otp30.bin /usr/lib/firmware/otp30.bin
mv usr/lib/firmware/qcacld2/qwlan30.bin /usr/lib/firmware/qwlan30.bin
mv usr/lib/firmware/wlan/qcacld2/cfg.dat /usr/lib/firmware/wlan/cfg.dat
mv usr/lib/firmware/wlan/qcacld2/qcom_cfg.ini /usr/lib/firmware/wlan/qcom_cfg.ini
cd -
# Make greetd use tuigreet
## substitute command = "/usr/sbin/agreety --cmd /bin/sh"
## for command = "/usr/bin/tuigreet --window-padding 4 --remember --asterisks --cmd /usr/bin/sway --power-shutdown 'sudo poweroff' --power-reboot 'sudo reboot'"
sed -i "s;^command = \"/usr/sbin/agreety --cmd /bin/sh\"$;command = \"/usr/bin/tuigreet --window-padding 4 --remember --asterisks --cmd /usr/bin/sway --power-shutdown 'sudo poweroff' --power-reboot 'sudo reboot'\";" /etc/greetd/config.toml
# Allow to shutdown and reboot from greetd.
echo "_greetd ALL=NOPASSWD: /sbin/reboot, /sbin/poweroff" >> /etc/sudoers.d/greetd
# Disable p2p0 wlan interface on NetworkManager:
printf '[keyfile]\nunmanaged-devices=interface-name:p2p0\n' > /etc/NetworkManager/conf.d/99-unmanaged-device-p2p0.conf