View previous topic :: View next topic |
Author |
Message |
Punchcutter Guru
Joined: 11 Feb 2007 Posts: 358
|
Posted: Sat Aug 08, 2020 4:03 am Post subject: [SOLVED] Non-root Xorg: Input is frozen |
|
|
Hi... I've got Yet Another Non-root Xorg Problem. I've already done a bunch of googling but cannot solve the problem. I've got what I think is latest xorg, 1.20.8-r1. I have re-emerged this and xf86-input-evdev a few times. Kernel is 4.9.228. I've seen in other threads that this may be related to elogind. I don't have a clear memory of what I've done in the past, but I have USE flags elogind and -consolekit in my make.conf, and I have maybe(?) done an emerge world since then. (Incidentally I have been trying to do emerge world for a couple months but am running into major conflicts that I can't seem to get around, and I'll need to ask for help with that later, but for now, please don't tell me to do emerge world to solve the present problem )
First, if I run Xorg as root, everything is fine. So clearly the problem here is permissions.
I first had trouble even getting Xorg server up when run as user, but then took a hint from some other forum posts about changing the ownership of /dev/tty0, tty1, tty7, etc to my user, instead of root (it's a single-user laptop). I've done that, in fact I changed all of /dev/tty? to owned by my user, for good measure, and set perms to 660.
Xorg server starts up now, but.... all input is frozen/hosed (kbd + mouse). Even CAPS LOCK won't light up.
Other threads say "set /usr/bin/xinit to suid". I tried that. It didn't solve the problem (I reverted it).
Here's the one diagnostic that comes out in the server log output that seems relevant: Code: | xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted) |
Whatever I have found by googling this error, and tried, has not worked (suid and the usual suspects).
I have an intuition that this error points to the root cause of the input being frozen. Can anyone offer another, different idea to try? I would be most grateful. I cannot work until I get this fixed. Forgive me for not including diagnostic stuff like emerge --info, because I'm (obviously) posting from another computer, and carrying that stuff over on thumb drives is a hassle. If you say it's absolutely needed, I'll do it. Thanks in advance.
Last edited by Punchcutter on Sat Aug 08, 2020 10:11 pm; edited 1 time in total |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6150 Location: Dallas area
|
Posted: Sat Aug 08, 2020 11:06 am Post subject: |
|
|
It's not xinit that needs to be suid but Xorg.
The message is about input (IINM)
how are you starting the whole x process, startx, display manager, etc?
Edit to add: since you mention elogind have you read the latest https://wiki.gentoo.org/wiki/Non_root_Xorg _________________ UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Punchcutter Guru
Joined: 11 Feb 2007 Posts: 358
|
Posted: Sat Aug 08, 2020 10:11 pm Post subject: |
|
|
Anon-E-moose, thanks for the reply. To cut to the chase, it's embarrassing to say that I had in fact seen the wiki page that you linked, but for some reason didn't pay attention to all the details, I guess because I had my head buried in a particular idea of tracking down the exact errors I was seeing. Also I must have assumed that dbus was running, because as far as I knew, it was. However the root cause of my problem turned out to be that, in fact, dbus wasn't running. Not just crashed or something, but not even started by rc-update at boot time! I can't imagine how I survived my last reboot, a few weeks ago, if that was the case Or maybe something spurious happened since that time to remove dbus from the rc-update settings.
Fwiw, it all works even though neither my xinit nor Xorg executables are suid, and I didn't need to mess with /dev/tty? permissions.
And now... off to another forum, to get help with my emerge world problem |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|