Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Unable to boot
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 3:58 am    Post subject: [Solved]Unable to boot Reply with quote

I made a fresh install of Gentoo.
Init system - OpenRC
But I boot into a black screen with a blinking cursor.

This could be a nvidia issue, because while booting I see in the logs that nvidia failed to start.

Login Manager - lightdm
DE - Mate
When running exec lightdm, I get that black screen with the blinking cursor.
When running exec mate-session, I go to the terminal login screen, after which I am not in a graphical environment but the terminal.

An error this time was not testing xorg, lightdm and mate separately but configuring all of them at once. So it is harder to narrow it down to what is going wrong.

I configured nvidia like the last time (when it worked).
Code:
/etc/X11/xorg.conf.d/10-nvidia.conf
Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "01:00:0"
    Option "AllowEmptyInitialConfiguration"
EndSection

lsmod | grep nvidia does not display anything.
rmmod nvidia says there is nothing to remove.
modprobe nvidia gives an error.

startx gaves the error-
Code:
Fatal server error:
    no screens found


Xorg.0.log = https://paste.pound-python.org/show/8MG1T8oqyHOjf1GYTWAG/
dmesg = https://paste.pound-python.org/show/73FRia5hVVKkmvowBEdt/
.config = https://paste.pound-python.org/show/oGARCDnD434StzIfXC6m/
make.conf = https://paste.pound-python.org/show/b6U9OVgzO5Fa3gXP7H9W/

I'd appreciate any help. Thanks!
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)


Last edited by reikdas on Thu Dec 27, 2018 11:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Thu Dec 27, 2018 11:53 am    Post subject: Reply with quote

