7 Commits

Author SHA1 Message Date
2e1bd5f0c6 add buffyboard systemd service
this is an optional feature. systemd distributions wishing to deploy
buffyboard may add `WantedBy=default.target` to the Install section.
2024-10-12 05:28:15 +00:00
Johannes Marbach
c683350b9f Add changelog for !31 2024-10-05 20:37:34 +02:00
Johannes Marbach
2d9a96f646 Merge branch 'pr-os-sleep' into 'master'
use OS sleep instead of polling to reduce CPU usage

See merge request postmarketOS/buffybox!31
2024-10-05 18:34:02 +00:00
Johannes Marbach
026c1b6f3b Add changelog for sudo systemctl start mount-gdrive 2024-10-05 20:25:37 +02:00
Johannes Marbach
8a231905a4 Merge branch 'pr-scdoc-cross' into 'master'
specify scdoc as a native dependency instead of a runtime dependency

See merge request postmarketOS/buffybox!30
2024-10-05 18:23:39 +00:00
1551aabbc0 specify scdoc as a native dependency instead of a runtime dependency 2024-10-05 13:07:30 +00:00
a036d1e9a1 use OS sleep instead of polling to reduce CPU usage
without this lvgl never releases the CPU, and just pegs one of the cores
to 100%. see
<https://github.com/lvgl/lvgl/blob/master/docs/porting/timer_handler.rst>
2024-10-05 13:03:02 +00:00
3 changed files with 50 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ If a change only affects particular applications, they are listed in parentheses
- misc: Unify build system (!23 & !29, thanks @Jarrah & @vladimir.stoyakin) - misc: Unify build system (!23 & !29, thanks @Jarrah & @vladimir.stoyakin)
- misc: Ensure stable file order during builds (!24, thanks @devrtz) - misc: Ensure stable file order during builds (!24, thanks @devrtz)
- fix: Prevent logging internal LVGL errors to stdout - fix: Prevent logging internal LVGL errors to stdout
- misc: Make scdoc a native dependency to enable cross-compilation (!30, thanks @uninsane)
- fix: Use usleep to release CPU when possible (!31, thanks @uninsane)
## 3.2.0 (2024-06-03) ## 3.2.0 (2024-06-03)

View File

@@ -0,0 +1,38 @@
[Unit]
Documentation=https://gitlab.postmarketos.org/postmarketOS/buffybox
[Service]
ExecStart=@bindir@/buffyboard
Restart=on-failure
# Allow access to input devices, framebuffer, tty
DevicePolicy=closed
DeviceAllow=/dev/uinput rw
DeviceAllow=char-fb rw
DeviceAllow=char-input rw
DeviceAllow=char-tty rw
# udev requires some limited networking
RestrictAddressFamilies=AF_NETLINK
# Hardening
CapabilityBoundingSet=
NoNewPrivileges=true
RestrictSUIDSGID=true
PrivateMounts=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
RemoveIPC=true
LockPersonality=true
MemoryDenyWriteExecute=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged
SystemCallFilter=~@resources

View File

@@ -24,3 +24,13 @@ executable('buffyboard',
install_data('buffyboard.conf', install_dir: get_option('sysconfdir')) install_data('buffyboard.conf', install_dir: get_option('sysconfdir'))
configure_file(
input : 'buffyboard.service.in',
output : 'buffyboard.service',
install : true,
install_dir : get_option('libdir') / 'systemd/system',
configuration : {
'bindir' : get_option('prefix') / get_option('bindir'),
},
)