[SOLVED] Problem installing Radeon driver packages with second debian install
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
Problem installing Radeon driver packages with second debian install
I have a debian OS on a partition on my hard disk (sda1).
There was no sound because the ati rs880/radeon 4200 sound card needed drivers which were only in the debian 'non-free' version'.
So I added the non-free version to my install and also had to make a change to the GRUB bootloader file.
After that, I got sound.
Now I've installed a new debian distro to my second partition - sda2.
This time I ensured I installed the debian non-free version.
But I'm having trouble installing the drivers for the sound card.
I go into Synaptic package manager to install the relevant drivers and it gives me an error message:
I'm not sure what that means because I want the drivers for my sound card - not graphics.
When I press the 'Help' button, it says:
Code:
This system has a graphics card which is no longer handled by the Fglrx driver...
The above card requires either the non-free legacy Fgrlx driver
(package fgrlx-legacy-driver) or the free Radeon driver (package xserver-xorg-video-radeon).
This is fine because I can just install the 'free Radeon driver'.
But the Help message then says:
Code:
Before the Radeon driver can be used you must remove Fglrx configuration from xorg.conf
(and xorg.conf.d/)
Note that switching to the free Radeon driver requires the fglrx-driver package to be purged (not just removed).
So now I don't know what to do. Has anyone had this error message?
I know I can enable sound and have no problems with the graphics card because that's what happened with my original install on sda1.
But with the install on sda2, I don't know how to approach this problem.
Can anyone help please?
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by EDDY1
You have to use the fglrx-legacy driver or free- radeon driver & purge the fglrx-driver.
I tried the 'apt-get purge fglrx' command and I got:
Code:
apt-get purge fglrx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'fglrx' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
fglrx-driver : Depends: libfglrx (= 1:12-6+point-3) but it is not going to be installed...
So I input 'apt-get -f install' and I got a GUI asking if I wanted the unsupported fglrx.
I selected 'no' and the ouput after some messages is:
Code:
*** The following unsupported devices are present in the machine:
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4250] [1002:9715]
Aborting fglrx installation.
dpkg: error processing /var/cache/apt/archives/libfglrx_1%3a12-6+point-3_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libfglrx_1%3a12-6+point-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm missing something here.
I only say that because I didn't go through this with my first install.
If you have a /etc/X11/xorg.conf and it has the fglrx as the driver listed driver section change it to radeon or move the file to somewhere else so you will have access to it if it is needed later. Go to /etc/modprobe.d and see if there is a fglrx.conf that has a line with the following: blacklist radeon. If so comment out the line by putting the # at the beginning of the line. Reboot. If everything goes good you will get a graphical screen.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by colorpurple21859
If you have a /etc/X11/xorg.conf and it has the fglrx as the driver listed driver section change it to radeon or move the file to somewhere else so you will have access to it if it is needed later.
For some reason /etc doesn't have a X11 directory:
Go to /etc/modprobe.d and see if there is a fglrx.conf that has a line with the following: blacklist radeon. If so comment out the line by putting the # at the beginning of the line. Reboot. If everything goes good you will get a graphical screen.
The /etc/modprobe.d dir has a fglrx-driver.conf.dpkg-new file:
Code:
cat fglrx-driver.conf.dpkg-new
# fglrx conflicts with the free radeon module.
blacklist radeon
So now I've commented it out:
Code:
/etc/modprobe.d# cat fglrx-driver.conf.dpkg-new
# fglrx conflicts with the free radeon module.
#blacklist radeon
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by jlinkels
dpkg --get-selections | grep fglrx
Now you see a list with all fglrx related packages. The package fglrx is not installed, all packages are foo-fglrx-bar or something.
I'm not sure if I'm doing the command right, but when I try to purge the first install dpkg, I get this error message:
Code:
/# apt-get remove --purge fglrx-atieventsd
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
fglrx-driver : Depends: libfglrx (= 1:12-6+point-3) but it is not going to be installed
Recommends: fglrx-modules-dkms (= 1:12-6+point-3) but it is not going to be installed or
fglrx-kernel-12-6+point
Recommends: libgl1-fglrx-glx-i386 but it is not installable
Recommends: fglrx-glx-ia32 but it is not going to be installed
Recommends: fglrx-atieventsd but it is not going to be installed
libgl1-fglrx-glx : Depends: libfglrx (= 1:12-6+point-3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So I tried the recommendation from the error message and used 'apt-get -f install'.
I've used this command before and a GUI appears asking if I want to 'Install Fglrx driver despite unsupported graphics card?'
I always reply <No> to this and get the subsequent error message:
Code:
apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libfglrx
The following NEW packages will be installed:
libfglrx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/13.4 MB of archives.
After this operation, 47.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 129605 files and directories currently installed.)
Unpacking libfglrx:amd64 (from .../libfglrx_1%3a12-6+point-3_amd64.deb) ...
*** The following unsupported devices are present in the machine:
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4250] [1002:9715]
Aborting fglrx installation.
dpkg: error processing /var/cache/apt/archives/libfglrx_1%3a12-6+point-3_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libfglrx_1%3a12-6+point-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Am I creating some kind of conflict somewhere?
The install looks ok but gnome hasn't loaded fully.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by colorpurple21859
Now reboot and see if the purge fglrx commands will work and install firmware-linux if you haven't done so
I finally got the purge commands to work.
I went into Synaptic pkg manager and it showed a 'broken' package. I think it was the fglrx package.
So when I tried to purge the already installed fglrx packages, it couldn't do it because the main fglrx package hadn't been installed properly.
So I used Synaptic to fully install the fglrx main package.
After that, when I used the 'apt-get remove --' command I was able to remove all the fgrlx packages properly.
I've done 'dpkg --get-selections | grep fglrx' and it's now showing no entries.
Last time I sorted out the sound problem I created a .asoundrc file in /home/user with some commands in it. http://alsa.opensrc.org/The_.asoundrc_file
So I did that again.
I also know I had to add an extra bit of text:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet radeon.audio=1"
in /etc/default/grub.
Then:
Code:
update grub
This eventually gave me sound for my radeon hdmi sound card.
But I'm still not getting sound.
I'm wondering if I have installed all the device drivers.
I remember going into Synaptic and installing everything with 'radeon' in it on my first install on a different partition.
But these installs refer to radeon display driver and are fglrx packages.
Should I install any of these?
You say you edited the asoundrc file. Did you put in the correct card number? You can list the cards as seen by the system by cat /proc/asound/cards.
Aren't you using Pulse? Then it should not be necessary anymore to mess around with asoundrc. Did you check with Alsamixer if none of the outputs is actually muted or so? But I have to admit the cooperation between alsa and Pulse is quite opaque to me. In Debian 7+ it usually just works.
Thanks. This is a very good link.
Post 22 says adding 'radeon.audio=1' to /etc/default/grub 'will no longer be necessary with this kernel' (3.13 kernel)
My kernel is:
Code:
cat /proc/version
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.65-1
So I should have the kernel which now sorts out the sound problem with the 'xrandr' command.
My HDMI is labelled as 0
Code:
xrandr
Screen 0: minimum 320 x 200, current 1360 x 768, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1360x768+0+0 (normal left inverted right x axis y axis) 1150mm x 650mm
But when I use the xrandr command I get an error message:
Code:
xrandr --output HDMI-0 --set audio on
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 150 (RANDR)
Minor opcode of failed request: 11 (RRQueryOutputProperty)
Serial number of failed request: 27
Current serial number in output stream: 27
I don't know what that means.
Quote:
You say you edited the asoundrc file. Did you put in the correct card number? You can list the cards as seen by the system by cat /proc/asound/cards.
Good point.
I changed the values in the .asoundrc accordingly.
Quote:
Aren't you using Pulse? Then it should not be necessary anymore to mess around with asoundrc.
I don't think I've installed it.
Quote:
Did you check with Alsamixer if none of the outputs is actually muted or so?
Yes. I've also changed sound to the HDMI card.
Now my problem seems to be finding out why the xrandr command isn't working.
Even so, my debian install on a different partition was only done a few days ago.
And the 'radeon.audio=1' code added to /etc/default/grub turned the sound on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.