You are not logged in.
I'm trying to run a benchmark tools called fiovisualizer (https://01.org/fio-visualizer) which needs to run as root. The tool is reported to run OK under centos, but on arch I get a blank gui and X errors
sudo ./fio-visualizer.py
X Error: BadAccess (attempt to access private resource denied) 10
Extension: 130 (MIT-SHM)
Minor opcode: 1 (X_ShmAttach)
Resource id: 0x138
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 3 (X_ShmPutImage)
Resource id: 0x260000a
I've seen a few folks have similar issues with ssh and X forwarding, but this is running on my local machine
If I run as a normal user the gui loads OK, but I can't run the benchmark tool as it needs root access to block devices.
Thanks for any help
Offline
This should help: https://wiki.archlinux.org/index.php/Ru … ps_as_root
Offline
Thanks, none of those techniques work for this Qt4 based app and I can run other X apps without issue as root i.e. sudo firefox, sudo xterm run as expected.
Offline
Try doing...
sudo -i
./fio-visualizer.pyAlso are you sure you have all of the dependencies installed?
Offline
Try doing...
sudo -i ./fio-visualizer.pyAlso are you sure you have all of the dependencies installed?
Thanks, tried that, still gets the X Error
I found if I login into gnome as root the app works correctly. Not sure why it does not via sudo etc.
Offline
Offline
Many Thanks, that link had the answer or at least a workaround
as root user
export QT_GRAPHICSSYSTEM=native
then ./fio-visualizer.py works as expected
Offline
You can add to ~/.xprofile
Offline