LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-01-2012, 03:55 AM   #1
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
xession script (containig "xrandr" commands) not taking effect


Hi all.

I am wanting to have a "xrandr" script run at startup, so that the desired effect takes place - every time, every boot.

The script runs fine, when I run it from the Terminal; however, I have failed to automate it at startup.


I tried the following ::

a)
Created file "~/.xession". The contents are as follows ::

Code:
!#/bin/sh

xrandr --output LVDS1 --mode 640x480 --panning 1366x768
The command did not seem to run on reboot.



b)
Created a soft link, to the above file, as follows ::

Code:
[ajay@localhost ~]$ ln -s ~/.xsession ~/.xinitrc
The command did not seem to run on reboot.



c)
Created the "Xsettings.d/" script file, as follows ::

Code:
[ajay@localhost ~]$ sudo mkdir /etc/X11/Xsession.d
[ajay@localhost ~]$ vim /etc/X11/Xsession.d/45custom_xrandr-settings


The contents are as follows ::

Code:
xrandr --output LVDS1 --mode 640x480 --panning 1366x768
Again, the command did not seem to run on reboot.





What else could I try to automate the script? (I repeat, that running the "xrandr --output LVDS1 --mode 640x480 --panning 1366x768" command works fine, when ran from the terminal).


Looking forward to a reply.


Thanks and Regards,
Ajay
 
Old 07-01-2012, 03:59 AM   #2
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Another update ::

Just changed the permissions of all the above files to 0777.
None helped


Regards,
Ajay
 
Old 07-01-2012, 08:26 AM   #3
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Hi.
Done !!!

I had to place the script file in "/etc/X11/xinit/xinitrc.d/".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My "expect" script is not working... Won't "send" commands... edomingox Programming 4 04-02-2009 03:25 PM
"cd" doesn't take effect when running in script, but does in console ramow Programming 2 05-26-2007 03:29 AM
Apache "ForceType" not taking effect... EnigmaX Linux - Software 0 05-10-2004 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration