Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]: Wayland - Keyboard works in TTY but not Sway
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Mon Jun 13, 2022 10:31 pm    Post subject: [SOLVED]: Wayland - Keyboard works in TTY but not Sway Reply with quote

Hi! It's been a minute since I've used Gentoo (about 15 years) but I decided to give it a whirl again on a ThinkPad T420. I've managed to get reasonably far but I'm struggling with getting my laptop's keyboard, TrackPoint and TrackPad to be "recognized" by Wayland/wlroots/Sway. If I plug in a USB keyboard (Lenovo USB Keyboard with TrackPoint) I'm able to successfully start Sway from the console with a debus-run-session sway. If I don't use my USB keyboard and just try use the laptop by itself, I get an error warning that there are no valid libinput devices available (I can bypass that check by setting the WLR_LIBINPUT_NO_DEVICES=1 variable in /etc/environment).

I have a fairly straight-forward install, using the OpenRC Desktop profile with only a handful of things installed on top of that so far (wayland, sway, foot, elogind, udev). The kernel was built with
Code:
genkernel --luks --btrfs all
. I feel like I'm missing something fairly straight forward but I just cannot quite draw a common tread between the Wayland, libinput and udev wiki pages.

If you need more logs please let me know and I'll do my best to provide them. Thanks in advance!

Looking at dmesg it looks like I kernel correctly recognizes the keyboard, TrackPoint and TouchPad.

Code:

$ dmesg |grep i80
[    0.554771] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[    0.558038] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.558049] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.563961] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[    1.533540] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input5
[    2.553969] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/serio2/input/input6
[   10.675930] i801_smbus 0000:00:1f.3: SMBus using PCI interrupt


However libinput does not (if I run sleep 5; libinput list-devices and unplug my USB keyboard before the sleep command finishes libinput doesn't return anything at all):

Code:

root@thinkpad ~ # libinput list-devices
Device:           Lenovo ThinkPad Compact USB Keyboard with TrackPoint
Kernel:           /dev/input/event17
Group:            1
Seat:             seat0, default
Capabilities:     keyboard pointer
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Lenovo ThinkPad Compact USB Keyboard with TrackPoint
Kernel:           /dev/input/event18
Group:            1
Seat:             seat0, default
Capabilities:     keyboard pointer
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a


Looking at the output of swaymsg -t get_inputs I again only see my USB keyboard:

Code:
$ swaymsg -t get_inputs
Input device: Lenovo ThinkPad Compact USB Keyboard with TrackPoint
  Type: Mouse
  Identifier: 6127:24647:Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint
  Product ID: 24647
  Vendor ID: 6127
  Libinput Send Events: enabled

Input device: Lenovo ThinkPad Compact USB Keyboard with TrackPoint
  Type: Keyboard
  Identifier: 6127:24647:Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint
  Product ID: 24647
  Vendor ID: 6127
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: Lenovo ThinkPad Compact USB Keyboard with TrackPoint
  Type: Mouse
  Identifier: 6127:24647:Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint
  Product ID: 24647
  Vendor ID: 6127
  Libinput Send Events: enabled

Input device: Lenovo ThinkPad Compact USB Keyboard with TrackPoint
  Type: Keyboard
  Identifier: 6127:24647:Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint
  Product ID: 24647
  Vendor ID: 6127
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled


and finally here's my emerge info... as far as I can tell I have the right USE flags set and my INPUT_DEVICES="synaptics libinput" which I think should work.

Code:
$
emerge --info
Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/desktop, gcc-11.3.0, glibc-2.34-r13, 5.15.41-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.15.41-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-2540M_CPU_@_2.60GHz-with-glibc2.34
KiB Mem:    16270848 total,  14431216 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 10 Jun 2022 00:45:01 +0000
Head commit of repository gentoo: 270db23a66cc7a682b5341adb30e05dbbbaef4ed
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust-bin:         1.60.0::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.4::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live 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="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib"
ABI_X86="64"
ADA_TARGET="gnat_2020"
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"
GRUB_PLATFORMS="efi-64"
INPUT_DEVICES="synaptics 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-4 php8-0"
POSTGRES_TARGETS="postgres12 postgres13"
PYTHON_SINGLE_TARGET="python3_9"
PYTHON_TARGETS="python3_9"
RUBY_TARGETS="ruby27"
USERLAND="GNU"
VIDEO_CARDS="intel i915"
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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Last edited by Lorem.Ipsum on Sun Jun 19, 2022 9:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Mon Jun 13, 2022 11:22 pm    Post subject: Reply with quote

Lorem.Ipsum,

welcome back to Gentoo! :)

Do I understand correctly that your laptop's keyboard, TrackPoint and TrackPad work when you are in the TTY console?

Is kernel option "event interface" enabled in the kernel (see: https://wiki.gentoo.org/wiki/Libinput)?

Please post your kernel config using wgetpaste.
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Tue Jun 14, 2022 12:50 am    Post subject: Reply with quote

mike155 wrote:
Lorem.Ipsum,

welcome back to Gentoo! :)

Do I understand correctly that your laptop's keyboard, TrackPoint and TrackPad work when you are in the TTY console?

