Advertisement
alexanius

grub nvidia black screen

Jan 29th, 2017
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. #
  2. # DO NOT EDIT THIS FILE
  3. #
  4. # It is automatically generated by grub-mkconfig using templates
  5. # from /etc/grub.d and settings from /etc/default/grub
  6. #
  7.  
  8. ### BEGIN /etc/grub.d/00_header ###
  9. if [ -s $prefix/grubenv ]; then
  10. load_env
  11. fi
  12. if [ "${next_entry}" ] ; then
  13. set default="${next_entry}"
  14. set next_entry=
  15. save_env next_entry
  16. set boot_once=true
  17. else
  18. set default="0"
  19. fi
  20.  
  21. if [ x"${feature_menuentry_id}" = xy ]; then
  22. menuentry_id_option="--id"
  23. else
  24. menuentry_id_option=""
  25. fi
  26.  
  27. export menuentry_id_option
  28.  
  29. if [ "${prev_saved_entry}" ]; then
  30. set saved_entry="${prev_saved_entry}"
  31. save_env saved_entry
  32. set prev_saved_entry=
  33. save_env prev_saved_entry
  34. set boot_once=true
  35. fi
  36.  
  37. function savedefault {
  38. if [ -z "${boot_once}" ]; then
  39. saved_entry="${chosen}"
  40. save_env saved_entry
  41. fi
  42. }
  43.  
  44. function load_video {
  45. if [ x$feature_all_video_module = xy ]; then
  46. insmod all_video
  47. else
  48. insmod efi_gop
  49. insmod efi_uga
  50. insmod ieee1275_fb
  51. insmod vbe
  52. insmod vga
  53. insmod video_bochs
  54. insmod video_cirrus
  55. fi
  56. }
  57.  
  58. if loadfont unicode ; then
  59. set gfxmode=1920x1080
  60. load_video
  61. insmod gfxterm
  62. set locale_dir=$prefix/locale
  63. set lang=ru_RU
  64. insmod gettext
  65. fi
  66. terminal_output gfxterm
  67. if [ x$feature_timeout_style = xy ] ; then
  68. set timeout_style=menu
  69. set timeout=5
  70. # Fallback normal timeout code in case the timeout_style feature is
  71. # unavailable.
  72. else
  73. set timeout=5
  74. fi
  75. ### END /etc/grub.d/00_header ###
  76.  
  77. ### BEGIN /etc/grub.d/10_linux ###
  78.  
  79. ### END /etc/grub.d/10_linux ###
  80.  
  81. ### BEGIN /etc/grub.d/20_linux_xen ###
  82. ### END /etc/grub.d/20_linux_xen ###
  83.  
  84. ### BEGIN /etc/grub.d/30_os-prober ###
  85. ### END /etc/grub.d/30_os-prober ###
  86.  
  87. ### BEGIN /etc/grub.d/40_custom ###
  88. # This file provides an easy way to add custom menu entries. Simply type the
  89. # menu entries you want to add after this comment. Be careful not to change
  90. # the 'exec tail' line above.
  91.  
  92. menuentry "Gentoo-4.9.5" {
  93. set root=(hd0,2)
  94. linux (hd0,1)/gentoo-4.9.6 root=/dev/mapper/root crypt_root=/dev/sda2 net.ifnames=0 nvidia_drm modeset=1
  95. initrd (hd0,1)/initramfs-4.9.6
  96. }
  97.  
  98. menuentry "Gentoo-4.9.5" {
  99. set root=(hd0,2)
  100. linux (hd0,1)/gentoo-4.9.5 root=/dev/mapper/root crypt_root=/dev/sda2 net.ifnames=0 nvidia_drm modeset=1
  101. initrd (hd0,1)/initramfs-4.9.5
  102. }
  103.  
  104. ### END /etc/grub.d/40_custom ###
  105.  
  106. ### BEGIN /etc/grub.d/41_custom ###
  107. if [ -f ${config_directory}/custom.cfg ]; then
  108. source ${config_directory}/custom.cfg
  109. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  110. source $prefix/custom.cfg;
  111. fi
  112. ### END /etc/grub.d/41_custom ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement