You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please add some logging?
which says for example which key was pressed and what action taken.
Here you can find an example of how to log to syslog: http://www.gnu.org/software/libc/manual/html_node/Syslog-Example.html
I don't know much of C/CPP and don't want to mess with your code.
Currently I workaround the missing logging feature like this:
[Keys]
POWER = logger "Power button was pressed. Shutting down in one minute."; shutdown -h -P +1
RESTART = logger "Reset button was pressed. Rebooting in one minute."; shutdown -r +1
(the system doesn't have any APM or ACPI so these buttons aren't handled)
The text was updated successfully, but these errors were encountered:
Thank you for your suggestion. However, I'm not really maintaining this project anymore. I wrote this mostly for my personal use and I'm not using it anymore.
And to be honest, I find your workaround the much better solution than hard-wiring some logger like syslog. I personally don't use syslog anymore, and there are plenty other possible logging solutions.
If you don't have any troubles with the current solution I recommend you keep using it.
Could you please add some logging?
which says for example which key was pressed and what action taken.
Here you can find an example of how to log to syslog: http://www.gnu.org/software/libc/manual/html_node/Syslog-Example.html
I don't know much of C/CPP and don't want to mess with your code.
Currently I workaround the missing logging feature like this:
[Keys]
POWER = logger "Power button was pressed. Shutting down in one minute."; shutdown -h -P +1
RESTART = logger "Reset button was pressed. Rebooting in one minute."; shutdown -r +1
(the system doesn't have any APM or ACPI so these buttons aren't handled)
The text was updated successfully, but these errors were encountered: