mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-18 10:51:07 +02:00
Merge branch 'master' into pu/fb-setmode
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2ca9d9c4f9
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-03-19 (Sun, 19 Mar 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -341,6 +341,7 @@ void CLCD::setlcdparameter(int dimm, const int contrast, const int power, const
|
||||
perror("[lcdd] set invert failed!");
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (g_info.box_Type == CControld::TUXBOX_MAKER_PHILIPS)
|
||||
{
|
||||
if (ioctl(fd, LCD_IOCTL_BIAS, &bias) < 0)
|
||||
@@ -348,6 +349,7 @@ void CLCD::setlcdparameter(int dimm, const int contrast, const int power, const
|
||||
perror("[lcdd] set bias failed!");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
close(fd);
|
||||
}
|
||||
#endif
|
||||
|
@@ -326,7 +326,7 @@ void CMiscMenue::showMiscSettingsMenuGeneral(CMenuWidget *ms_general)
|
||||
ms_general->addItem(mc);
|
||||
|
||||
//fan speed
|
||||
if (g_info.has_fan)
|
||||
if (g_info.hw_caps->has_fan)
|
||||
{
|
||||
CMenuOptionNumberChooser * mn = new CMenuOptionNumberChooser(LOCALE_FAN_SPEED, &g_settings.fan_speed, true, 1, 14, fanNotifier, CRCInput::RC_nokey, NULL, 0, 0, LOCALE_OPTIONS_OFF);
|
||||
mn->setHint("", LOCALE_MENU_HINT_FAN_SPEED);
|
||||
|
@@ -2255,13 +2255,9 @@ TIMER_START();
|
||||
|
||||
cpuFreq = new cCpuFreqManager();
|
||||
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
|
||||
#if HAVE_COOL_HARDWARE
|
||||
/* only SAT-hd1 before rev 8 has fan */
|
||||
g_info.has_fan = (cs_get_revision() < 8 && CFEManager::getInstance()->getFE(0)->hasSat());
|
||||
#endif
|
||||
dprintf(DEBUG_NORMAL, "g_info.has_fan: %d\n", g_info.has_fan);
|
||||
|
||||
//fan speed
|
||||
if (g_info.has_fan)
|
||||
if (g_info.hw_caps->has_fan)
|
||||
CFanControlNotifier::setSpeed(g_settings.fan_speed);
|
||||
|
||||
dvbsub_init();
|
||||
@@ -3779,7 +3775,7 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
|
||||
delete g_RCInput;
|
||||
my_system("/etc/init.d/rcK");
|
||||
//fan speed
|
||||
if (g_info.has_fan) {
|
||||
if (g_info.hw_caps->has_fan) {
|
||||
CFanControlNotifier::setSpeed(0);
|
||||
}
|
||||
//CVFD::getInstance()->ShowText(g_Locale->getText(LOCALE_MAINMENU_REBOOT));
|
||||
@@ -3987,7 +3983,7 @@ void CNeutrinoApp::standbyMode( bool bOnOff, bool fromDeepStandby )
|
||||
cpuFreq->SetCpuFreq(g_settings.standby_cpufreq * 1000 * 1000);
|
||||
|
||||
//fan speed
|
||||
if (g_info.has_fan)
|
||||
if (g_info.hw_caps->has_fan)
|
||||
CFanControlNotifier::setSpeed(1);
|
||||
|
||||
frameBuffer->setActive(false);
|
||||
@@ -4016,7 +4012,7 @@ void CNeutrinoApp::standbyMode( bool bOnOff, bool fromDeepStandby )
|
||||
}
|
||||
frameBuffer->setActive(true);
|
||||
//fan speed
|
||||
if (g_info.has_fan)
|
||||
if (g_info.hw_caps->has_fan)
|
||||
CFanControlNotifier::setSpeed(g_settings.fan_speed);
|
||||
|
||||
puts("[neutrino.cpp] executing " NEUTRINO_LEAVE_STANDBY_SCRIPT ".");
|
||||
|
@@ -810,7 +810,15 @@ void CControlAPI::HWInfoCGI(CyhookHandler *hh)
|
||||
std::string eth_id = netadapter.getMacAddr();
|
||||
std::transform(eth_id.begin(), eth_id.end(), eth_id.begin(), ::tolower);
|
||||
|
||||
hh->printf("%s %s (%s)\nMAC:%s\n", g_info.hw_caps->boxvendor, g_info.hw_caps->boxname, g_info.hw_caps->boxarch, eth_id.c_str());
|
||||
std::string boxvendor(g_info.hw_caps->boxvendor);
|
||||
/*
|
||||
I don't know the current legal situation.
|
||||
So better let's change the vendor's name to CST.
|
||||
*/
|
||||
if (boxvendor.compare("Coolstream") == 0)
|
||||
boxvendor = "CST";
|
||||
|
||||
hh->printf("%s %s (%s)\nMAC:%s\n", boxvendor.c_str(), g_info.hw_caps->boxname, g_info.hw_caps->boxarch, eth_id.c_str());
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
void CControlAPI::ShutdownCGI(CyhookHandler *hh)
|
||||
|
@@ -839,14 +839,16 @@ std::string CNeutrinoYParser::func_get_partition_list(CyhookHandler *, std::str
|
||||
std::string CNeutrinoYParser::func_get_boxtype(CyhookHandler *, std::string)
|
||||
{
|
||||
std::string boxvendor(g_info.hw_caps->boxvendor);
|
||||
/* stay compatible with present code in Y_Blocks.txt */
|
||||
/*
|
||||
I don't know the current legal situation.
|
||||
So better let's change the vendor's name to CST.
|
||||
|
||||
After change this, you'll have to align code in Y_Blocks.txt
|
||||
*/
|
||||
if (boxvendor.compare("Coolstream") == 0)
|
||||
boxvendor = "CST";
|
||||
|
||||
std::string boxname(g_info.hw_caps->boxname);
|
||||
/* workaround for Neo2 */
|
||||
if ((boxname.compare("Neo") == 0) && (CFEManager::getInstance()->getFrontendCount() > 1))
|
||||
boxname += " Twin";
|
||||
|
||||
return boxvendor + " " + boxname;
|
||||
}
|
||||
|
@@ -934,9 +934,6 @@ const time_settings_struct_t timing_setting[SNeutrinoSettings::TIMING_SETTING_CO
|
||||
|
||||
struct SglobalInfo
|
||||
{
|
||||
unsigned char box_Type;
|
||||
delivery_system_t delivery_system;
|
||||
bool has_fan;
|
||||
hw_caps_t *hw_caps;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user