Is kernel option "event interface" enabled in the kernel (see: https://wiki.gentoo.org/wiki/Libinput)?

Please post your kernel config using wgetpaste.


Thanks! It definitely feels like the userland tools and the ecosystem around emerge have really matured since I last tried it now if I can only get my input devices working!

The laptop's keyboard works when I'm in the TTY console. I honestly can't think of way to test the TrackPoint and TrackPad when just in the TTY console so I can't say authoritatively one way or another if they work.

Looks like I have CONFIG_INPUT_EVDEV enabled:

Code:
$ zgrep -i CONFIG_INPUT_EVDEV /proc/config
CONFIG_INPUT_EVDEV=y


My /usr/src/linux/.config is here -> http://dpaste.com/G4FC8YQZM
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Tue Jun 14, 2022 9:20 am    Post subject: Reply with quote

Your kernel config looks good.

What happens if you run 'libinput list-devices' on the TTY console (with and without USB keyboard)? Does it show your notebook's keyboard and touchpad?
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Tue Jun 14, 2022 7:37 pm    Post subject: Reply with quote

mike155 wrote:
Your kernel config looks good.

What happens if you run 'libinput list-devices' on the TTY console (with and without USB keyboard)? Does it show your notebook's keyboard and touchpad?


It doesn’t return any output. If I plug in my USB keyboard I see the two entries for it as noted previously. Pretty odd.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Tue Jun 14, 2022 8:23 pm    Post subject: Reply with quote

That tells us that it is not related to Sway. Do you agree?

So it must be a bug or a missing configuration option in the kernel or in libinput.

If you plug in or pull out the USB keyboard, there should be some messages in the output of 'dmesg'. Can you post those messages, please?
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Tue Jun 14, 2022 9:59 pm    Post subject: Reply with quote

mike155 wrote:
That tells us that it is not related to Sway. Do you agree?

So it must be a bug or a missing configuration option in the kernel or in libinput.

If you plug in or pull out the USB keyboard, there should be some messages in the output of 'dmesg'. Can you post those messages, please?


I agree with you that the issue lies somewhere other than Sway. A kernel reconfiguration seems likely but is it also possible I'm missing some kind of userland daemon?

Here's the requested dmesg output when I unplug and plugin in my USB keyboard. Pretty standard as far as I can tell:

Code:
[  102.736406] usb 2-1.2: USB disconnect, device number 4
[  110.622780] usb 2-1.2: new full-speed USB device number 5 using ehci-pci
[  110.726501] usb 2-1.2: New USB device found, idVendor=17ef, idProduct=6047, bcdDevice= 3.30
[  110.726518] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  110.726524] usb 2-1.2: Product: ThinkPad Compact USB Keyboard with TrackPoint
[  110.726529] usb 2-1.2: Manufacturer: Lenovo
[  110.729701] input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:17EF:6047.0003/input/input20
[  110.787279] lenovo 0003:17EF:6047.0003: input,hidraw0: USB HID v1.00 Keyboard [Lenovo ThinkPad Compact USB Keyboard with TrackPoint] on usb-0000:00:1d.0-1.2/input0
[  110.793555] input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.1/0003:17EF:6047.0004/input/input21
[  110.850433] lenovo 0003:17EF:6047.0004: input,hiddev96,hidraw1: USB HID v1.00 Mouse [Lenovo ThinkPad Compact USB Keyboard with TrackPoint] on usb-0000:00:1d.0-1.2/input1
[  110.925725] elogind-daemon[3332]: Watching system buttons on /dev/input/event17 (Lenovo ThinkPad Compact USB Keyboard with TrackPoint)
[  110.925908] elogind-daemon[3332]: Watching system buttons on /dev/input/event18 (Lenovo ThinkPad Compact USB Keyboard with TrackPoint)


Here's the whole dmesg output: http://dpaste.com/9KN5NRJGJ

What are your thoughts regarding on trying a precompiled distribution kernel to rule out any weirdness or mistakes in my initial kernel configuration?
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Tue Jun 14, 2022 10:33 pm    Post subject: Reply with quote

I must admit that I've never seen that before. On the other hand, that makes your case interesting! :)

dmesg shows that
  1. your notebook's keyboard and trackpad are USB devices

  2. your notebook's keyboard and your external keyboard are tangled. As soon as you unplug your external keyboard, your laptop's keyboard gets re-initialized. That looks suspicious!
So it could be an issue in the USB subsystem.

Let's try a couple of things before you switch the kernel.
  1. First of all: have you ever updated your laptop's BIOS?

  2. In the BIOS setup menu: are there any settings related to USB? What happens if you change those values?

  3. Do you always boot with your external keyboard connected? What happens if you boot without the external keyboard? Does libinput show your notebook's keyboard?

  4. Do you have another external keyboard? Please try that one.

  5. It could be related to power management. Please install and run powertop. Switch to the tab "Tunables". Are there any devices with activated power management (first column: "good")? Usually, it's good to activate power management. But for now, please make sure that power management is disabled for all devices (first Column: 'Bad') and retry.

  6. I will take another look at the USB section of your kernel config.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Tue Jun 14, 2022 11:00 pm    Post subject: Reply with quote

I searched at Google and found: https://bbs.archlinux.org/viewtopic.php?id=264868. You could try the solution proposed in #19 (change a few kernel options).
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Wed Jun 15, 2022 7:06 pm    Post subject: Reply with quote

mike155 wrote:
I searched at Google and found: https://bbs.archlinux.org/viewtopic.php?id=264868. You could try the solution proposed in #19 (change a few kernel options).


Progress! The TrackPoint and TrackPad work now! I enabled these options via menuconfig while re-compiling my kernel (genkernel --menuconfig --luks --btrfs --makeopts=-j3 all).


    CONFIG_KEYBOARD_ATKBD=y -> m
    CONFIG_MOUSE_PS2=y -> m
    CONFIG_SERIO=y -> m


i definitely think the issue is in my kernel configuration.... I think what I really need is a working kernel config that I can use as a diff target. There's one for a 2.6.x kernel on the ThinkWiki but I have a feeling that's too old.
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Thu Jun 16, 2022 6:50 pm    Post subject: Reply with quote

mike155 wrote:
I must admit that I've never seen that before. On the other hand, that makes your case interesting! :)

dmesg shows that
  1. your notebook's keyboard and trackpad are USB devices

  2. your notebook's keyboard and your external keyboard are tangled. As soon as you unplug your external keyboard, your laptop's keyboard gets re-initialized. That looks suspicious!
So it could be an issue in the USB subsystem.

