Автор Тема: изменение разрешения экрана  (Прочитано 10415 раз)

Оффлайн mtsv

  • Завсегдатай
  • *
  • Сообщений: 62
Re: изменение разрешения экрана
« Ответ #135 : 18.08.2015 19:33:13 »
IMHO:

Надо бы смотреть что за GMA такой
lspci -k | grep -A2 VGA

И я бы глянул лайвом xfce
http://nightly.altlinux.org/sisyphus/current/
В сизифе предпоследний intel-драйвер, - 2.99.916
Последний у интела 2.99.917
https://01.org/linuxgraphics/downloads

по поводу GMA:
[mono@comp-atom-cpu-600c5b ~]$ lspci -k | grep -A2 VGA
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller
   Subsystem: Hewlett-Packard Company Device 2ab0
   Kernel driver in use: i915


Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: изменение разрешения экрана
« Ответ #136 : 19.08.2015 01:04:28 »
Это не столько ответы, сколько вопросы.
Пытаюсь переосмыслить.
Имеем данность сообщённую Русланом:
- дисплей подключен к двум выходам - LVDS1 и VGA1 ( ?? )
- две команды смены разрешения

Отталкиваюсь отсюда:
https://communities.intel.com/message/183126

Соответственно вопрос:
А если отрубить этот LVDS1 и только тогда менять разрешение, но на VGA1?
Или по-Руслану,
http://forum.altlinux.org/index.php?topic=35205.msg262214#msg262214
или как-то подобно этому:
Цитировать
First let's generate you something sensible, a 60Hz 1920x1080 resolution;
cvt 1920 1080

xrandr --newmode "1920x1080_60.00" <insert the result of previous command here>
xrandr --addmode VGA1 "1920x1080_60.00"

And finally we're going to test it:
xrandr --output VGA1 --mode "1920x1080_60.00"
gtf генератор?
Также, может ли внести побочный эффект, если диплей подключен сразу к двум выходам:
http://forum.altlinux.org/index.php?topic=35205.msg262099#msg262099

$ xrandr --help|grep 'output \|-off'
  --output <output>
      --off

Ну так как-то ещё поиграть.
Тем более что судя по мануалу, никакого дополнительного дисплей-выхода нет.
И тем более что если дисплей к выходу не подсоелинён, то он дисконнэктэд (в ноутбуке):
$ xrandr|grep conn
LVDS1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
VGA1 disconnected (normal left inverted right x axis y axis)
TV1 disconnected (normal left inverted right x axis y axis)
« Последнее редактирование: 19.08.2015 01:07:22 от Speccyfighter »

Оффлайн Антон Мидюков

  • alt linux team
  • ***
  • Сообщений: 5 183
  • antohami@
Re: изменение разрешения экрана
« Ответ #137 : 19.08.2015 09:09:39 »
Нашёл простой способ узнать edid монитора. Нужно установить пакет read-edid. После чего от root запустить в терминале get-edid. Вывод команды сюда пожалуйста.

Жду ответа.

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 299
  • Учиться .... Телепатами не рождаются, ими ....
    • Email
Re: изменение разрешения экрана
« Ответ #138 : 19.08.2015 09:26:39 »
Антон - у меня с драйверами Nvidia эта команда вываливается в core:
$ su -
Password:
[root]# get-edid
get-edid: get-edid version 2.0.0

        Performing real mode VBE call
        Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0
        Function supported
        Call successful

        VBE version 0
        VBE string at 0x0 "Ошибка сегментирования

Так, что может не сработать, но попытаться стоит :)

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: изменение разрешения экрана
« Ответ #139 : 19.08.2015 11:42:50 »
$ xrandr --verbose|sed -n '15,23p'
        EDID:
                00ffffffffffff0006af512400000000
                010f0103801e17780a87f594574f8c27
                27505400000001010101010101010101
                01010101010164190040410026301888
                360030e4100000180000000f00000000
                00000000000000000020000000fe0041
                554f0a202020202020202020000000fe
                004231353058473032205634200a0000

Но тут какая-то лажа:
byte 36 Bit 3    1024×768 @ 60 Hz
А 36-й байт в нуле.

А-а... Ну да:
# get-edid |grep EDID
get-edid: get-edid version 2.0.0
...
The EDID data should not be trusted as the VBE call failed
Error: output block unchanged

Не получен блок по VBE (VESA BIOS Extensions), поэтому EDID нельзя доверять.

https://en.wikipedia.org/wiki/Extended_Display_Identification_Data#EDID_1.3_data_format
« Последнее редактирование: 19.08.2015 12:35:46 от Speccyfighter »

