Commit Graph

15677 Commits

Author SHA1 Message Date
Christopher Michael 03dee4db92 Backport: a2ce1d7 :: Cfdata is unused in the apply function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84143
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael b1919817a9 Backport: c508e28 :: Add LOGFN to functions. Append newly created monitor(s) to our list.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84142
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 8f82bb694c Backport: 9f6b69c :: Add test rectangle to monitor Add LOGFN to functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84141
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael b996c449d7 Backport: 927cf45 :: Add LOGFN macro to header.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84140
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 7f3f30ff44 Backport: db40616 :: Add prototype and code for virtual_size_calc function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84139
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael dc14c4eae6 Backport: 28a1a76 :: Tell randr widget to calculate virtual size.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84138
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 1fd4212846 Backport: 8fecfa5 :: Use proper width/height variables from crtc_config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84136
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 6f0dfdad6c Backport: 87a3d1d :: Move and resize the monitor after packing to it's proper position.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84135
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 29da423051 Backport: 6747bad :: Pack the created monitor into the layout widget.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84134
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 13a4aed496 Backport: 31b98fe :: Add a list of modes to smart_data structure. When we set the output, fill in the modes list Add code to sort modes list.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84133
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 5e882d1275 Backport: 148cdc9 :: Add geometry to smart_data struct. Check geometry changes in smart_move and smart_resize.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84132
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael d1d8dc4124 Backport: 69b1266 :: Start code for monitors create - Create monitor smart object - Set crtc and output config for monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84131
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael f2d9856ccb Backport: 7246631 :: Add crtc and output configs to smart_data structure. Add functions to set crtc and output configs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84130
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 4f8bb6f04c Backport: 82a0808 :: Add function prototypes for setting monitor crtc and output config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84129
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 862c8dcfe3 Backport: 6b1168b :: Add list of monitors to smart_data structure. Add code to delete the monitors when randr gets deleted.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84128
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael ac9ed0f98e Backport: 468998f :: Add initial start of code to create monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84127
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 0c09d80685 Backport: 6cf9624 :: Add header function for monitors_create.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84126
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 1c26ea8b99 Backport: 5216fb0 :: Add initial monitor code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84125
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael e7c9315004 Backport: 8a53055 :: Tell randr widget to create monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84124
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 17fdbee784 Backport: 6521caa :: Add header function for creating new monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84123
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 306fcfcb70 Backport: 3fd758f :: Cleanup compile warnings and include randr object header.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84121
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael a0cbdec5c2 Backport: 6b96e9c :: Add code to handle the layout object.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84119
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael e22c359f06 Backport: daa2b49 :: Create the randr widget in _basic_create.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84118
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 671f459fbc Backport: 4dfda15 :: Initial rewrite of the monitor object.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84117
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 652db147ca Backport: fbb5bae :: Initial rewrite of randr widget.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84116
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Deon Thomas 4f05f2a80c Backport: 520e479 :: Remove old randr code from dialog creation. 2013-06-28 03:28:46 -04:00
Deon Thomas 458a0ebfe6 Backport: 17dcfd1 :: Remove old randr widget code. 2013-06-28 03:28:46 -04:00
Deon Thomas b95d6b1394 Removed old code that is based on old ecore randr codes 2013-06-28 03:03:40 -04:00
Deon Thomas c99e2e61c4 Backport: e33fe5a :: Remove all references to the old randr config.
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:03:32 -04:00
Daniel Willmann 07f04ae508 Backport: 845cc72 :: Remove deleted file e_randr_private.h from EXTRA_DIST
Make distcheck happy

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:47:02 -04:00
Christopher Michael 9eb43636ee Backport: 4c13cd3 :: Remove old randr code from Makefile.am
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84108
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:45:55 -04:00
Chris Michael 0c2bb7260b Backport: a612fcf :: Initialize geometry variables (ie: The Shutup you stupid clang commit)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:36:06 -04:00
Chris Michael 398a6db329 Backport: 16c63ec :: Remove call to screen_reset (not needed)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:35:09 -04:00
Chris Michael 2bd7e0aab6 Backport: 99268f5 :: Rework the randr restore code
NB: This matches more closely to how xrandr applies settings

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:34:15 -04:00
Chris Michael 710b97f493 Backport: 2a38555 :: Add code to handle setting a larger screen size
IF, when applying any saved crtc settings, we find that the current
screen size is too small, then calculate a new screen size and apply it.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:33:26 -04:00
Chris Michael f9f138277f Backport: 7ae5da8 :: When we try to restore randr config, skip outputs that are not connected.
Fix buffer which was flipping Primary Output when you restart E (ie:
only set Primary Output once).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:32:47 -04:00
Chris Michael 765921a458 Backport: 98ac01c :: Remove unused variable (not needed).
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:31:29 -04:00
Chris Michael 2d060297f8 Backport: 74a85a1 :: Actually, we cannot set primary first as we may need to re-enable a saved monitor, so move "primary setting" until After we have enabled and sized the monitors.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:30:29 -04:00
Chris Michael 0f067cb391 Backport: 04936b2 :: Set primary output before crtc settings. If the primary output saved in config does not exist, then set primary to the first output.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:29:29 -04:00
Chris Michael 42ebed1598 Backport: 9f95515 :: Record primary output in randr config.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:28:35 -04:00
Chris Michael ef10745993 Backport: 7bd21a7 :: Preliminary support for Primary Output of XRandR
NB: If you have more than one output, XRandR has the option/support to
set a specific monitor as the primary output. These changes allow some
distinction in the dialog between which output is primary (a faint
glow around the monitor). This is just the "display" portion of
Primary Output support ... next is a method to Change that.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:20:05 -04:00
Chris Michael 674b6a9998 Backport: dff4df5 :: Fix potential memleak reported by klockwork.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:15:53 -04:00
Chris Michael 00934e820a Backport: 012a05e :: Modes is a zero-based list, so preferred needs to be -1.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:14:39 -04:00
Chris Michael 7fa2c66d74 Backport: 9e605eb :: Fix randr plug-n-play for cedric because he asked nicely ;)
- Add config timestamping to our randr config.
- remove property_notify handler as we never use it.
- Unify some code to remove duplication
- Add a lot of debugging output.
    Yes, e_randr is going to be noisy for a little while until I can
    verify that it works for others also.
- Too many other changes to list.
    Suffice to say, this makes e_randr plug-n-play work (here anyway).

NB: Right now, this just clones. It Could be changed to extend new
monitors tho

NB: This works here, on my laptop at home. If you find it does not
work for you, please supply the output of E's startup/restart when you
plug AND unplug monitors.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:12:50 -04:00
Chris Michael 5bb2aaf6b0 Backport: 1edb77e :: Add config_timestamp to e_randr_cfg.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:11:33 -04:00
Christopher Michael 6a9d354d2d Backport: 1c15009 :: Remove commented fixme (no time to optimize this routine right now).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84255
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:10:40 -04:00
Christopher Michael 99bcb2ccb9 Backport: b03c099 :: Add exists field to crtc and output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84231
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:09:49 -04:00
Christopher Michael c17ffb43b3 Backport: bc23ef5 :: Remove poller code for now (broken, does not work as expected, etc, etc).
Add exists field for crtc and output.
Fix output clones and connection status get to use the correct output.
Add some notes and printfs.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84227
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:09:04 -04:00
Christopher Michael 7bd21a70a2 Backport: bf6d1d4 :: Start on poller code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84226
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:07:11 -04:00
Christopher Michael 128d82a0d8 Backport: 3ff49b2 :: Add poll_interval to e_randr_cfg.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84225
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-27 20:06:01 -04:00