Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Run command on Kodi startup
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Run command on Kodi startup
4th Jul, 2015, 02:50 AM
Post: #1
3to20characters Offline
Registered
Posts: 10
Joined: Mar 2014
Reputation: 0
Run command on Kodi startup
HI, I want to run redshift on Kodi. I have it set to run on startup, but it doesn't work. I think that's because at the time the script runs, Kodi hasn't started yet and therefore neither has XWindows. Redshift doesn't work if there is no GUI for it to alter.

The command I want to run is:
Code:
/usr/bin/redshift -l Lat:Lon

And the error I get when I quit Kodi and run from the command line is:
Code:
'RANDR Query Version' returned error -1
Initialization of randr failed.
Trying next method...
X request failed: XOpenDisplay
Initialization of vidmode failed.
Trying next method...
No more methods to try.

I could be wrong on why it isn't working, but either way, how can I fix this?

edit: Redshift alters the color temperature of your display as the sun sets. It helps you fall asleep easier as you aren't looking at stimulating blue light in the evenings.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Kodi startup sounds Skywatch 10 21,129 16th Apr, 2024 08:27 PM
Last Post: HalatiCourse

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 10:01 PM Powered By MyBB, © 2002-2025 MyBB Group.