You are not logged in.

#1 2015-10-02 21:47:17

SpaghettiCode
Member
Registered: 2015-09-29
Posts: 8

[SOLVED] Saving xrandr screen setup

Each time I boot up BL, my login screen resolution is tiny, same as when I log in. I have to open the terminal, run a series of commands and then use the system menu to refresh my wallpaper and conky.
I have searched about saving the resolution and nothing has worked so far. I tried pasting my commands into ~/.xinitrc but i dont think it is ever loaded since openbox is used over Xsession, which is a complete noob guess please correct me if i'm wrong.
I've tried looking through all the config files within the user home directory and the one that popped out to me was ~/.config/openbox/autostart although pasting the commands at the end of the file did nothing either.

These are the commands I use:

xrandr --output DVI-I-1 --mode 1920x1080 --rate 120 &
xrandr --output DVI-D-1 --mode 1440x900 --rate 60 &
xrandr --output DVI-I-1 --primary &
xrandr --output DVI-I-1 --left-of DVI-D-1 &
xrandr --output DVI-I-1 --rotate normal &
xrandr --output DVI-D-1 --rotate normal &

Thanks for any help

Offline

#2 2015-10-02 22:00:31

damo
....moderator....
Registered: 2015-08-20
Posts: 5,809

Re: [SOLVED] Saving xrandr screen setup

Paste those commands in a bash script and add it to `/.config/openbox/autostart`

OR

Menu -> Preferences -> Display -> ARandR Screen layout Editor, then use the gui to arrange your settings.
Save the setup ( Layout -> Save as) as a ~/bin script, make it executable, and add it to your autostart.

BTW you don't need all those xrandr calls - you can do it as a one-liner. This is one of mine...

xrandr --output LVDS1 --mode 1366x768 --pos 0x0 --rotate normal --output DP1 --off --output VGA1 --off

EDIT: see this #! post for another way to launch the saved settings (NB BL uses `/etc/xdg/autostart` for .desktop files, and there is no longer a `.xinitrc`)

Last edited by damo (2015-10-02 22:08:18)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2015-10-03 06:28:09

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 6,525
Website

Re: [SOLVED] Saving xrandr screen setup

damo wrote:

BL uses `/etc/xdg/autostart` for .desktop files

That's for system-wide autostarts, and needs root powers to edit. You can put personal .desktop files in ~/.config/autostart to start things just for you.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#4 2015-10-03 12:52:36

SpaghettiCode
Member
Registered: 2015-09-29
Posts: 8

Re: [SOLVED] Saving xrandr screen setup

Fantastic damo, it worked! The only problem is the login screen is still unchanged. It has a small resolution and is duplicated on my other monitor. Any idea how I could fix that?

Offline

#5 2015-10-03 13:33:43

damo
....moderator....
Registered: 2015-08-20
Posts: 5,809

Re: [SOLVED] Saving xrandr screen setup

^ Which method worked?

There is no user config set until you login, so you need a system-wide monitor setting.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#6 2015-10-04 22:30:00

SpaghettiCode
Member
Registered: 2015-09-29
Posts: 8

Re: [SOLVED] Saving xrandr screen setup

I used a bit of both methods. Used Arandr to generate a rough template then added my own commands to the script file. Then pointed the autostart to that script smile I will try the system wide settings for the login screen.

Last edited by SpaghettiCode (2015-10-04 22:31:31)

Offline

Board footer

Powered by FluxBB