Оффлайн Антон Мидюков

  • alt linux team
  • ***
  • Сообщений: 5 183
  • antohami@
Re: изменение разрешения экрана
« Ответ #140 : 19.08.2015 17:25:09 »
- дисплей подключен к двум выходам - LVDS1 и VGA1 ( ?? )

Вы что шутите? В моноблоках как и в ноутбуках дисплей подключается по LVDS. У топикстартера бюджетная версия, в которой VGA не выведен из чипа на D-SUB. Так что VGA есть, но по факту его всё же нет.

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: изменение разрешения экрана
« Ответ #141 : 19.08.2015 19:36:02 »
Так что VGA есть, но по факту его всё же нет.

Это вы Xorg'у объясните что по-факту его нет:
[ 10936.802] (II) intel(0): switch to mode 1024x768@60.0 on pipe 0 using VGA1, position (0, 0), rotation normal
[ 10936.816] (II) intel(0): switch to mode 1024x768@60.0 on pipe 1 using LVDS1, position (0, 0), rotation normal

В ультрабюджетном ноутбуке, если VGA1 нет, значит его нет:
# cat /var/log/Xorg.0.log|grep 'LVDS1\|VGA1'
[    21.437] (II) intel(0): Output LVDS1 using monitor section Monitor0
[    21.437] (II) intel(0): Output VGA1 has no monitor section
[    21.437] (--) intel(0): Output LVDS1 using initial mode 1024x768 on pipe 1
[    21.697] (II) intel(0): switch to mode 1024x768@60.0 on pipe 1 using LVDS1, position (0, 0), rotation normal
[  3596.989] (II) intel(0): switch to mode 1024x768@60.0 on pipe 1 using LVDS1, position (0, 0), rotation normal
[  4526.079] (II) intel(0): switch to mode 1024x768@60.0 on pipe 1 using LVDS1, position (0, 0), rotation normal
[  5431.940] (II) intel(0): switch to mode 1024x768@60.0 on pipe 1 using LVDS1, position (0, 0), rotation normal
[  6334.382] (II) intel(0): switch to mode 1024x768@60.0 on pipe 1 using LVDS1, position (0, 0), rotation normal

А так они оба есть
$ cat /var/log/Xorg.0.log|grep 'to mode'
[ 93447.420] (II) intel(0): switch to mode 1024x768@60.0 on pipe 0 using VGA1, position (0, 0), rotation normal
[ 93465.145] (II) intel(0): switch to mode 1024x768@60.0 on pipe 1 using LVDS1, position (0, 0), rotation normal

И быть должны
$ xrandr --verbose|sed -n '2p; 15,23p; 42p; 55,63p'
LVDS1 connected 1024x768+0+0 (0x8d) normal (normal left inverted right x axis y axis) 304mm x 228mm
        EDID:
                00ffffffffffff0006af512400000000
                010f0103801e17780a87f594574f8c27
                27505400000001010101010101010101
                01010101010164190040410026301888
                360030e4100000180000000f00000000
                00000000000000000020000000fe0041
                554f0a202020202020202020000000fe
                004231353058473032205634200a0000
VGA1 connected 1024x768+0+0 (0x8d) normal (normal left inverted right x axis y axis) 434mm x 270mm
        EDID:
                00ffffffffffff001e6d794eec6d0100
                0a1101036a2b1b78ead105a655479d25
                155054a76b80950f950081808140714f
                0101010101017c2e90a0601a1e403020
                3600b20e1100001a21399030621a2740
                68b03600b20e1100001c000000fd0038
                4b1c530f000a202020202020000000fc
                004c32303457530a20202020202000ce
# get-edid
get-edid: get-edid version 2.0.0

        Performing real mode VBE call
        Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0
        Function supported
        Call successful

        VBE version 300
        VBE string at 0x2110 "Intel(r)915GM/910ML/915MS Graphics Chip Accelerated VGA BIOS"

VBE/DDC service about to be called
        Report DDC capabilities

        Performing real mode VBE call
        Interrupt 0x10 ax=0x4f15 bx=0x0 cx=0x0
        Function supported
        Call successful

        Monitor and video card combination does not support DDC1 transfers
        Monitor and video card combination supports DDC2 transfers
        0 seconds per 128 byte EDID block transfer
        Screen is not blanked during DDC transfer

Reading next EDID block

VBE/DDC service about to be called
        Read EDID

        Performing real mode VBE call
        Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
        Function supported
        Call successful

