You are not logged in.

#1 2021-04-11 03:03:56

Jake_Guy_11
Member
Registered: 2021-04-11
Posts: 1

xkbserver permission error on startx

I've recently reinstalled Arch (with i3 for the first time). In my .bash_profile:

# Other stuff
if [[ "$(tty)" = "/dev/tty1" ]]; then
	startx
fi

and my .xinitrc:

exec i3

For a while, whenever I signed in, it worked fine. I had to log in through tty1 but after that, i3 started without a problem. I then installed a bunch of packages (some simple stuff like GIMP, Vivaldi, feh, etc). Now, whenever I log in through tty1, it says (I'm new to BBCode so I'm not sure how to do inline code, sorry sad):

xf86EnableIOPorts: failed to set IOPL for I/O (operation not permitted)
cannot open /var/lib/xkbserver
cannot open /var/lib/xkbserver-0.kbm

I've since managed to launch i3 by adding /var/lib/ to a group I'm in, and giving it g+w permissions, which worked. On subsequent restarts though, it resets and I need to change the permission again.
What's the problem? I'm thinking that a package I installed writes to xkbserver but doesn't have the right permissions, but I'm still a beginner so I'm not sure. How can I fix this, and why is it happening? (This is my first post here so please let me know if I should include anything else smile)

Offline

#2 2021-04-11 07:48:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,527

Offline

Board footer

Powered by FluxBB