{"id":507,"date":"2017-07-29T13:12:36","date_gmt":"2017-07-29T12:12:36","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=507"},"modified":"2017-07-23T19:51:32","modified_gmt":"2017-07-23T18:51:32","slug":"fixing-black-screen-nvidia-graphics-card-fedora","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/507\/fixing-black-screen-nvidia-graphics-card-fedora\/","title":{"rendered":"Fixing black screen with Nvidia graphics card on fedora"},"content":{"rendered":"<p>On my fedora system I found that after upgrading the kernel\u00a0the graphics drivers wouldnt work. My machine would boot into the operating\u00a0system perfectly fine but would have no image on the screen. This post describes how I fixed this issue.<\/p>\n<p><!--more--><\/p>\n<h2>The symptoms of the black screen on Fedora<\/h2>\n<p>Initially I installed fedora and the graphics worked fine. Later I then upgraded the operating system which upgraded the kernel. Then after selecting the kernel on the bootloader it would fail to display any graphics.<\/p>\n<p>I knew that the operating system was working because I was able to both ping and ssh into the machine using:<\/p>\n<pre>ping -t deathstar\r\nssh deathstar<\/pre>\n<p>Both ping and SSH would give me confirmation that the machine was online and working. I found that by booting into the old kernel the graphics would load. I performed this by selecting the older kernel in the bootloader.<\/p>\n<p>However since I didnt want to just stay on an old kernel version I wanted to find a solution<\/p>\n<h2>Fixing the black screen issue<\/h2>\n<p>To fix it I found I needed to install the Nvidia drivers. To do this I was able to use SSH but if this isn&#8217;t accessible you can enter recovery text only mode. The Nvidia drivers are available in the RPM Fusion repositories. To install RPM Fusion repo&#8217;s I ran:<\/p>\n<pre>sudo dnf install http:\/\/download1.rpmfusion.org\/free\/fedora\/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm\r\nsudo dnf install http:\/\/download1.rpmfusion.org\/nonfree\/fedora\/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm<\/pre>\n<p>These two commands install the free and non free repositories for RPM fusion. We use `rpm -E %fedora` to get the current version of Fedora. This ensures that I always install the right version of the repository for the Fedora release. Now that I have installed the repositories I can install the drivers by running the following command<\/p>\n<pre>dnf install akmod-nvidia \"kernel-devel-uname-r == $(uname -r)\"\r\ndnf update<\/pre>\n<p>The first command installs the required driver and sets it up to be used.\u00a0Once this has been done I then run dnf update to update Fedora so\u00a0it has all the latest kernel and graphics drivers.<\/p>\n<p>Now I have configured my system to run the Nvidea drivers I then restart\u00a0the machine to reload the settings.<\/p>\n<p>Once restarted the Nvidea graphics drivers were able to show the screen again. This information was taken from an old <a href=\"http:\/\/forums.fedoraforum.org\/showpost.php?s=ca574bdf730f0d784c5b04bf1714f7e5&amp;p=1749628&amp;postcount=15\">Fedora Forum<\/a> post I used to resolve my problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On my fedora system I found that after upgrading the kernel\u00a0the graphics drivers wouldnt work. My machine would boot into the operating\u00a0system perfectly fine but would have no image on the screen. This post describes how I fixed this issue.<\/p>\n","protected":false},"author":1,"featured_media":510,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[41,146,50],"class_list":["post-507","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fixes","tag-fedora","tag-graphics-card","tag-nvidia"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/black_screen_fedora_nvidia.jpg?fit=800%2C800&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-8b","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":122,"url":"https:\/\/chewett.co.uk\/blog\/122\/using-nvidia-optimus-on-fedora\/","url_meta":{"origin":507,"position":0},"title":"Using Nvidia Optimus on Fedora","author":"Chewett","date":"March 6, 2013","format":false,"excerpt":"If your computer is recent and has an i3\/i5\/i7 intel core and a Nvidia graphics card it likely uses Optimus technology. This smart piece of software turns off the power-hungry Nvidia graphics card and runs most programs on the integrated intel graphics chip. In laptops this can save a lot\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":484,"url":"https:\/\/chewett.co.uk\/blog\/484\/virtualbox-guest-additions-fedora\/","url_meta":{"origin":507,"position":1},"title":"Virtualbox Guest additions on Fedora","author":"Chewett","date":"July 26, 2017","format":false,"excerpt":"This post describes how to install virtualbox guest additions on a Fedora virtual machine. Virtualbox guest additions adds a couple of features to running Fedora on virtualbox. Some of the useful features are shared folders, mouse pointer support, shared clipboard and better video driver support. The primary reason I install\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/fedora_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/fedora_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/fedora_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/fedora_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":800,"url":"https:\/\/chewett.co.uk\/blog\/800\/exclude-fedora-packages-updating-dnf-yum\/","url_meta":{"origin":507,"position":2},"title":"Exclude Fedora packages from updating with dnf or yum","author":"Chewett","date":"October 28, 2017","format":false,"excerpt":"This post describes how to exclude specific packages from being updated with Fedora and dnf or yum How to exclude packages from updating To exclude a package\u00a0or set of packages you can use the command line flag --exclude\u00a0with dnf or yum. All command snippets will include the command for running\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":869,"url":"https:\/\/chewett.co.uk\/blog\/869\/disable-selinux-fedora-26\/","url_meta":{"origin":507,"position":3},"title":"How to Disable SELinux on Fedora 26","author":"Chewett","date":"November 25, 2017","format":false,"excerpt":"This post describes what SELinux is and how you can disable it on Fedora 26 if you need to. What is SELinux? SELinux stands for Security Enhanced Linux and it is an additional layer of security on your computer. At a basic level, it runs in the kernel and acts\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/11\/disable_selinux_fedora_26.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/11\/disable_selinux_fedora_26.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/11\/disable_selinux_fedora_26.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/11\/disable_selinux_fedora_26.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":194,"url":"https:\/\/chewett.co.uk\/blog\/194\/mysql-workbench-working-with-key-based-exchange-mechanisms\/","url_meta":{"origin":507,"position":4},"title":"Mysql workbench working with key based exchange mechanisms","author":"Chewett","date":"June 3, 2015","format":false,"excerpt":"It appears newer linux sshd configs\u00a0(fedora 22) by default include a smaller set of key exchange based mechanisms that they have turned on. This means that it gives errors saying it is unable to connect to the server. To fix this you need to enable some of the older key\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1226,"url":"https:\/\/chewett.co.uk\/blog\/1226\/changing-boot-order-with-grub-on-fedora\/","url_meta":{"origin":507,"position":5},"title":"Changing boot order with GRUB on Fedora","author":"Chewett","date":"June 6, 2018","format":false,"excerpt":"In this post I talk about how you can change the default selected OS and reorder the boot list in GRUB for Fedora. The Default GRUB ordering By default when the GRUB bootloader is installed it will search for all installed operating systems. Their default ordering is based on the\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/06\/altering_boot_order_grub_fedora.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/06\/altering_boot_order_grub_fedora.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/06\/altering_boot_order_grub_fedora.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/06\/altering_boot_order_grub_fedora.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=507"}],"version-history":[{"count":2,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/507\/revisions"}],"predecessor-version":[{"id":509,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/507\/revisions\/509"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/510"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}