(it's best to follow the instructions in the handbook and the wiki first)
did you install the nvidia-drivers for the right kernel-version? (check what the /usr/src-symlink points to)
i think there have been some changes in the nvidia-drivers recently - you have to disable all drm-stuff inside your kernel.
also, i'd recommend to put the least settings possible into your /etc/X11/xorg.conf.d/10-nvidia.conf and just add stuff once it's necessary.
this
Code:
Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
EndSection

might suffice.
(I've had problems with the nvidia-drivers >400 on a system where they worked w/out problems until i disabled all the drm-stuff inside the kernel (with which the drivers had worked before))
GOOD LUCK!
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54391
Location: 56N 3W

PostPosted: Thu Dec 27, 2018 12:31 pm    Post subject: Reply with quote

reikdas,

By installing everything like this, thes switching on you have maximised the problem space.

It appears that nvidia-drivers is not correctly installed. At least, the kernel module is not installed for your running kernel.
What does
Code:
uname -r
show?
That's the version of the running kernel.

Run
Code:
eselect kernel list
The selected kernel is the one that nvidia-drivers will be compiled for.
If they are different, you made nvidia-drivers for the wrong kernel.

If its correct, run
Code:
emerge -1av nvidia-drivers
and post the build log.
I expect it to fail.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 4:35 pm    Post subject: Reply with quote

NeddySeagoon wrote:
reikdas,

By installing everything like this, thes switching on you have maximised the problem space.

It appears that nvidia-drivers is not correctly installed. At least, the kernel module is not installed for your running kernel.
What does
Code:
uname -r
show?
That's the version of the running kernel.

Run
Code:
eselect kernel list
The selected kernel is the one that nvidia-drivers will be compiled for.
If they are different, you made nvidia-drivers for the wrong kernel.


They are the same.

NeddySeagoon wrote:
If its correct, run
Code:
emerge -1av nvidia-drivers
and post the build log.
I expect it to fail.


It did not fail. It did not fix the issue.
Build log - https://paste.pound-python.org/show/l415cplEypghh5zN08VP/

I noticed that for my card (Nvidia Geforce GTX 1070 Max Q), the latest stable driver was 410.78, but I have 415.18. I removed 415.18 and install 410.79 but module-update re-installed 415.18.
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54391
Location: 56N 3W

PostPosted: Thu Dec 27, 2018 5:16 pm    Post subject: Reply with quote

reikdas,

What does
Code:
modprobe nvidia
tell?

Look at the end of dmesg too. Building it is the first step.
If it leaves errors when its modprobed, we will know what to fix.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 5:19 pm    Post subject: Reply with quote

NeddySeagoon wrote:
reikdas,

What does
Code:
modprobe nvidia
tell?

If it leaves errors when its modprobed, we will know what to fix.


ERROR: Invalid arguement nvidia.

NeddySeagoon wrote:
Look at the end of dmesg too. Building it is the first step.


I posted the dmesg in the first post of this thread. I get some nvidia error in it too.


I wanted to reiterate that gives 410.78 is the latest stable driver for my card in case that is an issue. But emerge @module-rebuild keeps pulling in 415.18. And without emerge @module-rebuild, it still does not work, even if I emerge -C the 415 driver.
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)


Last edited by reikdas on Thu Dec 27, 2018 5:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54391
Location: 56N 3W

PostPosted: Thu Dec 27, 2018 5:24 pm    Post subject: Reply with quote

reikdas,

Sorry I missed that.

Code:
[   10.001552] nvidia: disagrees about version of symbol backlight_device_unregister
[   10.001555] nvidia: Unknown symbol backlight_device_unregister (err -22)
[   10.001846] nvidia: disagrees about version of symbol backlight_device_register
[   10.001848] nvidia: Unknown symbol backlight_device_register (err -22)
[   10.024313] nvidia: disagrees about version of symbol backlight_device_unregister
[   10.024316] nvidia: Unknown symbol backlight_device_unregister (err -22)
[   10.024617] nvidia: disagrees about version of symbol backlight_device_register
[   10.024618] nvidia: Unknown symbol backlight_device_register (err -22)


disagrees about version of symbol means that you rebuilt the kernel without rebuilding all the out of tree modules, including nvidia-drivers.

Unknown symbol backlight_device_register means that the kernel option that provides backlight_device_register is off in your kernel and must not be.
Turn on the kernel code that owns backlight_device_register and rebuild and reinstall your kernel.
Rebuild nvidia-drivers, after your kernel build then reboot to test.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Thu Dec 27, 2018 5:27 pm    Post subject: Reply with quote

i had the exact same errors - building and loading of the module went fine, but it could not be used bc "failed to initialize..."

what does
Code:
zgrep -i drm /proc/config.gz
tell you?
i think starting with the 400-version of nvidia-drivers it has to be completely deactivated.
GOOD LUCK!
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 5:33 pm    Post subject: Reply with quote

DawgG wrote:
i had the exact same errors - building and loading of the module went fine, but it could not be used bc "failed to initialize..."

what does
Code:
zgrep -i drm /proc/config.gz
tell you?


https://paste.pound-python.org/show/R0zDQst5mFUoSNmtemcF/

DawgG wrote:
i think starting with the 400-version of nvidia-drivers it has to be completely deactivated.
GOOD LUCK!


What exactly do you mean? And how do I do it?
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 5:50 pm    Post subject: Reply with quote

NeddySeagoon wrote:
reikdas,

Sorry I missed that.

Code:
[   10.001552] nvidia: disagrees about version of symbol backlight_device_unregister
[   10.001555] nvidia: Unknown symbol backlight_device_unregister (err -22)
[   10.001846] nvidia: disagrees about version of symbol backlight_device_register
[   10.001848] nvidia: Unknown symbol backlight_device_register (err -22)
[   10.024313] nvidia: disagrees about version of symbol backlight_device_unregister
[   10.024316] nvidia: Unknown symbol backlight_device_unregister (err -22)
[   10.024617] nvidia: disagrees about version of symbol backlight_device_register
[   10.024618] nvidia: Unknown symbol backlight_device_register (err -22)


disagrees about version of symbol means that you rebuilt the kernel without rebuilding all the out of tree modules, including nvidia-drivers.

Unknown symbol backlight_device_register means that the kernel option that provides backlight_device_register is off in your kernel and must not be.
Turn on the kernel code that owns backlight_device_register and rebuild and reinstall your kernel.
Rebuild nvidia-drivers, after your kernel build then reboot to test.


Okay. I faced a couple of things.
While trying to enable backlight_device_register I searched for backlight in make menuconfig. But I was not able to find a few of the backlight options. This was extremely confusing so I took some pictures.
/backlight in make menuconfig - https://photos.app.goo.gl/tirf1nH9Nif21aDt7
Unable to find the modules as they are =n even after I enabled everything - https://photos.app.goo.gl/5ShBSw4FLzQR9dCLA
I rebuilt my kernel and nvidia. But it does not work
I still get the Unknown symbol backlight_device_register in my dmesg.
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
skarab
n00b
n00b


Joined: 18 Jun 2017
Posts: 40

PostPosted: Thu Dec 27, 2018 6:23 pm    Post subject: Reply with quote

found this https://archives.gentoo.org/gentoo-user/message/a0ad6070a41d8df93f290dddefdc951b
I hate nvidia support, my new laptop has a basic intel.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 6:25 pm    Post subject: Reply with quote

Okay so to disable Nvidia and try,
I commented out xorg.conf/10-nvidia-config
I commented out the lightdm nvidia startup script
I commented out ~/.xinitrc

Now it works. But since it is on intel graphics, the screen is really glitchy and unusable. Also, I definetely need Nvidia to work.
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54391
Location: 56N 3W

PostPosted: Thu Dec 27, 2018 6:27 pm    Post subject: Reply with quote

reikdas,

Lets grep the kernel sources.
Code:
$ cd /usr/src/linux
roy@NeddySeagoon_Static /usr/src/linux $ grep -R backlight_device_register

That produces lots of output bu we want the
Code:
drivers/video/backlight/backlight.c:EXPORT_SYMBOL(backlight_device_register);
since its the EXPORT_SYMBOL that makes it available to out of tree things.

That means we need something that builds the drivers/video/backlight/backlight.c file.

For me CONFIG_BACKLIGHT_CLASS_DEVICE is forced on by
Code:
  │   Selected by [y]:                                       
  │   - DRM_AMDGPU [=y] && HAS_IOMEM [=y] && DRM [=y] && PCI [=y] && MMU [=y] 


Its at
Code:
  │ Symbol: BACKLIGHT_CLASS_DEVICE [=y]                                                                                              │ 
  │ Type  : tristate                                                                                                                 │ 
  │ Prompt: Lowlevel Backlight controls                                                                                              │ 
  │   Location:                                                                                                                      │ 
  │     -> Device Drivers                                                                                                            │ 
  │       -> Graphics support                                                                                                        │ 
  │ (3)     -> Backlight & LCD device support (BACKLIGHT_LCD_SUPPORT [=y])                                                           │ 
  │   Defined at drivers/video/backlight/Kconfig:165                                                                                 │ 
  │   Depends on: HAS_IOMEM [=y] && BACKLIGHT_LCD_SUPPORT [=y]
and it will be hidden until HAS_IOMEM [=y] && BACKLIGHT_LCD_SUPPORT [=y] are both selected.

Also check that
Code:
 │ CONFIG_TRIM_UNUSED_KSYMS:                           
  │                                                           
  │ The kernel and some modules make many symbols available for     
  │ other modules to use via EXPORT_SYMBOL() and variants. Depending                 
  │ on the set of modules being selected in your kernel configuration,           
  │ many of those exported symbols might never be used.                           
  │                                                                                   
  │ This option allows for unused exported symbols to be dropped from       
  │ the build. In turn, this provides the compiler more opportunities   
  │ (especially when using LTO) for optimizing the code and reducing   
  │ binary size.  This might have some security advantages as well. 
  │           
  │ If unsure, or if you need to build out-of-tree modules, say N.
is off, or the symbol will not be exported unless the kernel uses it too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 6:47 pm    Post subject: Reply with quote

NeddySeagoon wrote:
reikdas,

Lets grep the kernel sources.
Code:
$ cd /usr/src/linux
roy@NeddySeagoon_Static /usr/src/linux $ grep -R backlight_device_register

That produces lots of output bu we want the
Code:
drivers/video/backlight/backlight.c:EXPORT_SYMBOL(backlight_device_register);
since its the EXPORT_SYMBOL that makes it available to out of tree things.

That means we need something that builds the drivers/video/backlight/backlight.c file.


I already had this line in the log of grep -R backlight_device_register

NeddySeagoon wrote:
For me CONFIG_BACKLIGHT_CLASS_DEVICE is forced on by
Code:
  │   Selected by [y]:                                       
  │   - DRM_AMDGPU [=y] && HAS_IOMEM [=y] && DRM [=y] && PCI [=y] && MMU [=y] 


Its at
Code:
  │ Symbol: BACKLIGHT_CLASS_DEVICE [=y]                                                                                              │ 
  │ Type  : tristate                                                                                                                 │ 
  │ Prompt: Lowlevel Backlight controls                                                                                              │ 
  │   Location:                                                                                                                      │ 
  │     -> Device Drivers                                                                                                            │ 
  │       -> Graphics support                                                                                                        │ 
  │ (3)     -> Backlight & LCD device support (BACKLIGHT_LCD_SUPPORT [=y])                                                           │ 
  │   Defined at drivers/video/backlight/Kconfig:165                                                                                 │ 
  │   Depends on: HAS_IOMEM [=y] && BACKLIGHT_LCD_SUPPORT [=y]
and it will be hidden until HAS_IOMEM [=y] && BACKLIGHT_LCD_SUPPORT [=y] are both selected.


It was on. - https://photos.app.goo.gl/z3wYX5zhkcGbGzNS6

NeddySeagoon wrote:
Also check that
Code:
 │ CONFIG_TRIM_UNUSED_KSYMS:                           
  │                                                           
  │ The kernel and some modules make many symbols available for     
  │ other modules to use via EXPORT_SYMBOL() and variants. Depending                 
  │ on the set of modules being selected in your kernel configuration,           
  │ many of those exported symbols might never be used.                           
  │                                                                                   
  │ This option allows for unused exported symbols to be dropped from       
  │ the build. In turn, this provides the compiler more opportunities   
  │ (especially when using LTO) for optimizing the code and reducing   
  │ binary size.  This might have some security advantages as well. 
  │           
  │ If unsure, or if you need to build out-of-tree modules, say N.
is off, or the symbol will not be exported unless the kernel uses it too.


It was off.

But dmesg still gives the backlight error.
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 7:08 pm    Post subject: Reply with quote

My config files in case something is wrong with that.

/etc/X11/xorg.conf.d/10-nvidia-config - https://paste.pound-python.org/show/UEX1YIjxHCCU3lFtq223/
~/.xinitrc - https://paste.pound-python.org/show/QKTrW0uU3ZsyhkbhtSQX/
/etc/lightdm/display_setup.sh - https://paste.pound-python.org/show/LwDm9kzW3f6KA8ZkvahQ/
/etc/lightdm/lightdm.conf - https://paste.pound-python.org/show/kBmNjeSstJnw8PxxPOYi/
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
skarab
n00b
n00b


Joined: 18 Jun 2017
Posts: 40

PostPosted: Thu Dec 27, 2018 7:13 pm    Post subject: Reply with quote

shouldnt there be the intel too in the xorg config using optimus ?
my old laptop : https://paste.pound-python.org/show/4z9IoZ4MYZG3dCFWhQ1b/
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 7:18 pm    Post subject: Reply with quote

skarab wrote:
shouldnt there be the intel too in the xorg config using optimus ?
my old laptop : https://paste.pound-python.org/show/4z9IoZ4MYZG3dCFWhQ1b/


I tried that but had issues.
Here is a big post from when Nvidia worked on my laptop - https://forums.gentoo.org/viewtopic-t-1090878-highlight-.html
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
skarab
n00b
n00b


Joined: 18 Jun 2017
Posts: 40

PostPosted: Thu Dec 27, 2018 7:21 pm    Post subject: Reply with quote

wow tearing is gone now! always had the "two triangles" split when blitting on the intel from nvidia

my old laptop has optimus but I'm on intel only because latest vidia drivers doesnt support my card and old drivers dont work with my kernel, so now I'm setuping gentoo on my new laptop with intel only.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54391
Location: 56N 3W

PostPosted: Thu Dec 27, 2018 7:25 pm    Post subject: Reply with quote

skarab,

Are you really using Optimus?

With Optimus, both the nVidia and Intel GPUs can render the screen into the pixel buffer but only the Intel GPU can refresh the display.
nVidia alone always results in a black screen as it has no way to transfer the pixel buffer to the display surface.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
skarab
n00b
n00b


Joined: 18 Jun 2017
Posts: 40

PostPosted: Thu Dec 27, 2018 7:26 pm    Post subject: Reply with quote

Yes I used it some years before all broke cause of nividia.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 7:31 pm    Post subject: Reply with quote

NeddySeagoon wrote:

nVidia alone always results in a black screen as it has no way to transfer the pixel buffer to the display surface.


Maybe I need to setup intel as well in my xorg.conf.d? (Did not do so last time though)
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
skarab
n00b
n00b


Joined: 18 Jun 2017
Posts: 40

PostPosted: Thu Dec 27, 2018 7:37 pm    Post subject: Reply with quote

dont know, first you could try to portage.mask all latest nivia drivers when you find one which is working (loading)...
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 7:51 pm    Post subject: Reply with quote

skarab wrote:
dont know, first you could try to portage.mask all latest nivia drivers when you find one which is working (loading)...


I tried
Code:
emerge -1av =nvidia-drivers-410*
modprobe --first-time nvidia


But got an error on modprobe.

Besides, I was definetely using 415 last time so it is not a driver version issue.
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54391
Location: 56N 3W

PostPosted: Thu Dec 27, 2018 7:54 pm    Post subject: Reply with quote

reikdas,

Does dmesg still show missing symbols?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Thu Dec 27, 2018 8:03 pm    Post subject: Reply with quote

NeddySeagoon wrote:
reikdas,

Does dmesg still show missing symbols?


Yes :(
_________________
[19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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