ubuntuusers.de

Grub_GFXMODE

Status: Gelöst | Ubuntu-Version: Ubuntu 12.10 (Quantal Quetzal)
Antworten |

megspunky

Anmeldungsdatum:
18. Juni 2009

Beiträge: 247

Wohnort: Kaufbeuren

Hallo,

bekomme immer eine Fehlermeldung wenn ich im Grub-Menü "Ubuntu" auswähle. Bitte siehe Bild im Anhang:

/etc/default/grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=30
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

xrandr

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920
DFP1 disconnected (normal left inverted right x axis y axis)
DFP2 disconnected (normal left inverted right x axis y axis)
DFP3 disconnected (normal left inverted right x axis y axis)
DFP4 disconnected (normal left inverted right x axis y axis)
DFP5 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 160mm x 90mm
   1920x1080      60.0*+   50.0     59.9     30.0     25.0     30.0     25.0     24.0     30.0     30.0     24.0  
   1600x1200      60.0  
   1776x1000      50.0     59.9     25.0     25.0     24.0     30.0     30.0  
   1680x1050      50.0     60.0     25.0     30.0     24.0  
   1400x1050      60.0     50.0     25.0     30.0     24.0  
   1600x900       60.0     50.0     25.0     30.0     24.0  
   1280x1024      50.0     75.0     60.0     25.0     30.0     24.0  
   1440x900       50.0     75.0     59.9     25.0     30.0     24.0  
   1280x960       50.0     60.0     25.0     30.0     24.0  
   1360x768       50.0     60.0     25.0     30.0     24.0  
   1280x800       50.0     59.8     25.0     30.0     24.0  
   1152x864       50.0     59.9     75.0     25.0     30.0     24.0  
   1280x768       50.0     59.8     25.0     30.0     24.0  
   1280x720       60.0     50.0     25.0     59.9     30.0     24.0  
   1024x768       50.0     75.0     70.1     25.0     30.0     24.0     60.0  
   1152x648       50.0     59.9  
   800x600        50.0     25.0     30.0     24.0     72.2     75.0     60.3  
   720x480        50.0     25.0     30.0     24.0     60.0     59.9  
   640x480        50.0     25.0     30.0     24.0     75.0     72.8     67.0     59.9  
DFP6 disconnected (normal left inverted right x axis y axis)
DFP7 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080      60.0*+
   1680x1050      60.0  
   1400x1050      60.0  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       60.0  
   1280x960       75.0     60.0  
   1152x864       60.0     75.0  
   1280x768       75.0     60.0  
   1280x720       75.0     60.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  
CRT1 disconnected (normal left inverted right x axis y axis)
Bilder

syscon-hh

Anmeldungsdatum:
8. Oktober 2005

Beiträge: 10220

Hallo megspunky,

dann kommentiere mal in der /etc/default/grub vorübergehend Deine Einstellung aus:

 # GRUB_GFXMODE=640x480

und setze die Grub-Datei neu mit

sudo update-grub 

und starte dann mal mit dieser "Nichteinstellung" neu.

Ansonsten zur Ermittlung der korrekten Auflösung im Grubmenü mit C in die Konsole wechseln und dort mit

  • videoinfo

mögliche Ausflösungen abfragen.

gruß syscon-hh

megspunky

(Themenstarter)

Anmeldungsdatum:
18. Juni 2009

Beiträge: 247

Wohnort: Kaufbeuren

Funktioniert nicht.

Videoinfo:

List of supported video modes:
Legend: mask/position=red/green/blue/reserved

/etc/default/grub

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=30
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

bowman

Avatar von bowman

Anmeldungsdatum:
17. Februar 2010

Beiträge: 7506

Versuch es mal mit hwinfo installieren und so die Abfrage der zulässigen Modi siehe GRUB 2/Aussehen (Abschnitt „Aufloesung“)

sudo apt-get install hwinfo  #installiert hwinfo
sudo hwinfo --framebuffer    #frag die zulässigen Auflösungen ab

Könnte auch sein, dass du auch noch eine weitere Zeile brauchst:

GRUB_GFXMODE=640x480
GRUB_GFXPAYLOAD_LINUX=640x480_8

die Auflösung ist entsprechend der Ausgabe mit o.g. Abfrage zu ersetzen.

megspunky

(Themenstarter)

Anmeldungsdatum:
18. Juni 2009

Beiträge: 247

Wohnort: Kaufbeuren

Sorry für die lange Abwesenheit, hatte sehr wenig Zeit:

Hier die Info von HWINFO --FRAMEBUFFER:

02: None 00.0: 11001 VESA Framebuffer                           
  [Created at bios.464]
  Unique ID: rdCR.__JPPfy8BK3
  Hardware Class: framebuffer
  Model: "(C) 1988-2010, AMD Technologies Inc.  BARTS"
  Vendor: "(C) 1988-2010, AMD Technologies Inc. "
  Device: "BARTS"
  SubVendor: "AMD ATOMBIOS"
  SubDevice: 
  Revision: "01.00"
  Memory Size: 16 MB
  Memory Range: 0xd0000000-0xd0ffffff (rw)
  Mode 0x0300: 640x400 (+640), 8 bits
  Mode 0x0301: 640x480 (+640), 8 bits
  Mode 0x0303: 800x600 (+832), 8 bits
  Mode 0x0305: 1024x768 (+1024), 8 bits
  Mode 0x0307: 1280x1024 (+1280), 8 bits
  Mode 0x0310: 640x480 (+1280), 15 bits
  Mode 0x0311: 640x480 (+1280), 16 bits
  Mode 0x0313: 800x600 (+1600), 15 bits
  Mode 0x0314: 800x600 (+1600), 16 bits
  Mode 0x0316: 1024x768 (+2048), 15 bits
  Mode 0x0317: 1024x768 (+2048), 16 bits
  Mode 0x0319: 1280x1024 (+2560), 15 bits
  Mode 0x031a: 1280x1024 (+2560), 16 bits
  Mode 0x030d: 320x200 (+640), 15 bits
  Mode 0x030e: 320x200 (+640), 16 bits
  Mode 0x0320: 320x200 (+1280), 24 bits
  Mode 0x0393: 320x240 (+320), 8 bits
  Mode 0x0395: 320x240 (+640), 16 bits
  Mode 0x0396: 320x240 (+1280), 24 bits
  Mode 0x03b3: 512x384 (+512), 8 bits
  Mode 0x03b5: 512x384 (+1024), 16 bits
  Mode 0x03b6: 512x384 (+2048), 24 bits
  Mode 0x03c3: 640x350 (+640), 8 bits
  Mode 0x03c5: 640x350 (+1280), 16 bits
  Mode 0x03c6: 640x350 (+2560), 24 bits
  Mode 0x0333: 720x400 (+768), 8 bits
  Mode 0x0335: 720x400 (+1472), 16 bits
  Mode 0x0336: 720x400 (+2944), 24 bits
  Mode 0x0353: 1152x864 (+1152), 8 bits
  Mode 0x0355: 1152x864 (+2304), 16 bits
  Mode 0x0356: 1152x864 (+4608), 24 bits
  Mode 0x0363: 1280x960 (+1280), 8 bits
  Mode 0x0365: 1280x960 (+2560), 16 bits
  Mode 0x0366: 1280x960 (+5120), 24 bits
  Mode 0x0321: 640x480 (+2560), 24 bits
  Mode 0x0322: 800x600 (+3200), 24 bits
  Mode 0x0323: 1024x768 (+4096), 24 bits
  Mode 0x0324: 1280x1024 (+5120), 24 bits
  Mode 0x0343: 1400x1050 (+1408), 8 bits
  Mode 0x0345: 1400x1050 (+2816), 16 bits
  Mode 0x0346: 1400x1050 (+5632), 24 bits
  Config Status: cfg=new, avail=yes, need=no, active=unknown

mir ist noch eingefallen, das ja Grub im EFI-Modus startet, da ist ja auch ne andere Auflösung als im Bios-Modus. Der EFI-Modus egal ob Grub oder Windows starten ja in einer kleineren Box oder wie man das nennen mag.

syscon-hh

Anmeldungsdatum:
8. Oktober 2005

Beiträge: 10220

megspunky schrieb:

mir ist noch eingefallen, das ja Grub im EFI-Modus startet, ...

Einfach toll, dass man die entscheidenden Hinweise immer erst dann bekommt, wenn man sich intensiv um das Problem gekümmert hat und einfach zu keinem Ergebnis kommt!!

... da ist ja auch ne andere Auflösung als im Bios-Modus. Der EFI-Modus egal ob Grub oder Windows starten ja in einer kleineren Box oder wie man das nennen mag.

Das hat mit dem Problem gar nichts zu tun - was Du ansprichst, ist das (U)EFI-Menü. Nach der Auswahl dort geht es unter den ..buntu's ganz normal weiter (normalerweise mit dem Grub-Menü).

bowman

Avatar von bowman

Anmeldungsdatum:
17. Februar 2010

Beiträge: 7506

Versuch doch mal folgenden Eintrag

GRUB_GFXMODE=1024x768

Schau mal was passiert und poste dann mal, was dann in deiner /boot/grub/grub.cfg drin steht.

megspunky

(Themenstarter)

Anmeldungsdatum:
18. Juni 2009

Beiträge: 247

Wohnort: Kaufbeuren

Die neue Auflösung hat er angenommen, aber meckert noch "command "GFXMODE"" not found

grub.cfg

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#
# 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="0"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  96c09f27-0d58-4d69-8745-ae4d7e09fef8
else
  search --no-floppy --fs-uuid --set=root 96c09f27-0d58-4d69-8745-ae4d7e09fef8
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=30
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/blue
set menu_color_highlight=blue/white
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/09_custom25 ###


menuentry "Microsoft Windows 8 Pro (x64)" {

	search --fs-uuid --no-floppy --set=root FA96-2244
	chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi.bkp
}

menuentry 'Ubuntu 12.10 (x64)' {

	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root 96c09f27-0d58-4d69-8745-ae4d7e09fef8
	linux	/boot/vmlinuz-3.5.0-18-generic root=UUID=96c09f27-0d58-4d69-8745-ae4d7e09fef8 ro   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.5.0-18-generic
}

### END /etc/grub.d/09_custom25 ###

bowman

Avatar von bowman

Anmeldungsdatum:
17. Februar 2010

Beiträge: 7506

Könnte das damit zusammenhängen? Warum hast du da das # weg gemacht? Hattest du dafür einen bestimmten Grund?

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

Kommentiere das mal in der /etc/default/grub aus und dann schaun wir mal, was passiert.

megspunky

(Themenstarter)

Anmeldungsdatum:
18. Juni 2009

Beiträge: 247

Wohnort: Kaufbeuren

Hab das mit der UUID deaktiviert. Problem besteht weiterhin.

1. Kann es sein dass der propritäre Grafikkartentreiber damit was zu tun hat?
2. Ich habe einmal Bootrepair verwendet, um Windows 8 (EFI Modus) in das Menü zu bekommen.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=30
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=640x480
#GRUB_GFXPAYLOAD_LINUX=640x480_8

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

syscon-hh

Anmeldungsdatum:
8. Oktober 2005

Beiträge: 10220

Das Problem liegt in Deinem Skript 09_custom25, dass Du für Ubuntu angelegt hast!!

Die Zeile lfd. # 107 mit

	gfxmode $linux_gfx_mode

verweist auf eine nicht vorhandene Variable/Funktion. Du hast beim Übertragen die Funktion:

function gfxmode {
   .... was auch immer
}

einfach weg rationalisiert.

megspunky

(Themenstarter)

Anmeldungsdatum:
18. Juni 2009

Beiträge: 247

Wohnort: Kaufbeuren

ok, habe 09_custom25 um folgenden Eintrag ergänzt, den ich von 10_linux rauskopiert habe:

1
2
3
4
5
6
7
8
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}

Fehlermeldung jetzt weg.

Aber: #GRUB_TERMINAL=console
funktioniert immer noch nicht.

Antworten |