I'm trying to get the mouse location from my raspberry pi. The pi right now isn't connect to a monitor so the X server is not running. Only thing connected to my pi is a mouse and a ethernet cable.
I have a simple java program that grabs mouse location using: MouseInfo.getPointerInfo().getLocation()
And the command I'm trying to run xvfb is:
xvfb-run --server-args="-screen 0, 1024x768x24" java GetMouse
I am getting a x and y coordinate from my java program but it seems like the coordinates are not changing it's always at (512,384)
I'm starting to think that xvfb is not what I want. Is there another way of grabbing mouse location via the command line?