Difference between revisions of "Fitlet Watchdog"

From fit-PC wiki
Jump to: navigation, search
(Watchdog Usage in Linux)   (change visibility)
Line 39: Line 39:
 
* Restart the computer
 
* Restart the computer
  
== Watchdog Usage in Linux ==
+
== Watchdog in Linux ==
* '''NOTE!'''  Not supported in mainline Linux kernel yet. '''[http://fit-pc.com/wiki/index.php/Fitlet:_Linux:_Kernel Linux Kernel for Fitlet]''' should be installed to make this feature work
+
* Not supported in mainline Linux kernel yet
 +
* [[Fitlet:_Linux:_Kernel | Linux Kernel for Fitlet]] should be installed to make this feature work
 
* The AMD FCH (Fusion Controller Hub) supports a user configurable watchdog
 
* The AMD FCH (Fusion Controller Hub) supports a user configurable watchdog
 
* Once the watchdog is enabled the system restarts once the timeout period elapses, in order to prevent it the user needs to either feed the watchdog or to disable it
 
* Once the watchdog is enabled the system restarts once the timeout period elapses, in order to prevent it the user needs to either feed the watchdog or to disable it

Revision as of 13:27, 17 December 2015

Watchdog Setup in Windows

1. Watchdog installation:

  • Installs and enables the watchdog timer in OS mode with default timeout of 60 seconds. Once OS failure has occurred, and watchdog service stopped responding, after timeout period computer will restart.
  • Run the fitlet_watchdog_x64.exe file and follow the on-screen instructions

2. Restart the computer and enter BIOS

3. BIOS Setup:

  • Enables/disables the Watchdog during BIOS phase
  • Enter the BIOS menu, browse to Advanced -> Power Settings sub-menu and enable the Watchdog option
  • Notes:
  1. After enabling Watchdog in Windows, the option in BIOS must be enabled
  2. After disabling Watchdog in Windows, the option in BIOS must be disabled
  3. The timeout period of the BIOS Watchdog must be long enough to ensure that Windows has enough time to boot up and starts the Watchdog service

Watchdog Usage in Windows

1.1. Command Prompt:

  • Open the Command Prompt (CMD) in Administrator Mode
  • Browse to the Watchdog folder (C:\Watchdog)
  • Run the watchdog.exe file with appropriate arguments:
 watchdog [command] [time] 
[command] enable - Enables the watchdog and sets its time period to the value specified in the 'time' argument
disable - Disables the watchdog
help - Displays this help
[time] Time in seconds. Supported range [20-240]
Examples:
watchdog enable 60 - Enable watchdog and set its period to 60 sec
watchdog disable - Disable watchdog


1.2. Predefined Scripts:

  • Open the Watchdog folder in the Start Menu
  • Run one of the predefined scripts in Administrator Mode

2. Watchdog uninstall:

  • Restart the PC and disable Watchdog option in BIOS
  • Open the Watchdog folder in the Start Menu
  • Click on the Uninstall Watchdog icon
  • Restart the computer

Watchdog in Linux

  • Not supported in mainline Linux kernel yet
  • Linux Kernel for Fitlet should be installed to make this feature work
  • The AMD FCH (Fusion Controller Hub) supports a user configurable watchdog
  • Once the watchdog is enabled the system restarts once the timeout period elapses, in order to prevent it the user needs to either feed the watchdog or to disable it
$ sudo apt-get install watchdog
  • Uncomment watchdog-device line in /etc/watchdog.conf
watchdog-device = /dev/watchdog
  • Set responsible kernel module to sp5100_tco in /etc/default/watchdog
watchdog_module="sp5100_tco"
  • By default the timeout value is 60 sec and the watchdog deamon feeds the watchdog every 10 sec
  • As example you can simulate kernel panic (as root user):
$ echo c > /proc/sysrq-trigger
  • As a result, the watchdog is not fed and the system will reboot after 60 sec

Links