Re: [arch-general] How to build nvidia driver?

2017-08-11 Thread Ralf Mardorf
On Fri, 11 Aug 2017 10:41:07 +0200, Bennett Piater wrote:
>> > Where can I get this "downgrade" command?  
>
>> I don't want to put any words in Ralf's mouth, but I don't know of
>> any other way to do it :)  
>
>There is a downgrade package in AUR which does that automatically :)

Oops, I misunderstood David's comment. He didn't mention to install
"downgade" via pacman, he wrote "pacman -U supports downgrade".
^^

I need another strong breakfast coffee, before I test a script I wrote
last night.

However, the rest of my reply shouldn't contain serious mistakes, apart
from one or the other missing or misspelled word. 


Re: [arch-general] How to build nvidia driver?

2017-08-11 Thread Ralf Mardorf
On Fri, 11 Aug 2017 03:33:44 -0500, David C. Rankin wrote:
>On 08/11/2017 12:49 AM, Manuel Reimer wrote:
>>> downgrade nvidia nvidia-lts nvidia-dkms libxnvctrl nvidia-settings
>>> nvidia-utils opencl-nvidia lib32-nvidia-utils lib32-opencl-nvidia  
>> 
>> Where can I get this "downgrade" command?  
>
>pacman -U supports downgrade...

Hi,

perhaps for you, if you should have a third party repository providing
it.  My apologies, "downgrade" is provided by the AUR (Arch User
Repository): https://aur.archlinux.org/packages/downgrade/

See https://wiki.archlinux.org/index.php/downgrading_packages and
https://wiki.archlinux.org/index.php/Makepkg . There are also so called
"AUR helpers" available, but you need to build a helper, e.g.
https://aur.archlinux.org/packages/yaourt/ still the old faithful way,
before you could use it to build"downgrade".

You not necessarily need "downgarde"... 

>I believe the intent was:
>
> 1) go download the package versions of each file you want into a
> temporary directory, change to that directory; and then
>
> 2) as root (or use sudo)
>
> 3) # pacman -U *.xz (in the temporary directory containing only the
> files to be downgraded)

...Yesno. They still might be available in the cache:

  ls -hAl /var/cache/pacman/pkg/*nvidia*

If so, the OP could use

  pacman -U /var/cache/pacman/pkg/

and after that edit "IgnorePkg" in /etc/pacman.conf , to prevent
against upgrades.

When using "downgrade", it takes a look into the cache as well as on the
ARM (Arch Rollback Machine) server, see

https://wiki.archlinux.org/index.php?title=Arch_Rollback_Machine&redirect=no ,
resp.
https://wiki.archlinux.org/index.php/Arch_Linux_Archive

and after that it asks you, if the downgraded package should get an
"IgnorePkg" in /etc/pacman.conf .

>I don't want to put any words in Ralf's mouth, but I don't know of any
>other way to do it :)

FWIW I'm using my Intel's graphics and not NVIDIA, apart from this I
don't know if the OP runs an LTS kernel or the mainline kernel, neither
if the OP does use NVIDIA helpers, or if those helpers are hard
dependencies of needed packages. So what packages the OP needs to
downgrade and in which order is something I can't say, nor if any of
the packages needs to be rebuild, related to e.g. a soname issue.
However, NVIDIA at least isn't that problematic as ATI, since older
proprietary ATI drivers tend to require dedicated old versions of X
that makes it more or less impossible to downgrade the proprietary ATI
things.

Regards,
Ralf


Re: [arch-general] How to build nvidia driver?

2017-08-11 Thread Bennett Piater
> > Where can I get this "downgrade" command?

> I don't want to put any words in Ralf's mouth, but I don't know of any other
> way to do it :)

There is a downgrade package in AUR which does that automatically :)


Re: [arch-general] How to build nvidia driver?

2017-08-11 Thread David C. Rankin
On 08/11/2017 12:49 AM, Manuel Reimer wrote:
>> downgrade nvidia nvidia-lts nvidia-dkms libxnvctrl nvidia-settings
>> nvidia-utils opencl-nvidia lib32-nvidia-utils lib32-opencl-nvidia
> 
> Where can I get this "downgrade" command?

pacman -U supports downgrade...

I believe the intent was:

 1) go download the package versions of each file you want into a temporary
directory, change to that directory; and then

 2) as root (or use sudo)

 3) # pacman -U *.xz (in the temporary directory containing only the files to
be downgraded)

I don't want to put any words in Ralf's mouth, but I don't know of any other
way to do it :)

-- 
David C. Rankin, J.D.,P.E.


Re: [arch-general] How to build nvidia driver?

2017-08-10 Thread Manuel Reimer

On 08/11/2017 12:20 AM, Ralf Mardorf wrote:

Much likely nvidia and nvidia-dkms, however perhaps other packages.


Interesting to see that there actually is a DKMS package for that.
So everything, I would have to do, is to somehow get the DKMS package 
for the 381 driver and install it?



downgrade nvidia nvidia-lts nvidia-dkms libxnvctrl nvidia-settings nvidia-utils 
opencl-nvidia lib32-nvidia-utils lib32-opencl-nvidia


Where can I get this "downgrade" command?

Manuel


Re: [arch-general] How to build nvidia driver?

2017-08-10 Thread Ralf Mardorf
On Thu, 10 Aug 2017 21:44:24 +0200, Manuel Reimer wrote:
>https://devtalk.nvidia.com/default/topic/1020399/
>
>Can someone please give me some hints about what steps I have to do to 
>downgrade the driver without touching the kernel version?
>Which packages need downgrading?

Much likely nvidia and nvidia-dkms, however perhaps other packages.

Running

  pacman -Qs nvidia | grep "384.59"

might show you what packages, resp. running

  pacman -Qs nvidia | grep "384.59"

So perhaps you need to run

downgrade nvidia nvidia-lts nvidia-dkms libxnvctrl nvidia-settings nvidia-utils 
opencl-nvidia lib32-nvidia-utils lib32-opencl-nvidia
Available packages:

   1) nvidia-384.59-3-x86_64.pkg.tar.xz (remote)
   2) nvidia-384.59-2-x86_64.pkg.tar.xz (remote)
   3) nvidia-384.59-1-x86_64.pkg.tar.xz (remote)
   4) nvidia-381.22-8-x86_64.pkg.tar.xz (remote)
   5) nvidia-381.22-7-x86_64.pkg.tar.xz (remote)
   6) nvidia-381.22-6-x86_64.pkg.tar.xz (remote)
   7) nvidia-381.22-4-x86_64.pkg.tar.xz (remote)
   8) nvidia-381.22-3-x86_64.pkg.tar.xz (remote)
   9) nvidia-381.22-2-x86_64.pkg.tar.xz (remote)
  10) nvidia-381.22-1-x86_64.pkg.tar.xz (remote)
[snip]


[arch-general] How to build nvidia driver?

2017-08-10 Thread Manuel Reimer

Hello,

I never did this before, but on one of my systems, I'm affected by:
https://devtalk.nvidia.com/default/topic/1020399/

Can someone please give me some hints about what steps I have to do to 
downgrade the driver without touching the kernel version?

Which packages need downgrading?

Thanks in advance

Manuel