X11 session not working - after driver update

Hi, I have compiled mesa drivers to have AVC/HEVC/VC-1 hardware acceleration. Unfortunately, after restarting the computer, the x11 session does not start. The login window appears, enter the password, enter. A black window appears for a moment and then flashes back to the login window.

yay -S mesa-git

Anything posted in your .xsession-errors? login in a tty and

cat .xsession-errors

After using the command

cat .xsession-errors

message appears: there is no file or folder with the given name

Please read, we have unofficial repo for manjaro https://nonfree.eu/
GitHub - mesa-freeworld/mesa-nonfree

### install ###

# locally trust the ci key
sudo pacman-key --recv-keys B728DB23B92CB01B && \
  sudo pacman-key --lsign-key B728DB23B92CB01B

## add the repo configuration:
sudo sh -c "curl -s https://nonfree.eu/$(pacman-mirrors -G)/ > /etc/pacman.d/mesa-nonfree.pre.repo.conf"

## include the repo configuration:
sudo sed -i '/^\[core\]/i \Include = /etc/pacman.d/mesa-nonfree.pre.repo.conf\n' /etc/pacman.conf
1 Like

Could you tell me how to install it?

I already told you. You see the commands in my post ? Three commands copy/paste in the terminal. This is the source , so you can verify .

1 Like

Yes, I pasted it but nothing happened.

    ~  LC_ALL=C sudo pacman-key --recv-keys B728DB23B92CB01B          1 ✘ 
[sudo] password for maciek: 
gpg: key B728DB23B92CB01B: "Mesa Freeworld <info@manjaro.download>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
    ~  LC_ALL=C sudo pacman-key --lsign-key B728DB23B92CB01B     ✔  3s  
  -> Locally signed 1 keys.
==> Updating trust database...
gpg: next trustdb check due at 2023-07-07
    ~  LC_ALL=C sudo sh -c "curl -s https://nonfree.eu/$(pacman-mirrors -G)/ > /etc/pacman.d/mesa-nonfree.pre.repo.conf"

    ~  LC_ALL=C sudo sed -i '/^\[core\]/i \Include = /etc/pacman.d/mesa-nonfree.pre.repo.conf\n' /etc/pacman.conf       
    ~                                                                   ✔ 


What do you expect to happen ? If this is done, refresh your mirrors/database with

sudo pacman-mirrors -f5 && sudo pacman -Syyu

Now, when you open pamac-manager (install/delete software) and clic Repositories , you should see mesa-nonfree on top of the list.

…from now on the “mesa-nonfree repo” will be preferred, no compiling needed, these are pre-compiled packages.

Thank you for help. I am a newbie in linux. But with every problem I encounter, I learn something new.

If you would be so kind and tell me the simplest way to check if hardware acceleration is working

Verify the settings for VA-API by running vainfo , which is provided by libva-utils

Useful for browser settings

Something must have gone wrong with the driver installation

    ~  vainfo                                               127 ✘  26s  
Trying display: wayland
Trying display: x11
vaInitialize failed with error code -1 (unknown libva error),exit

   ~  LC_ALL=C inxi -v7azy                                      ✔  4s  
System:
  Kernel: 6.1.19-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=8ce5fb83-4fc9-4ac1-95e9-27e0b9f16360 rw quiet splash apparmor=1
    security=apparmor resume=UUID=c37b4737-4448-4b91-b00a-0f818485b606
    udev.log_priority=3
  Desktop: GNOME v: 43.3 tk: GTK v: 3.24.36 wm: gnome-shell dm: GDM v: 43.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20238 v: Lenovo G510
    serial: <superuser required> Chassis: type: 10 v: Lenovo G510
    serial: <superuser required>
  Mobo: LENOVO model: INVALID v: 31900058Std serial: <superuser required>
    UEFI: LENOVO v: 79CN46WW(V3.05) date: 12/23/2013
