Mobility Radeon HD 4530 @ubuntu20.04 显卡驱动不支持[GPU无法使用]

Posted lida2003

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mobility Radeon HD 4530 @ubuntu20.04 显卡驱动不支持[GPU无法使用]相关的知识,希望对你有一定的参考价值。

Mobility Radeon HD 4530 @ubuntu20.04 显卡驱动不支持[GPU无法使用]

1. 源由

最近,在测试H264视频编解码时,发现一个重大的问题就是在ubuntu20.4上gstreamer不使用GPU做H264的解码,反而直接使用了CPU,导致100%的CPU占用率。

2. 显卡型号

通过命令行查询,本机显卡为:

  • [AMD/ATI] RV710/M92 Mobility Radeon HD 4530/4570/5145/530v/540v/545v

反馈信息提示:混合显卡(有专用的GPU)
"hybrid graphics system, with an iGP (integrated graphics processor inside the CPU) and a dedicated GPU. "

daniel@daniel-ThinkPad-SL410:~$ lspci -nn | grep -Ei "3d|display|vga"
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RV710/M92 [Mobility Radeon HD 4530/4570/5145/530v/540v/545v] [1002:9553]
daniel@daniel-ThinkPad-SL410:~$ sudo lshw -C display
[sudo] password for daniel:
  *-display UNCLAIMED
       description: VGA compatible controller
       product: RV710/M92 [Mobility Radeon HD 4530/4570/5145/530v/540v/545v]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:d0000000-dfffffff ioport:2000(size=256) memory:f2100000-f210ffff memory:c0000-dffff

通过Wikipedia上List_of_AMD_graphics_processing_units确认,Radeon HD 4530应该具有H264硬编码/解码器。

3. 驱动安装

从目前H264解码情况看,解码时使用的是CPU资源,而非GPU。因此,怀疑驱动可能存在问题。

daniel@daniel-ThinkPad-SL410:~$ uname -m
x86_64

通过官网下载64位AMD/ATI Mobility Radeon HD 4530驱动,并进行安装。


3.1 问题1:内核version.h文件缺失

安装提示如下:

daniel@daniel-ThinkPad-SL410:~$ cat /usr/share/ati/fglrx-install.log
Detected a previous installation, /usr/share/ati/amd-uninstall.sh
Dryrun uninstall succeeded continuing with installation.
Check if system has the tools required for installation.
fglrx installation requires that the system have kernel headers.  /lib/modules/5.15.0-67-generic/build/include/linux/version.h cannot be found on this system.
One or more tools required for installation cannot be found on the system. Install the required tools before installing the fglrx driver.
Optionally, run the installer with --force option to install without the tools.
Forcing install will disable AMD hardware acceleration and may make your system unstable. Not recommended.

经过确认内核文件实际上已经安装

