[Kde-hardware-devel] kscreen osd directly switch to TurnOffEmbedded from ExtendToRight cause libkscreen canBeAppled error

Leslie Zhai xiang.zhai at i-soft.com.cn
Tue Jul 28 01:21:24 UTC 2015


Hi Daniel,

I moved osd into kded module now 
http://quickgit.kde.org/?p=kscreen.git&a=commit&h=eb11018352f8b125d0077afb119fccc31ee4a37e

I directly use kscreen/kded/generator displaySwitch ;-) 
https://projects.kde.org/projects/kde/workspace/kscreen/repository/revisions/osd/entry/kded/daemon.cpp#L145

But there is a osd usecase will cause libkscreen canBeAppled error:
when a new monitor plugged in, the osd show, right now it is 
ExtendToRight mode, people want to switch to TurnOffEmbedded, so he/she 
clicked the 'Second' item, then all outputs are disabled! 
https://bugs.kde.org/show_bug.cgi?id=350657

Actually it is able to use a trick when the previous mode is Extend, 
when want to directly switch to TurnOffEmbedded, just doApplyConfig for 
Mirror at first, then TurnOffEmbedded, just like kscreen kded 
Qt::Key_Display hot key Generator`s enum DisplaySwitchAction order.

But xrandr --output LVDS1 --off --output VGA1 --auto is able to work, so 
I still want to fix the issue for libkscreen ;-) please give me some 
advice, thanks a lot!

-- 
Regards,
Leslie Zhai






More information about the Kde-hardware-devel mailing list