You are not logged in.
My keyboard and mouse stop working after I execute startx but only in tty1.
I am still able to use for example Ctrl+Alt+F3 to go to tty3 and if I execute startx there it works as expected.
I think the problem appeared after I installed some packages for this https://github.com/TheWaveWarden/SwitchProConLinuxUSB
sudo pacman -S xorg-util-macros
sudo pacman -S lib32-libgudev lib32-libudev0-shim libudev0-shim foxProbably those packages weren't even the ones needed, I wasn't sure and installed them anyway...
This is my .local/share/xorg/Xorg.0.log: https://pastebin.com/qHppxcQW
Thank you
Last edited by john12345678 (2021-10-24 20:51:25)
Offline
This looks fishy:
[ 8.065] (**) |-->Screen "Screen0" (0)
[ 8.065] (**) | |-->Monitor "Monitor0"
[ 8.065] (**) | |-->Device "Device0"
[ 8.065] (**) |-->Input Device "Keyboard0"
[ 8.065] (**) |-->Input Device "Mouse0"grep -ri Mouse0 /{etc,usr/share}/X11/xorg.conf*Online
This looks fishy:
[ 8.065] (**) |-->Screen "Screen0" (0) [ 8.065] (**) | |-->Monitor "Monitor0" [ 8.065] (**) | |-->Device "Device0" [ 8.065] (**) |-->Input Device "Keyboard0" [ 8.065] (**) |-->Input Device "Mouse0"grep -ri Mouse0 /{etc,usr/share}/X11/xorg.conf*
$ grep -ri Mouse0 /{etc,usr/share}/X11/xorg.conf*
/etc/X11/xorg.conf: InputDevice "Mouse0" "CorePointer"
/etc/X11/xorg.conf: Identifier "Mouse0"Offline
Please post /etc/X11/xorg.conf - though it's likely the nvidia-settings configuration.
Not sure how this could cause the described effects, but the log also lists the input devices present.
Move the file out of /etc and test the result.
Online
Please post /etc/X11/xorg.conf - though it's likely the nvidia-settings configuration.
Not sure how this could cause the described effects, but the log also lists the input devices present.
/etc/X11/xorg.conf: https://pastebin.com/RH9t5L2T
Move the file out of /etc and test the result.
Still same problem
Offline
Thought as much (it's a completely pointless static server config generated by the nvidia tools, please don't restore it)
If any of the packages in #1 could impact this it would be libudev0-shim, but are you maybe running the procon_driver (while this happens)?
Please also post your xinitrc and xserverrc…
Online
~/.xinitrc: https://pastebin.com/vCBqDDT6
(displayselect is just a script I wrote in .local/bin that calls xrandr but if you want to see it https://pastebin.com/K947kXk7 )
I don't have a ~/.xserverrc
/etc/X11/xinit/xsserverrc: https://pastebin.com/d60rpSrP
If any of the packages in #1 could impact this it would be libudev0-shim, but are you maybe running the procon_driver (while this happens)?
I executed
bash install.shand
sudo ./build/procon_driveronce but it isnt currently running, I dont have it autostart
Offline
Replaced the xinitrc with this:
#!/bin/sh
exec xmonadI can now use the keyboard and mouse after startx in tty1 as expected. I am still not sure what the problem is. (I use xmonad as the window manager in lxqt)
Offline
Don't fork xrandr calls (in this case through a script, but that doesn't matter)
Try to preserve the VT, https://wiki.archlinux.org/title/Xinit#xserverrc
Still not sure how any of this would screw input (only)
Online
Don't fork xrandr calls (in this case through a script, but that doesn't matter)
Try to preserve the VT, https://wiki.archlinux.org/title/Xinit#xserverrcStill not sure how any of this would screw input (only)
What do you mean by fork xrandr calls?
I found the problem, it was caffeine (https://aur.archlinux.org/packages/caffeine-ng/) Removing it from the xinitrc fixes the problem. Thank you very much! I thought that because it worked in tty3, the xinitrc wouldnt matter.
Last edited by john12345678 (2021-10-24 20:34:44)
Offline
What do you mean by fork xrandr calls?
The trailing ampersand, "&"
Would you actually have to fork caffeine?
Online
What do you mean by fork xrandr calls?
The trailing ampersand, "&"
Would you actually have to fork caffeine?
Ok so caffeine itself isn't the problem. The problem is I forgot to add the & at the end of caffeine...
Now with the same xinitrc I posted, just replacing caffeine with caffeine & it works as expected. Why would this work in other tty but not in tty1? Thanks again, it was my dumb mistake
Offline
"other" or "second" tty?
caffeine's behavior might depend on whether there's a running instance.
Online