daniel@daniel-ThinkPad-SL410:~$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-5.15.0-67-generic is already the newest version (5.15.0-67.74~20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.

通过以下步骤可以解决上述问题Missing “version.h” when installing fglrx

sudo cp -v /usr/include/linux/version.h /lib/modules/$(uname -r)/build/include/linux

3.2 问题2:驱动编译失败

安装过程失败,日志信息显示构建fglrx-8.97.100.7失败!

daniel@daniel-ThinkPad-SL410:~$ sudo ./amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run

daniel@daniel-ThinkPad-SL410:~$ cat /usr/share/ati/fglrx-install.log
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.

Creating symlink /var/lib/dkms/fglrx/8.97.100.7/source ->
                 /usr/src/fglrx-8.97.100.7

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
cd /var/lib/dkms/fglrx/8.97.100.7/build; sh make.sh --nohints --uname_r=5.15.0-67-generic --norootcheck..........(bad exit status: 1)
[Error] Kernel Module : Failed to build fglrx-8.97.100.7 with DKMS
[Error] Kernel Module : Removing fglrx-8.97.100.7 from DKMS

------------------------------
Deleting module version: 8.97.100.7
completely from the DKMS tree.
------------------------------
Done.

经过再次确认,**最新驱动(截止2023-03-13)**仅支持到内核3.4版本。而ubuntu20.4内核版本已经是5.15了。

3.3 问题3:尝试使用选项二“Generate Distribution Specific Driver Package”

3.3.1 安装execstack

daniel@daniel-ThinkPad-SL410:~$ cat /usr/share/ati/fglrx-install.log
Package build failed!
Package build utility output:
./packages/Ubuntu/ati-packager.sh: 294: debclean: not found
dpkg-buildpackage: info: source package fglrx-installer
dpkg-buildpackage: info: source version 2:8.970-0ubuntu1
dpkg-buildpackage: info: source distribution focal
dpkg-buildpackage: info: source changed by AMD: Advanced Micro Devices. <http://ati.amd.com/support/driver.html>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules build
#Create important strings
for i in 10fglrx \\
                 dkms.conf \\
                 fglrx.install \\
                 fglrx-dev.install \\
                 fglrx-dev.links \\
                 fglrx-amdcccle.install \\
                 fglrx.grub-gfxpayload \\
                 fglrx.dirs \\
                 fglrx.links \\
                 fglrx.postinst \\
                 fglrx.postrm \\
                 fglrx.preinst \\
                 fglrx.prerm \\
                 overrides/fglrx; do \\
        sed -e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \\
                -e "s|#LIBDIR#|usr/lib|g" \\
                -e "s|#LIBDIR32#|usr/lib32|g" \\
                -e "s|#BINDIR#|usr/bin|g" \\
                -e "s|#SYSCONFDIR#|etc|g" \\
                -e "s|#MANDIR#|usr/share/man/man1|g" \\
                -e "s|#LDSOCONF#|usr/lib/fglrx/ld.so.conf|g" \\
                -e "s|#ALTLDSOCONF#|usr/lib/fglrx/alt_ld.so.conf|g" \\
                -e "s|#ALTPRIORITY#|1000|g" \\
                -e "s|#PXALTPRIORITY#|900|g" \\
                -e "s|#AUTOSTARTDIR#|etc/xdg/autostart|g" \\
                -e "s|#DATADIR#|usr/share|g" \\
                -e "s|#PKGDESKDIR#|usr/share/fglrx|g" \\
                -e "s|#PKGDATADIR#|usr/share/fglrx|g" \\
                -e "s|#PKGCONFIGDIR#|usr/lib/fglrx|g" \\
                -e "s|#PKGBINDIR#|usr/lib/fglrx/bin|g" \\
                -e "s|#PKGLIBDIR#|usr/lib/fglrx|g" \\
                -e "s|#PKGLIBDIR32#|usr/lib32/fglrx|g" \\
                -e "s|#PKGDRIVERSDIR#|usr/lib/fglrx/xorg|g" \\
                -e "s|#XORGEXTRA#|usr/lib/x86_64-linux-gnu/xorg/extra-modules|g" \\
                -e "s|#PKGEXTENSIONDIR#|usr/lib/fglrx/xorg|g" \\
                -e "s|#XORGEXTENSIONSDIR#|usr/lib/xorg/modules/extensions|g" \\
                -e "s|#DRIVERNAME#|fglrx|g" \\
                -e "s|#DRIVERDEVNAME#|fglrx-dev|g" \\
                -e "s|#DRIVERSRCNAME#||g" \\
                -e "s|#INCLUDEDIR#|usr/include|g" \\
                -e "s|#PKGLIBCONFDIR#|lib/fglrx|g" \\
                -e "s|#GRUBBLKLISTDIR#|usr/share/grub-gfxpayload-lists/blacklist|g" \\
                -e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \\
                -e "s|#PXDIR#|usr/lib/pxpress|g" \\
                -e "s|#PXDIR32#|usr/lib32/pxpress|g" \\
                -e "s|#PXXMODDIR#|usr/lib/pxpress/xorg/modules|g" \\
                -e "s|#PXDIRNAME#|pxpress|g" \\
                -e "s|#PXLIBDIR#|usr/lib/pxpress/lib|g" \\
                -e "s|#PXLIBDIR32#|usr/lib32/pxpress/lib|g" \\
                -e "s|#PXLDSOCONF#|usr/lib/pxpress/ld.so.conf|g" \\
                -e "s|#ALTPXLDSOCONF#|usr/lib/pxpress/alt_ld.so.conf|g" \\
                -e "s|#CVERSION#|8.970|g" \\
                -e "s|#SRCXARCH#|xpic_64a|g" \\
                -e "s|#SRCARCH#|x86_64|g" \\
                -e "s|#SRCLIBDIR#|lib64|g" \\
                -e "s|#DEB_HOST_MULTIARCH#|x86_64-linux-gnu|g" \\
                -e "s|#OTHER_ARCH#|i386-linux-gnu|g" \\
                debian/$i.in > debian/$i;      \\
done
# remove exec bit on everything
find arch \\
        etc \\
        lib \\
        module \\
        usr \\
        xpic_64a     -type f | xargs chmod -x
find: 'module': No such file or directory
# set executable on user apps
find arch/x86_64/usr/sbin \\
        arch/x86_64/usr/X11R6/bin \\
        usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# set the permissions on the pxpress scripts
chmod 744 debian/pxpress/switch*
dh build
dh: warning: Compatibility levels before 9 are deprecated (level 7 in use)
   dh_update_autotools_config
 debian/rules binary
# refresh copyright file
cat debian/copyright_stub_0 > debian/copyright
cat usr/share/doc/fglrx/LICENSE.TXT >> debian/copyright
cat debian/copyright_stub_1 >> debian/copyright
#Steps that we can't easily represent in debhelper files or .in files yet
# Remove any libraries that may be caught by shell expansion
find . -name libGLE* | xargs rm -f
find . -name libEGL* | xargs rm -f
dh_install -pfglrx    "arch/x86/usr/X11R6/lib/libAMD*.so*"           "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/X11R6/lib/*.so*"           "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/X11R6/lib/fglrx/*.so*"     "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installdirs -pfglrx "usr/lib32/fglrx"
dh_installdirs: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/X11R6/lib/modules/dri"     "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/lib/*.so*"                 "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
for i in \\
                debian/fglrx/usr/lib32/fglrx/dri/fglrx_dri.so \\
                debian/fglrx/usr/lib32/fglrx/*libGL.so.* \\
                ; do execstack -q $i; execstack -c $i; done
/bin/sh: 4: execstack: not found
/bin/sh: 4: execstack: not found
/bin/sh: 4: execstack: not found
/bin/sh: 4: execstack: not found
make: *** [debian/rules:220: binary-arch] Error 127
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
[Error] Generate Package - error generating package : Ubuntu/focal
daniel@daniel-ThinkPad-SL410:~$ cat /usr/share/ati/fglrx-install.log
Package build failed!
Package build utility output:
./packages/Ubuntu/ati-packager.sh: 294: debclean: not found
dpkg-buildpackage: info: source package fglrx-installer
dpkg-buildpackage: info: source version 2:8.970-0ubuntu1
dpkg-buildpackage: info: source distribution focal
dpkg-buildpackage: info: source changed by AMD: Advanced Micro Devices. <http://ati.amd.com/support/driver.html>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules build
#Create important strings
for i in 10fglrx \\
                 dkms.conf \\
                 fglrx.install \\
                 fglrx-dev.install \\
                 fglrx-dev.links \\
                 fglrx-amdcccle.install \\
                 fglrx.grub-gfxpayload \\
                 fglrx.dirs \\
                 fglrx.links \\
                 fglrx.postinst \\
                 fglrx.postrm \\
                 fglrx.preinst \\
                 fglrx.prerm \\
                 overrides/fglrx; do \\
        sed -e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \\
                -e "s|#LIBDIR#|usr/lib|g" \\
                -e "s|#LIBDIR32#|usr/lib32|g" \\
                -e "s|#BINDIR#|usr/bin|g" \\
                -e "s|#SYSCONFDIR#|etc|g" \\
                -e "s|#MANDIR#|usr/share/man/man1|g" \\
                -e "s|#LDSOCONF#|usr/lib/fglrx/ld.so.conf|g" \\
                -e "s|#ALTLDSOCONF#|usr/lib/fglrx/alt_ld.so.conf|g" \\
                -e "s|#ALTPRIORITY#|1000|g" \\
                -e "s|#PXALTPRIORITY#|900|g" \\
                -e "s|#AUTOSTARTDIR#|etc/xdg/autostart|g" \\
                -e "s|#DATADIR#|usr/share|g" \\
                -e "s|#PKGDESKDIR#|usr/share/fglrx|g" \\
                -e "s|#PKGDATADIR#|usr/share/fglrx|g" \\
                -e "s|#PKGCONFIGDIR#|usr/lib/fglrx|g" \\
                -e "s|#PKGBINDIR#|usr/lib/fglrx/bin|g" \\
                -e "s|#PKGLIBDIR#|usr/lib/fglrx|g" \\
                -e "s|#PKGLIBDIR32#|usr/lib32/fglrx|g" \\
                -e "s|#PKGDRIVERSDIR#|usr/lib/fglrx/xorg|g" \\
                -e "s|#XORGEXTRA#|usr/lib/x86_64-linux-gnu/xorg/extra-modules|g" \\
                -e "s|#PKGEXTENSIONDIR#|usr/lib/fglrx/xorg|g" \\
                -e "s|#XORGEXTENSIONSDIR#|usr/lib/xorg/modules/extensions|g" \\
                -e "s|#DRIVERNAME#|fglrx|g" \\
                -e "s|#DRIVERDEVNAME#|fglrx-dev|g" \\
                -e "s|#DRIVERSRCNAME#||g" \\
                -e "s|#INCLUDEDIR#|usr/include|g" \\
                -e "s|#PKGLIBCONFDIR#|lib/fglrx|g" \\
                -e "s|#GRUBBLKLISTDIR#|usr/share/grub-gfxpayload-lists/blacklist|g" \\
                -e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \\
                -e "s|#PXDIR#|usr/lib/pxpress|g" \\
                -e "s|#PXDIR32#|usr/lib32/pxpress|g" \\
                -e "s|#PXXMODDIR#|usr/lib/pxpress/xorg/modules|g" \\
                -e "s|#PXDIRNAME#|pxpress|g" \\
                -e "s|#PXLIBDIR#|usr/lib/pxpress/lib|g" \\
                -e "s|#PXLIBDIR32#|usr/lib32/pxpress/lib|g" \\
                -e "s|#PXLDSOCONF#|usr/lib/pxpress/ld.so.conf|g" \\
                -e "s|#ALTPXLDSOCONF#|usr/lib/pxpress/alt_ld.so.conf|g" \\
                -e "s|#CVERSION#|8.970|g" \\
                -e "s|#SRCXARCH#|xpic_64a|g" \\
                -e "s|#SRCARCH#|x86_64|g" \\
                -e "s|#SRCLIBDIR#|lib64|g" \\
                -e "s|#DEB_HOST_MULTIARCH#|x86_64-linux-gnu|g" \\
                -e "s|#OTHER_ARCH#|i386-linux-gnu|g" \\
                debian/$i.in > debian/$i;      \\
done
# remove exec bit on everything
find arch \\
        etc \\
        lib \\
        module \\
        usr \\
        xpic_64a     -type f | xargs chmod -x
find: 'module': No such file or directory
# set executable on user apps
find arch/x86_64/usr/sbin \\
        arch/x86_64/usr/X11R6/bin \\
        usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# set the permissions on the pxpress scripts
chmod 744 debian/pxpress/switch*
dh build
dh: warning: Compatibility levels before 9 are deprecated (level 7 in use)
   dh_update_autotools_config
 debian/rules binary
# refresh copyright file
cat debian/copyright_stub_0 > debian/copyright
cat usr/share/doc/fglrx/LICENSE.TXT >> debian/copyright
cat debian/copyright_stub_1 >> debian/copyright
#Steps that we can't easily represent in debhelper files or .in files yet
# Remove any libraries that may be caught by shell expansion
find . -name libGLE* | xargs rm -f
find . -name libEGL* | xargs rm -f
dh_install -pfglrx    "arch/x86/usr/X11R6/lib/libAMD*.so*"           "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/X11R6/lib/*.so*"           "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/X11R6/lib/fglrx/*.so*"     "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installdirs -pfglrx "usr/lib32/fglrx"
dh_installdirs: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/X11R6/lib/modules/dri"     "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/lib/*.so*"                 "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
for i in \\
                debian/fglrx/usr/lib32/fglrx/dri/fglrx_dri.so \\
                debian/fglrx/usr/lib32/fglrx/*libGL.so.* \\
                ; do execstack -q $i; execstack -c $i; done
/bin/sh: 4: execstack: not found
/bin/sh: 4: execstack: not found
/bin/sh: 4: execstack: not found
/bin/sh: 4: execstack: not found
make: *** [debian/rules:220: binary-arch] Error 127
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
[Error] Generate Package - error generating package : Ubuntu/focal

安装execstack解决编译错误问题

daniel@daniel-ThinkPad-SL410:~$ sudo apt-get install -y execstack
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  execstack
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 74.4 kB of archives.
After this operation, 233 kB of additional disk space will be used.
Get:1 http://hk.archive.ubuntu.com/ubuntu focal/universe amd64 execstack amd64 0.0.20131005-1 [74.4 kB]
Fetched 74.4 kB in 1s (58.4 kB/s)
Selecting previously unselected package execstack.
(Reading database ... 423683 files and directories currently installed.)
Preparing to unpack .../execstack_0.0.20131005-1_amd64.deb ...
Unpacking execstack (0.0.20131005-1) ...
Setting up execstack (0.0.20131005-1) ...
Processing triggers for man-db (2.9.1-1) ...

3.3.2 安装dh-modaliases

daniel@daniel-ThinkPad-SL410:~$ cat /usr/share/ati/fglrx-install.log
Package build failed!
Package build utility output:
./packages/Ubuntu/ati-packager.sh: 294: debclean: not found
dpkg-buildpackage: info: source package fglrx-installer
dpkg-buildpackage: info: source version 2:8.970-0ubuntu1
dpkg-buildpackage: info: source distribution focal
dpkg-buildpackage: info: source changed by AMD: Advanced Micro Devices. <http://ati.amd.com/support/driver.html>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules build
#Create important strings
for i in 10fglrx \\
                 dkms.conf \\
                 fglrx.install \\
                 fglrx-dev.install \\
                 fglrx-dev.links \\
                 fglrx-amdcccle.install \\
                 fglrx.grub-gfxpayload \\
                 fglrx.dirs \\
                 fglrx.links \\
                 fglrx.postinst \\
                 fglrx.postrm \\
                 fglrx.preinst \\
                 fglrx.prerm \\
                 overrides/fglrx; do \\
        sed -e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \\
                -e "s|#LIBDIR#|usr/lib|g" \\
                -e "s|#LIBDIR32#|usr/lib32|g" \\
                -e "s|#BINDIR#|usr/bin|g" \\
                -e "s|#SYSCONFDIR#|etc|g" \\
                -e "s|#MANDIR#|usr/share/man/man1|g" \\
                -e "s|#LDSOCONF#|usr/lib/fglrx/ld.so.conf|g" \\
                -e "s|#ALTLDSOCONF#|usr/lib/fglrx/alt_ld.so.conf|g" \\
                -e "s|#ALTPRIORITY#|1000|g" \\
                -e "s|#PXALTPRIORITY#|900|g" \\
                -e "s|#AUTOSTARTDIR#|etc/xdg/autostart|g" \\
                -e "s|#DATADIR#|usr/share|g" \\
                -e "s|#PKGDESKDIR#|usr/share/fglrx|g" \\
                -e "s|#PKGDATADIR#|usr/share/fglrx|g" \\
                -e "s|#PKGCONFIGDIR#|usr/lib/fglrx|g" \\
                -e "s|#PKGBINDIR#|usr/lib/fglrx/bin|g" \\
                -e "s|#PKGLIBDIR#|usr/lib/fglrx|g" \\
                -e "s|#PKGLIBDIR32#|usr/lib32/fglrx|g" \\
                -e "s|#PKGDRIVERSDIR#|usr/lib/fglrx/xorg|g" \\
                -e "s|#XORGEXTRA#|usr/lib/x86_64-linux-gnu/xorg/extra-modules|g" \\
                -e "s|#PKGEXTENSIONDIR#|usr/lib/fglrx/xorg|g" \\
                -e "s|#XORGEXTENSIONSDIR#|usr/lib/xorg/modules/extensions|g" \\
                -e "s|#DRIVERNAME#|fglrx|g" \\
                -e "s|#DRIVERDEVNAME#|fglrx-dev|g" \\
                -e "s|#DRIVERSRCNAME#||g" \\
                -e "s|#INCLUDEDIR#|usr/include|g" \\
                -e "s|#PKGLIBCONFDIR#|lib/fglrx|g" \\
                -e "s|#GRUBBLKLISTDIR#|usr/share/grub-gfxpayload-lists/blacklist|g" \\
                -e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \\
                -e "s|#PXDIR#|usr/lib/pxpress|g" \\
                -e "s|#PXDIR32#|usr/lib32/pxpress|g" \\
                -e "s|#PXXMODDIR#|usr/lib/pxpress/xorg/modules|g" \\
                -e "s|#PXDIRNAME#|pxpress|g" \\
                -e "s|#PXLIBDIR#|usr/lib/pxpress/lib|g" \\
                -e "s|#PXLIBDIR32#|usr/lib32/pxpress/lib|g" \\
                -e "s|#PXLDSOCONF#|usr/lib/pxpress/ld.so.conf|g" \\
                -e "s|#ALTPXLDSOCONF#|usr/lib/pxpress/alt_ld.so.conf|g" \\
                -e "s|#CVERSION#|8.970|g" \\
                -e "s|#SRCXARCH#|xpic_64a|g" \\
                -e "s|#SRCARCH#|x86_64|g" \\
                -e "s|#SRCLIBDIR#|lib64|g" \\
                -e "s|#DEB_HOST_MULTIARCH#|x86_64-linux-gnu|g" \\
                -e "s|#OTHER_ARCH#|i386-linux-gnu|g" \\
                debian/$i.in > debian/$i;      \\
done
# remove exec bit on everything
find arch \\
        etc \\
        lib \\
        module \\
        usr \\
        xpic_64a     -type f | xargs chmod -x
find: 'module': No such file or directory
# set executable on user apps
find arch/x86_64/usr/sbin \\
        arch/x86_64/usr/X11R6/bin \\
        usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# set the permissions on the pxpress scripts
chmod 744 debian/pxpress/switch*
dh build
dh: warning: Compatibility levels before 9 are deprecated (level 7 in use)
   dh_update_autotools_config
 debian/rules binary
# refresh copyright file
cat debian/copyright_stub_0 > debian/copyright
cat usr/share/doc/fglrx/LICENSE.TXT >> debian/copyright
cat debian/copyright_stub_1 >> debian/copyright
#Steps that we can't easily represent in debhelper files or .in files yet
# Remove any libraries that may be caught by shell expansion
find . -name libGLE* | xargs rm -f
find . -name libEGL* | xargs rm -f
dh_install -pfglrx    "arch/x86/usr/X11R6/lib/libAMD*.so*"           "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/X11R6/lib/*.so*"           "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/X11R6/lib/fglrx/*.so*"     "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_installdirs -pfglrx "usr/lib32/fglrx"
dh_installdirs: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/X11R6/lib/modules/dri"     "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install -pfglrx "arch/x86/usr/lib/*.so*"                 "usr/lib32/fglrx"
dh_install: warning: Compatibility levels before 9 are deprecated (level 7 in use)
for i in \\
                debian/fglrx/usr/lib32/fglrx/dri/fglrx_dri.so \\
                debian/fglrx/usr/lib32/fglrx/*libGL.so.* \\
                ; do execstack -q $i; execstack -c $i; done
/bin/sh: 4: execstack: not found
/bin/sh: 4: execstack: not found
/bin/sh: 4: execstack: not found
/bin/sh: 4: execstack: not found
make: *** [debian/rules:220: binary-arch] Error 127
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
./packages/Ubuntu/ati-packager.sh: 294: debclean: not found
dpkg-buildpackage: info: source package fglrx-installer
dpkg-buildpackage: info: source version 2:8.970-0ubuntu1
dpkg-buildpackage: info: source distribution focal
dpkg-buildpackage: info: source changed by AMD: Advanced Micro Devices. <http://ati.amd.com/support/driver.html>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules build
#Create important strings
for i in 10fglrx \\
                 dkms.conf \\
                 fglrx.install \\
                 fglrx-dev.install \\
                 fglrx-dev.links \\
                 fglrx-amdcccle.install \\
                 fglrx.grub-gfxpayload \\
                 fglrx.dirs \\
                 fglrx.links \\
                 fglrx.postinst \\
                 fglrx.postrm \\
                 fglrx.preinst \\
                 fglrx.prerm \\
                 overrides/fglrx; do \\
        sed -e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \\
                -e "s|#LIBDIR#|usr/lib|g" \\
                -e "s|#LIBDIR32#|usr/lib32|g" \\
                -e "s|#BINDIR#|usr/bin|g" \\
                -e "s|#SYSCONFDIR#|etc|g" \\
                -e "s|#MANDIR#|usr/share/man/man1|g" \\
                -e "s|#LDSOCONF#|usr/lib/fglrx/ld.so.conf|g" \\
                -e "s|#ALTLDSOCONF#|usr/lib/fglrx/alt_ld.so.conf|g" \\
                -e "s|#ALTPRIORITY#|1000|g" \\
                -e "s|#PXALTPRIORITY#|900|g" \\
                -e "s|#AUTOSTARTDIR#|etc/xdg/autostart|g" \\
                -e "s|#DATADIR#|usr/share|g" \\
                -e "s|#PKGDESKDIR#|usr/share/fglrx|g" \\
                -e "s|#PKGDATADIR#|usr/share/fglrx|g" \\
                -e "s|#PKGCONFIGDIR#|usr/lib/fglrx|g" \\
                -e "s|#PKGBINDIR#|usr/lib/fglrx/bin|g" \\
                -e "s|#PKGLIBDIR#|usr/lib/fglrx|g" \\
                -e "s|#PKGLIBDIR32#|usr/lib32/fglrx|g" \\
                -e "s|#PKGDRIVERSDIR#|usr/lib/fglrx/xorg|g" \\
                -e "s|#XORGEXTRA#|usr/lib/x86_64-linux-gnu/xorg/extra-modules|g" \\
                -e "s|#PKGEXTENSIONDIR#|usr/lib/fglrx/xorg|g" \\
                -e "s|#XORGEXTENSIONSDIR#|usr/lib/xorg/modules/extensions|g" \\
                -e "s|#DRIVERNAME#|fglrx|g" \\以上是关于Mobility Radeon HD 4530 @ubuntu20.04 显卡驱动不支持[GPU无法使用]的主要内容,如果未能解决你的问题,请参考以下文章

求linux系统下的RADEON HD 3650显卡驱动和安装方法

Radeon RX 6900 XT天梯榜首发评测:收放自如,RDNA 2能耗比王者

C# WPF 怎样使用 Graphics呢?

Cisco AnyConnect Secure Mobility Client Data Sheet

python 使用app用户的CUCM Extension Mobility APInlogin

BZOJ 4530: [Bjoi2014]大融合