Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] Force GUI resolution on start-up

Featured Replies

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.

 

  • Jagadguru changed the title to [SOLVED] Force GUI resolution on start-up
  • Author

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 by Jagadguru
correction

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.