summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston-init
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/wayland/weston-init')
-rw-r--r--meta/recipes-graphics/wayland/weston-init/71-weston-drm.rules2
-rw-r--r--meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini2
-rw-r--r--meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini2
-rw-r--r--meta/recipes-graphics/wayland/weston-init/weston.ini74
-rw-r--r--meta/recipes-graphics/wayland/weston-init/weston.service13
-rw-r--r--meta/recipes-graphics/wayland/weston-init/weston@.service37
6 files changed, 117 insertions, 13 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init/71-weston-drm.rules b/meta/recipes-graphics/wayland/weston-init/71-weston-drm.rules
new file mode 100644
index 0000000000..1a1b8bbda4
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston-init/71-weston-drm.rules
@@ -0,0 +1,2 @@
1ACTION=="add", SUBSYSTEM=="graphics", KERNEL=="fb0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="weston@root.service"
2ACTION=="add", SUBSYSTEM=="drm", KERNEL=="card0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="weston@root.service"
diff --git a/meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini b/meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini
new file mode 100644
index 0000000000..17ebd7fdab
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston-init/qemux86-64/weston.ini
@@ -0,0 +1,2 @@
1[core]
2backend=fbdev-backend.so
diff --git a/meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini b/meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini
new file mode 100644
index 0000000000..17ebd7fdab
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston-init/qemux86/weston.ini
@@ -0,0 +1,2 @@
1[core]
2backend=fbdev-backend.so
diff --git a/meta/recipes-graphics/wayland/weston-init/weston.ini b/meta/recipes-graphics/wayland/weston-init/weston.ini
new file mode 100644
index 0000000000..1eecf48bc1
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston-init/weston.ini
@@ -0,0 +1,74 @@
1# configuration file for Weston
2
3#[core]
4#modules=xwayland.so,cms-colord.so
5#shell=desktop-shell.so
6#gbm-format=xrgb2101010
7
8#[shell]
9#background-image=/usr/share/backgrounds/gnome/Aqua.jpg
10#background-color=0xff002244
11#background-type=tile
12#clock-format=minutes
13#panel-color=0x90ff0000
14#locking=true
15#animation=zoom
16#startup-animation=fade
17#binding-modifier=ctrl
18#num-workspaces=6
19#cursor-theme=whiteglass
20#cursor-size=24
21
22#lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png
23#lockscreen=/usr/share/backgrounds/gnome/Garden.jpg
24#homescreen=/usr/share/backgrounds/gnome/Blinds.jpg
25#animation=fade
26
27#[launcher]
28#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
29#path=/usr/bin/gnome-terminal
30
31#[launcher]
32#icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
33#path=/usr/bin/weston-terminal
34
35#[launcher]
36#icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png
37#path=/usr/bin/google-chrome
38
39#[launcher]
40#icon=/usr/share/icons/gnome/24x24/apps/arts.png
41#path=/build/weston-0lEgCh/weston-1.11.0/weston-flower
42
43#[input-method]
44#path=/usr/lib/weston/weston-keyboard
45
46#[output]
47#name=LVDS1
48#mode=1680x1050
49#transform=90
50#icc_profile=/usr/share/color/icc/colord/Bluish.icc
51
52#[output]
53#name=VGA1
54#mode=173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
55#transform=flipped
56
57#[output]
58#name=X1
59#mode=1024x768
60#transform=flipped-90
61
62#[libinput]
63#enable_tap=true
64
65#[touchpad]
66#constant_accel_factor = 50
67#min_accel_factor = 0.16
68#max_accel_factor = 1.0
69
70#[screen-share]
71#command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize
72
73#[xwayland]
74#path=/usr/bin/Xwayland
diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service
deleted file mode 100644
index 18f72626e0..0000000000
--- a/meta/recipes-graphics/wayland/weston-init/weston.service
+++ /dev/null
@@ -1,13 +0,0 @@
1[Unit]
2Description=Weston Wayland Compositor
3RequiresMountsFor=/run
4
5[Service]
6User=root
7PAMName=login
8EnvironmentFile=-/etc/default/weston
9ExecStart=/usr/bin/weston-start -v -e -- $OPTARGS
10
11[Install]
12WantedBy=multi-user.target
13
diff --git a/meta/recipes-graphics/wayland/weston-init/weston@.service b/meta/recipes-graphics/wayland/weston-init/weston@.service
new file mode 100644
index 0000000000..9ecf2ab069
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston-init/weston@.service
@@ -0,0 +1,37 @@
1[Unit]
2Description=Weston Wayland Compositor (on tty7)
3RequiresMountsFor=/run
4Conflicts=getty@tty7.service plymouth-quit.service
5After=systemd-user-sessions.service getty@tty7.service plymouth-quit-wait.service
6
7[Service]
8User=%i
9PermissionsStartOnly=true
10
11# Log us in via PAM so we get our XDG & co. environment and
12# are treated as logged in so we can use the tty:
13PAMName=login
14
15# Grab tty7
16UtmpIdentifier=tty7
17TTYPath=/dev/tty7
18TTYReset=yes
19TTYVHangup=yes
20TTYVTDisallocate=yes
21
22# stderr to journal so our logging doesn't get thrown into /dev/null
23StandardOutput=tty
24StandardInput=tty
25StandardError=journal
26
27EnvironmentFile=-/etc/default/weston
28
29# Weston does not successfully change VT, nor does systemd place us on
30# the VT it just activated for us. Switch manually:
31ExecStartPre=/usr/bin/chvt 7
32ExecStart=/usr/bin/weston --log=${XDG_RUNTIME_DIR}/weston.log $OPTARGS
33
34IgnoreSIGPIPE=no
35
36#[Install]
37#Alias=multi-user.target.wants/weston.service