summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_launcher.c (follow)
AgeCommit message (Collapse)Author
2016-03-09ecore-drm: Update copyright noticeChris Michael
As portions of this code have been derived from existing code in Weston, we should also be including their copyright/licence text to give credit. NB: Fixes T3286 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-21ecore-drm: Don't unset logind variable when disconnecting a deviceChris Michael
For a case where we have more than one device open, if we set the 'logind' variable to false, then the second device would never close properly. @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-21ecore-drm: Cleanup ecore-drm shutdown routineChris Michael
This patch addresses an issue where when closing Enlightenment, the shutdown procedure would previously end up calling the same functions twice. These functions should be called from the ecore_evas drm shutdown routine as the sprites, inputs, outputs, etc are all called from the ecore_evas drm init routine. @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-14ecore_drm/ecore_wl2: logging: remove errant usage of %mDerek Foreman
Summary: printf %m stringifies and prints errno. I've tried to remove its use anywhere that the immediately preceding function might not set errno or is a complicated function for which knowing errno doesn't really give any useful information. I've left a few of the drmMode calls because they're just wrappers around ioctl, which legitimately sets errno. @fix Reviewers: zmike, devilhorns Reviewed By: zmike, devilhorns Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3572
2015-12-15ecore-drm: Fix failure of setting/closing evdev->fd which causes fd leakDuna Oh
Summary: When a input device is plugged in, _cb_open_restricted() is called before creating evdev. So setting fd value on evdev was failed in _cb_open_restricted() and also closing evdev->fd was invalid. Using a eina_hash which has 'path-fd' pairs, we can find fd value after evdev is created. @fix Test Plan: (1) Multiple input devices are connected. Their evdev->fd remains zero or initial value. (2) When one of those devices are plugged out, fd leak would happen. Reviewers: raster, zmike, gwanglim, stefan_schmidt, devilhorns, ManMower Subscribers: cedric, jpeg, Jeon, input.hacker Differential Revision: https://phab.enlightenment.org/D3428
2015-04-30ecore-drm: close fd when asked to close fdDerek Foreman
Summary: the logind device close function just lets logind revoke fd permissions but doesn't actually close the (now useless) fd. @fix Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2457
2015-04-30ecore-drm: append O_CLOEXEC alwaysDerek Foreman
Summary: Seems libinput wasn't bothering to set this so all child processes get their hands on input devices @fix Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2455
2015-04-30ecore_drm: close fd if flag set failsDerek Foreman
@fix Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2454
2015-04-24ecore-drm: add safety checks to all EAPI functionsMike Blumenkrantz
2015-04-09ecore-drm: Remove debug line from launcherChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Cleanup launcher codeChris Michael
Summary: This moves the VT switch handling code to the tty file, and sets the proper flags on the VT when opened. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-19Revert "ecore-drm: Don't init tty unless we are Not using systemd"Chris Michael
This reverts commit 28e4901d041e087f505c19bc9733ef22d31addf0. This broke vt switching in drm so revert (for now) until we get the systemd vt and setup handlers
2015-01-19ecore-drm: Don't init tty unless we are Not using systemdChris Michael
Summary: It turns out we don't need to handle open & setup of the tty unless we are Not using systemd. This fixes an issue during enlightenment restart where we are unable to reopen the tty. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-06ecore-drm: Fix incorrect launcher shutdown procedureChris Michael
Summary: We need to clean tty handlers and close the tty Before we can call logind_disconnect as that function ends up shuttting down our dbus connection. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-05ecore-drm: remove duplicated code from logind and tty.Seunghun Lee
Summary: integrates the code used in common. Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1796
2014-12-10ecore-drm: fix passing wrong argument to open().Seunghun Lee
Summary: remove unintended argument. @fix Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1765
2014-12-09ecore-drm: Fix ecore_drm_launcher_device_close to not cause segfaultsChris Michael
Summary: We can only call _ecore_drm_logind_device_close if we have an actual device string. It is possible that this Could get called with NULL, and thus cause a crash. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-09ecore-drm: Fix formattingChris Michael
Summary: No functional changes, just fixing formatting @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-09ecore-drm: Fix error message typoChris Michael
Summary: This just fixes a typo in the error message string @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-09ecore-drm: added drm launcher that is allow to determine whether to launch ↵Seunghun Lee
with logind or root privilege. Summary: - allow to launch drm backend without systemd-logind with root privilege. - allow to open drm device node via logind, not directly open it, in case exist systemd-logind. - fixes issue that couldn't switch session, because ecore-drm couldn't drop master to drm device with no permission. (allow to switch session appropriate.) Reviewers: gwanglim, devilhorns Subscribers: torori, cedric Differential Revision: https://phab.enlightenment.org/D1704