PDA

View Full Version : [mini howto] Quale risoluzione per il fb in console?


klaudyo
14-06-2004, 11:58
Ciao,
è da quando ho comprato il portatile (un anno fa) che cerco di andare alla risoluzione "nativa" del mio monitor in console: 1600x1200 :eek:

Purtroppo con i valori standard del VESA (che trovate nel file /usr/src/linux/Documentation/fb/vesafb.txt) non sono mai riuscito nell'impresa. Oggi ce l'ho fatta, e vorrei dirvi come.

1) Scaricate questo programmino DOS: http://www.klaudyo.it/store/lfb.exe
2) Andate sotto DOS ed eseguitelo, otterrete un output del tipo:

Version : 3.00
OEM Name : NVidia
memory : 33554432
PM calls : at c000:e720, len 02bd
win : 0008
start: 0045
pal : 00ca
08 00 45 00 ca 00 8f 02 60 e8 12 01 00 00 32 ff
8a da 66 d1 e3 66 50 66 ba d4 03 66 b8 1f 57 66
ef 66 58 66 ba d4 03 8a e3 b0 1d 66 ef b0 1e 66
ef b0 29 8a e7 0a e4 74 03 80 cc 03 66 ef e8 ff
00 00 00 61 c3 60 e8 d5 00 00 00 66 50 66 52 66
ba d4 03 66 b8 1f 57 66 ef 66 5a 66 58 66 8b da
66 ba d4 03 b0 0c 8a e5 66 ef b0 0d 8a e1 66 ef
52 66 ba da 03 ec b2 ba ec 66 ba c0 03 b0 33 ee
66 8b c3 66 25 00 c0 66 c1 e8 0d ee 5a b0 19 ee
66 42 8a fb ec 80 e3 1f 24 e0 0a c3 ee 66 4a b0
2d ee 66 42 ec 80 e7 e0 24 1f 0a c7 ee 0f ba 64
24 10 07 73 0e 66 ba da 03 ec a8 08 75 fb ec a8
08 74 fb e8 7a 00 00 00 61 c3 60 e8 50 00 00 00
1e f6 c3 80 74 10 52 66 ba da 03 ec a8 08 75 fb
ec a8 08 74 fb 5a 66 52 66 50 66 ba d4 03 66 b8
1f 57 66 ef 66 58 66 5a fc 06 1f 8b f7 0f b7 c9
8a c2 66 ba c8 03 ee 66 42 ad c1 c8 10 ee c1 c0
08 ee c1 c0 08 ee e2 f1 1f e8 24 00 00 00 61 c3
66 50 e8 76 00 00 00 e8 f3 00 00 00 24 7f 34 01
e8 2f 00 00 00 e8 e5 00 00 00 e8 25 00 00 00 66
58 c3 66 50 e8 54 00 00 00 24 7f 34 01 e8 12 00
00 00 e8 03 01 00 00 e8 08 00 00 00 e8 f9 00 00
00 66 58 c3 66 52 66 53 66 8b d8 e8 38 00 00 00
66 50 b4 03 80 fb 01 74 09 b4 04 80 fb 80 74 02
32 e4 e8 35 00 00 00 66 58 32 c0 0a e4 74 09 b0
01 80 fc 03 7e 02 b0 80 66 5b 66 5a c3 66 52 66
53 e8 02 00 00 00 eb e1 b0 44 e8 2b 00 00 00 66
50 b0 2e 66 ef 66 ef 66 ed 66 58 c3 b0 44 66 50
e8 25 00 00 00 e8 20 00 00 00 e8 2b 00 00 00 b0
2e 66 ef 66 ef 66 ed 66 58 c3 e8 1b 00 00 00 8a
e0 ee 66 42 ec 66 4a 86 c4 c3 e8 0b 00 00 00 ee
66 42 86 c4 ee 86 c4 66 4a c3 66 50 66 ba cc 03
ec 66 ba b4 03 a8 01 74 02 b2 d4 66 58 c3 e8 e7
ff ff ff ee 66 ed c3 e8 de ff ff ff 66 ef c3 66
50 66 52 e8 d2 ff ff ff ec 66 50 66 53 b0 1f e8
da ff ff ff 80 e4 01 8a fc b0 2c e8 ce ff ff ff
80 e4 fe 0a e7 66 ef 66 5b 66 b8 1f 57 e8 c5 ff
ff ff 66 58 ee 66 5a 66 58 c3 66 50 66 52 e8 97
ff ff ff ec 66 50 b0 2c e8 a1 ff ff ff f6 c4 01
75 09 66 b8 1f 99 e8 9c ff ff ff b0 2c e8 8c ff
ff ff 80 e4 fe 66 ef 66 58 ee 66 5a 66 58 c3 b4
03 b5 03 ba 03 c0 03 c1 03 c4 03 c5 03 c6 03 c7
03 c8 03 c9 03 cc 03 ce 03 cf 03 d0 03 d1 03 d2
03 d3 03 d4 03 d5 03 da 03 ff ff ff ff
100h: 640 x 400 x 8 0xdc000000, 14 pages
101h: 640 x 480 x 8 0xdc000000, 10 pages
102h: 800 x 600 x 4
103h: 800 x 600 x 8 0xdc000000, 6 pages
104h: 1024 x 768 x 4
105h: 1024 x 768 x 8 0xdc000000, 3 pages
106h: 1280 x 1024 x 4
107h: 1280 x 1024 x 8 0xdc000000, 1 pages
10eh: 320 x 200 x 16 0:5:6:5 0xdc000000, 30 pages
10fh: 320 x 200 x 32 8:8:8:8 0xdc000000, 14 pages
111h: 640 x 480 x 16 0:5:6:5 0xdc000000, 4 pages
112h: 640 x 480 x 32 8:8:8:8 0xdc000000, 1 pages
114h: 800 x 600 x 16 0:5:6:5 0xdc000000, 2 pages
115h: 800 x 600 x 32 8:8:8:8 0xdc000000, 1 pages
117h: 1024 x 768 x 16 0:5:6:5 0xdc000000, 1 pages
118h: 1024 x 768 x 32 8:8:8:8 0xdc000000, 1 pages
11ah: 1280 x 1024 x 16 0:5:6:5 0xdc000000, 1 pages
130h: 320 x 200 x 8 0xdc000000, 62 pages
131h: 320 x 400 x 8 0xdc000000, 30 pages
132h: 320 x 400 x 16 0:5:6:5 0xdc000000, 14 pages
133h: 320 x 400 x 32 8:8:8:8 0xdc000000, 6 pages
134h: 320 x 240 x 8 0xdc000000, 30 pages
135h: 320 x 240 x 16 0:5:6:5 0xdc000000, 19 pages
136h: 320 x 240 x 32 8:8:8:8 0xdc000000, 10 pages
13dh: 640 x 400 x 16 0:5:6:5 0xdc000000, 6 pages
13eh: 640 x 400 x 32 8:8:8:8 0xdc000000, 2 pages
145h: 1600 x 1200 x 8 0xdc000000, 1 pages
146h: 1600 x 1200 x 16 0:5:6:5 0xdc000000, 1 pages
147h: 1400 x 1050 x 8 0xdc000000, 1 pages
148h: 1400 x 1050 x 16 0:5:6:5 0xdc000000, 1 pages


3) cercate tra le varie righe la risoluzione che desiderate e annotatevi il valore esadecimale che compare alla sinistra della riga scelta (nel mio caso 146h).

4) sommate 0x200 con il valore trovato (0x200 + 0x146 = 0x346 nel mio caso)

5) riavviate il vostro sistema e passate al kernel l'opzione "vga=<vostro valore>" (nel mio caso vga=0x346)

6) divertitevi con la vostra rioluzione preferita!!

PS naturalmente poi dovrete modificare lilo.conf o grub.conf con tale valore.


Ciao!

NA01
14-06-2004, 12:33
il lilo.con della slack ha tutte le opzioni con le relative opzioni
forse non tutte, ma credo bastino ;)


# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section



cia

klaudyo
14-06-2004, 13:31
Si, queste sono scritti anche nella documentazione del kernel.

Il problema è che non per tutte le schede grafiche funzionano, anche se dovrebbereo.....

Il metodo che ho descritto dovrebbe aggirare il problema e consentire di utilizzare tutte le risoluzioni supportate dalla scheda.

Ciao!