From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Wayland setup Date: Tue, 13 Mar 2018 22:22:11 +0100 Message-ID: References: <688b0347-0647-1362-0cf3-3f149f388151@freenet.de> <279e5bf3-5f38-8080-a4d6-460938780e38@freenet.de> <528f623e-8a05-413c-f7bc-bd3f9a82c14d@freenet.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113f6c0e0bcaae056751da89" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evrN8-0003fy-RM for help-guix@gnu.org; Tue, 13 Mar 2018 17:22:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evrN7-0002LD-C0 for help-guix@gnu.org; Tue, 13 Mar 2018 17:22:14 -0400 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:53027) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evrN7-0002Kq-4v for help-guix@gnu.org; Tue, 13 Mar 2018 17:22:13 -0400 Received: by mail-it0-x235.google.com with SMTP id k135-v6so1932884ite.2 for ; Tue, 13 Mar 2018 14:22:12 -0700 (PDT) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Thorsten Wilms Cc: help-guix --001a113f6c0e0bcaae056751da89 Content-Type: text/plain; charset="UTF-8" 2018-03-13 20:50 GMT+01:00 Thorsten Wilms : > 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/ > --001a113f6c0e0bcaae056751da89 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2018= -03-13 20:50 GMT+01:00 Thorsten Wilms <t_w_@freenet.de>:
On 12.03.2018 21:54, Thorsten= Wilms wrote:
---
#! /bin/sh

if test -z "${XDG_RUNTIME_DIR}"; then
=C2=A0=C2=A0=C2=A0=C2=A0 export XDG_RUNTIME_DIR=3D/tmp/${UID}-runtime-= dir
=C2=A0=C2=A0=C2=A0=C2=A0 if ! test -d "${XDG_RUNTIME_DIR}"; then<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mkdir "${XDG_RUNTIME_= DIR}"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 chmod 0700 "${XDG_RUN= TIME_DIR}"
=C2=A0=C2=A0=C2=A0=C2=A0 fi
fi
---

Of course it doesn't work, since it runs in its own shell and export ta= kes 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 f= or weston-launch?


Actually it does not hurt if you add t= his code both to .bash_profile and to .bashrc. On most systems one of the s= tartup files sources the other, so
you can add it to only the sou= rced one.
=C2=A0

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

strace revealed another error, "de-latin1-nodeadkeys" in weston.i= ni 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 EG= L_KHR_swap_buffers_with_damage is supported. Performance could be affe= cted.
[18:35:32.835] EGL_KHR_surfaceless_context available
radeon: Failed to allocate a buffer:
radeon:=C2=A0 =C2=A0 size=C2=A0 =C2=A0 =C2=A0 : 65536 bytes
radeon:=C2=A0 =C2=A0 alignment : 4096 bytes
radeon:=C2=A0 =C2=A0 domains=C2=A0 =C2=A0: 2
radeon:=C2=A0 =C2=A0 flags=C2=A0 =C2=A0 =C2=A0: 4
radeon: Failed to allocate a buffer:
radeon:=C2=A0 =C2=A0 size=C2=A0 =C2=A0 =C2=A0 : 65536 bytes
radeon:=C2=A0 =C2=A0 alignment : 4096 bytes
radeon:=C2=A0 =C2=A0 domains=C2=A0 =C2=A0: 2
radeon:=C2=A0 =C2=A0 flags=C2=A0 =C2=A0 =C2=A0: 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 directo= ry
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) =3D=3D 1}], 0, NULL) =3D= 539
close(5)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D 0
close(3)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D 0
ioctl(0, _IOC(0, 0x4b, 0x51, 0), 0)=C2=A0 =C2=A0 =C2=A0=3D -1 ENOTTY (Inapp= ropriate ioctl for device)
ioctl(0, KDSKBMODE, 0x3)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =3D 0
ioctl(0, KDSETMODE, 0)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =3D 0
ioctl(4, DRM_IOCTL_DROP_MASTER, 0)=C2=A0 =C2=A0 =C2=A0 =3D -1 EACCES (Permi= ssion denied)
ioctl(0, VT_SETMODE, 0x7ffd806628f0)=C2=A0 =C2=A0 =3D 0
exit_group(1)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D ?
+++ exited with 1 +++
---


--
Thorsten Wilms

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

--001a113f6c0e0bcaae056751da89--