LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-24-2018, 06:11 AM   #1
reddriver
LQ Newbie
 
Registered: Dec 2018
Posts: 6

Rep: Reputation: Disabled
Black screen after install custom kernel


I'm trying install kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/ on my notebook HP 455 with dedicated radeon graphics. I have successfully installed a newer kernel. But I got black screen after boot logo ubuntu. I have to press any key several times (15x?) and then desktop shows. I tried Ubuntu 18.04, 18.10, Xubuntu, Mint 19 with same result. Ubuntu 18.10 have native kernel 4.18 and It's work well. But kernel 4.18 in 18.04 doesn't work, same result with 4.16, 4.17, 4.19 and 4.20 RC. I also tried build kernel from source kernel.org and install using ukuu, black screen too. Could you please help me? Which log you need for investigation? Thank you.

Last edited by reddriver; 12-24-2018 at 01:35 PM.
 
Old 12-24-2018, 01:45 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,141

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Wow. The blank screen seems to have affected your post as well.

Maybe you should add some details, such as what distro, how you configured the kernel, what command line parameters you gave, and how you installed the new kernel.
 
1 members found this post helpful.
Old 12-24-2018, 02:01 PM   #3
reddriver
LQ Newbie
 
Registered: Dec 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
My post disappeared as well, thanks.

I am trying install kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline on my notebook HP 455 with dedicated radeon graphics. I have successfully installed a newer kernel. But I got black screen after boot logo ubuntu. I have to press any key several times (15x?) and then desktop shows. I tried Ubuntu 18.04, 18.10, Xubuntu, Mint 19 with same result. Ubuntu 18.10 have native kernel 4.18 and It's work well. But kernel 4.18 in 18.04 doesn't work, same result with 4.16, 4.17, 4.19 and 4.20 RC. I also tried build kernel from source kernel.org, black screen too. Could you please help me? Which log you need for investigation? Thank you

I didn't change settings to build kernel, I used precompiled, I used these commands:
sudo dpkg -i linux-headers-4.19.11-041911_4.19.11-041911.201812191931_all.deb
sudo dpkg -i linux-headers-4.19.11-041911-generic_4.19.11-041911.201812191931_amd64.deb
sudo dpkg -i linux-image-unsigned-4.19.11-041911-generic_4.19.11-041911.201812191931_amd64.deb
sudo dpkg -i linux-modules-4.19.11-041911-generic_4.19.11-041911.201812191931_amd64.deb

or

sudo ukuu --install-latest

Behavior is same on fresh install distros.

Now I have Mint 19 with
uname -r
4.20.0-042000-generic

Last edited by reddriver; 12-24-2018 at 03:19 PM.
 
Old 12-26-2018, 06:31 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,141

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Can you check for lines starting with "EE" in /var/log/Xorg.0.log?
 
Old 12-27-2018, 02:36 AM   #5
reddriver
LQ Newbie
 
Registered: Dec 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
I didn't find line starting with "EE" (error line) in /var/log/Xorg.0.log -> https://pastebin.com/tf5kDexa

But in /var/log/Xorg.1.log -> https://pastebin.com/rkfXsbF9

[ 3207.085] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 3207.085] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 3207.085] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 3207.085] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
[ 3207.090] (--) PCI:*(0:0:1:0) 1002:990b:103c:1952 rev 0, Mem @ 0xb0000000/268435456, 0xd6100000/262144, I/O @ 0x00006000/256, BIOS @ 0x????????/131072
[ 3207.090] (--) PCI: (0:1:0:0) 1002:6600:103c:1952 rev 0, Mem @ 0xc0000000/268435456, 0xd6000000/262144, I/O @ 0x00005000/256, BIOS @ 0x????????/131072

Next:

[ 3208.157] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 3208.157] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 3208.158] (II) config/udev: Adding input device HDA ATI HDMI HDMI/DP,pcm=3 (/dev/input/event8)

Thank you for your time. Permissions are missing?

Last edited by reddriver; 12-27-2018 at 02:45 AM.
 
Old 12-27-2018, 04:06 PM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,141

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
It loads OK with your old kernel, so I don't think it's permissions. I suspect some driver incompatibility. Do you have an Xorg.conf file? If so, try:

Code:
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.sav
Xorg seems to not like people telling it what to do.
 
Old 12-27-2018, 04:39 PM   #7
reddriver
LQ Newbie
 
Registered: Dec 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
It will only make backup, won't it? Or something will change? I am not at the computer. I appreciate your advice.
 
Old 12-28-2018, 09:03 AM   #8
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,141

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Starting X with no conf let's it pick the values it prefers. You can move it back if it fails.

If you don't have a conf file you can try generating one and disable dri, but here there be dragons.

Note: to do this you should know how to start in text-only mode or have a bootable live image on USB in order to set things back. If you have trouble, ask for help.

Last edited by smallpond; 12-28-2018 at 09:08 AM.
 
Old 12-28-2018, 09:18 AM   #9
reddriver
LQ Newbie
 
Registered: Dec 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
I don't have xorg.conf at the path. I tried generate one, but it failed https://pastebin.com/PedwP98g.

Generated xorg.conf.new in home directory https://pastebin.com/s5yVCzyn

Xorg.1.log https://pastebin.com/AfsfhdWJ

I copied xorg.conf.new as xorg.conf to /etc/X11/ directory (without editing), nothing changed.

I don't understand what do you mean with ,,disable dri, but here there be dragons", my english is terrible. What is dri?

Last edited by reddriver; 12-28-2018 at 09:35 AM.
 
Old 12-30-2018, 09:32 AM   #10
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,141

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
I'm not sure what else to try so I will pass on this link on the drivers available and how DRI is enabled.
https://linuxconfig.org/how-to-insta...c-beaver-linux
 
Old 01-07-2019, 05:46 AM   #11
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Well, this issue is obviously with Xorg and not the Kernel, so why not try to solve it like an Xorg issue?

1. Boot with no-xorg/graphical interface or single user mode (if needed, ubuntu??) (runlevel 2,3,4??)
2. Try something simple like an xorg configuration software (if available in your distro)
3. If network, try to install free ati driver from packages.x respository, if NO-Network, try to install free ati driver from CD/USB/LOCALREPOSITORY
4. Uninstall proprietary driver
5. Reboot and test with free driver
6. If needed, reinstall the proprietary driver

So, to conclude. You MUST install the proprietary driver TO the running Kernel, in most cases. In most cases they are not portable at all. Thus the uninstall/reinstall part.

Last edited by zeebra; 01-07-2019 at 05:49 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Acer A0A 110 has a black screen during boot up along with a black cursor sw3etpinay Linux - Newbie 23 12-29-2010 11:05 AM
[SOLVED] Custom kernel compilation results in black screen when booting Allamgir Slackware 10 08-25-2009 03:19 AM
Screen goes to "grub>" black screen after trying to merge 2 drives Planet-Zhar Linux - General 4 06-20-2007 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration