LinHES Forums
http://forum.linhes.org/

Where to place the code "nvidia-settings --load-config-
http://forum.linhes.org/viewtopic.php?f=22&t=20731
Page 1 of 1

Author:  cantator [ Sat Jan 02, 2010 9:14 pm ]
Post subject:  Where to place the code "nvidia-settings --load-config-

I love Linhes! So far it is more stable for me than Knoppmyth was. One question I haven't been able to answer for myself is, where do you put start-up scripts? In this case, I want to have "nvidia-settings --load-config-only" run to adjust my overscan. I tried placing it in /etc/runit/1.local , but that doesn't seem to work. Does anyone know better? Thanks!

Author:  Greg Frost [ Sun Jan 03, 2010 2:49 am ]
Post subject: 

Code:
[gfrost@mythtv /]$ cat /home/mythtv/.fluxbox/apps
#Uncomment below if you are using firewire
#[startup] {/usr/bin/plugctl -n 0 "oPCR[0].n_p2pconnections=1"}
[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
[startup] {/usr/LH/bin/LinHES-run}
[startup] {nvidia-settings --load-config-only}

Author:  cantator [ Sun Jan 03, 2010 8:38 pm ]
Post subject: 

Thanks Greg. That is actually one thing I had tried, but it did not work. Perhaps it's a permission thing?

Code:
[root@Faith tcrandall]# cat /home/mythtv/.fluxbox/apps
#Uncomment below if you are using firewire
#[startup] {/usr/bin/plugctl -n 0 "oPCR[0].n_p2pconnections=1"}
[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
[startup] {/usr/LH/bin/LinHES-run}
[startup] {nvidia-settings --load-config-only}


When I manually run the script, it is fine, but still not auto-loading at boot. Any other thoughts?

Author:  Greg Frost [ Mon Jan 04, 2010 12:14 am ]
Post subject: 

hmmm... works for me. I just ran nvidia-settings, set the contrast from 0 to -1 (an obvious change) quit and rebooted. When it came up, it restored the horrid contrast.

Author:  graysky [ Mon Jan 04, 2010 1:51 am ]
Post subject: 

Might be totally off base but make your command a script and call the script from your ~/.fluxbox/apps

Code:
#!/bin/bash
/usr/bin/nvidia-setting --load-config-only


Don't forget to make it executable via chmod +x scriptname.sh

EDIT: seems odd that you need to do this at all as Greg pointed out. On my system, nv-s loads my config automatically too.

Author:  Greg Frost [ Mon Jan 04, 2010 3:58 am ]
Post subject: 

You could try making the command something like:
Code:
[startup] {nvidia-settings --load-config-only &> ~/nv-s.log}
and then check to see if the command is reporing an error by examining the log file.
For the record I get a bunch of errors like this, but it still works:
Code:
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".

Author:  cantator [ Mon Jan 04, 2010 9:30 am ]
Post subject: 

Thanks for the input fellas. I'll give it a whirl. I like LINHES, but miss the comfort of knowing the commands/tricks I had learned in Knoppmyth!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/