Commit Graph

121 Commits

Author SHA1 Message Date
Sebastian Dransfeld 23ade9f630 randr: fix formatting
tab to spaces
2014-11-19 11:58:50 +01:00
Mike Blumenkrantz 0cf20e5407 fix e_randr double comparison warnings 2014-09-07 23:02:38 -04:00
Sebastian Dransfeld b6032b1fbd e_randr: position unknown monitors far right 2014-08-14 12:46:31 +02:00
Sebastian Dransfeld 0cb5704016 e_randr: better initial loading of x config
On first creation of randr config, get output position from crtc and
save config afterwards.
2014-08-14 09:55:02 +02:00
Sebastian Dransfeld 4a59642438 e_randr: update TODO 2014-08-14 09:54:10 +02:00
Sebastian Dransfeld fd5f178c21 e_randr: narrower scoping of variables 2014-08-14 09:51:40 +02:00
Sebastian Dransfeld 81e5bac915 e_randr: remove debug 2014-08-14 09:50:29 +02:00
Sebastian Dransfeld 30846ee4ea randr: Update lid status when outputs change
If we only have lid, it will be active even though lid is closed. If we
connect a monitor we want the lid to deactivate.
2014-03-19 13:37:34 +01:00
Sebastian Dransfeld 8c3b7800c9 randr: TODO++ 2014-03-06 15:18:15 +01:00
Sebastian Dransfeld c0d0afad32 randr: function to apply current config 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld f6a0ec2753 randr: only activate outputs we want to connect 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld 52751092f5 randr: store connection status in output 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld 2e7964794b randr: make current setup extern 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld 9bd18c6272 randr: same param name in prototype and function 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld d6cec482d4 randr: don't let crtc changes change our config 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld ff750b2bb9 randr: add match for refresh rate
Store output config with refresh rate, so we don't just get correct
geometry for outputs.
2014-03-06 15:18:14 +01:00
Sebastian Dransfeld f32426878c randr: common function for fetching output name
Add a common function to get output name, and also check edid if no name
is set by randr.
2014-03-06 15:18:14 +01:00
Sebastian Dransfeld 82e7d1184c randr: remember crtc in output struct 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld 5c6eed2307 randr: allocate hot-plugged outputs 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld 11e21fd1ff randr: allocate hot-plugged crtcs 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld 8b5153130a randr: Use already fetched root window 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld 43aed04241 randr: check NULL before dereference
Fixes CID 1181926
2014-02-24 09:17:25 +01:00
Sebastian Dransfeld 60483a11a0 randr: split config and current setup
This is so the current config does get changed unless the user requests
it, and makes it possible to have several configs.
2014-02-17 08:44:56 +01:00
ChunEon Park 7474036140 enlightenment - removed warnings. 2014-01-18 19:37:02 +09:00
Sebastian Dransfeld 227072c553 randr: remove debug output 2014-01-15 07:06:14 +01:00
Sebastian Dransfeld 93cf4d877d randr: remove unused variable 2014-01-15 07:06:13 +01:00
Sebastian Dransfeld e215a3951e randr: Enable output from settings 2014-01-15 07:06:13 +01:00
Sebastian Dransfeld b140a13314 e_randr: rework 2014-01-15 07:06:13 +01:00
Chris Michael 87dd451353 Fix Phab Ticket T433 for Glima where you could not disable a laptop panel
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-10-17 18:05:29 +01:00
discomfitor d5675fd705 don't try applying randr settings when there's no outputs, this doesn't do anything 2013-10-17 08:35:27 +01:00
discomfitor 2eeb5fe129 get root window BEFORE using it to restore randr config :/ 2013-10-17 08:35:14 +01:00
Chris Michael a0e993f59b Finally fix odd TV resolution cloning
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-10-14 13:35:28 +01:00
Chris Michael 07fa7e4a13 Another attempt at odd TV resolution fix.
Mike, try this one "live" please

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-10-14 12:25:48 +01:00
Chris Michael 4df53f06e3 Revert "Fix bug when hotplugging a TV where resolution does not match the"
This reverts commit a9e09bc26d.

Breaks build, and does not fix real issue. Revert
2013-10-14 11:07:24 +01:00
Chris Michael a9e09bc26d Fix bug when hotplugging a TV where resolution does not match the
parent because a TV uses a non-standard 1360 resolution

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-10-14 10:53:04 +01:00
Chris Michael 8404e3c180 Fix uninitialized variable warning.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-09-26 20:07:01 +01:00
Chris Michael 8b28549aea RandR: Fix issues discovered here during testing
- Add some more debugging printouts
- When we initially plug in a monitor, set to Clone by default
- During initial clone, we cannot assume the plugged-in device
supports the same Mode so try to find a mode based on size.
- On output changes, test that an output has a crtc assigned.
- If a detached output Was the primary monitor, reset primary in config
to a valid existing monitor.
- Improve output_crtc_find code for better detection of where we can
place a new output.
- Fix "preferred mode" detection error.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-26 12:15:34 +01:00
discomfitor 944cfd246d since we're now requiring an efl version which has the necessary ecore-x functions, remove old and not-compiling ecore-x randr code which obviously has never been compile tested 2013-08-31 15:07:15 +01:00
Chris Michael b6fe0c8ff6 Don't do randr restore if we have fake screens. (requested by release
master) ;)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 08:08:33 +01:00
Chris Michael 112a4091c4 When we have to calculate screen size, it May actually Help to get the
crtc id that we need to fetch values for.

NB: Phab Ticket T258

NB: /me slaps self

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-08-02 17:06:55 +01:00
Chris Michael 395434a113 Properly check for primary output during new configurations.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-25 13:29:59 +01:00
Chris Michael a612fcf2c9 Initialize geometry variables (ie: The Shutup you stupid clang commit)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-31 13:29:51 +01:00
Chris Michael 16c63ecf8c Remove call to screen_reset (not needed)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-29 13:30:03 +01:00
Chris Michael 99268f50ab Rework the randr restore code
NB: This matches more closely to how xrandr applies settings

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-29 12:35:57 +01:00
Chris Michael 2a38555368 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>
2013-05-29 07:21:39 +01:00
Chris Michael 7ae5da88da 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>
2013-05-28 14:43:48 +01:00
Chris Michael 98ac01ceb8 Remove unused variable (not needed).
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-05-25 20:20:13 +01:00
Chris Michael 74a85a19db 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>
2013-05-25 20:18:33 +01:00
Chris Michael 04936b207a 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>
2013-05-24 18:42:45 +01:00
Chris Michael 9f95515926 Record primary output in randr config.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-05-24 13:04:58 +01:00