Let's try a couple of things before you switch the kernel.
  1. First of all: have you ever updated your laptop's BIOS?

  2. In the BIOS setup menu: are there any settings related to USB? What happens if you change those values?

  3. Do you always boot with your external keyboard connected? What happens if you boot without the external keyboard? Does libinput show your notebook's keyboard?

  4. Do you have another external keyboard? Please try that one.

  5. It could be related to power management. Please install and run powertop. Switch to the tab "Tunables". Are there any devices with activated power management (first column: "good")? Usually, it's good to activate power management. But for now, please make sure that power management is disabled for all devices (first Column: 'Bad') and retry.

  6. I will take another look at the USB section of your kernel config.



  • I'm using 1.52 which was released in 2018 and is the most recent BIOS available for this 10 year old laptop.
  • There is nothing I see in the BIOS setting related to USB unfortunately.
  • I've tried booting with and without the USB keyboard attached. Interestingly enough, if I boot with it attached, libinput does not detect my internal TrackPad but if I boot without it libinput sees both my internal TrackPad and TrackPoint.
  • My only other external keyboards are Bluetooth only... I'm hesitant to try them since I'd be introducing another element into the troubleshooting mix but I can give it a go and see if I can figure out Bluetooth.
  • I tried disabling everything I could in Powertop with no changes.


I feel like I'm getting pretty close to exhausting my options for fixing this and I just wanted to say thank you so much for help - reminds me of my favorite part of using Gentoo from "back in the day" which was the community and forums.

