Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] xset won't work (Read 1410 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] xset won't work

Hello, and thank you for this great community.

xset q | grep -A 1 Pointer

xset:  unable to open display ""


Everything works fine except xset.

I have been trying to set mouse threshold with xset m 2/1 9


Re: xset won't work

Reply #1
It shouldn't have anything to do with init systems. It sounds like you might be missing the DISPLAY variable in your environment for some reason and xorg can't find your display.

Re: xset won't work

Reply #2
xset works only when Xorg is running, DISPLAY environment variable is set and the uid/gid of the process are allowed to access X server. For example, if you login as root in a terminal emulator under X session where you logged as a regular user, you normally won't be able to run X apps as root from that terminal emulator. If you execute (example):
Code: [Select]
$ xhost +si:localuser:root
from another terminal emulator as the user running the X session though, you will be able to.

Re: xset won't work

Reply #3
Ran as non root user. Working, thank you.