Commit Graph

49 Commits

Author SHA1 Message Date
Carsten Haitzler 43f1dc012d Revert "Randr: Fix null dereference."
This reverts commit 4aef218d28.

Revert "randr: remember crtcid for fast lookup on reconnect"
This reverts commit 55b4ad41d1.

Revert "randr: further cleanup"
This reverts commit 3e02824663.

these make nvidia randr resolution changing work again. sorry seb.
even though cleanups might be nice... this code is FIDDLY and every
driver seems to work differently, so take it easy and be very careful
- make no assumptions. i know it works on my intel desktop and nvidia
deskop atm. once i get a vga cable i'll fix up intel laptop with
external display that has problems. i can try radeon too later. but
right now - this stuff needs to work. being clean is far less
important than working. :)
2014-12-17 09:40:41 +09:00
Carsten Haitzler 9677b71902 Revert "randr: Don't track active outputs"
This reverts commit 01f43e3618.

this broke nvidia randr - i cant tunr my screens on or off anymore.
2014-12-17 09:12:32 +09:00
Sebastian Dransfeld 01f43e3618 randr: Don't track active outputs
Remove tracking of active outputs to reduce code complexity.
2014-12-16 10:13:55 +01:00
Sebastian Dransfeld 55b4ad41d1 randr: remember crtcid for fast lookup on reconnect
When an output is set inactive, it is disconnected from a crtc. Now we
remember the id of the last crtc it was connected to, so we get a faster
lookup on reconnect.
2014-12-16 09:21:02 +01:00
Carsten Haitzler 70753a7903 e - randr - stop saving config using XID - this is utterly WRONG
so e was storing randr config using XIDs to match outputs etc. this is
all kinds of wrong. XIDs are NOT STATIC. they change from xserver to
xserver and from run to run. they MAY be the same. they may not. so
this was just broken.

use output name + edid as a big "string" (name.edid) as a way ofr
identifying config for a specific combination of output plus monitor
and to find/identify the corrent output+monitor to apply it to (of
course missing edid gets replaced with ??? and missing output name is
??? too - i have never seen a missing output name so you get this at
least).

so this FIXES "restore" of screen mode on login for starters. this
does nothing to "fix" the screen setup dialog in any way. there are
separate issues there.

this also breaks e_randr config compat so i bumped epoch so your old
config is rejected. i don't see a sensible way of porting the config
forward.
2014-11-29 10:05:36 +09:00
Sebastian Dransfeld c0d0afad32 randr: function to apply current config 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 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 82e7d1184c randr: remember crtc in output struct 2014-03-06 15:18:14 +01:00
Sebastian Dransfeld 2b4a70b283 randr: remove wrong typedef
There is no struct for crtc config
2014-03-06 15:18:14 +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
Sebastian Dransfeld b140a13314 e_randr: rework 2014-01-15 07:06:13 +01:00
Carsten Haitzler 59080c6752 bump randr settings up 1 more epoch for e18 release
bump to epoch 3 (version 1 again) so that an e17.6 release can bump
version up but then e18 bump it up again.
2013-12-03 16:56:59 +09:00
Chris Michael 04da4c6406 Bump e_randr config version so everyone starts with a clean, fresh
working configuration...now that the dialog issues are sorted ;)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-26 12:15:34 +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
Chris Michael 1edb77e5c4 Add config_timestamp to e_randr_cfg.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-05-18 16:35:16 +01:00
Christopher Michael b03c09987b Add exists field to crtc and output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84231
2013-02-19 11:01:23 +00:00
Christopher Michael 985ff5af28 Add poll_interval field to config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84224
2013-02-19 11:01:02 +00:00
Christopher Michael 74b419fb9e Add connected flag for outputs, and add a restore config option.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84221
2013-02-19 11:00:53 +00:00
Christopher Michael dc509dd812 Add support for an outputs clones in e_randr and e_randr config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84206
2013-02-19 10:59:28 +00:00
Christopher Michael 499504b2f8 Remove timestamps from config (not needed).
Add randr versions to header.

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

SVN revision: 84111
2013-02-19 10:54:49 +00:00
Christopher Michael 734e841eb3 Add new randr header file.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84109
2013-02-19 10:54:39 +00:00
Christopher Michael a6a159be63 Remove All Old Randr Code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84107
2013-02-19 10:54:29 +00:00
Christopher Michael 39b6588855 Revert exposing the try_restore_config function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81375
2012-12-19 15:39:31 +00:00
Christopher Michael 4d4fd44b39 Expose the e_randr_12_try_enable_output function via EAPI.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81365
2012-12-19 14:21:39 +00:00
Christopher Michael 296a985992 Export the try_restore_configuration function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81157
2012-12-17 15:46:43 +00:00
Christopher Michael 94535beb52 Group EAPI functions together.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81154
2012-12-17 15:46:32 +00:00
Christopher Michael 06a76bcb27 Add e_randr_store_configuration function to exposed headers
(NB: It was exposed in the serialization file, but never provided by
the e_randr header).

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

SVN revision: 81146
2012-12-17 14:21:39 +00:00
Mike Blumenkrantz 62e79c7af0 more randr code cleanups, fixing a leak and not turning arrays into lists
still a lot of really gross code here that someone needs to take a hammer to


SVN revision: 75791
2012-08-28 13:28:04 +00:00
Leif Middelschulte bdb66274c0 e_randr: Show "ask position" dialog, if ASK policy is used.
SVN revision: 71566
2012-05-30 19:16:58 +00:00
Leif Middelschulte d69f6c6e6c Stringshare mode- and output names
SVN revision: 69936
2012-04-05 22:21:24 +00:00
Leif Middelschulte 0803d0fe29 Fix return type
SVN revision: 69914
2012-04-03 18:36:28 +00:00
Leif Middelschulte 95f33ad549 Make conf_display work again (primary output resolution st/ld).
SVN revision: 69547
2012-03-21 23:39:11 +00:00
Sebastian Dransfeld 8e446682e3 e/randr: Use correct typedef for xid
SVN revision: 69052
2012-03-08 11:25:05 +00:00
Leif Middelschulte 466b3c91c6 Improve init so it fails if the drivers dont really support RandRR.
SVN revision: 68238
2012-02-21 23:53:00 +00:00
Leif Middelschulte e9ecce3b3f Fix SEGV during storage.
SVN revision: 68126
2012-02-19 22:13:19 +00:00
Leif Middelschulte b27aec4ad5 Refactoring e_randr, big time.
SVN revision: 68114
2012-02-18 16:49:07 +00:00
Leif Middelschulte f5bf360e9a Introduce refetching of all RandRR info.
SVN revision: 66287
2011-12-16 14:19:25 +00:00
Leif Middelschulte 9282dd62d7 Make policies work and (re)storable. debug verbosity++
SVN revision: 66219
2011-12-14 17:37:33 +00:00
Carsten Haitzler 20e8feca2c i'll put in leif's randr code - even though it's buggy, it's the best
way for it to be worked on by people for release.



SVN revision: 64801
2011-11-06 06:41:39 +00:00
Carsten Haitzler 52e23870a3 revert parts of patch that committed randr to e... don't want that
right now until rest of patch is in.



SVN revision: 64629
2011-11-02 01:36:10 +00:00
Carsten Haitzler 0b4f2529f9 overkill doing "Gadget nameofgadget in the menu. just nameofgadget
will do. also it wasnt translated anyway.



SVN revision: 64624
2011-11-01 22:33:38 +00:00
Hannes Janetzek 3dc3094518 e17 patches from T_UNIX:
0001-Small-fixes-possible-segv-in-e-s-randr-subsystem.patch
0002-Add-common-modes-to-CRTC-information-structure.patch


SVN revision: 57833
2011-03-17 23:02:02 +00:00
Gustavo Sverzut Barbieri 6f2213cb25 convert init/shutdown to EINTERN, move some to _update().
Do not abuse the concept of e_*_init(), make them call-once and those
that needed multiple call are renamed to e_*_update(). To make sure
convert them to EINTERN so the symbols are not exported.

Actually I guess too much is exported as EAPI while they should be
EINTERN, but that would require manual investigation, while this patch
was basically created with sed + grep.



SVN revision: 54795
2010-11-22 15:21:32 +00:00
Leif Middelschulte cf91a2561a From: Leif Middelschulte <leif.middelschulte@gmail.com>
this is a little patch for e_randr related stuff.

- replace the saving of a monitor's EDID with a hash of it.
- rename a variable name



SVN revision: 51508
2010-08-22 03:49:34 +00:00
Christopher Michael 973c56bfe4 Fix Randr header to match other headers in E.
SVN revision: 51211
2010-08-16 14:02:21 +00:00
Christopher Michael 678acb7bdd Don't need these headers here either ... already in e.h.
Fix formatting.



SVN revision: 51206
2010-08-16 12:47:44 +00:00
Leif Middelschulte 935774e161 From: Leif Middelschulte <leif.middelschulte@gmail.com>
patch for ecore-x xrandr 1.3 support - breaks previous api. final api
change (i know about) before we go alpha. in to svn we go.



SVN revision: 51109
2010-08-14 10:21:03 +00:00