Ceci & Tati

TV SAMSUNG 37″ 1360×768 и Notebook HP510 с видео Intel-810 – Linux

от на ное..24, 2007, категории Линукс

Доста търсих, но нищо смислено и подобно не можах да намеря написано на български. Затова реших да напиша тази статия за феновете на Linux. За пореден път искам да подчертая че Linux-а е една превъзходна и десктоп система.
Няма да обяснявам как се инсталира Linux и X сървър 🙂 , приемаме вече че сте го направили това и вашата графична среда работи.
Ясно е че такава разделителна способност като 1360х768 няма при лаптопите, но за целта се използва програмата 915Resolution – Intel Video BIOS Hack.

915resolution is a tool to modify the video BIOS of the 800 and 900 series Intel graphics chipsets. This includes the 830, 845G, 855G, and 865G chipsets, as well as 915G, 915GM, 945G, 946GZ, G965, and Q965 chipsets. This modification is neccessary to allow the display of certain graphics resolutions for an Xorg or XFree86 graphics server.

Нека видим какви разделителни способности подържа моята видео карта, преди да съм правил каквото и да е с 915resolution:

root@ilia-laptop:~# 915resolution -l
Intel 800/900 Series VBIOS Hack : version 0.5.3

Chipset: 915GM
BIOS: TYPE 1
Mode Table Offset: $C0000 + $269
Mode Table Entries: 36

Mode 30 : 640×480, 8 bits/pixel
Mode 32 : 800×600, 8 bits/pixel
Mode 34 : 1024×768, 8 bits/pixel
Mode 38 : 1280×1024, 8 bits/pixel
Mode 3a : 1600×1200, 8 bits/pixel
Mode 3c : 1920×1440, 8 bits/pixel
Mode 41 : 640×480, 16 bits/pixel
Mode 43 : 800×600, 16 bits/pixel
Mode 45 : 1024×768, 16 bits/pixel
Mode 49 : 1280×1024, 16 bits/pixel
Mode 4b : 1600×1200, 16 bits/pixel
Mode 4d : 1920×1440, 16 bits/pixel
Mode 50 : 640×480, 32 bits/pixel
Mode 52 : 800×600, 32 bits/pixel
Mode 54 : 1024×768, 32 bits/pixel
Mode 58 : 1280×1024, 32 bits/pixel
Mode 5a : 1600×1200, 32 bits/pixel
Mode 5c : 1920×1440, 32 bits/pixel


Както се вижда разделителните способности са 18. Без да чета реших да добавя още две три, да ама не, видео картата не ги прие, явно тя може да помни 18 и толкова по въпроса. Затова реших да променя две, тя ги прие от което останах доволен 🙂 . След това си помислих че „Mode 5х“ означава 32 бита, „Mode 4x“ 16 бита и „Mode 3x“ 8 бита, нищо подобно, няма значение, просто въпрос на стил и подреденост.

На мен компютъра ми е с разделителна „1280х780“, а телевизора 1360х768. Но както се вижда че моята видео карта по подразбиране не подържа нито една от двете разделителни способности 🙁 .

Сега нека добавим тези две разделителни способности 🙂 и да видим дали са добавени.

root@ilia-laptop:~#915resolution 5a 1280 800 32
root@ilia-laptop:~#915resolution 5c 1360 768 32
root@ilia-laptop:~#915resolution -l

Intel 800/900 Series VBIOS Hack : version 0.5.3

Chipset: 915GM
BIOS: TYPE 1
Mode Table Offset: $C0000 + $269
Mode Table Entries: 36

Mode 30 : 640×480, 8 bits/pixel
Mode 32 : 800×600, 8 bits/pixel
Mode 34 : 1024×768, 8 bits/pixel
Mode 38 : 1280×1024, 8 bits/pixel
Mode 3a : 1600×1200, 8 bits/pixel
Mode 3c : 1920×1440, 8 bits/pixel
Mode 41 : 640×480, 16 bits/pixel
Mode 43 : 800×600, 16 bits/pixel
Mode 45 : 1024×768, 16 bits/pixel
Mode 49 : 1280×1024, 16 bits/pixel
Mode 4b : 1600×1200, 16 bits/pixel
Mode 4d : 1920×1440, 16 bits/pixel
Mode 50 : 640×480, 32 bits/pixel
Mode 52 : 800×600, 32 bits/pixel
Mode 54 : 1024×768, 32 bits/pixel
Mode 58 : 1280×1024, 32 bits/pixel
Mode 5a : 1280×800, 32 bits/pixel
Mode 5c : 1360×768, 32 bits/pixel

Вече видео картата подържа необходимите разделителни способности, но тава не е всичко, трябва да се настрои X-сървъра, демек 🙂 да се редактира или създаде ако не съществува файла „/etc/X11/xorg.conf“. Аз този файл винаги предпочитам да си го редактирам ръчно.

root@ilia-laptop:/etc/X11# cat /etc/X11/xorg.conf
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#

