Copy manually wireless firmware files (needed until package is available on the repositories, see notes below).
Use tuigreet and allow it to shutdown/reboot.
Do not show p2p wireless interface in NetworkManager.
The command swaymsg "output * dpms on" sometimes does not resume display.
# 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_20241025T223532Z_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 'systemctl poweroff' --power-reboot 'systemctl 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 'systemctl poweroff' --power-reboot 'systemctl reboot'\";" /etc/greetd/config.toml
# Disable p2p0 wlan interface on NetworkManager:
printf '[keyfile]\nunmanaged-devices=interface-name:p2p0\n' > /etc/NetworkManager/conf.d/99-unmanaged-device-p2p0.conf
Turning off the display on sway with swaymsg output dpms commands works but sometimes it does not turn it back on. One workaround is setting the brightness to zero and restore it back. Use something like:
I appreciate that you are making a script to work around current issues, but what do you think about:
maintaining this information as a wiki article so that it can be collaboratively improved
filing issues about (or merge requests fixing) the problems so that the issues get ultimately solved instead of increasing the tooling necessary to work around them
Apparently is causing no problem. When I was still on imx8mq I saw random lock-ups with dpms/on off which went away when I used brightnessctl instead. Motivated by @michals I now tested the dpms on/off method for over a month and I might be observing what you see. Sometimes (around once per week), the display does not come back and I have to log in via ssh to turn it on again. So this is not a lock-up anymore but nevertheless a nasty downside of the dpms on/off method. I’m now wondering whether this issue is due to my setup and what the status on the Pocket Reform is because @michals sees no problem with dpms on/off while you, @amospalla, seem to be observing a similar effect on your pocket as I do on my a311d classic reform. I wonder whether we can somehow get to the bottom of this?