This is an interesting discussion regarding a kernel patch I found in the Arch forums thread (https://lore.kernel.org/lkml/20211112180022.10850-1-tiwai@suse.de/T/). It looks like for some Asus models the PS/2 devices aren't ready in time and so you need to delay the probe which is only possible with a module. I wonder if something like this is the underlying issue. I am using i8042 controller. Maybe I need to try something like this (https://wiki.gentoo.org/wiki/Thinkpad_twist)?

EDIT: I just tried booting with "i8042.nomux=1 i8042.reset" added to my GRUB_CMDLINE without any changes. Darn.

The only other path I can think of exploring is trying to use a default as possible kernel in case I screwed something up with my kernel config.

Can you think of something else I should look into?
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Jun 16, 2022 8:33 pm    Post subject: Reply with quote

I'm a bit confused now. Didn't you write that your machine works if you change the kernel options below?
Code:
CONFIG_KEYBOARD_ATKBD=y -> m
CONFIG_MOUSE_PS2=y -> m
CONFIG_SERIO=y -> m

Does it solve the issue? Or is there anything else that still doesn't work?


Last edited by mike155 on Thu Jun 16, 2022 9:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Thu Jun 16, 2022 8:59 pm    Post subject: Reply with quote

wayland doesn't use evdev, it uses libinput.

You might need seatd running (if it's not already) to have keyboard/pointer devices working
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Thu Jun 16, 2022 10:41 pm    Post subject: Reply with quote

mike155 wrote:
I'm a bit confused now. Didn't you write that your machine works if you change the kernel options below?
Code:
CONFIG_KEYBOARD_ATKBD=y -> m
CONFIG_MOUSE_PS2=y -> m
CONFIG_SERIO=y -> m

Does it solve the issue? Or is there anything else that still doesn't work?


Nope. Unfortunately not. The internal keyboard still only works in the console TTY. I see the internal TrackPoint device in the libinput list-devices and occasionally I see the internal TrackPad device (not sure why it's there on some boots but not all or none). This is all without booting without any external device attached.

Switching to the vanilla-sources predictably didn't make any difference.
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Thu Jun 16, 2022 10:44 pm    Post subject: Reply with quote

Anon-E-moose wrote:
wayland doesn't use evdev, it uses libinput.

You might need seatd running (if it's not already) to have keyboard/pointer devices working


I just started seatd and added it to the default runlevel and it did not change anything unfortunately.

I'm specifically using udev (sys-fs/udev-250::gentoo) and not evdev. Should I not be?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Thu Jun 16, 2022 10:51 pm    Post subject: Reply with quote

Start sway with logging enabled and see if it shows what's going on.

Evdev is an X item, not used in wayland, nothing to do with udev per se.

Libinput should be seeing things, so a sway log would help figure it out.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Jun 16, 2022 11:10 pm    Post subject: Reply with quote

Quote:
Nope. Unfortunately not.

Ah, I see... What a pity!

@Anon-E-moose: it seems that "libinput list-devices" doesn't show the notebook's keyboard and trackpad on the TTY console if the external USB keyboard is not plugged in. So it's probably NOT related to Sway. I can be wrong of course.

Anyway, I'll be on vacation until Monday. Please solve the issue in the meantime... ;-)
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Fri Jun 17, 2022 11:04 pm    Post subject: Reply with quote

Anon-E-moose wrote:
Start sway with logging enabled and see if it shows what's going on.

Evdev is an X item, not used in wayland, nothing to do with udev per se.

Libinput should be seeing things, so a sway log would help figure it out.


Here's the results of starting sway with debus-run-session sway --verbose:

Code:

00:00:00.000 [INFO] [sway/main.c:343] Sway version 1.7
00:00:00.000 [INFO] [sway/main.c:344] wlroots version 0.15.0
00:00:00.021 [INFO] [sway/main.c:120] Linux thinkpad 5.18.3-x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 16 11:22:35 AKDT 2022 x86_64 Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz GenuineIntel GNU/Linux
00:00:00.022 [INFO] [sway/main.c:136] Contents of /etc/lsb-release:
00:00:00.022 [INFO] [sway/main.c:120] DISTRIB_ID="Gentoo"
00:00:00.023 [INFO] [sway/main.c:136] Contents of /etc/os-release:
00:00:00.023 [INFO] [sway/main.c:120] NAME=Gentoo
00:00:00.023 [INFO] [sway/main.c:120] ID=gentoo
00:00:00.023 [INFO] [sway/main.c:120] PRETTY_NAME="Gentoo Linux"
00:00:00.023 [INFO] [sway/main.c:120] ANSI_COLOR="1;32"
00:00:00.023 [INFO] [sway/main.c:120] HOME_URL="https://www.gentoo.org/"
00:00:00.023 [INFO] [sway/main.c:120] SUPPORT_URL="https://www.gentoo.org/support/"
00:00:00.023 [INFO] [sway/main.c:120] BUG_REPORT_URL="https://bugs.gentoo.org/"
00:00:00.023 [INFO] [sway/main.c:120] VERSION_ID="2.8"
00:00:00.023 [INFO] [sway/main.c:136] Contents of /etc/gentoo-release:
00:00:00.023 [INFO] [sway/main.c:120] Gentoo Base System release 2.8
00:00:00.023 [INFO] [sway/main.c:108] LD_LIBRARY_PATH=
00:00:00.023 [INFO] [sway/main.c:108] LD_PRELOAD=
00:00:00.023 [INFO] [sway/main.c:108] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin:/usr/lib/llvm/13/bin
00:00:00.023 [INFO] [sway/main.c:108] SWAYSOCK=
00:00:00.023 [INFO] [wlr] [libseat] [libseat/libseat.c:73] Seat opened with backend 'seatd'
00:00:00.023 [INFO] [wlr] [libseat] [libseat/backend/seatd.c:228] Enabling seat
00:00:00.023 [INFO] [wlr] [backend/session/session.c:110] Successfully loaded libseat session
00:00:00.026 [INFO] [wlr] [backend/backend.c:220] Found 1 GPUs
00:00:00.026 [INFO] [wlr] [backend/drm/backend.c:183] Initializing DRM backend for /dev/dri/card0 (i915)
00:00:00.026 [INFO] [wlr] [backend/drm/drm.c:251] Found 2 DRM CRTCs
00:00:00.026 [INFO] [wlr] [backend/drm/drm.c:178] Found 6 DRM planes
00:00:00.026 [INFO] [sway/main.c:394] Starting sway version 1.7
00:00:00.035 [INFO] [wlr] [render/egl.c:180] Supported EGL client extensions: EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_MESA_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless
00:00:00.793 [INFO] [wlr] [render/egl.c:326] Using EGL 1.5
00:00:00.793 [INFO] [wlr] [render/egl.c:327] Supported EGL display extensions: EGL_ANDROID_blob_cache EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display
00:00:00.793 [INFO] [wlr] [render/egl.c:329] Supported EGL device extensions: EGL_EXT_device_drm EGL_EXT_device_drm_render_node
00:00:00.793 [INFO] [wlr] [render/egl.c:331] EGL vendor: Mesa Project
00:00:00.804 [INFO] [wlr] [render/gles2/renderer.c:737] Creating GLES2 renderer
00:00:00.804 [INFO] [wlr] [render/gles2/renderer.c:738] Using OpenGL ES 3.0 Mesa 22.0.3
00:00:00.804 [INFO] [wlr] [render/gles2/renderer.c:739] GL vendor: Intel
00:00:00.804 [INFO] [wlr] [render/gles2/renderer.c:740] GL renderer: Mesa Intel(R) HD Graphics 3000 (SNB GT2)
00:00:00.804 [INFO] [wlr] [render/gles2/renderer.c:741] Supported GLES2 extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_group_vote GL_EXT_shader_integer_mix GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp GL_EXT_texture_border_clamp GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp GL_EXT_blend_func_extended GL_EXT_float_blend GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_EXT_clip_cull_distance GL_EXT_disjoint_timer_query GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_clip_control GL_EXT_color_buffer_half_float GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_texture_mirror_clamp_to_edge GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render GL_MESA_framebuffer_flip_y GL_EXT_demote_to_helper_invocation GL_EXT_depth_clamp GL_EXT_texture_query_lod GL_MESA_bgra
00:00:00.844 [INFO] [wlr] [backend/headless/backend.c:82] Creating headless backend
00:00:00.859 [INFO] [sway/config.c:407] Loading config from /home/loremipsum/.config/sway/config
00:00:00.859 [INFO] [sway/commands.c:378] Config command: set $mod Mod1
00:00:00.860 [INFO] [sway/commands.c:398] After replacement: set $mod Mod1
00:00:00.860 [INFO] [sway/commands.c:378] Config command: set $left h
00:00:00.860 [INFO] [sway/commands.c:398] After replacement: set $left h
00:00:00.860 [INFO] [sway/commands.c:378] Config command: set $down j
00:00:00.860 [INFO] [sway/commands.c:398] After replacement: set $down j
00:00:00.860 [INFO] [sway/commands.c:378] Config command: set $up k
00:00:00.860 [INFO] [sway/commands.c:398] After replacement: set $up k
00:00:00.860 [INFO] [sway/commands.c:378] Config command: set $right l
00:00:00.860 [INFO] [sway/commands.c:398] After replacement: set $right l
00:00:00.860 [INFO] [sway/commands.c:378] Config command: set $term foot
00:00:00.860 [INFO] [sway/commands.c:398] After replacement: set $term foot
00:00:00.860 [INFO] [sway/commands.c:378] Config command: set $menu dmenu_path | dmenu | xargs swaymsg exec --
00:00:00.860 [INFO] [sway/commands.c:398] After replacement: set $menu dmenu_path | dmenu | xargs swaymsg exec --
00:00:00.860 [INFO] [sway/commands.c:378] Config command: output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
00:00:00.860 [INFO] [sway/commands.c:398] After replacement: output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
00:00:00.862 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Return exec $term
00:00:00.862 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Return exec foot
00:00:00.862 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+q kill
00:00:00.862 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+q kill
00:00:00.862 [INFO] [sway/commands.c:378] Config command: bindsym $mod+d exec $menu
00:00:00.862 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+d exec dmenu_path | dmenu | xargs swaymsg exec --
00:00:00.862 [INFO] [sway/commands.c:378] Config command: floating_modifier $mod normal
00:00:00.862 [INFO] [sway/commands.c:398] After replacement: floating_modifier Mod1 normal
00:00:00.862 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+c reload
00:00:00.862 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+c reload
00:00:00.862 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
00:00:00.862 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
00:00:00.862 [INFO] [sway/commands.c:378] Config command: bindsym $mod+$left focus left
00:00:00.862 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+h focus left
00:00:00.862 [INFO] [sway/commands.c:378] Config command: bindsym $mod+$down focus down
00:00:00.862 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+j focus down
00:00:00.862 [INFO] [sway/commands.c:378] Config command: bindsym $mod+$up focus up
00:00:00.862 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+k focus up
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+$right focus right
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+l focus right
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Left focus left
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Left focus left
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Down focus down
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Down focus down
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Up focus up
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Up focus up
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Right focus right
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Right focus right
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+$left move left
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+h move left
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+$down move down
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+j move down
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+$up move up
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+k move up
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+$right move right
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+l move right
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+Left move left
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+Left move left
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+Down move down
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+Down move down
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+Up move up
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+Up move up
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+Right move right
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+Right move right
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+1 workspace number 1
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+1 workspace number 1
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+2 workspace number 2
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+2 workspace number 2
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+3 workspace number 3
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+3 workspace number 3
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+4 workspace number 4
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+4 workspace number 4
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+5 workspace number 5
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+5 workspace number 5
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+6 workspace number 6
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+6 workspace number 6
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+7 workspace number 7
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+7 workspace number 7
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+8 workspace number 8
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+8 workspace number 8
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+9 workspace number 9
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+9 workspace number 9
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+0 workspace number 10
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+0 workspace number 10
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+1 move container to workspace number 1
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+1 move container to workspace number 1
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+2 move container to workspace number 2
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+2 move container to workspace number 2
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+3 move container to workspace number 3
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+3 move container to workspace number 3
00:00:00.863 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+4 move container to workspace number 4
00:00:00.863 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+4 move container to workspace number 4
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+5 move container to workspace number 5
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+5 move container to workspace number 5
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+6 move container to workspace number 6
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+6 move container to workspace number 6
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+7 move container to workspace number 7
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+7 move container to workspace number 7
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+8 move container to workspace number 8
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+8 move container to workspace number 8
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+9 move container to workspace number 9
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+9 move container to workspace number 9
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+0 move container to workspace number 10
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+0 move container to workspace number 10
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+b splith
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+b splith
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+v splitv
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+v splitv
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+s layout stacking
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+s layout stacking
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+w layout tabbed
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+w layout tabbed
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+e layout toggle split
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+e layout toggle split
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+f fullscreen
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+f fullscreen
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+space floating toggle
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+space floating toggle
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+space focus mode_toggle
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+space focus mode_toggle
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+a focus parent
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+a focus parent
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+Shift+minus move scratchpad
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+Shift+minus move scratchpad
00:00:00.864 [INFO] [sway/commands.c:378] Config command: bindsym $mod+minus scratchpad show
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+minus scratchpad show
00:00:00.864 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym $left resize shrink width 10px
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym h resize shrink width 10px
00:00:00.864 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym $down resize grow height 10px
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym j resize grow height 10px
00:00:00.864 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym $up resize shrink height 10px
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym k resize shrink height 10px
00:00:00.864 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym $right resize grow width 10px
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym l resize grow width 10px
00:00:00.864 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym Left resize shrink width 10px
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym Left resize shrink width 10px
00:00:00.864 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym Down resize grow height 10px
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym Down resize grow height 10px
00:00:00.864 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym Up resize shrink height 10px
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym Up resize shrink height 10px
00:00:00.864 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym Right resize grow width 10px
00:00:00.864 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym Right resize grow width 10px
00:00:00.864 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym Return mode "default"
00:00:00.865 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym Return mode "default"
00:00:00.865 [INFO] [sway/commands.c:378] Config command: mode "resize" bindsym Escape mode "default"
00:00:00.865 [INFO] [sway/commands.c:398] After replacement: mode "resize" bindsym Escape mode "default"
00:00:00.865 [INFO] [sway/commands.c:378] Config command: bindsym $mod+r mode "resize"
00:00:00.865 [INFO] [sway/commands.c:398] After replacement: bindsym Mod1+r mode "resize"
00:00:00.865 [INFO] [sway/commands.c:378] Config command: bar position top
00:00:00.865 [INFO] [sway/commands.c:398] After replacement: bar position top
00:00:00.865 [INFO] [sway/commands.c:378] Config command: bar status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
00:00:00.865 [INFO] [sway/commands.c:398] After replacement: bar status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
00:00:00.865 [INFO] [sway/commands.c:378] Config command: bar colors statusline #ffffff
00:00:00.865 [INFO] [sway/commands.c:398] After replacement: bar colors statusline #ffffff
00:00:00.865 [INFO] [sway/commands.c:378] Config command: bar colors background #323232
00:00:00.865 [INFO] [sway/commands.c:398] After replacement: bar colors background #323232
00:00:00.865 [INFO] [sway/commands.c:378] Config command: bar colors inactive_workspace #32323200 #32323200 #5c5c5c
00:00:00.865 [INFO] [sway/commands.c:398] After replacement: bar colors inactive_workspace #32323200 #32323200 #5c5c5c
00:00:00.865 [INFO] [sway/commands.c:378] Config command: include /etc/sway/config.d/*
00:00:00.865 [INFO] [sway/commands.c:398] After replacement: include /etc/sway/config.d/*
00:00:00.892 [INFO] [sway/server.c:290] Starting backend on wayland display 'wayland-1'
00:00:01.046 [INFO] [wlr] [backend/drm/drm.c:1185] Scanning DRM connectors on /dev/dri/card0
00:00:01.046 [INFO] [wlr] [backend/drm/drm.c:1251] Found connector 'LVDS-1'
00:00:01.046 [INFO] [wlr] [backend/drm/drm.c:1287] 'LVDS-1' connected
00:00:01.046 [INFO] [wlr] [backend/drm/drm.c:1298] Physical size: 310x170
00:00:01.046 [INFO] [wlr] [backend/drm/drm.c:1338] Detected modes:
00:00:01.046 [INFO] [wlr] [backend/drm/drm.c:1360]   1600x900@59995 (preferred)
00:00:01.047 [INFO] [wlr] [backend/drm/drm.c:1251] Found connector 'VGA-1'
00:00:01.227 [INFO] [wlr] [backend/drm/drm.c:1251] Found connector 'HDMI-A-1'
00:00:01.228 [INFO] [wlr] [backend/drm/drm.c:1251] Found connector 'DP-1'
00:00:01.229 [INFO] [wlr] [backend/drm/drm.c:1251] Found connector 'HDMI-A-2'
00:00:01.231 [INFO] [wlr] [backend/drm/drm.c:1251] Found connector 'HDMI-A-3'
00:00:01.231 [INFO] [wlr] [backend/drm/drm.c:1251] Found connector 'DP-2'
00:00:01.231 [INFO] [wlr] [backend/drm/drm.c:1251] Found connector 'DP-3'
00:00:01.231 [INFO] [wlr] [backend/drm/drm.c:1412] connector LVDS-1: Requesting modeset
00:00:01.234 [INFO] [wlr] [backend/drm/drm.c:708] connector LVDS-1: Modesetting with '1600x900@59995mHz'
00:00:01.255 [INFO] [wlr] [backend/headless/backend.c:18] Starting headless backend
00:00:01.258 [INFO] [sway/server.c:302] Running compositor on wayland display 'wayland-1'
2022-06-17 14:56:37 - [swaybg-1.0/main.c:299] Found config * for output LVDS-1 (Unknown 0x02E2 0x00000000)
00:00:29.865 [INFO] [sway/main.c:434] Shutting down sway
00:00:30.852 [INFO] [sway/ipc-server.c:565] IPC Client 48 disconnected
00:00:30.852 [INFO] [sway/ipc-server.c:565] IPC Client 46 disconnected
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Fri Jun 17, 2022 11:27 pm    Post subject: Reply with quote

what does "emerge -pv seatd" and "emerge -pv sway" return

Something is not configured right.

wgetpaste your .config file for the kernel and post the link

wgetpaste the output of "lspci -nnk" also
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Sat Jun 18, 2022 4:28 pm    Post subject: Reply with quote

hello,

this is from wlroots ebuild:

Code:
 * You must be in the input group to allow your compositor
 * to access input devices via libinput.


i also use Openrc / Sway (only) System with tinydm and autologin, then swaylock starts and locks automatically and acts like a login-manager.

please edit /usr/share/wayland-sessions/sway.desktop and add dbus-run-session to exec option - therefore it'll always start with dbus:

cat /usr/share/wayland-sessions/sway.desktop

Code:
[Desktop Entry]
Name=Sway
Comment=An i3-compatible Wayland compositor
Exec=dbus-run-session sway
Type=Application


install dev-python/i3ipc from wayland-desktop via eselect-repository >>> be aware that you should install only this package or it'll maybe jumble with gentoo portage ebuilds >>> howto for only emerge specific ebuilds from a repository is described here:

https://forums.gentoo.org/viewtopic-p-8658657-highlight-.html#8658657

have you also emerged some xdg ebuilds ? :

Code:
eix -I xdg
[I] dev-libs/libxdg-basedir
     Available versions:  1.2.0-r1 1.2.3{xpak} {doc}
     Installed versions:  1.2.3{xpak}(15:58:49 16.05.2022)(-doc)
     Homepage:            https://github.com/devnev/libxdg-basedir
     Description:         Small library to access XDG Base Directories Specification paths

[I] dev-python/pyxdg
     Available versions:  0.27^t{xpak} ~0.27-r1^t ~0.28^t {test PYTHON_TARGETS="python3_8 python3_9 python3_10 python3_11"}
     Installed versions:  0.27^t{xpak}(02:40:52 22.04.2022)(-test PYTHON_TARGETS="python3_9 -python3_8 -python3_10")
     Homepage:            https://freedesktop.org/wiki/Software/pyxdg/ https://cgit.freedesktop.org/xdg/pyxdg/ https://pypi.org/project/pyxdg/
     Description:         A Python module to deal with freedesktop.org specifications

[I] dev-scheme/xdgdirs
     Available versions:  (~)2.2^t{xpak} {test}
     Installed versions:  2.2^t{xpak}(15:58:33 16.05.2022)(-test)
     Homepage:            https://www.gnuvola.org/software/xdgdirs/
     Description:         Displays names/values of XDG Basedir variables

[I] sys-apps/xdg-dbus-proxy
     Available versions:  0.1.3^t{xpak} ~0.1.4^t {test}
     Installed versions:  0.1.3^t{xpak}(15:59:08 16.05.2022)(-test)
     Homepage:            https://github.com/flatpak/xdg-dbus-proxy
     Description:         Filtering proxy for D-Bus connections

[I] x11-misc/xdg-user-dirs
     Available versions:  0.17{xpak} {gtk}
     Installed versions:  0.17{xpak}(15:58:59 16.05.2022)(-gtk)
     Homepage:            https://www.freedesktop.org/wiki/Software/xdg-user-dirs
     Description:         Tool to help manage 'well known' user directories

[I] x11-misc/xdg-utils
     Available versions:  1.1.3_p20200220-r5^t (~)1.1.3_p20210805^t{xpak} {dbus doc gnome}
     Installed versions:  1.1.3_p20210805^t{xpak}(18:46:40 03.06.2022)(dbus -doc -gnome)
     Homepage:            https://www.freedesktop.org/wiki/Software/xdg-utils/
     Description:         Portland utils for cross-platform/cross-toolkit/cross-desktop interoperability

Found 6 matches


i'am not sure if you also need gnome-extra/polkit-gnome

i have this in sway/config via autostart:

Code:
# Auth with polkit-gnome:
    exec /usr/libexec/polkit-gnome-authentication-agent-1


start sway in debug mode from tty via:

Code:
sway -d >sway.log 2>&1


the log file will be in your home/user folder.

do you have options for input in sway?:

Code:
### Input configuration
#
# Example configuration:
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Put your touchpad's ID to replace "Touchpad-ID" (keep the quotation marks)
# Read `man 5 sway-input` for more information about this section.
#
# input type:keyboard xkb_layout "us"

input "type:keyboard" {
    xkb_layout de,
    xkb_variant nodeadkeys,
}


sorry but i just use a desktop system and i have no idea about internal keyboards.

you can also try a Sway Live-ISO, e.g. garuda-sway iso or peux-sway edition:

https://garudalinux.org/downloads.html

https://peux-os.netlify.app/twms/

to see if Sway and your keyboard is working or get some inspirations ;-)

this is my .profile file in users home:

Code:
export MOZ_ENABLE_WAYLAND=1
export MOZ_DBUS_REMOTE=1
export GDK_BACKEND=wayland
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
export EDITOR=/usr/bin/geany
export BROWSER=firefox


and my emerge --info -v:

Code:
Portage 3.0.30 (python 3.9.13-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.3.0, glibc-2.34-r13, 5.18.5-gentoo-1-x86_64 x86_64)
=================================================================
System uname: Linux-5.18.5-gentoo-1-x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E3-1245_v5_@_3.50GHz-with-glibc2.34
KiB Mem:    32849332 total,  27658816 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 18 Jun 2022 14:30:01 +0000
Head commit of repository gentoo: 15d8a2f6533a2b51fa6801b3fe69bdbb755651fd
Timestamp of repository 4nykey: Sun, 12 Jun 2022 08:49:10 +0000
Head commit of repository 4nykey: 9adb9202755ee9148d07543219cbc25c4c05b7a4

Timestamp of repository EmilienMottet: Tue, 07 Jun 2022 07:05:52 +0000
Head commit of repository EmilienMottet: c34111d4fd4e4e0917548289dbb6e264bd91275c

Timestamp of repository gentoo-zh: Sat, 18 Jun 2022 11:47:54 +0000
Head commit of repository gentoo-zh: 7f8b6990fdbd10fe68a64ad5f5ebd1db6419a9c7

Timestamp of repository guru: Wed, 15 Jun 2022 12:48:12 +0000
Head commit of repository guru: 5b2960ccacf9350bc8dec83f874aae33cb9d1ee2

Timestamp of repository pf4public: Fri, 17 Jun 2022 19:47:54 +0000
Head commit of repository pf4public: 66beee23fccb7d0b567495e9822066f74655e6c7

Head commit of repository pg_overlay: 075b78d422a70a8d18f79c3ec498f174cf0f6fb3

Timestamp of repository ricerlay: Sun, 12 Jun 2022 08:49:13 +0000
Head commit of repository ricerlay: 594c12c0c0ef01547eb5c41ffe7c8e4abd86daf1

Timestamp of repository wayland-desktop: Sun, 12 Jun 2022 08:49:17 +0000
Head commit of repository wayland-desktop: 500cd350e230521f661f77ce9e5a3d61fb2d82eb

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.4::gentoo
dev-lang/rust-bin:         1.60.0::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.4::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.4::gentoo
sys-devel/llvm:            14.0.4::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:

4nykey
    location: /var/db/repos/4nykey
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/4nykey.git
    masters: gentoo

EmilienMottet
    location: /var/db/repos/EmilienMottet
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/EmilienMottet.git
    masters: gentoo

genlayees
    location: /var/db/repos/genlayees
    masters: gentoo

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pf4public.git
    masters: gentoo

pg_overlay
    location: /var/db/repos/pg_overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pg_overlay.git
    masters: gentoo

ricerlay
    location: /var/db/repos/ricerlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/ricerlay.git
    masters: gentoo

wayland-desktop
    location: /var/db/repos/wayland-desktop
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
    masters: gentoo

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ADA_TARGET="gnat_2020"
ALSA_CARDS="usb-audio"
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"
ARCH="amd64"
AUTOCLEAN="yes"
BINPKG_COMPRESS="bzip2"
BOOTSTRAP_USE="unicode internal-glib pkg-config split-usr xml python_targets_python3_9 multilib"
BROOT=""
BROWSER="firefox"
CALLIGRA_FEATURES="karbon sheets words"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/AllToolS/ACCacheS"
CCACHE_SIZE="10.0G"
CFLAGS="-march=native -O2 -pipe"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/boot/dtbs/* /lib/modules/*"
COLORTERM="truecolor"
COMMON_FLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"
CXXFLAGS="-march=native -O2 -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-ot6OTfBLPB,guid=cf6829320bf76de19709092b62adee0a"
DEFAULT_ABI="amd64"
DISTDIR="/var/cache/distfiles"
EDITOR="/usr/bin/geany"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --with-bdeps=y --complete-graph --usepkg"
EMERGE_WARNING_DELAY="10"
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"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-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 split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-march=native -O2 -pipe"
GCC_SPECS=""
GDK_BACKEND="wayland"
GENTOO_MIRRORS="https://packages.hs-regensburg.de/gentoo-distfiles https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
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"
GRUB_PLATFORMS="efi-64"
GSETTINGS_BACKEND="dconf"
HISTCONTROL="erasedups:ignoredups:ignorespace"
HISTFILESIZE="1000000"
HISTIGNORE="ls:ll:cd:pwd:bg:fg:history"
HISTSIZE="1000000"
HOME="/root"
I3SOCK="/run/user/1000/sway-ipc.1000.2598.sock"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/11.3.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.37_p1/info:/usr/share/info"
INPUT_DEVICES="libinput"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack"
I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS="1"
KERNEL="linux"
L10N="en en-US"
LANG="en_US.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ADDRESS="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_MESSAGES="C"
LC_MONETARY="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_TIME="de_DE.utf-8"
LDFLAGS="-march=native -O2 -pipe"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="en"
LLVM_TARGETS="AMDGPU"
LOGNAME="my-user"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
LUA_SINGLE_TARGET="lua5-1"
LUA_TARGETS="lua5-1"
MAKEOPTS="-j8"
MANPAGER="manpager"
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/11.3.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.37_p1/man:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/14/share/man"
MOZ_DBUS_REMOTE="1"
MOZ_ENABLE_WAYLAND="1"
MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed"
MULTILIB_ABIS="amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/home/my-user"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin"
PHP_TARGETS="php7-4 php8-0"
PKGDIR="/var/cache/binpkgs"
PORTAGE_ARCHLIST="alpha amd64 amd64-linux arm arm-linux arm64 arm64-linux arm64-macos hppa ia64 loong m68k mips ppc ppc-macos ppc64 ppc64-linux riscv s390 sparc sparc-solaris sparc64-solaris x64-cygwin x64-macos x64-solaris x64-winnt x86 x86-linux x86-solaris x86-winnt"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.9"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_LOGDIR="/var/log/portage"
PORTAGE_LOGDIR_CLEAN="find "${PORTAGE_LOGDIR}" -type f ! -name "summary.log*" -mtime +30 -delete"
PORTAGE_LOG_FILTER_FILE_CMD="bash -c "ansifilter; exec cat""
PORTAGE_NICENESS="10"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib/python3.9/site-packages"
PORTAGE_PYTHONPATH="/usr/lib/python3.9/site-packages"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima    security.selinux system.nfs4_acl user.apache_handler    user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*"
POSTGRES_TARGETS="postgres12 postgres13"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_9"
PYTHON_TARGETS="python3_9"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/14/bin"
RPMDIR="/var/cache/rpm"
RUBY_TARGETS="ruby27"
SHELL="/bin/bash"
SHLVL="2"
SWAYSOCK="/run/user/1000/sway-ipc.1000.2598.sock"
SYMLINK_LIB="no"
SYSROOT="/"
TERM="xterm-256color"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
UNINSTALL_IGNORE="/boot/dtbs/* /lib/modules/* /var/run /var/lock"
USE="acl alsa alsaplugins amd64 appindicator bash-completion branding bzip2 cli crypt dbus dri dvd dvdnav dvdr egl elogind fish-completion fontconfig fortran gdbm gles2 gtk3 iconv ipv6 jpeg jpeg2k lcms libglvnd libinput libtirpc lmsensors mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp otf pam pcre png pulseaudio readline seccomp split-usr ssl svg tpm truetype ttf udev uefi unicode usb vaapi vdpau vulkan wayland widevine xattr xcomposite xinerama xml xrandr zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="usb-audio" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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"
USER="my-user"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_S390 ABI_X86 ADA_TARGET ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_PPC CPU_FLAGS_X86 CURL_SSL ELIBC FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LLVM_TARGETS LUA_SINGLE_TARGET LUA_TARGETS MONKEYD_PLUGINS NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS ROS_MESSAGES RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_S390 ABI_X86 CPU_FLAGS_ARM CPU_FLAGS_PPC ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-linux arm arm64 arm64-macos hppa ia64 loong m68k mips ppc ppc64 ppc64-linux ppc-macos riscv s390 sparc sparc64-solaris sparc-solaris x64-cygwin x64-macos x64-solaris x64-winnt x86 x86-linux x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="bionic Cygwin Darwin glibc mingw musl SunOS Winnt"
USE_EXPAND_VALUES_KERNEL="Darwin linux SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d"
VAPIGEN="/usr/bin/vapigen-0.56"
VIDEO_CARDS="amdgpu radeonsi"
VTE_VERSION="6800"
WAYLAND_DISPLAY="wayland-1"
XCURSOR_SIZE="24"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_CURRENT_DESKTOP="sway"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
XDG_RUNTIME_DIR="/run/user/1000"
XDG_SEAT="seat0"
XDG_SESSION_CLASS="user"
XDG_SESSION_DESKTOP="sway"
XDG_SESSION_ID="c1"
XDG_SESSION_TYPE="wayland"
XDG_VTNR="1"
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"
ZEIT_DB="/home/my-user/.config/zeit.db"
enable_year2038="no"


i hope this all will help you somehow.

good luck !
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "


Last edited by CooSee on Sun Jun 19, 2022 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Sat Jun 18, 2022 10:07 pm    Post subject: Reply with quote

Anon-E-moose wrote:
what does "emerge -pv seatd" and "emerge -pv sway" return


Code:

root@thinkpad ~ # emerge -pv seatd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-auth/seatd-0.6.4:0/1::gentoo  USE="elogind server -builtin -systemd" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

root@thinkpad ~ # emerge -pv sway

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] gui-wm/sway-1.7::gentoo  USE="X man swaybar swaybg swayidle swaylock swaymsg swaynag wallpapers -tray" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Anon-E-moose wrote:
wgetpaste your .config file for the kernel and post the link


http://dpaste.com/HGXY5NDLL


Anon-E-moose wrote:
wgetpaste the output of "lspci -nnk" also


http://dpaste.com/77X3EYJ9U
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Jun 19, 2022 12:24 pm    Post subject: Reply with quote

CooSee wrote:
hello,

this is from wlroots ebuild:

Code:
 * You must be in the input group to allow your compositor
 * to access input devices via libinput.



I had forgotten about that, this is most likely the culprit, ie not being in the input group.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Lorem.Ipsum
n00b
n00b


Joined: 13 Jun 2022
Posts: 19

PostPosted: Sun Jun 19, 2022 9:35 pm    Post subject: Reply with quote

SOLVED!

I kept coming back to this kernel patch for the i8042 bus module - specifically this statement in the patch:

Quote:
It seems that the PS/2 device isn't ready immediately at boot but takes some seconds to get ready. Until now, the only workaround is to defer the probe, but it's available only when the driver is a module." I also noticed that sometimes libinput list-devices would show both my TrackPoint AND my TrackPad and sometimes it would just show the TrackPoint.


I guessed that maybe the underlying devices are not ready in time to "register" with the kernel or some other piece that it needs to (sorry. not a kernel dev so I don't really know how that works)... so I just removed and re-added the appropriate modules after boot (atkbd and psmouse) and bam! everything now shows up in libinput list-devices. I have a little BaSH script that I need to run after boot up. I guess I should use local.d?

The workaround ended up being making sure you have the atkbd and psmouse kernel configurations as modules AND then remove and reload them after boot-up.

Code:
#!/bin/bash

rmmod atkbd
sleep 2
modprobe atkbd

rmmod psmouse
sleep 2
modprobe psmouse
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum