如何在 Debian Jessie 上安装适合 radeon 5450 的 GPU 驱动程序?

如何在 Debian Jessie 上安装适合 radeon 5450 的 GPU 驱动程序?

我有一台支持 2560x1080 的显示器。虽然我有 Radeon 5450 显卡,运行 Debian Jessie,但我只能得到 1920x1080。我安装了firmware-linux-nonfree它以使其运行。为什么没有列出我的完整解决方案?

使用 apt-get 安装 fglrx-driver

我必须提到这sudo apt-get install fglrx-driver给了我以下错误:

sudo apt-get install fglrx-driver 
[sudo] password for mostafa: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 fglrx-driver : Depends: xorg-video-abi-19 but it is not installable or
                         xorg-video-abi-18 or
                         xorg-video-abi-15 but it is not installable or
                         xorg-video-abi-14 but it is not installable or
                         xorg-video-abi-13 but it is not installable or
                         xorg-video-abi-12 but it is not installable or
                         xorg-video-abi-11 but it is not installable or
                         xorg-video-abi-10 but it is not installable or
                         xorg-video-abi-8 but it is not installable or
                         xorg-video-abi-6.0 but it is not installable
                Recommends: fglrx-modules-dkms (= 1:15.9-4~deb8u2) but it is not going to be installed or
                            fglrx-kernel-15.9
                Recommends: libgl1-fglrx-glx (= 1:15.9-4~deb8u2) but it is not going to be installed
                Recommends: libgl1-fglrx-glx-i386 but it is not installable
                Recommends: fglrx-atieventsd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

从 AMD 网站安装专有驱动程序

从 AMD 网站安装专有驱动程序会出现以下错误:

Supported adapter detected.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.
Unloading radeon module...
rmmod: ERROR: Module radeon is in use
Unloading drm module...
rmmod: ERROR: Module drm is in use by: ttm drm_kms_helper radeon
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Message] Kernel Module : Found kernel module build environment, generating kernel module now.
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/4.5.0-2-amd64/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory '/usr/src/linux-headers-4.5.0-2-amd64'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘firegl_major_proc_read’:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:634:9: error: void value not ignored as it ought to be
     len = seq_printf(m, "%d\n", major);
         ^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_fpu_save_init’:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6458:49: error: ‘XSTATE_FP’ undeclared (first use in this function)
       if (!(fpu->state.xsave.header.xfeatures & XSTATE_FP))
                                                 ^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6458:49: note: each undeclared identifier is reported only once for each function it appears in
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6448:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function]
 static int KCL_fpu_save_init(struct task_struct *tsk)
            ^
/usr/src/linux-headers-4.5.0-2-common/scripts/Makefile.build:263: recipe for target '/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o' failed
make[4]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
/usr/src/linux-headers-4.5.0-2-common/Makefile:1408: recipe for target '_module_/lib/modules/fglrx/build_mod/2.6.x' failed
make[3]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.5.0-2-amd64'
Makefile:88: recipe for target 'kmod_build' failed
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
[Reboot] Kernel Module : update-initramfs

答案1

根据debian-wiki你需要安装linux-headersfglrx-modules-dkms

首先将以下行添加到您的sources.list

deb http://httpredir.debian.org/debian/ jessie main contrib non-free

然后键入以下命令:

aptitude update
aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') fglrx-driver

创建配置文件20-fglrx.conf

mkdir /etc/X11/xorg.conf.d
echo -e 'Section "Device"\n\tIdentifier "My GPU"\n\tDriver "fglrx"\nEndSection' > /etc/X11/xorg.conf.d/20-fglrx.conf

重新启动并验证您的解决方案。

相关内容