You are not logged in.
Hello,
I'm facing an issue which looks to be frequent, but I'm still
struggling with it after 24 hours searching a solution on the web.
I upgraded my system (pacman -Syu) after almost 10 months (bad idea, I
know...). Everything was just fine until I reboot.
Problem: after
login in (console mode)
startx
the desktop manager is loaded... but the mouse and keyboard do not react.
The DM is xfce4, but exactly the same thing happens when I tested with LXDE
This behaviour has been reported many times on this forum and on the
web. Unfortunately, I found no working solution (exploring the logs,
changing the drivers, deleting the config folder, etc) for my case.
Additional note:
if I do
pacman -Rs xfce4
pacman -S xfce4
startx
everything is fine and the mouse and keyboard work.
However, after reboot they fail again.
At this point I see no way to investigate more by myself, so I'd ask
for your kind support.
Drivers installed: libinput, evded
Here are some logs :
* journalctl -b : https://pastebin.com/pgR9LJJ7
* .local/xorg.0.log : https://pastebin.com/b7BTJpnN
* /var/log/pacman.log : https://pastebin.com/EuY11Ms8
Last edited by LunchTime (2024-02-04 16:25:10)
Offline
I don't know for certain, but this reminds me of a problem I had where after upgrade I lost my mouse and wifi. I don't remember the details but:
The problem was that the kernel that was updated was not the kernel that was booted. So maybe look at 'uname -r' and the content of /lib/modules/ and maybe other stuff, and make sure that everything is in sync. I had to copy the content of /boot to the place where the boot process was actually using.
Sorry, that's all I can think of offhand.
Offline
Thank you for the suggestion,
I've checked and everything seems to be v6.7.3
=/
Offline
Just confirming, that Xorg log looks like for mouse did not work and it appears you have no custom xorg configuration. True?
There are several messages similar to
[ 76.334] (EE) xf86OpenSerial: Cannot open device /dev/input/event14
Permission denied.I don't like these messages.
Is this a systemd system or are you using an alternate init method?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Thank you,
I confirm it is systemd system.
About the permission denied on /dev/input/event
what should be done? (access is not supposed to be denied here?)
My xorg config files are the following:
10-monitor.conf
Section "Screen"
Identifier "Screen0"
Option "PreferredMode" "1024x768"
Endsection10-keyboard-layout.conf
Section "InputClass"
Identifier "Keyboard Layout"
MatchIsKeyboard "yes"
MatchDevicePath "/dev/input/event*"
Option "XkbLayout" "fr"
Option "XkbVariant" "latin9" # pour caractères spéciaux
EndSection50-synaptics.conf
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
Option "VertEdgeScroll" "on"
MatchDevicePath "/dev/input/event*"
EndSection
Section "InputClass"
Identifier "touchpad ignore duplicates"
MatchIsTouchpad "on"
MatchOS "Linux"
MatchDevicePath "/dev/input/mouse*"
Option "Ignore" "on"
EndSection
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "synaptics"
Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
Option "SecondarySoftButtonAreas" "58% 0 0 8% 42% 58% 0 8%"
EndSection
Section "InputClass"
Identifier "Disable clickpad buttons on Apple touchpads"
MatchProduct "Apple|bcm5974"
MatchDriver "synaptics"
Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSectionLast edited by LunchTime (2024-02-04 21:52:41)
Offline
Please use [code][/code] tags. Edit your post in this regard.
Then post your xinitrc and look at the last link below (because of the inaccessible input devices)
Finally try to drop xf86-input-synaptics (you're saying "mouse and keyboard", what about the touchpad?)
Finally, do you really have to re-install xfce4 or does simply restarting the server after getting a cup of coffee do as well?
Offline
Sorry for the formatting, I've edited my post accordingly.
My .xinitrc is simply:
exec startxfce4I have been inaccurate, you are right: the problem is about keyboard and touchpad (not mouse, I don't have a mouse to test it)
So, I should keep xf86-input-synaptics, isn't it?
FInally, about restarting the "server": what server do you mean? the X server? (sorry for my poor understanding)
I cannot restart it after "startx" because I cannot use my keyboard.
Offline
You cannot even switch the console (ctrl+alt+F3)?
Your xinitrc is broken, last link below, 2nd blue note about what to include at least.
Report back w/ your updated xinitrc if the problem remains and then try to remove the synaptics driver, yes (just as a test)
Last thing:
MatchDevicePath "/dev/input/event*"Replace that w/
MatchProduct "AT Translated Set 2 keyboard"Offline
Thanks,
I fixed .xinitrc as suggested on the page you mention (with the last if block)
I replaced the line MatchDevice... with MatchProduct...
and tried to remove the synaptics driver.
Unfortunately, all this had no effect =/
In addition, I confirm that after running startx, the desktop manager load all the graphical elements correctly, but the keyboard is ineffective, including CTRL+ALT +F. to switch between TTY
Offline
Do you have an udpated xorg log?
Though if the kernel shortcuts don't work, that's probably not an X11 problem…
Coming back to
if I do
pacman -Rs xfce4
pacman -S xfce4
startx
everything is fine and the mouse and keyboard work.
So the way this works is you boot the multi-user.target, re-install xfce4 and then startx for the first time in that boot?
What if you don't re-install xfce4 and just get a cup of coffee instead before you run startx?
Can you ssh into the system to live-inspect it?
As for the mouse not working, not even the cursor moves?
Offline
Ok, I've got more clues now.
As you guessed, the problem appears to not be related to X11 but to... the way my home, encrypted with ecryptfs is mounted.
I'd say the problem is solved in the sense I have now a workaround:
after creating an other user ("user2"),
if I boot and login directly to user2, X starts normally.
However, if I log in user1, try to mount my ecryptfs-encrypted home, logout and login back to user2,
then X does not start at all.
So, although the problem (i.e. the relationship between this encrypted partition and X) is not clarified, I'm happy with the solution of creating a new user, using the ecryptfs home migration script, and moving my files from user1's home to user2's home.
Thank you very much for your time and effort in understanding this, it is much appreciated!
I answer your last questions, to record.
So the way this works is you boot the multi-user.target, re-install xfce4 and then startx for the first time in that boot?
yes, exactly
What if you don't re-install xfce4 and just get a cup of coffee instead before you run startx?
Waiting (even 15 minutes) after login and launching startx did not change anything
As for the mouse not working, not even the cursor moves?
Yes, nothing moved, all was frozen, not button responded except the switch off button
Offline
I'm happy with the solution of creating a new user, using the ecryptfs home migration script, and moving my files from user1's home to user2's home.
Has this already worked?
if I log in user1, try to mount my ecryptfs-encrypted home, logout and login back to user2
You've not started X11 as user1 in this case? Just mounted the encrypted home?
How and where do you mount it?
Does the process generate errors in the system journal?
If you mount it, log out, unmount it and then try to startx as user2, does this still fail?
Offline