D5381: Add brightness control using ddcutil lib

Dorian Vogel noreply at phabricator.kde.org
Tue Apr 11 21:17:02 UTC 2017


dvogel marked 9 inline comments as done.
dvogel added a comment.


  Ok, so there is apparently an issue when the screen gets dimmed.
  
    Application: org_kde_powerdevil (org_kde_powerdevil), signal: Segmentation fault
    Using host libthread_db library "/usr/lib/libthread_db.so.1".
    [Current thread is 1 (Thread 0x7f6097336840 (LWP 740))]
    
    Thread 5 (Thread 0x7f607bfff700 (LWP 757)):
    #0  0x00007f6090dc637d in read () at /usr/lib/libc.so.6
    #1  0x00007f608c055aa0 in  () at /usr/lib/libglib-2.0.so.0
    #2  0x00007f608c01126e in g_main_context_check () at /usr/lib/libglib-2.0.so.0
    #3  0x00007f608c011744 in  () at /usr/lib/libglib-2.0.so.0
    #4  0x00007f608c011b32 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
    #5  0x00007f6081190446 in  () at /usr/lib/libgio-2.0.so.0
    #6  0x00007f608c039175 in  () at /usr/lib/libglib-2.0.so.0
    #7  0x00007f608ff1d2e7 in start_thread () at /usr/lib/libpthread.so.0
    #8  0x00007f6090dd454f in clone () at /usr/lib/libc.so.6
    
    Thread 4 (Thread 0x7f6080823700 (LWP 756)):
    #0  0x00007f6090dc637d in read () at /usr/lib/libc.so.6
    #1  0x00007f608c055aa0 in  () at /usr/lib/libglib-2.0.so.0
    #2  0x00007f608c01126e in g_main_context_check () at /usr/lib/libglib-2.0.so.0
    #3  0x00007f608c011744 in  () at /usr/lib/libglib-2.0.so.0
    #4  0x00007f608c0118bc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
    #5  0x00007f608c011901 in  () at /usr/lib/libglib-2.0.so.0
    #6  0x00007f608c039175 in  () at /usr/lib/libglib-2.0.so.0
    #7  0x00007f608ff1d2e7 in start_thread () at /usr/lib/libpthread.so.0
    #8  0x00007f6090dd454f in clone () at /usr/lib/libc.so.6
    
    Thread 3 (Thread 0x7f60824eb700 (LWP 746)):
    #0  0x00007f6090dc637d in read () at /usr/lib/libc.so.6
    #1  0x00007f608c055aa0 in  () at /usr/lib/libglib-2.0.so.0
    #2  0x00007f608c01126e in g_main_context_check () at /usr/lib/libglib-2.0.so.0
    #3  0x00007f608c011744 in  () at /usr/lib/libglib-2.0.so.0
    #4  0x00007f608c0118bc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
    #5  0x00007f6091e4406b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
    #6  0x00007f6091ded89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
    #7  0x00007f6091c0fa73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
    #8  0x00007f60925e4125 in  () at /usr/lib/libQt5DBus.so.5
    #9  0x00007f6091c146d8 in  () at /usr/lib/libQt5Core.so.5
    #10 0x00007f608ff1d2e7 in start_thread () at /usr/lib/libpthread.so.0
    #11 0x00007f6090dd454f in clone () at /usr/lib/libc.so.6
    
    Thread 2 (Thread 0x7f608393f700 (LWP 743)):
    #0  0x00007f6090dca67d in poll () at /usr/lib/libc.so.6
    #1  0x00007f609194a8e0 in  () at /usr/lib/libxcb.so.1
    #2  0x00007f609194c679 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
    #3  0x00007f6085c9b239 in  () at /usr/lib/libQt5XcbQpa.so.5
    #4  0x00007f6091c146d8 in  () at /usr/lib/libQt5Core.so.5
    #5  0x00007f608ff1d2e7 in start_thread () at /usr/lib/libpthread.so.0
    #6  0x00007f6090dd454f in clone () at /usr/lib/libc.so.6
    
    Thread 1 (Thread 0x7f6097336840 (LWP 740)):
    [KCrash Handler]
    #6  0x00007f607ab9a425 in DDCutilBrightness::brightness() const (this=0x1eb51c0) at /home/dorianvogel/plasma-dev/powerdevil/daemon/backends/upower/ddcutilbrightness.cpp:153
    #7  0x00007f607ab8b615 in PowerDevilUPowerBackend::brightness(PowerDevil::BackendInterface::BrightnessControlType) const (this=0x1ea92f0, type=PowerDevil::BackendInterface::Screen) at /home/dorianvogel/plasma-dev/powerdevil/daemon/backends/upower/powerdevilupowerbackend.cpp:426
    #8  0x00007f607ab8bd2b in PowerDevilUPowerBackend::setBrightness(int, PowerDevil::BackendInterface::BrightnessControlType) (this=0x1ea92f0, value=57, type=PowerDevil::BackendInterface::Screen) at /home/dorianvogel/plasma-dev/powerdevil/daemon/backends/upower/powerdevilupowerbackend.cpp:481
    #9  0x00007f6096e18b4f in PowerDevil::BundledActions::DimDisplay::triggerImpl(QMap<QString, QVariant> const&) (this=0x1ed71e0, args=...) at /home/dorianvogel/plasma-dev/powerdevil/daemon/actions/bundled/dimdisplay.cpp:93
    #10 0x00007f6096dec3ce in PowerDevil::Action::trigger(QMap<QString, QVariant> const&) (this=0x1ed71e0, args=...) at /home/dorianvogel/plasma-dev/powerdevil/daemon/powerdevilaction.cpp:101
    #11 0x00007f6096e189e4 in PowerDevil::BundledActions::DimDisplay::setBrightnessHelper(int, int) (this=0x1ed71e0, screen=57, keyboard=0) at /home/dorianvogel/plasma-dev/powerdevil/daemon/actions/bundled/dimdisplay.cpp:88
    #12 0x00007f6096e186f3 in PowerDevil::BundledActions::DimDisplay::onWakeupFromIdle() (this=0x1ed71e0) at /home/dorianvogel/plasma-dev/powerdevil/daemon/actions/bundled/dimdisplay.cpp:48
    #13 0x00007f6096df809c in PowerDevil::Core::onResumingFromIdle() (this=0x1e5d3d0) at /home/dorianvogel/plasma-dev/powerdevil/daemon/powerdevilcore.cpp:797
    #14 0x00007f6096e1eef3 in PowerDevil::Core::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x1e5d3d0, _c=QMetaObject::InvokeMetaMethod, _id=24, _a=0x7ffcc3955bd0) at /home/dorianvogel/plasma-dev/powerdevil/build/daemon/powerdevilcore_automoc.dir/moc_powerdevilcore_SR3RJSZTCRXVIY.cpp:231
    #15 0x00007f6091e1ad49 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
    #16 0x00007f60966a08fb in  () at /usr/lib/libKF5IdleTime.so.5
    #17 0x00007f6091e1ad49 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
    #18 0x00007f607a2f6b8b in  () at /usr/lib/qt/plugins/kf5/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin0.so
    #19 0x00007f607a2f706e in  () at /usr/lib/qt/plugins/kf5/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin0.so
    #20 0x00007f6091dec55f in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () at /usr/lib/libQt5Core.so.5
    #21 0x00007f6085c9c974 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /usr/lib/libQt5XcbQpa.so.5
    #22 0x00007f6085c9d655 in QXcbConnection::processXcbEvents() () at /usr/lib/libQt5XcbQpa.so.5
    #23 0x00007f6091e1bba9 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
    #24 0x00007f6091def2da in QCoreApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
    #25 0x00007f6091def440 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
    #26 0x00007f6091df1bcd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
    #27 0x00007f6091e43c43 in  () at /usr/lib/libQt5Core.so.5
    #28 0x00007f608c0115a7 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
    #29 0x00007f608c011810 in  () at /usr/lib/libglib-2.0.so.0
    #30 0x00007f608c0118bc in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
    #31 0x00007f6091e4404f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
    #32 0x00007f6091ded89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
    #33 0x00007f6091df5de4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
    #34 0x00000000004066e6 in main(int, char**) (argc=1, argv=0x7ffcc39564a8) at /home/dorianvogel/plasma-dev/powerdevil/daemon/powerdevilapp.cpp:151

REPOSITORY
  R122 Powerdevil

REVISION DETAIL
  https://phabricator.kde.org/D5381

To: dvogel, broulik
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170411/347e7845/attachment-0001.html>


More information about the Plasma-devel mailing list