Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nVidia and Kernel issue[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
A.S. Pushkin
Guru
Guru


Joined: 09 Nov 2002
Posts: 418
Location: dx/dt, dy/dt, dz/dt, t

PostPosted: Sun Mar 29, 2015 5:02 am    Post subject: nVidia and Kernel issue[SOLVED] Reply with quote

My highest kernel is sys-kernel/gentoo-sources-3.18.7 which appears to have been removed from Portage.
I have been running a nVidia GT-220 video card which I recently replaced with a Quadro K620 thinking there was a problem.
There wasn't as I discovered when reading the ebuild for the nVidia drivers where my current is 340.76.

I found that my an update to this kernel X would not start. I'm not sorry yo have upgraded to the new card, which is
quite tough for my budget, but I wonder what other nVidia owners are doing. I'm not a gamer and hope to maybe
do some for-money cad work and maybe some video on a small scale. (The new machine I'm building is based around an
i7-4770k.) My current AMD Athlon is inadequate, I know. Any suggestions from nVidia users would be appreciated.

Lest I forget, this has led to one other question. I'm running grub2, but since it would seem that my highest kernel will
do me no good I'd like grub2 to default to a kernel <3.18
As of this time the highest kernel that will allow X is 3.17.8-gentoo-r1

I've attempted to set the default to this next to last kernel in /etc/default/grub but it does not give me the kernel
I want. Any suggestions on this would also be very helpful.

TIA.
_________________
ASPushkin

"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell


Last edited by A.S. Pushkin on Sun Apr 05, 2015 5:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Myu
Apprentice
Apprentice


Joined: 22 Oct 2014
Posts: 164
Location: Belgium

PostPosted: Sun Mar 29, 2015 8:17 am    Post subject: Reply with quote

Hi !

I would say emerge the latest stable 3.18.x kernel (3.18.9)

then run
Code:
eselect kernel list
to see available kernel sources and
Code:
eselect kernel set <NUMBER of the 3.18.9 kernel>
to set this kernel as the default source.

then copy your .config from the 3.18.7 kernel (which should still be on /usr/src/linux-3.18.7-gentoo/ if you haven't unmerged these sources ) to /usr/src/linux

Then build your kernel as usual, once done copy it to your /boot and run
Code:
grub2-mkconfig -o /boot/grub/grub.cfg


You should see your new kernel being on "top" of the list.

Reboot and re-emerge the nvidia drivers so there build against your new kernel :
Code:
emerge nvidia-drivers.


If you just want to boot to the 3.17.8-r1 for now, move any of the 3.18 kernel(s) from /boot to elsewere and do
Code:
grub2-mkconfig -o /boot/grub/grub.cfg


You should only see the 3.17.8-r1 kernel and older kernels on the output from grub2-mkconfig

Hope it helps !
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sun Mar 29, 2015 12:35 pm    Post subject: Reply with quote

Quote:
I've attempted to set the default to this next to last kernel in /etc/default/grub but it does not give me the kernel
I want. Any suggestions on this would also be very helpful.


I personally only adapt /boot/grub/grub.cfg

I never use any script to change grub2. I use grub2 from a previous linux mint installation.

Code:


cat /boot/grub/grub.cfg


# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="5"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi
....



On my box

Code:
set default="5"
this line selects which grub entry is booted. 5 may indicate it is the 5th entry or the 6th entry when it starts to count with 0. You will find out yourself anyway.


Personally it is much easier to just adjust this grub file and move the files needed to boot in the directory where I need them.

I recommend doing the same so you are in control and know what is done. I do not get the point why it is easier and better to use some script to change that behaviour? At the end you just tell grub2 what should be done and when I change the config file there I know what is done without the additional layer of an external script...
Back to top
View user's profile Send private message
A.S. Pushkin
Guru
Guru


Joined: 09 Nov 2002
Posts: 418
Location: dx/dt, dy/dt, dz/dt, t

PostPosted: Sun Apr 05, 2015 5:33 pm    Post subject: nVidia and Kernel issue Reply with quote

Myu I took your suggestion and it cleared up my problem. As the kernel causing me difficulty was removed from Portage I must assume it was the problem.

The note in the ebuild about nVidia and the kernel support seems to not apply hear as the newest kernel and nVidia drivers work well.
My newest kernel, 3.18.9-gentoo, is installed and the default.

I note that simply removing a kernel from /boot does seem to require grub2-mkconfig -o /boot/grub/grub.cfg


tw04l124 thanks for your input, too. I was leery of editing the gub2 files, but may look at that as I understand it better.

Thanks again for your help. Once again Gentooers offer the best help.
_________________
ASPushkin

"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
Back to top
View user's profile Send private message
Myu
Apprentice
Apprentice


Joined: 22 Oct 2014
Posts: 164
Location: Belgium

PostPosted: Sun Apr 05, 2015 5:44 pm    Post subject: Reply with quote

Hi A.S Pushkin,

I'm glad it helped :)

Happy gentoo-ing !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum