LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-11-2016, 06:47 AM   #1
blackbeltbob
LQ Newbie
 
Registered: Apr 2016
Posts: 7

Rep: Reputation: Disabled
Broken video driver for Dell Precision M4800 laptop


Hi. My laptop has two video cards. The first is the onboard intel card, the other is the AMD/ATI Radeon HD 8870M.

Some info:

Code:
xxx@machine:~$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d4)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d4)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d4)
00:1c.6 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #7 (rev d4)
00:1c.7 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #8 (rev d4)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM87 Express LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus XT [Radeon HD 8870M / R9 M270X/M370X]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
03:00.0 Network controller: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter (rev 03)
11:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
Code:
xxx@machine:~$ lshw -short
WARNING: you should run this program as super-user.
H/W path       Device      Class          Description
=====================================================
                           system         Computer
/0                         bus            Motherboard
/0/0                       memory         31GiB System memory
/0/1                       processor      Intel(R) Core(TM) i7-4910MQ CPU @ 2.90GHz
/0/100                     bridge         Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller
/0/100/1                   bridge         Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
/0/100/1/0                 display        Venus XT [Radeon HD 8870M / R9 M270X/M370X]
/0/100/1/0.1               multimedia     Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
/0/100/2                   display        4th Gen Core Processor Integrated Graphics Controller
/0/100/3                   multimedia     Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
/0/100/14                  bus            8 Series/C220 Series Chipset Family USB xHCI
/0/100/16                  communication  8 Series/C220 Series Chipset Family MEI Controller #1
/0/100/19      eth0        network        Ethernet Connection I217-LM
/0/100/1a                  bus            8 Series/C220 Series Chipset Family USB EHCI #2
/0/100/1b                  multimedia     8 Series/C220 Series Chipset High Definition Audio Controller
/0/100/1c                  bridge         8 Series/C220 Series Chipset Family PCI Express Root Port #1
/0/100/1c.2                bridge         8 Series/C220 Series Chipset Family PCI Express Root Port #3
/0/100/1c.2/0  wlan0       network        BCM4352 802.11ac Wireless Network Adapter
/0/100/1c.3                bridge         8 Series/C220 Series Chipset Family PCI Express Root Port #4
/0/100/1c.4                bridge         8 Series/C220 Series Chipset Family PCI Express Root Port #5
/0/100/1c.6                bridge         8 Series/C220 Series Chipset Family PCI Express Root Port #7
/0/100/1c.7                bridge         8 Series/C220 Series Chipset Family PCI Express Root Port #8
/0/100/1c.7/0              generic        SD/MMC Card Reader Controller
/0/100/1d                  bus            8 Series/C220 Series Chipset Family USB EHCI #1
/0/100/1f                  bridge         QM87 Express LPC Controller
/0/100/1f.2                storage        82801 Mobile SATA Controller [RAID mode]
/0/100/1f.3                bus            8 Series/C220 Series Chipset Family SMBus Controller
/0/2           scsi1       storage        
/0/2/0.0.0     /dev/cdrom  disk           DVD+-RW GU90N
Code:
xxx@machine:~$ lshw -C video
WARNING: you should run this program as super-user.
  *-display UNCLAIMED     
       description: VGA compatible controller
       product: Venus XT [Radeon HD 8870M / R9 M270X/M370X]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller cap_list
       configuration: latency=0
       resources: memory:e0000000-efffffff memory:f7e00000-f7e3ffff ioport:e000(size=256) memory:f7e40000-f7e5ffff
  *-display
       description: VGA compatible controller
       product: 4th Gen Core Processor Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:47 memory:f5800000-f5bfffff memory:d0000000-dfffffff ioport:f000(size=64)
Code:
xxx@machine:~$ cat /etc/issue
Debian GNU/Linux stretch/sid \n \l
xxx@machine:~$ cat /etc/debian_version
stretch/sid
The Radeon video card is unclaimed, which I think means that no driver is present for it. Which driver do I need, and where can I find it? Aptitude?
 
Old 04-11-2016, 06:55 AM   #2
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Package firmware-amd-graphics contains various AMD/ATI Radeon drivers.
To install it, you have to enable non-free, so your sources.list entry would look like this:
Code:
deb http://ftp.de.debian.org/debian sid main contrib non-free
 
Old 04-11-2016, 07:11 AM   #3
blackbeltbob
LQ Newbie
 
Registered: Apr 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
I've added the header to my sources.list and then used:
Code:
sudo apt-get install firmware-amd-graphics
Aptitude successfully installed it, but after rebooting, the video card is still unclaimed. Can I check what video drivers are currently installed?
 
Old 04-11-2016, 07:21 AM   #4
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by blackbeltbob View Post
I've added the header to my sources.list and then used:
Code:
sudo apt-get install firmware-amd-graphics
Aptitude successfully installed it, but after rebooting, the video card is still unclaimed. Can I check what video drivers are currently installed?
APT, not aptitude, which is a front-end for APT. /lib/modules is where modules, including graphics are stored. The full list of drivers, included in the package, is here.

This will highlight, what is inactive currently. Open the html file with a browser.
Code:
lshw -html > lshw.html
By the way, if you use Jessie/Stable, the package is in backports, thus remove sid, so it goes like this:
Code:
deb http://ftp.de.debian.org/debian jessie-backports main contrib non-free
This may help too.

Last edited by Mitt Green; 04-11-2016 at 07:25 AM.
 
Old 04-11-2016, 07:34 AM   #5
blackbeltbob
LQ Newbie
 
Registered: Apr 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi, I just checked the list of drivers you linked to, but can't find the R9 M270x family in it.

My sources.list file looks like this:

Code:
deb cdrom:[Debian GNU/Linux 7 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150114-03:51]/ testing main
deb http://ftp.nl.debian.org/debian/ testing main contrib
deb-src http://ftp.nl.debian.org/debian/ testing main contrib
deb http://security.debian.org/ testing/updates main
deb-src http://security.debian.org/ testing/updates main
# testing-updates, previously known as 'volatile'
deb http://ftp.nl.debian.org/debian/ testing-updates main
deb-src http://ftp.nl.debian.org/debian/ testing-updates main
deb http://download.virtualbox.org/virtualbox/debian testing contrib
deb http://ftp.nl.debian.org/debian/ testing main contrib non-free
deb http://ftp.nl.debian.org/debian/ testing main
deb http://ftp.nl.debian.org/debian/ sid main contrib non-free
 
Old 04-12-2016, 10:16 AM   #6
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Have you taken a look at the last link I sent? I has descriptions on how to obtain a driver from AMD site.
 
Old 04-13-2016, 06:40 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
which video card are you using? I ask because, does not that have to be set in BIOS to use one or the other? So, only one driver needs to be installed for the corresponding video card you're using. But if you're switching cards, then it's not over kill.

AMD/ATI Radeon HD 8870M. My distro just installed my AMD/ATI Radeon drivers. I'm surprised Debian doesn't have any in their repo.

Last edited by BW-userx; 04-13-2016 at 06:43 AM.
 
Old 04-19-2016, 06:02 PM   #8
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
By default you use the Intel driver. These Intel+AMD combinations have all displays wired to the Intel card and none to AMD. The AMD card functions as a processing backend meaning you either use Intel and AMD or Intel only. Everything goes through the Intel card.

To use the default open source drivers, you need the following: kernel drivers, mesa, libdrm, x drivers and non-free firmware. On Debian everything but the firmware package is installed by default if you have a graphical environment installed.
The x driver is named xserver-xorg-video-radeon OR (newer hardware) xserver-xorg-video-amdgpu and -intel respectively. Make sure all 3 are installed. The kernel drivers are named i915 for Intel and radeon OR amdgpu (depending on generation) for AMD. make sure you have the radeon AND amdgpu kernel module (modinfo radeon and modinfo amdgpu).
Make sure you dont have anything that blocks the radeon/amdgpu module OR anythng that DISABLES KMS.

Testing:
1. Check the output of the 'dmesg' command and /var/log/Xorg.0.log file. You should have there the initialization sequence for intel and radeon cards if you have the drivers installed.
2. To actually test the cards install the mesa-utils package then check the following:
Code:
xrandr --listproviders
Which should return something
Code:
$xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x7e cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 8 associated providers: 0 name:Intel
Provider 1: id: 0x52 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 2 outputs: 1 associated providers: 0 name:OLAND @ pci:0000:01:00.0
Then do (replace the relevant info)
Code:
xrandr --setprovideroffloadsink "OLAND @ pci:0000:01:00.0" Intel
Now if you want to run something on card index 0, you dont need to do anything, but for index 1 you need to set the "DRI_PRIME=1" variable
For example to identify the used opengl driver:

Code:
DRI_PRIME=1 glxinfo | grep -i open
ATTENTION: default value of option vblank_mode overridden by environment.
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD OLAND (DRM 2.43.0, LLVM 3.7.1)
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
and
Code:
glxinfo | grep -i open
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: option value of option vblank_mode ignored.
    Vendor: Intel Open Source Technology Center (0x8086)
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
ATTENTION: option value of option vblank_mode ignored.
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
ATTENTION: option value of option vblank_mode ignored.
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
The lshw output (note that the radeon card doesnt even show up usually since its off by default, here i ran a glxinfo on it and quickly the lshw before it deactivated)

Code:
$ lshw -C video
WARNING: you should run this program as super-user.
  *-display               
       description: VGA compatible controller
       product: Mars XTX [Radeon HD 8790M]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=radeon latency=0
       resources: irq:35 memory:e0000000-efffffff memory:f7c00000-f7c3ffff ioport:e000(size=256) memory:f7c40000-f7c5ffff
  *-display
       description: VGA compatible controller
       product: 4th Gen Core Processor Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:33 memory:f5800000-f5bfffff memory:d0000000-dfffffff ioport:f000(size=64)
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
The above are on a Dell Latitude E6540 with Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz and Radeon HD 8790M AMD GPU. Depending on the DE used you might actually have the setup done already, only you need the DRI_PRIME variable prepended to the command you need.

Important Note: for actually displaying stuff from the dedicated gpu (instead of a black window) you need either run the x drivers in DRI3 mode (not totally stable at least on Debian testing) or use a compositing manager (gnome, kde, cinammon DE has them by default, but xfce, mate etc do not - you can use compton for example).

If you need info about proprietary drivers maybe others migh help but for new generations of AMD cards at the moment there is a reorganization going on (they move to a new hybrid open source/pluggable proprietary module driver architecture) and the proprietary driver might not have support for some for a time. I dont know if your card falls into this category.

Last edited by gradinaruvasile; 04-19-2016 at 06:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dell Precision M4800 video card blackbeltbob Linux - Hardware 1 04-12-2016 02:26 PM
Linux Mint Nadia on Dell Precision M6400 - wierd slowness, choppy video kourama Linux - Laptop and Netbook 2 02-05-2013 11:40 PM
RHED 5.1 on my dell Precision M2400 laptop marios Linux - Newbie 3 05-07-2009 12:19 PM
Dell inspiron 6400 laptop - ati video driver installation rssn6 Slackware 3 12-16-2008 06:17 PM
Dell Precision 690 SAS drive SUSE Driver? haiders Linux - Hardware 2 09-13-2006 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration