Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Non-root Xorg: Input is frozen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 358

PostPosted: Sat Aug 08, 2020 4:03 am    Post subject: [SOLVED] Non-root Xorg: Input is frozen Reply with quote

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 :P )

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
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6148
Location: Dallas area

PostPosted: Sat Aug 08, 2020 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 358

PostPosted: Sat Aug 08, 2020 10:11 pm    Post subject: Reply with quote

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 :roll:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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