Closed dkwo closed 3 years ago
What's your environment (WM/.xinit file)? Have you checked xbps-pkgdb -a
?
I use dwm
$ cat .xinitrc
#!/bin/bash
monitor=DP-2-2
laptop=eDP-1
if $(xrandr | grep -q "$monitor connected"); then
xrandr --output $laptop --off --output $monitor --auto --dpi 163
else
xrandr --auto --dpi 216
# xinput set-prop 11 311 1
fi
# HDTV: xrandr --output eDP1 --off --output HDMI2 --auto
export GDK_DPI_SCALE=2
export LIBVA_DRIVER_NAME=iHD
clipdel -d ".*"
(export CM_IGNORE_WINDOW=KeePassXC; clipmenud &)
# glibc ~/.dropbox-dist/dropboxd > ~/Projects/dropbox.log 2>&1 &
numlockx
redshift -l 60:17 -t 5700:3600 -g 0.8 -m randr -v > ~/Projects/redshift.log 2>&1 &
# bg 45:10 up 60:17
~/Projects/suckless/dwm_status.sh &
feh --bg-max ~/Pictures/bkground/*
# xautolock -time 30 -locker slockcustom &
# xss-lock slockcustom &
# xset s 1200
xset r rate 300 60
xrdb -merge ~/.Xresources
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
#-- ensure XDG_Runtime_dir is set
unset XDG_RUNTIME_DIR
export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
/usr/bin/pipewire &
exec dwm 2> ~/Projects/dwm.log
The only ERROR
s in xbps-pkgdb -a
come from mtime mismatch
.
This is my dwm-config.h
, not sure if it's relevant.
/* See LICENSE file for copyright and license details. */
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
// static const char *fonts[] = { "Terminus (TTF):size=12" };
// arch static const char *fonts[] = { "xos4 Terminus:size=12" };
static const char *fonts[] = { "Terminus:size=12" };
static const char dmenufont[] = "Terminus:size=12";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
};
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
{ "Firefox", NULL, NULL, 0, 0, -1 },
};
/* layout(s) */
static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
};
/* key definitions */
#define XF86MonBrightnessDown 0x1008ff03
#define XF86MonBrightnessUp 0x1008ff02
#define XF86AudioMute 0x1008ff12
#define XF86AudioLowerVolume 0x1008ff11
#define XF86AudioRaiseVolume 0x1008ff13
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", "-e", "tmux", NULL };
static const char *urlcmd[] = { "clipmenu-url", NULL };
static const char *clipcmd[] = { "clipmenu", "-i", "-fn", dmenufont, NULL };
/* will need symlink to brightness in /usr/local/bin */
static const char *cmdbrightnessup[] = { "doas", "/usr/bin/brightness", "up", NULL };
static const char *cmdbrightnessdown[] = { "doas", "/usr/bin/brightness", "down", NULL };
static const char *cmdsoundup[] = { "amixer", "-q", "sset", "Master", "5%+", NULL };
static const char *cmdsounddown[] = { "amixer", "-q", "sset", "Master", "5%-", NULL };
static const char *cmdsoundtoggle[] = { "amixer", "-q", "sset", "Master", "toggle", NULL };
static const char *cmdrshift[] = { "show-clipboard", NULL };
static const char *cmdlock[] = { "slockcustom", NULL };
static const char *firefox[] = { "firefox", NULL };
static const char *thunderbird[] = { "thunderbird", NULL };
/* static const char *nautilus[] = { "nautilus", NULL }; */
static const char *screenlock[] = { "slockcustom", NULL};
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_Insert, spawn, SHCMD("maim -s ~/Pictures/$(date +%s).png") },
{ MODKEY, XK_Home, spawn, {.v = clipcmd } },
{ MODKEY, XK_o, spawn, {.v = urlcmd } },
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_f, spawn, {.v = firefox } },
/* { MODKEY, XK_n, spawn, {.v = nautilus } }, */
{ MODKEY, XK_t, spawn, {.v = thunderbird } },
{ MODKEY, XK_l, spawn, {.v = screenlock } },
{ MODKEY, XK_b, togglebar, {0} },
{ 0, XK_Print, spawn, {.v = cmdrshift } },
{ MODKEY, XK_F12, spawn, {.v = cmdlock } },
{ 0, XF86MonBrightnessDown, spawn, {.v = cmdbrightnessdown } },
{ 0, XF86MonBrightnessUp, spawn, {.v = cmdbrightnessup } },
{ 0, XF86AudioMute, spawn, {.v = cmdsoundtoggle } },
{ 0, XF86AudioRaiseVolume, spawn, {.v = cmdsoundup } },
{ 0, XF86AudioLowerVolume, spawn, {.v = cmdsounddown } },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_z, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_y, setlayout, {.v = &layouts[0]} },
{ MODKEY|ShiftMask, XK_g, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
};
/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
I have the same output, tried bumping xorgproto and rebuilt xkbcomp, but to no avail. This issue happens before a WM is loaded via startx
[ -d /etc/X11/xinit/xinitrc.d ] && \
for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f"; done && unset f
# Setup XDG_RUNTIME_DIR & pam_env
mkdir -p /tmp/${USER}-runtime && chmod -R 0700 /tmp/${USER}-runtime
export XDG_RUNTIME_DIR=/tmp/${USER}-runtime
# Start user dbus-daemon
pidof -s dbus-daemon || export $(dbus-launch)
# Run userx services
runsvdir -P "$HOME/.local/service" &
# Enable clipmenu
/usr/local/bin/clipmenud &
# Set random bg
/usr/local/bin/rngbd &
# Dim screen 40%
/usr/bin/xcalib -co 40 -gc 1.25 /usr/share/xcalib/gamma_1_0.icc
# Compositor
xcompmgr -cCb
# Start wm
exec pekwm --config "$HOME/.config/pekwm/config"
#exec pekwm --log-file /tmp/pekwm_issue.log --log-level trace
Apparently this is harmless: https://bugzilla.redhat.com/show_bug.cgi?id=1615700
Culprit I think is
/usr/share/X11/xkb/keycodes/evdev: <I256> = 256; // #define KEY_MICMUTE 248
/usr/share/X11/xkb/symbols/inet: key <I256> { [ XF86AudioMicMute ] }; // KEY_MICMUTE
They are, but before I had like 2-3 of them not 137 which is bit to much harmelss spam ;)
I see this output on Wayland compositors from Xwayland as well.
Maybe expand on previous patch https://github.com/void-linux/void-packages/commit/5773cf4c5fea354a0625fa468f1babbfe674b7a0
On the other hand, https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/commit/c8cfca25ab2ed65013448f7502bae933c66390ae
seems to imply this can be avoided (at least the long list of could not resolve
).
libX11 just hasn't yet been rebuilt against the protocol
Maybe we should rebuild libX11 ever so often? Could you test if that fixes anything?
Just did the following building: xorgproto to 2021.4.99.2 -> libX11 -> xkbcomp to 1.4.5 -> xkeyboard-config -> libX11 but the list still prints however "> internal error" is replaced with "> warning" ..
I think I had the same experience before
libxkbcommon: revbump for libX11
xkeyboard-config: revbump for libX11
xorgproto: update
libX11: update
xkbcomp: update to 1.4.5
Is there anything else that should be revbumped? or maybe the order is crucial?
@dkwo if you revbump all of them and then xbulk <all of them>
, it should figure out the correct order ;)
@ericonr Sure, but do you see anything missing from that list?
Not that I can think of, sorry.
Funny enough, if I
xbulk libxkbcommon xkeyboard-config xorgproto libX11 xkbcomp
and
xi libxkbcommon xkeyboard-config libX11 xkbcomp
(xorgproto was not installed before)
the high keycode goes away, and I'm left with just all the warnings
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Could not resolve keysym XF86BrightnessAuto
I'm okay with that being PR'd :P
Done. I'm still partially puzzled, though :)
Btw, if I want to rebuild all packages in a PR, will ./xbps-src update-bulk
do that, while figuring out the correct order, as xbulk <name all packages>
does?
It should, though in a less efficient manner, maybe.
The build pipeline will get it right tho.
If I downgrade xkeyboard-config
to 2.32, the warnings go away.
Do you see anything suspicious here https://cgit.freedesktop.org/xkeyboard-config/log/ or in the way we build it?
Finally solved :)
Xorg logs:
I tried to update/bump xorgproto, xkbcomp, xkeyboard-config, libX11, but those do not go away. Any idea? Thanks.