46

I get this error in Xorg.0.log

xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

Googling quickly reveals that this error is caused by starting Xorg as non root user. Problem is that I'm running this as root. Next possible cause SELinux, that is diabled too.

Any other possible causes of this error?

My graphicscard is

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] (prog-if 00 [VGA controller])

But I have severe problems with the drivers, so I'm trying to run as Vesa, using this xorg.conf

Section "Device" Identifier "Videocard0" Driver "vesa" EndSection

3
  • Did you exec anything in your .xinitrc file?
    – Azd325
    Nov 4, 2014 at 21:31
  • Actually you shouldn't log in as root this way, at all. The simplest way should be to use a display manager. Feb 6, 2016 at 22:57
  • 1
    What distro are you using? The default setup could have something to do with it.
    – IW16
    Aug 17, 2016 at 23:11

2 Answers 2

9
sudo chmod u+s /usr/bin/xinit

Fixed my problem on Linux Mint

1
  • 10
    I'm curious about the reasoning for this. Nov 18, 2020 at 21:27
0
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

Xorg is trying IO as non-root or even root on Ubuntu 22.04.

Try this as root:

sudo setcap CAP_SYS_RAWIO+eip /usr/lib/xorg/Xorg

then restart Xorg

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .