Added blueglow in startup script

This commit is contained in:
PM Kuipers 2023-01-23 19:18:28 +01:00
parent df448adf90
commit ce7cb50831
3 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
AC_INIT([MediaCore HID Server], [4.1.6], [bugs@miqra.nl], [mediacore-hid], [http://www.miqra.nl/]) AC_INIT([MediaCore HID Server], [4.1.7], [bugs@miqra.nl], [mediacore-hid], [http://www.miqra.nl/])
AC_PREREQ([2.59]) AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.11 no-define foreign subdir-objects]) AM_INIT_AUTOMAKE([1.11 no-define foreign subdir-objects])
AC_CONFIG_HEADERS([config.hpp]) AC_CONFIG_HEADERS([config.hpp])

View File

@ -7,6 +7,8 @@ After=dbus.service
Type=dbus Type=dbus
ExecStart=/usr/sbin/mediacore-hid-server ExecStart=/usr/sbin/mediacore-hid-server
BusName=nl.miqra.MediaCore.Hid BusName=nl.miqra.MediaCore.Hid
# After startup, signal the hid unit to start glowing blue
ExecStartPost=dbus-send --system --dest=nl.miqra.MediaCore.Hid --type=method_call /nl/miqra/MediaCore/Hid nl.miqra.MediaCore.Hid.SetColor byte:0 byte:0 byte:128
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -7,6 +7,8 @@ After=dbus.service
Type=dbus Type=dbus
ExecStart=@SBIN_DIR@/mediacore-hid-server ExecStart=@SBIN_DIR@/mediacore-hid-server
BusName=nl.miqra.MediaCore.Hid BusName=nl.miqra.MediaCore.Hid
# After startup, signal the hid unit to start glowing blue
ExecStartPost=dbus-send --system --dest=nl.miqra.MediaCore.Hid --type=method_call /nl/miqra/MediaCore/Hid nl.miqra.MediaCore.Hid.SetColor byte:0 byte:0 byte:128
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target