Section „Files“
FontPath „/usr/share/fonts/X11/misc“
FontPath „/usr/share/fonts/X11/cyrillic“
FontPath „/usr/share/fonts/X11/100dpi/:unscaled“
FontPath „/usr/share/fonts/X11/75dpi/:unscaled“
FontPath „/usr/share/fonts/X11/Type1“
FontPath „/usr/share/fonts/X11/100dpi“
FontPath „/usr/share/fonts/X11/75dpi“
# path to defoma fonts
FontPath „/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType“
EndSection

Section „Module“
Load „i2c“
Load „bitmap“
Load „ddc“
Load „dri“
Load „extmod“
Load „freetype“
Load „glx“
Load „int10“
Load „vbe“
EndSection

Section „InputDevice“
Identifier „Generic Keyboard“
Driver „kbd“
Option „CoreKeyboard“
#Инсталирате „kkbswitch“ за да ви се визуализира на десктопа текущата клавиатурна подредба (bg или en).
option „XkbRules“ „xorg“
Option „XkbModel“ „pc105“
#С долния ред посочвате вашите видове клавиатурни подредби
Option „XkbLayout“ „us,bg“
#С долния ред посочвате типа БГ подредба в случая „phonetic“, разбира се че може и „bds“
Option „XkbVariant“ „,phonetic“
#С долния ред посочвате клавишната комбинация за смяна на различните видове клавиатурни подредби
Option „XkbOptions“ „grp:alt_shift_toggle“

EndSection

Section „InputDevice“
Identifier „Configured Mouse“
Driver „mouse“
Option „CorePointer“
Option „Device“ „/dev/input/mice“
Option „Protocol“ „ImPS/2“
Option „ZAxisMapping“ „4 5“
Option „Emulate3Buttons“ „true“
EndSection

Section „InputDevice“
Identifier „Synaptics Touchpad“
Driver „synaptics“
Option „SendCoreEvents“ „true“
Option „Device“ „/dev/psaux“
Option „Protocol“ „auto-dev“
Option „HorizScrollDelta“ „0“
EndSection

Section „InputDevice“
Driver „wacom“
Identifier „stylus“
Option „Device“ „/dev/input/wacom“
Option „Type“ „stylus“
Option „ForceDevice“ „ISDV4“ # Tablet PC ONLY
EndSection

Section „InputDevice“
Driver „wacom“
Identifier „eraser“
Option „Device“ „/dev/input/wacom“
Option „Type“ „eraser“
Option „ForceDevice“ „ISDV4“ # Tablet PC ONLY
EndSection

Section „InputDevice“
Driver „wacom“
Identifier „cursor“
Option „Device“ „/dev/input/wacom“
Option „Type“ „cursor“
Option „ForceDevice“ „ISDV4“ # Tablet PC ONLY
EndSection

##################
Section „Device“
Identifier „Intel-LCD“
Driver „i810“
BusID „PCI:0:2:0“
Option „MonitorLayout“ „CRT,LFP“
Screen 0
EndSection

Section „Monitor“
Identifier „LCD“
Option „DPMS“
EndSection

Section „Screen“
Identifier „LCD_Screen“
Device „Intel-LCD“
Monitor „LCD“
DefaultDepth 24
Subsection „Display“
Depth 16
Modes „1280×800“
EndSubsection
Subsection „Display“
Depth 24
Modes „1280×800“
EndSubsection
EndSection

Section „Device“
Identifier „Intel-External“
Driver „i810“
BusID „PCI:0:2:0“
Option „MonitorLayout“ „CRT,LFP“

#Без долните два реда забравете да гледате HD (Hi Definition)-филми и клипове 🙂
Option „VideoRam“ „65536“
Option „CacheLines“ „1980“

Screen 1
EndSection

Section „Monitor“
Identifier „External“
Option „DPMS“
HorizSync 30-69
VertRefresh 60-85
# Можете да комнтирате долния ред, но не нося отговорност ако ви се измести картината на телевизора 🙂 .
ModeLine „1360×768“ 85.5 1360 1424 1536 1792 768 771 777 795
EndSection

Section „Screen“
Identifier „External_Screen“
Device „Intel-External“
Monitor „External“
DefaultDepth 24
Subsection „Display“
Depth 16
Modes „1360×768“
EndSubsection
Subsection „Display“
Depth 24
Modes „1360×768“
EndSubsection
EndSection

# *********************
# ServerLayout sections.
# *********************

Section „ServerLayout“
Identifier „Auto_Configured_Layout“
Screen 0 „LCD_Screen“ 0 0
Screen 1 „External_Screen“ LeftOf „LCD_Screen“
InputDevice „Generic Keyboard“
InputDevice „Configured Mouse“
InputDevice „Synaptics Touchpad“
EndSection

Section „DRI“
Mode 0666
EndSection

Рестартирате X-сървъра и всичко би трябвало да заработи, поне при мен всичко е на шест 🙂 .

Хайде сега някой фен на Windows да накара видео карта тип „Intel-810“ да подържа и двете разделителни способности, според мен доста зор и пот ще види 🙂 .


Вашият коментар

*
За да докажете че не сте бот, въведете този код
Anti-Spam Image

Нещто не намирате ли?

Потърси в блога ми:

Моля Ви не прекалявайте с информацията!