• 1
  • 313
  • 314
  • 315(current)
  • 316
  • 317
  • 342
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server
(2018-02-07, 22:31)schrackin Wrote: Smile

In the meantime, i managed to solve it. I disabled pulse audio globally, so i can use alsa instead and now it works as expected. 

Thanks for your help.
 See - this howto does not install pulse at all.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
Hi fritsch!

Need your help : in my kodi machine the videos are jerky Sad
I don't know why, I think it's all configured properly!

my htpc is this : ZBOX CI323 nano , It is connected to my synto (only at 1080p) and by synto goes to tv (it is a 4K Samunsg)
know that I can't see videos in 4 k but at least I would like to see movies in 1080 p so perfect

I installed ubuntu 17.10 minimal and do turn kodi (the latest version, but also with old I have the same situation) with this systemd script :
Quote:[Unit]
 Description=Job that runs Kodi
 After=default.target graphical.target getty.target sound.target
[Service]
 User=kodi
 Restart=always
 RestartSec=1s
AE_SINK=ALSA
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
[Install]
 WantedBy=default.target

Sorry for my English, I am using a translator Sad

Here the log u need :

dpkg -l |grep mesa
DISPLAY=:0 vainfo 
cat ~/.kodi/temp/kodi.log​​​​​​​
dmesg | pastebinit​​​​​​​
id | pastebinit​​​​​​​
amixer | pastebinit​​​
cat /var/log/Xorg.0.log
Sorry for grammatical errors, use an online translator
Reply
use intel driver instead of modesetting
Reply
?? How?
Sorry for grammatical errors, use an online translator
Reply
sudo apt install xserver-xorg-video-intel
Reply
fatez@BlackBox:~$ sudo apt install xserver-xorg-video-intel
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
xserver-xorg-video-intel is already the newest version (2:2.99.917+git20170309-0ubuntu1).
Sorry for grammatical errors, use an online translator
Reply
you have to froce the driver in xorg.conf


Section "Device"
Identifier "Intel Graphics"
Driver "intel"
EndSection
Reply
Thanks but i don't have xorg.conf :

fatez@BlackBox:~$ sudo locate xorg.conf
/usr/share/X11/xorg.conf.d
/usr/share/X11/xorg.conf.d/10-amdgpu.conf
/usr/share/X11/xorg.conf.d/10-quirks.conf
/usr/share/X11/xorg.conf.d/10-radeon.conf
/usr/share/X11/xorg.conf.d/40-libinput.conf
/usr/share/X11/xorg.conf.d/70-wacom.conf
/usr/share/doc/xserver-xorg-video-intel/xorg.conf
/usr/share/man/man5/xorg.conf.5.gz
/usr/share/man/man5/xorg.conf.d.5.gz


So i created these file :

/usr/share/X11/xorg.conf.d/40-libinput.conf
 
Quote:Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection
And this :

/usr/share/X11/xorg.conf.d//51-mysinaptics.conf
Quote:Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
#    InputDevice    "Mouse0" "CorePointer"
#    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    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"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

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

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
    Identifier  "Intel Graphics"
    Driver      "intel"
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


This is the log : Kodi.log

And i have a little judder
Sorry for grammatical errors, use an online translator
Reply
Code:
cd /etc/X11/xorg.conf.d/
sudo ln -s /usr/share/doc/xserver-xorg-video-intel/xorg.conf 10-intel.conf
reboot
Reply
(2018-03-10, 19:36)wsnipex Wrote:
Code:
cd /etc/X11/xorg.conf.d/
sudo ln -s /usr/share/doc/xserver-xorg-video-intel/xorg.conf 10-intel.conf
reboot
Thanks, this is the kodi.log  after xorg conf;
I have a lot of judder... 

in video settings i have :
Quote:Deinterlace method : off
Video scaling method Bilinear

in player setting :
Quote:Adjust display refresh rate : on start /stop
Sync playback to dispay : off
Enable HQ scaler : 0%
VDPAU : off
Allow hardware acceleration - VAAPI : on
User Mpeg2 VAAPI : on
Use Mpeg4 VAAPI : on
Prefer VAAPI render method : on

in system display :
Quote:Resolution : 1920x1080p
Refresh rate : 60Hz
Blank other display : on
Delay after change refresh rate : 0.5 seconds
Use limited color range : off
Dithering : off
Color mangment : off

Number of buffers used by graphics card : 2 
Sorry for grammatical errors, use an online translator
Reply
I see what's happening. If you turn off passthrough audio, video gets smooth right?
Reply
(2018-03-11, 13:29)FernetMenta Wrote: I see what's happening. If you turn off passthrough audio, video gets smooth right?


They are better, what’s happening?
Sorry for grammatical errors, use an online translator
Reply
(2018-03-11, 13:46)Rumpelstiltskin Wrote:
(2018-03-11, 13:29)FernetMenta Wrote: I see what's happening. If you turn off passthrough audio, video gets smooth right?


They are better, what’s happening? 
 First, running kodi-x11 without a window manager is not a supported environment. It may work but I have seen a lot of trouble with it.
This issue can be related to running without a wm. Before going any further, I suggest to fix the basics.
Reply
I run it :

Quote:[Unit]
 Description=Job that runs Kodi
 After=default.target graphical.target getty.target sound.target
[Service]
 User=kodi
 Restart=always
 RestartSec=1s
AE_SINK=ALSA
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
[Install]
 WantedBy=default.target

So i dont have a wm
Sorry for grammatical errors, use an online translator
Reply
(2018-03-11, 15:57)Rumpelstiltskin Wrote: I run it :

Quote:[Unit]
 Description=Job that runs Kodi
 After=default.target graphical.target getty.target sound.target
[Service]
 User=kodi
 Restart=always
 RestartSec=1s
AE_SINK=ALSA
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
[Install]
 WantedBy=default.target

So i dont have a wm

Why not following this how-to you currently highjack? :-)
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
  • 1
  • 313
  • 314
  • 315(current)
  • 316
  • 317
  • 342

Logout Mark Read Team Forum Stats Members Help
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server18