You are not logged in.
Pages: 1
I wanted to turn on the Opposite Shift Mode on Monkeytype. This works if it detects Left Shift and Right Shift seperately.
But if i go to https://www.toptal.com/developers/keycode it shows ShiftLeft even if I press Right Shift
Last edited by sahaj (2024-01-11 05:06:03)
Offline
Random websites are not authorative wrt your input stack.
sudo evtest
Offline
evtest detects left shift and right shift. Then how do I authorize the websites for my input stack
Offline
"not authorative" != "the website ddoesn't define what or what not works"
What display server / GUI session and browser do you use?
loginctl session-status
Offline
I use Xorg with i3wm, thorium browser(chromium based)
Output of loginctl session-status:
1 - sahaj (1000)
Since: Tue 2024-01-09 10:37:41 IST; 7min ago
State: active
Leader: 509 (login)
Seat: seat0; vc1
TTY: tty1
Remote: no
Service: login
Type: tty
Class: user
Idle: no
Unit: session-1.scope
├─ 509 "login -- sahaj"
├─ 522 /bin/sh /usr/bin/startx
├─ 545 xinit /home/sahaj/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.PAYVYhmdFd
├─ 546 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.PAYVYhmdFd
├─ 560 i3
├─ 569 nm-applet
├─ 572 picom
├─ 573 dunst
├─ 574 /bin/sh -c "greenclip daemon>/dev/null"
├─ 575 "/opt/thorium-browser/thorium "
├─ 581 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-socket.560
├─ 582 greenclip daemon
├─ 591 i3blocks -c /home/sahaj/.config/i3blocks/config
├─ 623 cat
├─ 624 cat
├─ 1155 /opt/thorium-browser/chrome_crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler "--database=/home/sahaj/.config/thorium/Crash Reports" "--annotation=channel=stable, built on Linux" "--annotation=lsb-release=Arch Linux" --annotation=plat=Linux --annotation=prod=Chrome_Linux --annotation=ver=119.0.6045.214 --initial-client-fd=5 --shared-client-connection
├─ 1157 /opt/thorium-browser/chrome_crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-handler "--database=/home/sahaj/.config/thorium/Crash Reports" "--annotation=channel=stable, built on Linux" "--annotation=lsb-release=Arch Linux" --annotation=plat=Linux --annotation=prod=Chrome_Linux --annotation=ver=119.0.6045.214 --initial-client-fd=4 --shared-client-connection
├─ 1222 "/opt/thorium-browser/thorium --type=zygote --no-zygote-sandbox --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --change-stack-guard-on-fork=enable"
├─ 1223 "/opt/thorium-browser/thorium --type=zygote --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --change-stack-guard-on-fork=enable"
├─ 1256 "/opt/thorium-browser/thorium --type=zygote --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --change-stack-guard-on-fork=enable"
├─ 1411 "/opt/thorium-browser/thorium --type=gpu-process --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --change-stack-guard-on-fork=enable --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --use-gl=angle --use-angle=swiftshader-webgl --shared-files --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─ 1445 "/opt/thorium-browser/thorium --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─ 1519 "/opt/thorium-browser/thorium --type=utility --utility-sub-type=storage.mojom.StorageService --lang=en-US --service-sandbox-type=utility --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─ 1970 "/opt/thorium-browser/thorium --type=renderer --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --extension-process --origin-trial-disabled-features=WebGPU --change-stack-guard-on-fork=enable --disable-gpu-compositing --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1704776833678828 --launch-time-ticks=75024980 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─ 2009 "/opt/thorium-browser/thorium --type=renderer --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --extension-process --origin-trial-disabled-features=WebGPU --change-stack-guard-on-fork=enable --disable-gpu-compositing --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=6 --time-ticks-at-unix-epoch=-1704776833678828 --launch-time-ticks=75701506 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─ 2020 "/opt/thorium-browser/thorium --type=renderer --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --extension-process --origin-trial-disabled-features=WebGPU --change-stack-guard-on-fork=enable --disable-gpu-compositing --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=7 --time-ticks-at-unix-epoch=-1704776833678828 --launch-time-ticks=76054499 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─ 2138 "/opt/thorium-browser/thorium --type=renderer --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --extension-process --origin-trial-disabled-features=WebGPU --change-stack-guard-on-fork=enable --disable-gpu-compositing --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=9 --time-ticks-at-unix-epoch=-1704776833678828 --launch-time-ticks=78483726 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─ 2590 "/opt/thorium-browser/thorium --type=utility --utility-sub-type=data_decoder.mojom.DataDecoderService --lang=en-US --service-sandbox-type=service --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─ 3164 "/opt/thorium-browser/thorium --type=utility --utility-sub-type=audio.mojom.AudioService --lang=en-US --service-sandbox-type=none --audio-codecs-from-edid=0 --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─11820 "/opt/thorium-browser/thorium --type=renderer --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --origin-trial-disabled-features=WebGPU --change-stack-guard-on-fork=enable --disable-gpu-compositing --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=50 --time-ticks-at-unix-epoch=-1704776833678828 --launch-time-ticks=390133769 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─11860 "/opt/thorium-browser/thorium --type=renderer --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --origin-trial-disabled-features=WebGPU --change-stack-guard-on-fork=enable --disable-gpu-compositing --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=51 --time-ticks-at-unix-epoch=-1704776833678828 --launch-time-ticks=390966691 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─11928 "/opt/thorium-browser/thorium --type=renderer --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --origin-trial-disabled-features=WebGPU --change-stack-guard-on-fork=enable --disable-gpu-compositing --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=52 --time-ticks-at-unix-epoch=-1704776833678828 --launch-time-ticks=392878026 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─11969 "/opt/thorium-browser/thorium --type=renderer --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --origin-trial-disabled-features=WebGPU --change-stack-guard-on-fork=enable --disable-gpu-compositing --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=53 --time-ticks-at-unix-epoch=-1704776833678828 --launch-time-ticks=393649287 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─12248 "/opt/thorium-browser/thorium --type=renderer --crashpad-handler-pid=1155 --enable-crash-reporter=,stable, built on Linux --origin-trial-disabled-features=WebGPU --change-stack-guard-on-fork=enable --disable-gpu-compositing --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=54 --time-ticks-at-unix-epoch=-1704776833678828 --launch-time-ticks=403070791 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2787984459421691681,13879782091006832763,262144"
├─12777 st -c drop1 -e tmux new-session -A -s drop1
├─12918 tmux new-session -A -s drop1
├─12920 tmux new-session -A -s drop1
├─12924 -bash
├─14053 loginctl session-status
└─14054 -bash
Jan 09 10:37:42 Craptop login[509]: LOGIN ON tty1 BY sahaj
Jan 09 10:37:42 Craptop systemd[1]: Started Session 1 of User sahaj.
Offline
setxkbmap -print -qurey
And what keys does
xev -event keyboard
report?
Offline
>> setxkbmap -print -query
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)" };
xkb_geometry { include "pc(pc105)" };
};
rules: evdev
model: pc105
layout: us
xev -event keyboard
reports Shift_L for both left and right shift.(Alt_L/R works fine)
Offline
That's rather unsuspicious, pc105 splits the Shifts and there's nothing else to undo that.
What's the actual xev output (notably, do you get different keycodes?)
Also
xmodmap -pk | grep -i shift
Offline
Keycode is also same:
KeyPress event, serial 28, synthetic NO, window 0x2800001,
root 0x2e9, subw 0x0, time 41805871, (255,116), root:(943,119),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x2800001,
root 0x2e9, subw 0x0, time 41807085, (255,116), root:(943,119),
state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 28, synthetic NO, window 0x2800001,
root 0x2e9, subw 0x0, time 41807631, (255,116), root:(943,119),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x2800001,
root 0x2e9, subw 0x0, time 41807954, (255,116), root:(943,119),
state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
>> xmodmap -pk | grep -i shift
50 0xffe1 (Shift_L) 0x0000 (NoSymbol) 0xffe1 (Shift_L)
62 0xffe2 (Shift_R) 0x0000 (NoSymbol) 0xffe2 (Shift_R)
92 0xfe03 (ISO_Level3_Shift) 0x0000 (NoSymbol) 0xfe03 (ISO_Level3_Shift)
203 0xfe11 (ISO_Level5_Shift) 0x0000 (NoSymbol) 0xfe11 (ISO_Level5_Shift)
Offline
xmodmap is unsupicious, but oc. the same keycodes must result in same symbols.
To be clear:
evtest detects left shift and right shift.
This means it reports "42/KEY_LEFTSHIFT" and "54/KEY_RIGHTSHIFT"?
Not just "42/KEY_LEFTSHIFT" for both?
What kind of keyboard is that?
xinput list
Offline
I tried xev after disabling keyd (a key remapping daemon) and now it shows both shift_L and shift_R. So the problem was keyd. I am gonna open an issue on github.
Thank you for your time
PS: There already exists multiple issues on this topic on github. Solution was to add rightshift=rightshift in config file
Last edited by sahaj (2024-01-11 05:05:43)
Offline
Pages: 1