linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.55k stars 742 forks source link

Screen tearing with intel graphics #11476

Open ErwinLiYH opened 1 year ago

ErwinLiYH commented 1 year ago
 * Cinnamon version (5.6.7)
 * Distribution - (Mint 21)
 * Graphics hardware  i7-12700H , driver i915
 * 64 bit

Issue

Screnn tearing in Cinnamon when use Intel graphics card. Without screnn tearing when using other DE like mate and xfce.

Steps to reproduce

Always have screen tearing.

Expected behaviour

No Screnn tearing.

Other information

lspci -k | grep -EA3 'VGA|3D|Display'

0000:00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)
    DeviceName: Onboard - Video
    Subsystem: Dell Device 0b13
    Kernel driver in use: i915
--
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
    Subsystem: Dell GA106M [GeForce RTX 3060 Mobile / Max-Q]
    Kernel modules: nvidiafb, nouveau
0000:01:00.1 Audio device: NVIDIA Corporation Device 228e (rev a1)

system info

System:
  Kernel: 5.19.0-28-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.6.7 tk: GTK 3.24.33
    wm: muffin dm: LightDM Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: Alienware product: Alienware x14 v: 1.5.0 serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: Alienware model: 01CYTC v: A02 serial: <superuser required> UEFI: Alienware v: 1.5.0
    date: 07/11/2022
Battery:
  ID-1: BAT1 charge: 26.2 Wh (32.5%) condition: 80.5/80.5 Wh (100.0%) volts: 11.2 min: 11.4
    model: COMPAL PABAS0241231 serial: <filter> status: Discharging
CPU:
  Info: 14-core (6-mt/8-st) model: 12th Gen Intel Core i7-12700H bits: 64 type: MST AMCP
    arch: Alder Lake rev: 3 cache: L1: 1.2 MiB L2: 11.5 MiB L3: 24 MiB
  Speed (MHz): avg: 2508 high: 2700 min/max: 400/5900:6000:3500 cores: 1: 2700 2: 2700 3: 738
    4: 2700 5: 2700 6: 2700 7: 2700 8: 827 9: 2700 10: 2700 11: 2700 12: 2700 13: 2700 14: 2700
    15: 2700 16: 2700 17: 2700 18: 2700 19: 2700 20: 2700 bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Dell driver: i915 v: kernel ports:
    active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 0000:00:02.0 chip-ID: 8086:46a6
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Dell driver: N/A
    bus-ID: 0000:01:00.0 chip-ID: 10de:2560
  Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 3-7:5
    chip-ID: 0bda:554b
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting unloaded: fbdev,vesa
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3072x1728 s-dpi: 120
  Monitor-1: eDP-1 model: Sharp res: 3072x1728 dpi: 253 diag: 355mm (14")
  OpenGL: renderer: Mesa Intel Graphics (ADL GT2) v: 4.6 Mesa 22.2.5 direct render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Dell
    driver: sof-audio-pci-intel-tgl bus-ID: 0000:00:1f.3 chip-ID: 8086:51c8
  Device-2: NVIDIA driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1 chip-ID: 10de:228e
  Sound Server-1: ALSA v: k5.19.0-28-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 0000:00:14.3
    chip-ID: 8086:51f0
  IF: wlo1 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 3-10:6 chip-ID: 8087:0033
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter>
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd v: 0.6
    bus-ID: 0000:00:0e.0 chip-ID: 8086:467f
Drives:
  Local Storage: total: 476.94 GiB used: 54.99 GiB (11.5%)
  ID-1: /dev/nvme0n1 vendor: KIOXIA model: KXG70ZNV512G NVMe 512GB size: 476.94 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 36.9 C
Partition:
  ID-1: / size: 250.92 GiB used: 54.91 GiB (21.9%) fs: ext4 dev: /dev/nvme0n1p7
  ID-2: /boot/efi size: 236 MiB used: 84 MiB (35.6%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
Sensors:
  System Temperatures: cpu: 43.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: apt: 2479
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/linuxuprising-apps-jammy.list
    1: deb [arch=amd64 signed-by=/etc/apt/keyrings/linuxuprising-apps-jammy.gpg] https: //ppa.launchpadcontent.net/linuxuprising/apps/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com vera main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 397 Uptime: 31m Memory: 15.3 GiB used: 3.22 GiB (21.1%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.3.0 alt: 11 Client: Cinnamon v: 5.6.7 inxi: 3.3.13

Screen tearing when I use Intel graphics, no screen tearing if switch to Nvidia graphics.

Nightwing0815 commented 1 year ago

@ErwinLiYH Did you try this?

Create file 20-intel-gpu.conf in /etc/X11/xorg.conf.d

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TearFree"    "true"
EndSection

ToM

ErwinLiYH commented 1 year ago

@ErwinLiYH Did you try this?

Create file 20-intel-gpu.conf in /etc/X11/xorg.conf.d

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TearFree"    "true"
EndSection

ToM

Yep, I have tried this. But it still has some bugs. Firstly, After add this file, The frame rate will be low. Secondly when I use NVIDIA Optimus switch card to NV card, the computer can not be boot.

kawaii-ghost commented 1 year ago

Have you read archwiki ? https://wiki.archlinux.org/title/Intel_graphics. Also make sure to use the latest kernel as your hardware is new.