Ubuntu 22.04 LTS误识别I5-13500(Raptor Lake)为Alder Lake导致转码问题求助
Hey there, let's work through this GPU misidentification issue together—this is a pretty common snag with newer Intel 13th Gen CPUs on Ubuntu 22.04, so you’re not stuck alone! Here are some practical steps to fix the recognition and get your transcoding back on track:
First, check and update your kernel
Ubuntu 22.04’s default kernel might not have full support for Raptor Lake. Let’s confirm your current kernel version first:uname -r
If it’s older than 5.19, upgrading to a newer kernel should help. The easiest way is to use Ubuntu’s Hardware Enablement (HWE) stack, which pulls in newer kernel and driver updates:sudo apt install linux-generic-hwe-22.04
Reboot your machine after installation, then rununame -ragain to confirm the kernel updated.Update intel-gpu-tools to the latest version
The pre-installed version of intel-gpu-tools in Ubuntu 22.04 might not include the latest GPU ID database for Raptor Lake. Try installing the backported version first (it’s more stable than compiling from scratch):sudo apt install -t jammy-backports intel-gpu-tools
If backports don’t have an updated version, you can compile the latest source directly:- Install the required build dependencies:
sudo apt install build-essential meson libdrm-dev libpciaccess-dev libgtk-3-dev libasound2-dev - Grab the latest intel-gpu-tools source code and compile:
git clone https://gitlab.freedesktop.org/drm/intel-gpu-tools.git cd intel-gpu-tools meson build ninja -C build sudo ninja -C build install
After this, run
intel_gpu_topagain to see if it correctly identifies your Raptor Lake GPU.- Install the required build dependencies:
Force the i915 driver to recognize your GPU
If the above steps don’t work, we can manually specify your GPU’s PCI ID in the kernel parameters. The UHD 770 (integrated in i5-13500) has the PCI ID8086:7a70:- Edit the GRUB configuration file:
sudo nano /etc/default/grub - Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULT, and addi915.force_probe=7a70inside the quotes. For example:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.force_probe=7a70" - Save the file (Ctrl+O, then Enter) and exit nano (Ctrl+X).
- Update GRUB to apply the changes:
sudo update-grub - Reboot your machine, then check
intel_gpu_topagain.
- Edit the GRUB configuration file:
Test your transcoding functionality
Once the GPU is correctly identified, verify that hardware transcoding works using a tool like ffmpeg:ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -i input.mp4 -c:v h264_vaapi output.mp4
If this runs without errors and completes quickly, your transcoding issue should be resolved!
If none of these steps fix the problem, share the output of lspci -nn | grep VGA and intel_gpu_top -d—that’ll help narrow down what’s going on.
备注:内容来源于stack exchange,提问作者PortX Charge

