Jagadguru Posted March 30, 2020 Share Posted March 30, 2020 Hi all, I know this is kind of a niche thing and doesn't qualify for a feature request. I'm trying to get unRIAD to start the X server with a specific resolution or set the res. by script after start. I have been digging into the startup scripts for X and slim the windows manager unRIAD uses. Here is my go file: #set display reslolution for a decent update speed cp /boot/config/X/.Xauthority /root/ export DISPLAY=:0.0 export XAUTHORITY=~/.Xauthority xhost + xrandr -display :0.0 -s 5 I also wrote a script to change the resolution on array start: #!/bin/bash telnet localhost touch ~/.Xauthority export DISPLAY=:0.0 export XAUTHORITY=~/.Xauthority xhost + echo "xrandr -display :0.0 -s 5" | at NOW + 2 min xauth info xhost +si:localuser:root xauth info xrandr -display :0.0 -s 5 sleep 10 xrandr -display :0.0 -q This results in a "protocol error". I think it is because there is no entry in .Xauthority for localhost and I don't know how to generate one automatically. if I run xhost + from remote over ssh, the entry is added and everything is good. But localhost doesn't have the authority to run xhost + by itself.I know there are unnecessary bits in the script, but I just threw them in for testing. I'm assuming there are a couple of different ways to go about this. Quote Link to comment
Jagadguru Posted April 25, 2020 Author Share Posted April 25, 2020 (edited) Solved by changing the line export XAUTHORITY=~/.Xauthority to export XAUTHORITY=/var/run/slim.auth The login screen is not the right resolution, so I can't see the username/password box, but hey it's pretty good. The session is in the right resolution. Edited April 25, 2020 by Jagadguru correction Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.