Skip to content
Snippets Groups Projects
Unverified Commit 4ec6490a authored by Varac's avatar Varac
Browse files

etc

parent 34615f40
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
- [Arch wiki: Input remap utilities](https://wiki.archlinux.org/title/Input_remap_utilities) - [Arch wiki: Input remap utilities](https://wiki.archlinux.org/title/Input_remap_utilities)
Problem: When using the Apple magic keyboard with the `kbd_options Problem: When using the Apple magic keyboard with the `kbd_options altwin:swap_alt_win`
altwin:swap_alt_win` to swap *both* alt and super keys, the right alt is not 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, mapped to `alt_gr` anymore. `kbd_options` are pretty limited in such a scanario,
therefore more sophisticated tools like `keyd` can be used. therefore more sophisticated tools like `keyd` can be used.
...@@ -20,9 +20,11 @@ therefore more sophisticated tools like `keyd` can be used. ...@@ -20,9 +20,11 @@ therefore more sophisticated tools like `keyd` can be used.
Install: Install:
```sh
pamac install keyd pamac install keyd
sudo systemctl enable keyd sudo systemctl enable keyd
sudo systemctl start keyd sudo systemctl start keyd
```
#### keyd issues #### keyd issues
......
...@@ -39,3 +39,9 @@ Set brightness to absulte value: ...@@ -39,3 +39,9 @@ Set brightness to absulte value:
```sh ```sh
v4l2-ctl -d /dev/video0 --set-ctrl=brightness=200 v4l2-ctl -d /dev/video0 --set-ctrl=brightness=200
``` ```
## libcamera-tools
```sh
cam -l
```
...@@ -36,6 +36,29 @@ ...@@ -36,6 +36,29 @@
power your Matter and Zigbee networks at the same time. power your Matter and Zigbee networks at the same time.
- Shows up as USB device `10c4:ea60 Silicon Labs CP210x UART Bridge` - 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
- [Conbee2 Setup](https://smart-home-assistant.de/deconz-conbee-ii-einrichtung) - [Conbee2 Setup](https://smart-home-assistant.de/deconz-conbee-ii-einrichtung)
...@@ -6,46 +6,62 @@ ...@@ -6,46 +6,62 @@
Verbose mode, shows the journald field names Verbose mode, shows the journald field names
```sh
journalctl -o verbose journalctl -o verbose
```
## Flush journal ## Flush journal
Retain only the past two days: Retain only the past two days:
```sh
journalctl --vacuum-time=2d journalctl --vacuum-time=2d
```
Retain only the past 500 MB: Retain only the past 500 MB:
```sh
journalctl --vacuum-size=500M journalctl --vacuum-size=500M
```
## Turn on persistant storage ## 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 it's sufficient to only create the persistent journald stroage location with
```sh
mkdir -p /var/log/journal mkdir -p /var/log/journal
```
Existing journal entries from `/run/log/journal` will get moved over Existing journal entries from `/run/log/journal` will get moved over
immediately. immediately.
journal storage location: `/var/log/journal` journal storage location: `/var/log/journal`
```sh
journalctl --disk-usage journalctl --disk-usage
```
Clean up: Clean up:
```sh
sudo journalctl --vacuum-size=200M sudo journalctl --vacuum-size=200M
sudo journalctl --verify sudo journalctl --verify
```
Limit max size Limit max size
```sh
mkdir /etc/systemd/journald.conf.d mkdir /etc/systemd/journald.conf.d
vi /etc/systemd/journald.conf.d/size.conf vi /etc/systemd/journald.conf.d/size.conf
[Journal] [Journal]
SystemMaxUse=500M SystemMaxUse=500M
SystemMaxFileSize=50M SystemMaxFileSize=50M
```
## Log to journal ## Log to journal
```sh
echo 'hello' | systemd-cat -t someapp -p emerg echo 'hello' | systemd-cat -t someapp -p emerg
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment