You are not logged in.

#1 2017-02-19 02:55:36

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

[Solved] Nvida Questions: LTS vs Regular Drivers & Autostart in XFCE

Here's my inxi -F:

System:    Host: ArchDellPrecision Kernel: 4.4.49-1-lts x86_64 (64 bit)
           Desktop: Xfce 4.12.3 Distro: Arch Linux
Machine:   Device: desktop System: Dell product: Precision T1700 v: 01
           Mobo: Dell model: 073MMW v: A03 UEFI: Dell v: A20 date: 09/22/2016
CPU:       Quad core Intel Core i7-4770 (-HT-MCP-) cache: 8192 KB 
           clock speeds: max: 3900 MHz 1: 3400 MHz 2: 3389 MHz 3: 3445 MHz
           4: 3420 MHz 5: 3401 MHz 6: 3402 MHz 7: 3400 MHz 8: 3401 MHz
Graphics:  Card: NVIDIA GK107GL [Quadro K600]
           Display Server: X.Org 1.19.1 drivers: nvidia (unloaded: modesetting)
           Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz
           GLX Renderer: Quadro K600/PCIe/SSE2
           GLX Version: 4.5.0 NVIDIA 378.13
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
           driver: snd_hda_intel
           Card-2 NVIDIA GK107 HDMI Audio Controller driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.49-1-lts
Network:   Card: Intel Ethernet Connection I217-LM driver: e1000e
           IF: eno1 state: up speed: 1000 Mbps duplex: full
           mac: 34:17:eb:ae:80:93
Drives:    HDD Total Size: 5241.0GB (4.9% used)
           ID-1: /dev/sda model: OCZ size: 240.1GB
           ID-2: /dev/sdb model: ST1000DM003 size: 1000.2GB
           ID-3: /dev/sdc model: WDC_WD40EZRZ size: 4000.8GB
Partition: ID-1: / size: 51G used: 11G (22%) fs: ext4 dev: /dev/sda5
           ID-2: /boot size: 197M used: 130M (66%) fs: vfat dev: /dev/sda2
           ID-3: swap-1 size: 18.81GB used: 0.00GB (0%) fs: swap dev: /dev/sda7
Sensors:   System Temperatures: cpu: 34.0C mobo: 27.8C gpu: 45C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 224 Uptime: 20 min Memory: 1806.1/15992.2MB
           Client: Shell (bash) inxi: 2.3.8

I'm all set up and everything is running fine, but while I was looking through the Nvidia packages in Pamac I noticed the `nvidia-lts` package.  I am running the LTS kernel, should I remove the `nvidia` package and install the `nvidia-lts` package?  Is there any harm in NOT running the LTS version with the LTS kernel?  If I were to switch to the LTS, is it just a matter of installing the package and removing the original package, than regenerating my mkinitcpio file?  Do any other configurations need to be changed (like my boot flags in Grub, KMS mode, etc)?

Also I use the nvidia-settings package to tweak my colors, nothing crazy so the standard user settings are fine.  The way I have always done this is by adding a custom startup entry in Startup Applications.  I use `nvidia-settings -l` so it just runs in the background without the GUI starting up on boot and enables my settings without having to launch the program everytime I boot up.  Here on Arch, there is a slight delay on bootup where I can see when the nvidia-settings kick in.  This was not the case on Manjaro using the exact same method (no delay, settings applied immediately at boot). So my question is: is there a better way, maybe on a system level to have nvidia-settings run at boot?  Kinda like how correctly enabling Compiz autostart in /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/ vs `compiz --replace` in the Application Autostart menu shows 0 delay in Compiz startup.  I am very noobish when it comes to the Nvidia settings, I've always just run the standard configurations, so please answer knowing that I do not know very much about configuring Nvidia (I'm coming from Manjaro where these configs are already done for you).

Last edited by Annoyingduck (2017-02-20 17:59:21)

Offline

#2 2017-02-19 20:24:10

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Nvida Questions: LTS vs Regular Drivers & Autostart in XFCE

The standard and LTS packages can coexist on the same system, no need to remove anything.

If you don't have nvidia-lts installed then you're not using the nvidia driver when booted to the LTS kernel, the standard nvidia only runs under linux and nvidia-lts only runs under linux-lts.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-02-20 03:26:07

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: [Solved] Nvida Questions: LTS vs Regular Drivers & Autostart in XFCE

slithery wrote:

The standard and LTS packages can coexist on the same system, no need to remove anything.

If you don't have nvidia-lts installed then you're not using the nvidia driver when booted to the LTS kernel, the standard nvidia only runs under linux and nvidia-lts only runs under linux-lts.

Hmm, it appears I have both the LTS 4.4 kernel and the regular 4.9 kernel installed, which explains why the regular Nvidia package is working.  To switch to just LTS, can I just install the Nvidia LTS package, and remove the regular nvidia package and the 4.9 series kernel?  Then I assume I'd rebuild my mkinitcpio & grub files?

Offline

#4 2017-02-20 03:44:03

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: [Solved] Nvida Questions: LTS vs Regular Drivers & Autostart in XFCE

Nevermind, got this solved.  This was actually really easy.  Just installed the nvidia-lts package and removed the nvidia & linux packages keeping the LTS.  Updated grub, and all is well.  My next question is in the Wiki it recommends adding a Pacman hook here:

/etc/pacman.d/hooks/nvidia.hook
[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia

[Action]
Depends=mkinitcpio
When=PostTransaction
Exec=/usr/bin/mkinitcpio -p linux

Which I have done, now for the Nvidia-LTS package does this hook command need to be modified to reflect LTS, or will pacman execute this when the nvidia-lts package is updated?  Should I write it like this:

[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia-lts

[Action]
Depends=mkinitcpio
When=PostTransaction
Exec=/usr/bin/mkinitcpio -p linux-lts

Last edited by Annoyingduck (2017-02-20 03:46:32)

Offline

#5 2017-02-20 18:02:10

Annoyingduck
Member
Registered: 2016-08-02
Posts: 179

Re: [Solved] Nvida Questions: LTS vs Regular Drivers & Autostart in XFCE

Topic solved. I used the pacman hook with the LTS corrections and it worked fine for updating.  Also the XFCE autostart issue was fixed for nvidia-settings.  It was a matter of clearing the session, and being sure that the autosave session check box was not checked in the log-out... menu. That little check box not being clicked actually solved a lot of other little problems I was having.

Offline

Board footer

Powered by FluxBB