On 08/04/2018 03:00 AM, Felix Miata wrote:
This is on Kubuntu 18.04. Everything on the Monitor
& Display Power Management
tab is grayed out, so power save is stuck at 10 minutes. What package(s) would
be missing to cause this?
Felix,
That is controlled by 'kcmshell display' module (it is/was tdecmshell on
TDE). You can verify that it is found (it should be if it is all blank) with
'tdecmshell --list'. The primary source for the tdecmshell display page is:
/tde/main/tdebase/kcontrol/display/display.cpp
Apparently the following code is failing (old version probably similar to current:
TDECModule *kcm = TDECModuleLoader::loadModule( name, page );
if ( kcm )
{
top->addWidget( kcm );
m_tabs->addTab( page, label );
connect( kcm, TQT_SIGNAL( changed(bool) ), TQT_SLOT( moduleChanged(bool) ) );
m_modules.insert(kcm, false);
}
else
delete page;
(so it appears 'delete page' is being called in your case)
The actual sliders and widgets that would be created if the module was found
would be in:
/tde/main/tdebase/kcontrol/displayconfig/displayconfig.cpp
The tdelibs source isn't any more helpful on exactly which module the
'display' relies on, see
/tde/main/tdelibs/tdecmshell/main.cpp
and
/tde/main/tdelibs/tdeui/tdecmodule.cpp
Sorry not much more help than being able to tell you where to look in the
source. The only thing I can think of would be that something wasn't set
properly when the display.moc was generated -- but you would expect that would
be confirmable by everybody. Do you get any debug messages/warnings?
(I think it is kdWarning(780) if the module can't be found)
--
David C. Rankin, J.D.,P.E.