View previous topic :: View next topic |
Author |
Message |
start n00b
Joined: 06 Nov 2020 Posts: 19
|
Posted: Tue Nov 16, 2021 1:11 am Post subject: I cannot start sway. |
|
|
weston can start,but sway can't.
Running dbus-run-session sway shows the following error:
0:00:00.018 [ERROR] [wlr] [libseat] [libseat/backend/seatd.c:78] Could not connect to socket /run/seatd.sock: No such file or directory
00:00:00.018 [ERROR] [wlr] [libseat] [libseat/libseat.c:73] No backend was able to open a seat
00:00:00.018 [ERROR] [wlr] [backend/session/session.c:84] Unable to create seat: Function not implemented
00:00:00.018 [ERROR] [wlr] [backend/session/session.c:218] Failed to load session backend
00:00:00.018 [ERROR] [wlr] [backend/backend.c:353] Failed to start a DRM session
00:00:00.018 [ERROR] [sway/server.c:53] Unable to create backend
The following is the result of my'emerge --info'.
Portage 3.0.28 (python 3.9.7-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r7, 5.10.76-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.10.76-gentoo-r1-x86_64-AMD_Ryzen_3_2200G_with_Radeon_Vega_Graphics-with-glibc2.33
KiB Mem: 7119420 total, 5958980 free
KiB Swap: 8388604 total, 8388604 free
Timestamp of repository gentoo: Fri, 12 Nov 2021 00:45:01 +0000
Head commit of repository gentoo: 8b254663303ebb00922d561f0daaf7a4f32dfe40
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash: 5.1_p8::gentoo
dev-lang/perl: 5.34.0-r3::gentoo
dev-lang/python: 3.9.7_p1::gentoo
dev-lang/rust: 1.53.0::gentoo
dev-util/cmake: 3.20.5::gentoo
sys-apps/baselayout: 2.7::gentoo
sys-apps/openrc: 0.44.7::gentoo
sys-apps/sandbox: 2.25::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake: 1.16.4::gentoo
sys-devel/binutils: 2.37_p1::gentoo
sys-devel/gcc: 11.2.0::gentoo
sys-devel/gcc-config: 2.4::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc: 2.33-r7::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl unicode wayland xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2019" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="aarch64 arm riscv64 riscv32 x86_64" QEMU_USER_TARGETS="aarch64 arm riscv64 riscv32" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
And make.conf:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j4"
# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo"
USE="wayland -X -alsa -video_cards_intel -video_cards_nouveau"
ACCEPT_LICENSE="*"
VIDEO_CARDS="amdgpu"
QEMU_SOFTMMU_TARGETS="aarch64 arm riscv64 riscv32 x86_64"
QEMU_USER_TARGETS="aarch64 arm riscv64 riscv32" |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Nov 16, 2021 2:57 am Post subject: |
|
|
Not related to the issue, but...
Code: | PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages" |
Those directories live in /var nowadays... See: https://forums.gentoo.org/viewtopic-t-1102294.html, especially the second post.
Code: | VIDEO_CARDS="amdgpu" |
No radeonsi? See: https://wiki.gentoo.org/wiki/AMDGPU
Code: | COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}" |
No "-march=native" for CFLAGS and CXXFLAGS?
Code: | default/linux/amd64/17.1 |
I think your life would be easier if you switched to a desktop profile...
Now to the issue you posted:
- Do you use Systemd? Or OpenRC?
- If you use OpenRC: do you use elogind? Is it installed and running?
- If you use OpenRC and NOT elogind: have you read the chapter 'Executing sway' on this page and do you set XDG_RUNTIME_DIR as recommended?
|
|
Back to top |
|
|
start n00b
Joined: 06 Nov 2020 Posts: 19
|
Posted: Tue Nov 16, 2021 4:23 am Post subject: |
|
|
I use OpenRC.
I installed the Elogind, but the 'top' command didn't see the Elogind process.
I only found an elogind-inhibit,press the Enter key to run it "Failed to Connet To Bus: No Such or Directoy" prompt.
I wrote the same .bash_profile file, set the 'XDG_RUNTIME_DIR' by https://wiki.gentoo.org/wiki/wayland tutorial.
But 'env' command results show variables set, different from 'emerge --info.
emerge --info | grep XDG
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
env | grep XDG
XDG_RUNTIME_DIR=/tmp/0-runtime-dir/
Last edited by start on Wed Nov 17, 2021 4:52 am; edited 2 times in total |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Nov 16, 2021 4:46 am Post subject: |
|
|
Ah, okay. Please follow the advice on this page: https://wiki.gentoo.org/wiki/Elogind to get elogind up and running.
You can test wheter elogind is up and running. Run 'loginctl' - and you should see something like:
Code: | SESSION UID USER SEAT TTY
c1 10001 yourname seat0 tty1
1 sessions listed. |
The output above is from a machine running Systemd, but 'loginctl' on a machine with 'elogind' should print a similar result. |
|
Back to top |
|
|
start n00b
Joined: 06 Nov 2020 Posts: 19
|
Posted: Tue Nov 16, 2021 6:10 am Post subject: |
|
|
'elogind-daemon' is running, running 'loginctl' display results are roughly the same, but "sway" is still not successful, and the following tips have been taken:
Quote: | 00:00:00.015 [ERROR] [wlr] [libseat] [libseat/backend/seatd.c:78] Could not connect to socket /run/seatd.sock: No such file or directory
00:00:00.051 [ERROR] [sway/main.c:202] Unable to drop root (we shouldn't be able to restore it after setuid), refusing to start |
|
|
Back to top |
|
|
spica Apprentice
Joined: 04 Jun 2021 Posts: 287
|
Posted: Tue Nov 16, 2021 7:43 am Post subject: |
|
|
start wrote: | 'elogind-daemon' is running, running 'loginctl' display results are roughly the same, but "sway" is still not successful, and the following tips have been taken:
Quote: | 00:00:00.015 [ERROR] [wlr] [libseat] [libseat/backend/seatd.c:78] Could not connect to socket /run/seatd.sock: No such file or directory
00:00:00.051 [ERROR] [sway/main.c:202] Unable to drop root (we shouldn't be able to restore it after setuid), refusing to start |
|
Check if seatd is installed and running. |
|
Back to top |
|
|
start n00b
Joined: 06 Nov 2020 Posts: 19
|
Posted: Tue Nov 16, 2021 7:53 am Post subject: |
|
|
spica wrote: | start wrote: | 'elogind-daemon' is running, running 'loginctl' display results are roughly the same, but "sway" is still not successful, and the following tips have been taken:
Quote: | 00:00:00.015 [ERROR] [wlr] [libseat] [libseat/backend/seatd.c:78] Could not connect to socket /run/seatd.sock: No such file or directory
00:00:00.051 [ERROR] [sway/main.c:202] Unable to drop root (we shouldn't be able to restore it after setuid), refusing to start |
|
Check if seatd is installed and running. |
I have done it according to what you said, now there is only one error:
00:00:00.051 [ERROR] [sway/main.c:202] Unable to drop root (we shouldn't be able to restore it after setuid), refusing to start
Can I open it in the root account? |
|
Back to top |
|
|
spica Apprentice
Joined: 04 Jun 2021 Posts: 287
|
Posted: Tue Nov 16, 2021 8:59 am Post subject: |
|
|
I see just a few flags in USE. Debugging without one of desktop* profiles might be too time consuming.
I would switch to the 'desktop' profile, check that elogind has 'policykit' flag enabled (leave default flags for elogind), reemerge @world, reboot and check again. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Nov 16, 2021 10:54 am Post subject: |
|
|
Additionally to what spica wrote: The elogind Wiki page recommends to enable USE flag 'elogind' in make.conf. I can't see it in the output of 'emerge --info' in your first post. |
|
Back to top |
|
|
start n00b
Joined: 06 Nov 2020 Posts: 19
|
Posted: Wed Nov 17, 2021 4:50 am Post subject: |
|
|
The XDG_RUNTIME_DIR in the .bash_profile file script does not take effect.
Always become / Run / User / 0, the following error occurs:
dbus[4886]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/0" is owned by uid 0, not our uid 1000
00:00:00.056 [ERROR] [sway/server.c:173] Unable to open wayland socket.
Need to manually change variables to properly run Sway. |
|
Back to top |
|
|
start n00b
Joined: 06 Nov 2020 Posts: 19
|
Posted: Wed Nov 17, 2021 7:14 am Post subject: |
|
|
start wrote: | The XDG_RUNTIME_DIR in the .bash_profile file script does not take effect.
Always become / Run / User / 0, the following error occurs:
dbus[4886]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/0" is owned by uid 0, not our uid 1000
00:00:00.056 [ERROR] [sway/server.c:173] Unable to open wayland socket.
Need to manually change variables to properly run Sway. |
After I added mkdir, chmod, etc. in the .bashrc, and then enter the sway command and run successfully. |
|
Back to top |
|
|
|