Memory:
  RAM: total: 7.67 GiB used: 2.55 GiB (33.3%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-4200M bits: 64 type: MT MCP arch: Haswell
    gen: core 4 level: v3 note: check built: 2013-15 process: Intel 22nm
    family: 6 model-id: 0x3C (60) stepping: 3 microcode: 0x28
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 799 high: 800 min/max: 800/3100 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 798 2: 798 3: 800 4: 800
    bogomips: 19963
  Flags: abm acpi aes aperfmperf apic arat arch_perfmon avx avx2 bmi1 bmi2
    bts clflush cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht ibpb ibrs ida invpcid invpcid_single lahf_lm lm mca mce
    md_clear mmx monitor movbe msr mtrr nonstop_tsc nopl nx pae pat pbe pcid
    pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand
    rdtscp rep_good sdbg sep smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp
    syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi
    vpid xsave xsaveopt xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Lenovo
    driver: i915 v: kernel arch: Gen-7.5 process: Intel 22nm built: 2013 ports:
    active: HDMI-A-1 off: eDP-1 empty: VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0416
    class-ID: 0300
  Device-2: AMD Jet PRO [Radeon R5 M230 / R7 M260DX Radeon 520/610 Mobile]
    vendor: Lenovo driver: radeon v: kernel alternate: amdgpu arch: GCN-1
    code: Southern Islands process: TSMC 28nm built: 2011-20 pcie: gen: 3
    speed: 8 GT/s lanes: 8 bus-ID: 01:00.0 chip-ID: 1002:6665 class-ID: 0380
    temp: 45.0 C
  Device-3: Syntek Lenovo EasyCamera type: USB driver: uvcvideo bus-ID: 3-4:2
    chip-ID: 174f:148d class-ID: 0e02 serial: <filter>
  Display: x11 server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.8
    compositor: gnome-shell driver: X: loaded: modesetting,radeon
    alternate: fbdev,vesa dri: crocus,radeonsi gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1366x768 s-size: <missing: xdpyinfo>
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary model: Samsung built: 2011
    res: 1366x768 hz: 60 dpi: 217 gamma: 1.2 size: 160x90mm (6.3x3.54")
    diag: 801mm (31.5") ratio: 16:9 modes: max: 1366x768 min: 720x400
  Monitor-2: eDP-1 note: disabled model: Samsung 0x4752 built: 2012
    res: 1366x768 dpi: 101 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: 1366x768
  API: OpenGL v: 4.6 Mesa 22.3.5 renderer: Mesa Intel HD Graphics 4600 (HSW
    GT2) direct-render: Yes
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
    vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 00:03.0
    chip-ID: 8086:0c0c class-ID: 0403
  Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
    class-ID: 0403
  Sound API: ALSA v: k6.1.19-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.22 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.65 running: yes
Network:
  Device-1: Broadcom BCM43142 802.11b/g/n vendor: Lenovo driver: wl v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 08:00.0 chip-ID: 14e4:4365
    class-ID: 0280
  IF: wlp8s0 state: dormant mac: <filter>
  Device-2: Qualcomm Atheros QCA8172 Fast Ethernet vendor: Lenovo driver: alx
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 09:00.0
    chip-ID: 1969:10a0 class-ID: 0200
  IF: enp9s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Foxconn BCM43142A0 Bluetooth module type: USB driver: btusb v: 0.8
    bus-ID: 3-7:4 chip-ID: 105b:e065 class-ID: fe01 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.14 TiB used: 24.58 GiB (2.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: SSDPR-CX400-256
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 61.3 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: ST1000LM024 HN-M101MBB
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: 0001 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 100 GiB size: 97.87 GiB (97.87%) used: 10.86 GiB (11.1%)
    fs: ext4 dev: /dev/sda3 maj-min: 8:3 label: N/A
    uuid: 8ce5fb83-4fc9-4ac1-95e9-27e0b9f16360
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: NO_LABEL
    uuid: CBC7-F791
  ID-3: /home raw-size: 121.97 GiB size: 119.49 GiB (97.97%)
    used: 13.72 GiB (11.5%) fs: ext4 dev: /dev/sda4 maj-min: 8:4 label: N/A
    uuid: 55f3191a-5393-4e39-8b92-60b843f868aa
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: c37b4737-4448-4b91-b00a-0f818485b606
Unmounted:
  ID-1: /dev/sdb1 maj-min: 8:17 size: 931.51 GiB fs: ext4 label: home
    uuid: a5bba619-ab0e-4260-a0ec-330974d42ce2
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:8008 class-ID: 0900
  Hub-3: 2-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:8000 class-ID: 0900
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 14 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-4:2 info: Syntek Lenovo EasyCamera type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 174f:148d
    class-ID: 0e02 serial: <filter>
  Device-2: 3-6:3 info: Microsoft Nano Transceiver v1.0 for Bluetooth
    type: Keyboard,Mouse,HID driver: hid-generic,usbhid interfaces: 3 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 045e:0745 class-ID: 0300
  Device-3: 3-7:4 info: Foxconn BCM43142A0 Bluetooth module type: Bluetooth
    driver: btusb interfaces: 4 rev: 2.0 speed: 12 Mb/s chip-ID: 105b:e065
    class-ID: fe01 serial: <filter>
  Device-4: 3-8:5 info: Realtek RTS5129 Card Reader Controller
    type: <vendor specific> driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc
    interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:0129
    class-ID: ff00 serial: <filter>
  Hub-6: 4-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 58.0 C mobo: N/A gpu: radeon temp: 45.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 218 Uptime: 7m wakeups: 1 Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
  pkgs: 1315 libs: 338 tools: gnome-software,pamac,yay pm: flatpak pkgs: 0
  Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.25

Ah, system info (should always be first, my fault).
Now we know you have intel cpu and amd graphics .
I am at work and only using mobile phone,
but maybe it is a libva problem .
See here: