bottletop
Active Member
Factory Reset is called Factory Default on the HDR.
This is a way to perform a quick reset for the HDR - it may not be suitable for all. I've not tested it well, so place it here for review, comments, suggestions and amendments. This restores your boot settings, bypassing the wizard and channel scan. It is a quick reset for the HDR when it's the same user/location/region.
This follows on from (probably replacing) https://hummy.tv/forum/threads/fox-t2-display-wizzard.11389/post-175730
Requires Custom Firmware
boot-settings
zip
Set up WebIF/settings/boot settings to your preferred options including IP address etc.
Factory Default to User Default
Store schedule reservations
WebIF/Schedule/Backup&Restore
Create Backup
So now the Factory Default will reset to your User Default instead!
Remote - menu/Settings/Installation/Factory Default
Optionally restore schedule reservations
WebIF/Schedule/Backup&Restore
Select latest one to restore and follow prompts to restart
Restore Factory Default function
You should do this before passing the unit to someone else.
Followed by Remote - menu/Settings/Installation/Factory Default
Edit1: On occasions, there seems to an automatic reboot that seems to interrupt the above steps.
Edit2: 17th Oct 2025
Script added (moved here from post #3)
I've created a basic script to perform the task.
Place it into /mod/usr/bin/ with execute permission.
Eg use WebIF/diag/FIle Editor/Create File, followed by Make Executable.
Run the new script (ssh/telnet/webshell) set_factory_default
After using the above script and rebooting, create a new startup script.
Place it into /mod/etc/init.d/ with execute permission.
Eg use WebIF/diag/FIle Editor/Create File, followed by Make Executable.
Edit3: Test to see if Edit2 mitigates intermittent Boot Wizard issue
Requires Auto Schedule Restore. Perform actions as in Edit2 above.
Tested with WebIF 1.5.4, CF 3.14, auto-schedule-restore 1.6-2
After the first restart, wait for up to 2 minutes without interacting with the Humax - it should restart again. On the second restart it should restore your scheduled events and your settings.
This is a way to perform a quick reset for the HDR - it may not be suitable for all. I've not tested it well, so place it here for review, comments, suggestions and amendments. This restores your boot settings, bypassing the wizard and channel scan. It is a quick reset for the HDR when it's the same user/location/region.
This follows on from (probably replacing) https://hummy.tv/forum/threads/fox-t2-display-wizzard.11389/post-175730
Requires Custom Firmware
boot-settings
zip
Set up WebIF/settings/boot settings to your preferred options including IP address etc.
Factory Default to User Default
Store schedule reservations
WebIF/Schedule/Backup&Restore
Create Backup
Code:
cd /var/lib/humaxtv
zip default-files-factory.zip default_channel.db default_setup.db channel.db setup.db
cp -a setup.db default_setup.db
cp -a channel.db default_channel.db
zip default-files-user.zip default_channel.db default_setup.db channel.db setup.db
Remote - menu/Settings/Installation/Factory Default
Optionally restore schedule reservations
WebIF/Schedule/Backup&Restore
Select latest one to restore and follow prompts to restart
Restore Factory Default function
You should do this before passing the unit to someone else.
Code:
cd /var/lib/humaxtv
rm default_channel.db
rm default_setup.db
rm default-files-user.zip
Edit1: On occasions, there seems to an automatic reboot that seems to interrupt the above steps.
Edit2: 17th Oct 2025
Script added (moved here from post #3)
I've created a basic script to perform the task.
Place it into /mod/usr/bin/ with execute permission.
Eg use WebIF/diag/FIle Editor/Create File, followed by Make Executable.
Run the new script (ssh/telnet/webshell) set_factory_default
Code:
#!/bin/sh
# set_factory_default.sh
echo "Change set Factory Default"
echo " (Make sure the unit is not on a menu, guide/EPG, media, portal, settings, etc)"
echo "Options:"
echo " 1: modify it to Set User Default"
echo " 2: modify it to Set Factory Default"
echo " "
read INPUT_SEL
if [ "$INPUT_SEL" = "1" ] ;then
cd /var/lib/humaxtv
zip -q /mod/usr/default-files-factory.zip default_channel.db default_setup.db channel.db setup.db
sqlite3 setup.db ".backup 'default_setup.db'"
sqlite3 channel.db ".backup 'default_channel.db'"
zip -q /mod/usr/default-files-user.zip default_channel.db default_setup.db channel.db setup.db
cd
echo " "
echo "Menu Factory Default will reset to User Defaults instead!"
echo "Use Remote - menu/Settings/Installation/Factory Default to complete change"
echo " Select Yes to 'Do you want to reset all values to the factory default?'"
echo " DO NOT select the optional Format HDD option"
echo " The unit will reboot"
echo " on reboot"
echo " WebIF/Schedule/Backup&Restore"
echo " Select latest one to restore and follow prompts to restart"
elif [ "$INPUT_SEL" = "2" ] ;then
rm -f /var/lib/humaxtv/default_channel.db
rm -f /var/lib/humaxtv/default_setup.db
rm -f /mod/usr/default-files-user.zip
echo " "
echo "Menu Factory Default will reset to Factory Defaults"
echo "Use Remote - menu/Settings/Installation/Factory Default to complete change"
echo " Select Yes to 'Do you want to reset all values to the factory default?'"
echo " DO NOT select the optional Format HDD option"
echo " The unit will reboot to the installation wizard"
else
echo " "
echo "No change"
fi
Place it into /mod/etc/init.d/ with execute permission.
Eg use WebIF/diag/FIle Editor/Create File, followed by Make Executable.
Code:
#!/bin/sh
file1_default=/var/lib/humaxtv/default_channel.db
file1=/var/lib/humaxtv/channel.db
file2_default=/var/lib/humaxtv/default_setup.db
file2=/var/lib/humaxtv/setup.db
cp -a $file1_default $file1
cp -a $file2_default $file2
exit 0
Edit3: Test to see if Edit2 mitigates intermittent Boot Wizard issue
Requires Auto Schedule Restore. Perform actions as in Edit2 above.
Tested with WebIF 1.5.4, CF 3.14, auto-schedule-restore 1.6-2
After the first restart, wait for up to 2 minutes without interacting with the Humax - it should restart again. On the second restart it should restore your scheduled events and your settings.
WebIF/Scheduled Events/Backup Restore/
Create Backup
Create Backup
#this should get auto schedule restore to work on next boot
WebIF/Scheduled Events/Recording List
Select All
Delete Selected
Yes
WebIF/Scheduled Events/Recording List
Select All
Delete Selected
Yes
#this should force a WIZARD boot
display WAIT
cd /var/lib/humaxtv
rm -f channel.db setup.db
sleep 3
reboot
display WAIT
cd /var/lib/humaxtv
rm -f channel.db setup.db
sleep 3
reboot
WAIT
Reboot...
START SYSTEM
Cust FW 3.14
-WIZARD-
(Do nothing, wait approx 90 seconds. Just monitor the front panel display and/or TV.)
(If auto schedule restore kicks in, the front panel will show the next 3 lines.)
Schedule...
...Restored
Rebooting...
Reboot...
START SYSTEM
Cust FW 3.14
(Channel name)
Reboot...
START SYSTEM
Cust FW 3.14
-WIZARD-
(Do nothing, wait approx 90 seconds. Just monitor the front panel display and/or TV.)
(If auto schedule restore kicks in, the front panel will show the next 3 lines.)
Schedule...
...Restored
Rebooting...
Reboot...
START SYSTEM
Cust FW 3.14
(Channel name)
!! WARNING !!
You have pending system notifications:
(date) (time) - The recording schedule has been restored automatically.
<Acknowledge>
You have pending system notifications:
(date) (time) - The recording schedule has been restored automatically.
<Acknowledge>
I suspect some boot wizard starts may be a result of a settings database corruption caused by write contention during boot. To minimise this I also try the following -
- When HDR boots, don't use the HDR remote volume or channel keys.
- Using boot settings, don't set default volume or default channel.
Last edited: