help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wayland setup


From: Gábor Boskovits
Subject: Re: Wayland setup
Date: Tue, 13 Mar 2018 22:22:11 +0100

2018-03-13 20:50 GMT+01:00 Thorsten Wilms <address@hidden>:
On 12.03.2018 21:54, Thorsten Wilms wrote:
---
#! /bin/sh

if test -z "${XDG_RUNTIME_DIR}"; then
     export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
     if ! test -d "${XDG_RUNTIME_DIR}"; then
         mkdir "${XDG_RUNTIME_DIR}"
         chmod 0700 "${XDG_RUNTIME_DIR}"
     fi
fi
---

Of course it doesn't work, since it runs in its own shell and export takes care of children, not parents, sheesh!

I have been pasting the export/mkdir/chmod into the console, instead.

So what's the canonical way to add that to ~/.bash_profile or ~/.bashrc, if that seems more appropriate? Or how else to meat those preconditions for weston-launch?


Actually it does not hurt if you add this code both to .bash_profile and to .bashrc. On most systems one of the startup files sources the other, so
you can add it to only the sourced one.
 

Adding my user to the already existing "input" group got rid of "Error opening device /dev/input/eventX: Permission denied".

strace revealed another error, "de-latin1-nodeadkeys" in weston.ini couldn't be found, going with just "de" causes silence on that front.

Much of the (attached) strace output suggests things go their way, but then:
---
[18:35:32.835] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
[18:35:32.835] EGL_KHR_surfaceless_context available
radeon: Failed to allocate a buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 4
radeon: Failed to allocate a buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 2
radeon:    flags     : 4
[18:35:32.837] EGL version: 1.5 (DRI2)
---

---
[18:35:32.931] failed to bind to /tmp/.X11-unix/X0: No such file or directory
Failed to process Wayland connection: Connection reset by peer
failed to create display: Connection reset by peer
---
Creating and `chmod 0700`ing /tmp/.X11-unix/X0 did not lead to a successful run.

The very end:
---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 539
close(5)                                = 0
close(3)                                = 0
ioctl(0, _IOC(0, 0x4b, 0x51, 0), 0)     = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(0, KDSKBMODE, 0x3)                = 0
ioctl(0, KDSETMODE, 0)                  = 0
ioctl(4, DRM_IOCTL_DROP_MASTER, 0)      = -1 EACCES (Permission denied)
ioctl(0, VT_SETMODE, 0x7ffd806628f0)    = 0
exit_group(1)                           = ?
+++ exited with 1 +++
---


--
Thorsten Wilms

thorwil's design for free software:
http://thorwil.wordpress.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]