You are not logged in.

#26 2010-07-29 09:38:53

12eason
Banned
Registered: 2010-07-20
Posts: 103

Re: xrandr startup in xfce

ROOKIE wrote:

Do a simple test, create a script with 'env > /tmp/env.dump' and check inside if the DISPLAY variable is set,

From a script executed by xfce autostart it is set to DISPLAY:0.0, from a script inside xinit.d (30-dbus) it doesn't create the file.

ROOKIE wrote:

you can also redirect all the output of xrandr to a file and check why it isn't working, I'm sure it is complaining about something.

Using;

#!/bin/bash

xrandr --newmode "1280x1024"  108.79  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync > /tmp/randr.dump
xrandr --addmode VGA-1 "1280x1024" >> /tmp/randr.dump
xrandr --output DVI-I-1 --preferred >> /tmp/randr.dump
xrandr --output VGA-1 --mode "1280x1024" >> /tmp/randr.dump
xrandr --output DVI-I-1 --right-of VGA-1 >> /tmp/randr.dump

I just get an empty randr.dump file. However, when I run the script in a terminal I get;

[user@desktop ~]$ /home/user/Scripts/xprofile.sh 
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  150 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  25
  Current serial number in output stream:  25

I think it has something to do with trying to create a mode that already exists, a problem that won't exist on first run. It executes fine in a terminal, but still throws the errors.

eta I have tried every type of delay I know, 'while pidof exists', wait, stringing them all together with &&, nothing makes the scripts run properly either in .xinitrc or from autostart. I have no idea why, it should just work.

Last edited by 12eason (2010-07-29 13:50:05)

Offline

Board footer

Powered by FluxBB