You are not logged in.

#1 2014-04-02 18:10:25

ilkyest
Member
From: Brazil
Registered: 2010-02-13
Posts: 269

Stock kernel isn't compatible with nvidia-dkms and nvidia-hook?

Hello pals

I'm using linux-ice, linux-lqx and linux-ck kernels with nvidia-dkms and nvidia-hook. Everything is ok, with kde upping.

I've started from stock kernel. During the dkms (or hook, I don't remember) pacman says that nvidia and nvidia(dkms or hook) were incompatible... remove nvidia? I've selected yes

After it, stock kernel don't upps the kde... stays on black screen. Login on tty1, 2 or 3 is possible, with ctrl+alt+F1...F3, but, kde with kernel don't works

no errors appears.

to force stock kernel been compiled by hook, I wait a while, when using the other kernels, and yesterday I did a "Syyu"

new kernel, new linux-headers too... but still blank screen

I only can use stock kernel and Nvidia driver, not dkms/hook installed one?

Offline

#2 2014-04-03 11:44:19

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Stock kernel isn't compatible with nvidia-dkms and nvidia-hook?

Wiki suggests it should work, maybe something went wrong with last update.

It seems that mkinitcpio uses a special hook to trigger dkms rebuild.
Try booting to stock kernel, running mkinitcpio -p linux to "force" a dkms rebuild, then reboot ?

Last edited by Lone_Wolf (2014-04-03 11:45:08)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2014-04-04 23:36:29

ilkyest
Member
From: Brazil
Registered: 2010-02-13
Posts: 269

Re: Stock kernel isn't compatible with nvidia-dkms and nvidia-hook?

yeah.. really an issue

chdir: error retrieving current directory: getcwd: cannot access parent directories: file or directory not found

Offline

#4 2014-04-05 12:05:22

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Stock kernel isn't compatible with nvidia-dkms and nvidia-hook?

Ok, i know little about dkms / mkinitcpio hooks , but best option seems to try and build the nividia module manually to get more info.

nvidia-hook gets sources from here : https://github.com/alucryd/mkinitcpio-hooks/ ,

build ()
{
  _version=$(pacman -Qs '^nvidia$'|sed 's/^[^ ]* \|-[0-9]*$//g;2d')
  echo "Building nvidia modules for ${KERNELVERSION} kernel..."
  dkms install nvidia/${_version} -k ${KERNELVERSION}/_arch
  echo "Ok."
}

help ()
{
cat<<HELPEOF
    This hook rebuilds nvidia modules. It does nothing to the initrd image.
HELPEOF
}

looks like all the hook does is run dkms install, try running that command manually to get more info.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2014-04-05 23:31:48

ilkyest
Member
From: Brazil
Registered: 2010-02-13
Posts: 269

Re: Stock kernel isn't compatible with nvidia-dkms and nvidia-hook?

and.. what command does it would be?

dkms install linux-3.18? 'cause when I install any kernel, I put kernel as is, and headers on "pacman -U" and dkms do it at all

I thought try reinstall just the kernel... pacman -R "kernel stock" and  pacman -S "kernel-stock" and "kernel headers" removing the files, before, from /var/cache/pacman/pkg, to force pacman download it again, and, yes, wishing dkms/hook do theyr work

Offline

#6 2014-04-09 12:17:54

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Stock kernel isn't compatible with nvidia-dkms and nvidia-hook?

if you're booted into the stock kernel:


pacman -Qs '^nvidia$'|sed 's/^[^ ]* \|-[0-9]*$//g;2d'

The output will probabyl be 334.21 , the current nvidia version.

dkms install nvidia/334.21

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2014-10-07 07:52:17

prakharsingh95
Member
From: Roorkee
Registered: 2014-10-02
Posts: 33

Re: Stock kernel isn't compatible with nvidia-dkms and nvidia-hook?

Hi,

I have a similar issue so I'll just use this thread.

I installed the nvidia-hook and I built my custom kernel.
When I try to install that using pacman, I am forced to install the kernel package first(instead of the headers package, as the Wiki suggests. When I do this, the custom hooks all fail, because headers aren't installed. Then I have to install headers, and reinstall the kernel package.

Initially I assumed that I didn't build the kernel properly.

However, today the arch [core] kernel got updated (3.16.4-1-ARCH), and the same occured. The hooks failed and I had to run mkinitcpio -p linux manually.
Why?

Last edited by prakharsingh95 (2014-10-07 07:54:08)


A person who never made a mistake never tried anything new.

Offline

Board footer

Powered by FluxBB