diff --git a/docs/desktop/wayland/sway/input-config.md b/docs/desktop/wayland/sway/input-config.md index d9cb30f84ad1ccb7a84e6e98f21245b0dfeb9261..b6b82ccabc05590e538100b5a4c8d93cbfb7356e 100644 --- a/docs/desktop/wayland/sway/input-config.md +++ b/docs/desktop/wayland/sway/input-config.md @@ -7,8 +7,8 @@ - [Arch wiki: Input remap utilities](https://wiki.archlinux.org/title/Input_remap_utilities) -Problem: When using the Apple magic keyboard with the `kbd_options -altwin:swap_alt_win` to swap *both* alt and super keys, the right alt is not +Problem: When using the Apple magic keyboard with the `kbd_options altwin:swap_alt_win` +to swap _both_ alt and super keys, the right alt is not mapped to `alt_gr` anymore. `kbd_options` are pretty limited in such a scanario, therefore more sophisticated tools like `keyd` can be used. @@ -20,9 +20,11 @@ therefore more sophisticated tools like `keyd` can be used. Install: - pamac install keyd - sudo systemctl enable keyd - sudo systemctl start keyd +```sh +pamac install keyd +sudo systemctl enable keyd +sudo systemctl start keyd +``` #### keyd issues diff --git a/docs/media/video/webcam.md b/docs/media/video/webcam.md index fbfb3259848297e9ec088bc59bb433d84e3b1fc0..1961424fda9a6b22a5869dbeca262c3f20800b31 100644 --- a/docs/media/video/webcam.md +++ b/docs/media/video/webcam.md @@ -39,3 +39,9 @@ Set brightness to absulte value: ```sh v4l2-ctl -d /dev/video0 --set-ctrl=brightness=200 ``` + +## libcamera-tools + +```sh +cam -l +``` diff --git a/docs/smarthome/zigbee/coordinators.md b/docs/smarthome/zigbee/coordinators.md index aea6095d8b0b7a580d9bd640cf3209d1b336f8a3..93ed7ceae52b7f7c9642cea66dfc823d7b0204e5 100644 --- a/docs/smarthome/zigbee/coordinators.md +++ b/docs/smarthome/zigbee/coordinators.md @@ -36,6 +36,29 @@ power your Matter and Zigbee networks at the same time. - Shows up as USB device `10c4:ea60 Silicon Labs CP210x UART Bridge` +### Firmware setup + +- [Firmware updates for Connect ZBT-1](https://support.nabucasa.com/hc/en-us/articles/26124447269917-Firmware-updates-for-Connect-ZBT-1) + +Using the [Universal Silicon Labs Flasher](https://github.com/NabuCasa/universal-silabs-flasher): + +```sh +sudo -i +pipx install universal-silabs-flasher +``` + +Download latest [Skyconnect firmware](https://github.com/NabuCasa/silabs-firmware-builder/releases), +i.e. `skyconnect_zigbee_ncp_7.4.4.1.gbl` + +Then: + +```sh +$ /root/.local/bin/universal-silabs-flasher \ + --device /dev/ttyUSB0 \ + flash \ + --firmware skyconnect_zigbee_ncp_7.4.4.1.gbl +``` + ## Conbee2 - [Conbee2 Setup](https://smart-home-assistant.de/deconz-conbee-ii-einrichtung) diff --git a/docs/systemd/journalctl.md b/docs/systemd/journalctl.md index 2659e307f9babeb0183ae54994275b8847125d35..080155f071aa26654db3579e2ea6541fc0184ed6 100644 --- a/docs/systemd/journalctl.md +++ b/docs/systemd/journalctl.md @@ -6,46 +6,62 @@ Verbose mode, shows the journald field names - journalctl -o verbose +```sh +journalctl -o verbose +``` ## Flush journal Retain only the past two days: - journalctl --vacuum-time=2d +```sh +journalctl --vacuum-time=2d +``` Retain only the past 500 MB: - journalctl --vacuum-size=500M +```sh +journalctl --vacuum-size=500M +``` ## Turn on persistant storage -According to https://www.golinuxcloud.com/enable-persistent-logging-in-systemd-journald/, +According to <https://www.golinuxcloud.com/enable-persistent-logging-in-systemd-journald/>, it's sufficient to only create the persistent journald stroage location with - mkdir -p /var/log/journal +```sh +mkdir -p /var/log/journal +``` Existing journal entries from `/run/log/journal` will get moved over immediately. journal storage location: `/var/log/journal` - journalctl --disk-usage +```sh +journalctl --disk-usage +``` Clean up: - sudo journalctl --vacuum-size=200M +```sh +sudo journalctl --vacuum-size=200M - sudo journalctl --verify +sudo journalctl --verify +``` Limit max size - mkdir /etc/systemd/journald.conf.d - vi /etc/systemd/journald.conf.d/size.conf - [Journal] - SystemMaxUse=500M - SystemMaxFileSize=50M +```sh + mkdir /etc/systemd/journald.conf.d + vi /etc/systemd/journald.conf.d/size.conf + [Journal] + SystemMaxUse=500M + SystemMaxFileSize=50M +``` ## Log to journal - echo 'hello' | systemd-cat -t someapp -p emerg +```sh +echo 'hello' | systemd-cat -t someapp -p emerg +```