You are not logged in.

#1 2023-01-16 15:12:11

Rhizotome
Member
Registered: 2017-11-20
Posts: 17

Keyboard and mouse don't work in xorg

I've changed my xorg.conf, and after that, both my keyboard and mouse stopped working. Reverting the changes did nothing, nor using the default xorg.conf. My /var/log/Xorg.0.log has the following:

Config/udev: Adding input device ...
No input driver specified, ignoring this device

repeated with as the three dots every single input in /dev/input.
There is also at the end :

xf86CloseConsole: KDSETMMODE failed: input/output error
xf86CloseConsole: VT_GETMODE failed: input/output error
xf86CloseConsole: VT_GETSTATE failed: input/output error

Offline

#2 2023-01-16 15:19:16

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,336

Re: Keyboard and mouse don't work in xorg

I've changed my xorg.conf

How?
What's in it right now?

My /var/log/Xorg.0.log has

Please post the entire log,also the output of "xinput" and "sudo libinput list-devices".

Offline

#3 2023-01-16 15:32:20

Rhizotome
Member
Registered: 2017-11-20
Posts: 17

Re: Keyboard and mouse don't work in xorg

https://imgur.io/a/GovK4TH
https://imgur.io/a/JKBSmy1
It is the one xorg.conf generated by sudo X -configure

Offline

#4 2023-01-16 15:33:15

Rhizotome
Member
Registered: 2017-11-20
Posts: 17

Re: Keyboard and mouse don't work in xorg

I don't know how to post all this should I take pictures of everything ?

Offline

#5 2023-01-16 15:38:20

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,336

Re: Keyboard and mouse don't work in xorg

Good god. No.
Post the text in code tags or paste it using he tip in the 1st link below.

Offline

#6 2023-01-16 16:18:51

Rhizotome
Member
Registered: 2017-11-20
Posts: 17

Re: Keyboard and mouse don't work in xorg

xorg.conf : http://0x0.st/ohsc.txt
Xorg.1.log: http://0x0.st/ohsj.txt
xinput :

Unable to connect to X server

libinput list-devices

Offline

#7 2023-01-16 16:41:16

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,336

Re: Keyboard and mouse don't work in xorg

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

is cruft, the drivers don't exist > than a decade.

	BusID       "PCI:38:0:0"

Really?
According to the xorg log: "really".

Get rid of the entire config, it's nonsense, probably created by nvidia-settings

Nevertheless

[  4414.576] (==) Log file: "/var/log/Xorg.1.log", Time: Mon Jan 16 17:17:16 2023
…
[  4421.670] (II) Server terminated successfully (0). Closing log file.

The server runs successfully for ~1s
The problem is your session, possibly because of

[  4414.586] (II) LoadModule: "glxserver_nvidia"
[  4414.586] (WW) Warning, couldn't open module glxserver_nvidia
[  4414.586] (EE) NVIDIA: Failed to load module "glxserver_nvidia" (module does not exist, 0)
[  4414.586] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[  4414.586] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[  4414.586] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[  4414.586] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[  4414.586] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.

https://wiki.archlinux.org/title/NVIDIA … de_setting (kernel parameter and early KMS)

Unable to connect to X server

I doubt this has anything to do w/ your input devices, but you'll need a running X11 server for that to work.
If you want to execute it on a different VT,

export DISPLAY=:1

Edit:
Is there no /var/log/Xorg.0.log ?

Last edited by seth (2023-01-16 16:43:20)

Offline

#8 2023-01-16 16:57:14

Rhizotome
Member
Registered: 2017-11-20
Posts: 17

Re: Keyboard and mouse don't work in xorg

Thanks a lot for the answer(s). Should I just delete xorg.conf ? Even with DISPLAY=:0 or DISPLAY=:1 it says "unable to connect to x server".
I should then try to reboot and pass the kernel parameter ?
There is a xorg.0.log: http://0x0.st/ohsA.txt
I think it was generated when I recreated the frog.conf but I might be wrong.
It runs for a very short time because I schedule a kill on the wm because otherwise I'm locked without a keyboard nor mouse so I can't exit.

Last edited by Rhizotome (2023-01-16 16:58:48)

Offline

#9 2023-01-16 17:02:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: Keyboard and mouse don't work in xorg

yes delete the xorg.conf and reboot and pass the parameter (... and additionally setup early KMS as linked by adding the modules to your mkinitcpio.conf and regenerating the initramfs)

Offline

#10 2023-01-16 17:09:28

Rhizotome
Member
Registered: 2017-11-20
Posts: 17

Re: Keyboard and mouse don't work in xorg

Offline

#11 2023-01-16 17:11:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: Keyboard and mouse don't work in xorg

You aren't loading the nvidia driver now and in general your system is outdated if you updated/installed the nvidia drivers now you'd probably want to do a full system update and make sure you're booting the current 6.1.6 kernel.

Offline

#12 2023-01-16 17:23:29

Rhizotome
Member
Registered: 2017-11-20
Posts: 17

Re: Keyboard and mouse don't work in xorg

I'm updating. But I already have the nvidia-dkms package installed, does X not try to use it ?

Offline

#13 2023-01-16 18:20:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: Keyboard and mouse don't work in xorg

the xorg driver comes from nvidia-utils, if that doesn't properly load for any reason/because the kernel module is not loaded in the first place you'll have issues.

Offline

#14 2023-01-16 18:34:16

Rhizotome
Member
Registered: 2017-11-20
Posts: 17

Re: Keyboard and mouse don't work in xorg

So what should I do to ensure it loads ? I have Nvidia-utils installed.

Last edited by Rhizotome (2023-01-16 18:35:55)

Offline

#15 2023-01-16 19:14:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: Keyboard and mouse don't work in xorg

assuming you've updated and rebooted now, what do you get from

uname -a
pacman -Qs 'nvidia|linux'
sudo journalctl -b

Offline

#16 2023-01-16 19:18:30

Rhizotome
Member
Registered: 2017-11-20
Posts: 17

Re: Keyboard and mouse don't work in xorg

Installing xf86-input-udev and using the Nvidia generated xorg.conf worked, thx for the help.

Offline

Board footer

Powered by FluxBB