Author Topic: Persistent nvidia-settings?  (Read 2177 times)

0 Members and 1 Guest are viewing this topic.

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Persistent nvidia-settings?
« on: 24. September 2012, 13:23:33 »
I have the nvidia drivers installed with sudo mhwd -a pci nonfree 0300 and they mostly work fine except on every reboot or login/logoff I have to rerun the settings again to change my two lcds around.

I've tried creating a a autostart from the xfce session util but that does nothing, running nvidia-settings -l does not do anyhting (I have a .nvidia-settings-rc in my home folder)

Any ideas?

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Persistent nvidia-settings?
« Reply #1 on: 24. September 2012, 14:06:40 »
Ok I 'fixed' it. I opened nvidia-settings and configured everything the way it needs to be and then saved a dummy xorg.conf file in my home folder, opened it with a text editor and copied the "Section Screen" over to a new file /etc/X11/xorg.conf.d/20-nvidia.conf

Code: [Select]
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: 1920x1080_60 +1680+0, DFP-1: 1680x1050_60 +0+0; DFP-0: nvidia-auto-select +1680+0, DFP-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


I don't think this is the right way of doing things but for now my displays aren't swapped around.

Offline aeonflux

  • Neuling
  • *
  • Posts: 40
Re: Persistent nvidia-settings?
« Reply #2 on: 24. September 2012, 16:04:06 »
Did you try configuring xorg using nvidia-xconfig? Normally, it should create a xorg.conf file in /etc/X11/ .I'm not sure this works in Manjaro though, since it's been modified.

Offline Roland

  • Administrator
  • *****
  • Posts: 626
    • Manjaro Linux
Re: Persistent nvidia-settings?
« Reply #3 on: 24. September 2012, 16:07:35 »
Don't create a xorg.conf file. Instead use /etc/X11/xorg.conf.d/90-mhwd.conf and handle it as normal xorg.conf file! Even better is to create a new file with a higher number with all changes, so if you use mhwd your changes don't get removed.

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Persistent nvidia-settings?
« Reply #4 on: 24. September 2012, 16:24:31 »
Don't create a xorg.conf file. Instead use /etc/X11/xorg.conf.d/90-mhwd.conf and handle it as normal xorg.conf file! Even better is to create a new file with a higher number with all changes, so if you use mhwd your changes don't get removed.

So does what I did sound right?

Offline Roland

  • Administrator
  • *****
  • Posts: 626
    • Manjaro Linux
Re: Persistent nvidia-settings?
« Reply #5 on: 24. September 2012, 16:27:03 »
Hehe: https://wiki.archlinux.org/index.php/NVIDIA#GUI:_nvidia-settings

Quote
For the settings to be loaded on login, run this command from the terminal:

$ nvidia-settings --load-config-only

I would add "nvidia-settings --load-config-only" to ~/.bashrc

Edit: Or just don't change anything please. I will add this to the nvidia mhwd config and you can tell me if it will work :)

Roland

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Persistent nvidia-settings?
« Reply #6 on: 24. September 2012, 16:42:01 »
Hehe: https://wiki.archlinux.org/index.php/NVIDIA#GUI:_nvidia-settings

I would add "nvidia-settings --load-config-only" to ~/.bashrc

Edit: Or just don't change anything please. I will add this to the nvidia mhwd config and you can tell me if it will work :)

Roland

I'll try that but when I tried to do that from the cli (nvidia-settings --load-config-only) nothing happened.

Offline Roland

  • Administrator
  • *****
  • Posts: 626
    • Manjaro Linux
Re: Persistent nvidia-settings?
« Reply #7 on: 24. September 2012, 16:51:04 »
Try to run it in a shell?

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Persistent nvidia-settings?
« Reply #8 on: 24. September 2012, 17:07:45 »
Try to run it in a shell?

Yeah, nothing happens.

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Persistent nvidia-settings?
« Reply #9 on: 24. September 2012, 18:35:56 »
Just tried adding it to my bashrc but no go.

Offline Roland

  • Administrator
  • *****
  • Posts: 626
    • Manjaro Linux
Re: Persistent nvidia-settings?
« Reply #10 on: 24. September 2012, 23:08:45 »
I will work on my testing machine with an nvidia gpu. Maybe tomorrow I will upload the new mhwd configs. Please wait for it :)

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Persistent nvidia-settings?
« Reply #11 on: 24. September 2012, 23:12:34 »
I will work on my testing machine with an nvidia gpu. Maybe tomorrow I will upload the new mhwd configs. Please wait for it :)

Thanks, no rush as I have a working system so far. Some time this week I also need to upgrade the whole system as well.

Offline Roland

  • Administrator
  • *****
  • Posts: 626
    • Manjaro Linux
Re: Persistent nvidia-settings?
« Reply #12 on: 24. September 2012, 23:14:08 »
Hehe, k. I will contact you if there is something new available :)