[Solved]Resolution/Video driver issue

You have a problem with Salix? Post here and we'll do what we can to help.
gabrieles84
Posts: 8
Joined: 20. Dec 2014, 15:17

Re: Resolution/Video driver issue

Post by gabrieles84 »

Chipset "i915" works, X strarts but resolution issue remains. This is the xorg i used:

Code: Select all

Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
EndSection

Section "Files"
   ModulePath   "/usr/lib64/xorg/modules"
   FontPath     "/usr/share/fonts/local"
   FontPath     "/usr/share/fonts/TTF"
   FontPath     "/usr/share/fonts/OTF"
   FontPath     "/usr/share/fonts/Type1"
   FontPath     "/usr/share/fonts/misc"
   FontPath     "/usr/share/fonts/CID"
   FontPath     "/usr/share/fonts/75dpi/:unscaled"
   FontPath     "/usr/share/fonts/100dpi/:unscaled"
   FontPath     "/usr/share/fonts/75dpi"
   FontPath     "/usr/share/fonts/100dpi"
   FontPath     "/usr/share/fonts/cyrillic"
EndSection

Section "Module"
   Load  "glx"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
   Chipset      "i915"
   BusID       "PCI:0:2:0"
EndSection


Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   SubSection "Display"
      Viewport   0 0
      Depth     1
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     4
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     8
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     15
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     16
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection
1440x900 is the resolution of my lcd monitor, so it does support it. J1900 soc can handle that, as done in the past months with other distros i've tryed.

This is xrandr output:

Code: Select all

enzo[~]$ xrandr --verbose -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1280 x 1024, maximum 1440 x 1024
default connected 1280x1024+0+0 (0xf2) normal (normal) 0mm x 0mm
	Identifier: 0xf1
	Timestamp:  29587
	Subpixel:   no subpixels
	Clones:    
	CRTC:       0
	CRTCs:      0
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
  1280x1024 (0xf2)    0.0MHz *current
        h: width  1280 start    0 end    0 total 1280 skew    0 clock    0.0KHz
        v: height 1024 start    0 end    0 total 1024           clock    0.0Hz
  1440x900 (0xf3)    0.0MHz
        h: width  1440 start    0 end    0 total 1440 skew    0 clock    0.0KHz
        v: height  900 start    0 end    0 total  900           clock    0.0Hz
  1024x768 (0xf4)    0.0MHz
        h: width  1024 start    0 end    0 total 1024 skew    0 clock    0.0KHz
        v: height  768 start    0 end    0 total  768           clock    0.0Hz
  800x600 (0xf5)    0.0MHz
        h: width   800 start    0 end    0 total  800 skew    0 clock    0.0KHz
        v: height  600 start    0 end    0 total  600           clock    0.0Hz
  640x480 (0xf6)    0.0MHz
        h: width   640 start    0 end    0 total  640 skew    0 clock    0.0KHz
        v: height  480 start    0 end    0 total  480           clock    0.0Hz
  1440x1024 (0xf7)    0.0MHz
        h: width  1440 start    0 end    0 total 1440 skew    0 clock    0.0KHz
        v: height 1024 start    0 end    0 total 1024           clock    0.0Hz

Thanks!!!
westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: Resolution/Video driver issue

Post by westms »

gabrieles84 wrote:Chipset "i915" works, X strarts but resolution issue remains. [...]
Very nice!

To get the wanted resolution try the folloing:
add to the end of Section "Monitor" one of the lines:

Modeline "1440x900" 106.50 1440 1520 1672 1904 900 903 909 934 -hsync +vsync
or
Modeline "1440x900" 108.84 1440 1472 1880 1912 900 918 927 946 +hsync +vsync


Then add in Section "Screen" to the end of each SubSection "Display" the line:

Modes "1440x900"

Test both Modelines, if you like or if necessary.
gabrieles84
Posts: 8
Joined: 20. Dec 2014, 15:17

Re: Resolution/Video driver issue

Post by gabrieles84 »

Thank you so much! Now everything works!!! Just a question, i think that this xorg configuration uses xf86-video-intel driver because if i execute "vainfo" i get this output:

Code: Select all

enzo[~]$ vainfo
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit
how can i modify xorg to use libva drivers?
I installed libva 1.2.1 and libva-intel-driver 1.2.1

Update: I downgrade libva package to 0.31 and i have a different error:

Code: Select all

enzo[~]$ vainfo
libva: libva version 0.31.1-sds1
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: Resolution/Video driver issue

Post by westms »

gabrieles84 wrote:Thank you so much! Now everything works!!!
I am glad that I could help this far.
Just a question, i think that this xorg configuration uses xf86-video-intel driver because if i execute "vainfo" i get this output:

Code: Select all

enzo[~]$ vainfo
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit
how can i modify xorg to use libva drivers?
Unfortunately, I am not familiar with your particular hardware from Intel or with VA-API. I'm afraid I can not help you much further. The latest Intel chipset, which I used was a i815.

Generally, alternative kernel modules are installed, in which the standard module is black-listed and the new module is installed. In best case this is all done by the installation script. Black-listed modules are listed in configuration files found in /etc/modprobe.d . For a GPU driver module that is used by X, the correct driver and / or the correct chipset must be specified then in xorg.conf . The parameterization in various sections must be adjusted (significantly) too. In best case this is done by the installation script too.

The two message blocks shown mean that vainfo can not work with the expected underlying software components. Presumably they are not present at all or of incorrect version. If no driver names are displayed, as shown in the error messages, the driver are probably not loaded or the Libs do not fit. You wrote in previous post: I've installed libva and libva-intel-driver. Until you can prove that you have performed a successful installation of an Intel GPU driver (you wrote: intel official driver), I believe that the standard Linux/Xorg driver for Intel hardware is loaded furthermore.
gabrieles84
Posts: 8
Joined: 20. Dec 2014, 15:17

Re: Resolution/Video driver issue

Post by gabrieles84 »

Thank you so much for helping me out and for the explanation! I'll try some experiment!
Post Reply