You are not logged in.

#26 2013-12-14 17:04:19

Somnus
Member
Registered: 2013-07-16
Posts: 105

Re: Starting xrandr script at startup.

Maybe we could look at this a different way. What I need to try to find out is how to run this xrandr.sh script at startup. Creating a .desktop and having xfce's Startup Programs run it doesn't work. Neither does adding the lines in the .sh to .xinitrc.

The only way I've gotten it to work is to have conky start at startup, and have conky run the script.

Offline

#27 2013-12-18 00:27:10

Somnus
Member
Registered: 2013-07-16
Posts: 105

Re: Starting xrandr script at startup.

Anyone have any ideas on how to get this script to run at startup? Conky's not a solution, since it reruns the script every time it updates itself.

Offline

#28 2013-12-18 00:50:27

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

Re: Starting xrandr script at startup.

i cannot help you with the script, however you may try to configure xorg.conf as suggested.

Offline

#29 2013-12-18 00:50:55

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Starting xrandr script at startup.

I don't understand why the xinitrc solution doesn't work in your case.

My setup:

Asus laptop N61JQ
Graphics: VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Madison [Mobility Radeon HD 5730 / 6570M]
Desktop Manager: none
Window manager: jwm
$HOME/.xinitrc:

#!/bin/sh
#
# Executed by startx (run your window manager from here)

xrandr --output LVDS --off  --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal

exec dbus-launch jwm

This works perfectly.
When I had the xrandr command in the jwm startup file, xrandr started to late in the sequence and it sort of worked but there were several glitches.

just my 2 cents,

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#30 2014-06-16 16:09:15

glenndjackson
Member
Registered: 2014-06-16
Posts: 1

Re: Starting xrandr script at startup.

Dear Folks,
I know this one.  The startup script is probably called from OP Somnus' home directory, and it's probably called this way:
sh ~/.screenlayout/myscript.sh

Whereas it should be called this way:
sh /home/somnus/.screenlayout/myscript.sh

I believe the "~" variable doesn't refer to the user's home directory from session/startup commands.
This works for me!
Yours,
Glenn

Offline

Board footer

Powered by FluxBB