Open Gadgetoid opened 4 years ago
Unfortunately, even with XAUTHORITY
set, I still an error, and rotation fails:
$ XAUTHORITY=/home/pi/.Xauthority DISPLAY=:0.0 sudo hyperpixel4-rotate right
Rotating display
xrandr: Failed to get size of gamma for output default
warning: output DSI-1 not found; ignoring
/usr/lib/python2.7/dist-packages/screenlayout/xrandr.py:66: UserWarning: XRandR wrote to stderr, but did not report an error (Message was: 'xrandr: Failed to get size of gamma for output default\n')
warnings.warn("XRandR wrote to stderr, but did not report an error (Message was: %r)"%err)
Saving display settings to /usr/share/dispsetup.sh
Setting matrix: 0 1 0 -1 0 1
Saving touch settings to /etc/udev/rules.d/98-hyperpixel4-calibration.rules
Edit: Enabling dtoverlay=vc4-fkms-v3d
in config.txt
fixes this, but now I have a black screen.
dtoverlay=vc4-fkms-v3d
must be enabled for any of the new fancy HyperPixel 4 stuff to work. All the new Pi 4 multi-display support and X desktop rotation relies upon it.
I suspect you've probably still got an issue with your HyperPixel 4 install- I've replied on the main issue thread, but stuff is quickly getting buried there. You need to make sure your dtoverlay (*.dtbo
) files are actually being rebuilt, and that the installer isn't just copying old ones from the local GitHub repo you're updating (they're out of tree, so they don't disappear when you switch branch).
When running
hyperpixel4-rotate
it can fail withException: XRandR returned error code 1: No protocol specified
.EG:
To fix this, the
XAUTHORITY
environment variable must be set. For example:I haven't run into this before, so I'm not sure if it's a Raspberry Pi OS problem or just some specific quirk of my setup. But I have put it here for posterity, and for potential inclusion of this fix into the rotate tool.