������myN�m
j+�ѦUG�%PT�k������@qO|.��`▒@0 6�▒!9�0b▒'@h�6��8KS
      �L204WS
      [root]#
« Последнее редактирование: 19.08.2015 20:32:56 от Speccyfighter »

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: изменение разрешения экрана
« Ответ #142 : 19.08.2015 23:05:57 »
Ноутбук и два монитора.

Ноутбук:
Дисплей с максимальным разрешением 1024х768

Конфиг
Section "Monitor"
    Identifier "Monitor0"
    VendorName "AUO"
    ModelName  "AUO LCD Monitor"
EndSection


Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option  "SwapbuffersWait" "false"
EndSection


Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth     24

        SubSection "Display"
           Depth    8
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection

        SubSection "Display"
           Depth    16
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection

        SubSection "Display"
           Depth    24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection

EndSection

Если подключить к VGA выходу монитор отключенный физически от сети, и рестартануть Х-сы, то Х-сам становится строго пофигу и на то что сетевой шнур монитора совсем не подключен к сети, и на свой конфиг тоже:
$ xrandr
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 32767 x 32767
LVDS1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
   1024x768       60.0*+
   800x600        60.3     56.2
   640x480        59.9
VGA1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 434mm x 270mm
   1024x768       75.1 +   60.0
   1680x1050      59.9*+   60.0
   1280x1024      75.0     60.0
   1440x900       75.0     59.9
   1280x960       60.0
   1152x864       75.0
   832x624        74.6
   800x600        75.0     60.3     56.2
   640x480        75.0     60.0
   720x400        70.1
TV1 unknown connection (normal left inverted right x axis y axis)
   1024x768       59.9 +
   848x480        59.9 +
   640x480        59.9 +
   800x600        59.9

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: изменение разрешения экрана
« Ответ #143 : 20.08.2015 01:09:33 »
Вылечил
# xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 32767 x 32767
LVDS1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
   1024x768       60.0 +
   800x600        60.3     56.2
   640x480        59.9
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 434mm x 270mm
   1024x768       75.1 +   60.0*
   1680x1050      59.9 +   60.0
   1280x1024      75.0     60.0
   1440x900       75.0     59.9
   1280x960       60.0
   1152x864       75.0
   832x624        74.6
   800x600        75.0     60.3     56.2
   640x480        75.0     60.0
   720x400        70.1
TV1 unknown connection (normal left inverted right x axis y axis)
   1024x768       59.9 +
   848x480        59.9 +
   640x480        59.9 +
   800x600        59.9
   (0x45)   65.0MHz
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz

указанием
# cat /etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
#    Identifier "Monitor0"
    Identifier "10002 LCD Monitor"
    VendorName "AUO"
    ModelName  "AUO LCD Monitor"
EndSection

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option  "SwapbuffersWait" "false"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "10002 LCD Monitor"
        DefaultDepth     24

        SubSection "Display"
           Depth    8
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection

        SubSection "Display"
           Depth    16
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection

        SubSection "Display"
           Depth    24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection

EndSection

точного идентификатора LVDS1 монитора
# hwinfo --monitor
30: None 00.0: 10002 LCD Monitor
  [Created at monitor.95]
  Unique ID:
  Hardware Class: monitor
  Model: "AUO LCD Monitor"
  Vendor: AUO "AUO"
  Device: eisa 0x2451
  Resolution: 1024x768@60Hz
  Size: 304x228 mm
  Detailed Timings #0:
     Resolution: 1024x768
     Horizontal: 1024 1048 1184 1344 (+24 +160 +320) -hsync
       Vertical:  768  771  777  806 (+3 +9 +38) -vsync
    Frequencies: 65.00 MHz, 48.36 kHz, 60.00 Hz
  Config Status: cfg=new, avail=yes, need=no, active=unknown

31: None 00.2: 10002 LCD Monitor
  [Created at monitor.95]
  Unique ID:
  Hardware Class: monitor
  Model: "AUO LCD Monitor"
  Vendor: AUO "AUO"
  Device: eisa 0x2451
  Resolution: 1024x768@60Hz
  Size: 304x228 mm
  Detailed Timings #0:
     Resolution: 1024x768
     Horizontal: 1024 1048 1184 1344 (+24 +160 +320) -hsync
       Vertical:  768  771  777  806 (+3 +9 +38) -vsync
    Frequencies: 65.00 MHz, 48.36 kHz, 60.00 Hz
  Config Status: cfg=new, avail=yes, need=no, active=unknown