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?
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
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
]]>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.
]]>chdir: error retrieving current directory: getcwd: cannot access parent directories: file or directory not found
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 ?
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?
]]>