aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/x11-common
AgeCommit message (Collapse)Author
2016-09-08x11-common: Remove Xserver scriptJussi Kukkonen
X startup is now handled in xserver-nodm-init. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-09-08xserver-nodm-init: Deprecate /etc/X11/XserverJussi Kukkonen
This commit should provide the same functionality as before, but should make meta-oe xserver-nodm-init-2.0 obsolete as well as keep systemd and sysvinit startup better in sync. /etc/X11/Xserver is not called anymore: it is provided by both x11-common and xserver-common with no useful differences (but some annoying ones). Instead xserver-nodm-init provides /etc/xserver-nodm/Xserver as the startup script and /etc/default/xserver-nodm as the default settings file. These are used by both init systems. The Xserver script could be completely removed (with sysv and systemd calling xinit directly), but to keep compatibility with meta-oes xserver-nodm-init-2.0 the Xserver script sources /etc/X11/xserver-common if one exists -- and systemd EnvironmentFile cannot do that. x11-common used to have a packageconfig to easily control screen blanking. Move this to xserver-nodm-init. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-08-25x11-common: replace xtscal with xinput-calibratorMaxin B. John
Replace xtscal with xinput-calibrator as part of removing xtscal. [YOCTO #9365] Signed-off-by: Maxin B. John <maxin.john@intel.com>
2016-06-12x11-common: Fix XDG_RUNTIME_DIR typoTom Hochstein
Fix the if-statement that had misspelled XDG_RUNTIME_DIR. Also fix whitespace. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-08x11-common: Add PACKAGECONFIG for screen blankingJussi Kukkonen
when "blank" is not in PACKAGECONFIG, explicitly set dpms and screensaver off. The intention here is to make it easier to create builds that should not blank the screen (just remove "blank" from x11-common PACKAGECONFIG). Also remove a unneeded "find -exec rm" from do_install. Partly fixes [YOCTO #7278]. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-05-30xserver-nodm: Support reboot from inside XRicardo Ribalda Delgado
If reboot was called from inside the Xserver there could happen a race condition where chvt would never end, and therefore the whole system was stalled. The user could not recover the system by ssh the machine or using the keyboard. Running chvt in background fixes the issue. Also move sleep 1s inside stop to give time for killproc xinit for fix issue when chvt 1 don't work because X server is still running. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-21xserver-nodm-init: Change to vt1 when stopAníbal Limón
When X is stopped it remains in the same vt that was launched, change to vt1 instead to avoid manual vt switch. [YOCTO #5336] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-09recipes: add x11 to required DISTRO_FEATURESMartin Jansa
* it's not complete, but recipes depending on virtual/libx11 are easiest to spot, I've long list of PNBLACKLIST for all recipes which cannot be built in distro without x11 in DISTRO_FEATURES Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-03xserver-nodm-init: Only start in runlevel 5Dan McGregor
Runlevel 3 is often multi-user without X, so don't start the X server in runlevel 3. This allows one to start up a machine without X running from the bootloader. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03meta: fix no newline at end of fileRobert Yang
Add a '\n' to the last line of the file to fix: No newline at end of file Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-25Globally replace 'base_contains' calls with 'bb.utils.contains'Otavio Salvador
The base_contains is kept as a compatibility method and we ought to not use it in OE-Core so we can remove it from base metadata in future. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-01-02Replace one-line DESCRIPTION with SUMMARYPaul Eggleton
A lot of our recipes had short one-line DESCRIPTION values and no SUMMARY value set. In this case it's much better to just set SUMMARY since DESCRIPTION is defaulted from SUMMARY anyway and then the SUMMARY is at least useful. I also took the opportunity to fix up a lot of the new SUMMARY values, making them concisely explain the function of the recipe / package where possible. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-08-26xserver-nodm-init: improvements from meta-oePaul Eggleton
Bring in some changes from the meta-oe version of this script in order to bring them closer together. (Unfortunately it does not completely supersede the recipes in meta-oe - there is still some unification to be done between x11-common and xserver-common.) * Add systemd support (with extensions for ROOTLESS_X) * Remove sudo from RDEPENDS_${PN} since this hasn't been used by this for a long time * Rearrange recipe slightly to make the order logical A couple of additional improvements at the same time: * Use ROOT_HOME for root's home directory * Set short description in SUMMARY instead of DESCRIPTION Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-07-09xserver-nodm-init: remove xuser creation, RDEPEND on xuser-accountLaurentiu Palcu
[YOCTO #4345] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-04-15allarch: Drop various problematic allarch usagesRichard Purdie
In each of these cases allarch is used where the package in question has a dependency on things which are not allach and change when MACHINE is changed. This leads to a rebuild of the package each time MACHINE is switched and the sstate checksum changes. The dependencies in question are not suited be being marked as ABISAFE. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-04xserver-nodm-init: Add xuser to input groupDarren Hart
Fixes [YOCTO 4164](3/3) Input devices come and go, so a single chmod in this init script is not adequate to ensure rootless X servers can use input devices. The o+rw method also introduces a security hole. The newly added input group and input udev rule address this in a secure way. Ensure the xuser is added to the input group. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Saul Wold <sgw@linux.intel.com> Cc: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-27xserver-nodm: Correct initscript headerRichard Purdie
The init script header is incorrect, we only start this at runlevels 2 and 5. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-01-18x11-common: set XDG_RUNTIME_DIR if it isn't already setRoss Burton
Wayland needs this set for the communication pipes, so set a fallback in case it hasn't already been set. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-02x11-common: don't prune .svn directories on install, we're in git nowRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-09-02x11-common: just support Xorg now that kdrive has been removedRoss Burton
This script was also handling Xomap, Xipaq and Xepson... Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-08-06xserver-nodm-init: use ${sysconfdir} instead of /etc for packagingJavier Martinez Canillas
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-06x11-common: use ${sysconfdir} instead of /etc for packagingJavier Martinez Canillas
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-13connman: bump PR and add some commentsLaurentiu Palcu
The comments are for informing anyone who wants to change USERADD_PARAMs to make sure it's in sync with the one in xserver-nodm-init, in order for rootless X to work. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
2012-02-26More quoting fixesMartin Jansa
* We have various variables which are either not quoted at all or are half quoted. This patch fixes the bad exmaples so everything is consistent. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-06x11-common: remove extraneous BSP customizationsAndrea Adami
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
2011-12-16xserver-nodm-init: Fix xuser creationZhai Edwin
Rootless X start fail as xuser has no home and shell. This patch fix it. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-02xserver-nodm-init: Use useradd to add the xuser for rootless XSaul Wold
This also address an issue with dbus and connman, since connmand needs to start as the xuser in the rootless X situation. Fixes: [YOCTO #1699] Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-09-07xserver-nodm-init: Change hidraw mode to allow normal user accessZhai Edwin
USB HID like touch screen could be presented as hidraw* device, this change make user under rootless X can access them. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2011-08-31xserver-nodm: Disable dbus-wait as it causes users too much confusionRichard Purdie
In the event the xserver fails to start the dbus-wait has to time out and this causes many users a lot of confusion. If we wish to reinstate this, we need to find a safer mechanism to do it where X failing to start cancels the timeout (sends a dbus event at that point?) The comments are left in the file as an example in case some user does wish to enable is. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-04xserver-nodm-init: Fix X start failure on some platformZhai Edwin
sudo is used to run rootless X in xserver-nodm, and start to fail with "xf86OpenConsole: Cannot open /dev/tty0" error after upgrade to 1.8.1. sudo seems wait for some resource that is unavailable in early phase of booting. This patch swith to "su" for rootless X starting as a fix. [YOCTO #1211] got fixed Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2011-07-01Drop PRIORITY variableRichard Purdie
As discussed on the mailing list, this variable isn't useful and if wanted would be better implemented by distros using pn-X overrides. This patch executes: find . -regex ".*\.\(bb\|inc\)$" | xargs sed -i '/^PRIORITY = ".*"$/d' against the tree removing the referenced. Thanks to Phil Blundell for the command. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-31Improve handling of 'all' architecture recipes and their interaction with sstateRichard Purdie
The existing PACKAGE_ARCH = "all" mechanism of sharing packages is problematic with sstate since there are a variety of variables which have target specific values and the sstate package therefore correctly changes signature depending on the MACHINE setting. This patch creates a new "allarch" class which sets: PACKAGE_ARCH = "all" (as per the existing convention) INHIBIT_DEFAULT_DEPS = "1" (since its not target specific and therefore can't depend on the cross compiler or target libc) TARGET_ARCH = "all" TARGET_OS = "linux" TARGET_CC_ARCH = "none" (since these variables shouldn't change between the different packages and target compiler flags shouldn't be getting used) PACKAGE_EXTRA_ARCHS = "" (since we shouldn't be depending on any architecture specific package architectures) Not all PACKAGE_ARCH = "all" recipes can use this class since some run configure checks on the compiler. This means they have target specific components and therefore the "all" classification is incorrect. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-27x11-common: fix dbus-launch RDEPENDSKoen Kooi
/usr/bin/dbus-launch is in the dbus-x11 packages, the dbus-launch package doesn't exist Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-26x11-common 0.1: add runtime dep on dbus-x11Koen Kooi
dbus-launch moved into the dbus-x11 packages, so we need to drag it in. Also reorder fields to better fit with the styleguide Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-12recipes: Add Upstream-Status for multiple recipesYu Ke
iputils: update patch Upstream-Status mktemp: update patch Upstream-Status xinetd: update Upstream-Status libdrm: update patch Upstream-Status qemugl: update patch Upstream-Status x11-common: update patch Upstream-Status xorg-app: update patch Upstream-Status xorg-driver: update patch Upstream-Status Signed-off-by: Yu Ke <ke.yu@intel.com>
2011-03-19xserver-nodm-init: Mark as machine specific after recent rootless X changesRichard Purdie
Fix summplied by ke.yu@intel.com [YOCTO #906] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-15xserver-nodm-init: add xuser to group audioDongxiao Xu
add rootless X user to group audio to access /dev/snd/* Fixes [YOCTO #799] CC: Ke Yu <ke.yu@intel.com> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2011-03-01xserver-nodm-init: add rootless-x supportYu Ke
most rootless X work are already done in the kernel, xserver and graphics driver, this patches add the the remaining userspace setting: - create /etc/X11/Xusername to set rootless X user - add rootless X user to group video, tty to access /dev/tty[0-4] and /dev/dri/card0 - grant rootless X user access right to /dev/input/*, /var/log Signed-off-by: Yu Ke <ke.yu@intel.com>
2011-02-03recipes-graphics: Add more detailed SUMMARY and DESCRIPTIONSMark Hatle
Add more detailed SUMMARY and DESCRIPTIONS to various graphics and graphics related components. I've recently gotten question from users what something is, or why it was needed.. this should go a long way toward answering those questions. Many of the descriptions were taken directly from the upstream location, where one was not available the Debian packages were consulted for information. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-01-28x11-common: Fix unusable serial consoleWolfgang Denk
The serial console port is basicly unusable in images containing X. Login works fine, but at the shell prompt only one out of N input characters (N usually between 2 and 10) gets through to the shell. dbus-launch (running as "dbus-launch --sh-syntax --exit-with-session") is also reading from /dev/console and "eating" the missing characters. As soon as I stop the Xserver ("sh /etc/init.d/xserver-nodm stop") the serial console starts wroking fine (because dbus-launch is not running any more). This patch addresses the problem. Signed-off-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-09xserver-nodm-init: add license checksumYu Ke
Signed-off-by: Yu Ke <ke.yu@intel.com>
2010-12-09x11-common: add license checksumYu Ke
it is local file recipe and no GPLv2 license file, so add a patch to add GPLv2 license file Signed-off-by: Yu Ke <ke.yu@intel.com>
2010-10-04x11-common: correct the syntax for the -mouse arg to XfbdevRichard Griffiths
Fixes [BUGID #99] The mouse option as passed to Xfbdev was correct for most targets, except mips (and a PS/2 mouse). Modifying the syntax of the option fixes the mips case, and has no impact on other users. Signed-off-by: Richard Griffiths <rgriffit@windriver.com>
2010-08-27Major layout change to the packages directoryRichard Purdie
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>