[mhwd] merge opensource graphicsdriver scripts?

amdgpu
intel
mhwd
radeon

#1

For the last few year, we where working on slim down the opensource graphicsdriver scripts, because mhwd is not needed for the free drivers at all.

Right now we have following issues in mwhd for free drivers:

  • we need to add new PCIIDs all the time
  • with a missing PCIID, mhwd will load vesa and make xorg/waylandcomp not work
  • in case of hybrid graphics, we have the hybrid graphics scrips AND the single chip scripts - wich is confusing
  • It’s to much hassle in case of hardware upgrades.

Now my idea is - instead of

hybrid-intel-ati-bumblebee	
hybrid-intel-nouveau-bumblebee	
hybrid-intel-nouveau-prime
hybrid-intel-radeon-prime
hybrid-radeon-amdgpu-prime
hybrid-intel-amdgpu-prime

video-amdgpu
video-ati
video-intel
video-nouveau

(*video-*-amdgpu-experimental*)

Let’s just ship a generic video-standard script. In case of free drivers, we can let linux/mesa/xorg/wayland-compositors handle things much better. Most things are shared batween all those drivers anyways. So there isnt a real need to have a single script for all of them.

The downside would be that some packages would end on users computer, that are not needed. Like radeon-vulkan on intel only systems, intel-vulkan on not supported plattforms (thats the current state anyways). This would mean a few KiB(-MiB?) more.


What is video-linux? SOLVED
AMD gpu
[Testing Update] 2018-02-22 - MHWD, NVIDIA, Hybrid Graphic Setup
Cant get the live cd to boot on ryzen 5 2400g
Not sure if my intel hd graphics is installed and working
Help installing CUDA on nvidia optimus enabled system
Repetitive driver entries in Manjaro Settings Manager
Intel i5-3230M graphics driver kernel 4.14
nVidia GPU drivers: Is linux-video the new linux-nouveau?
After recent updates video issues in KDE
[Stable Update] 2018-02-25 - Kernels, Plasma, Mesa, Systemd, QT5, Browsers
What exactly is video-linux, and why can't I install proprietary drivers?
Separate video-intel from video-linux in MHWD
#2

some more packages in base install that are not needed are ok, because the general approach promises to solve a lot of existing issues.

I am definitely in favor of that approach.


#3

You mean “not needed to have a separate script for each of them”? (Sorry for stupid question!)


#4

after thinking about it a bit: naming proposal: video-opensource or video-mesa or something that is also true but not understood as synonym for “regular, default, bad-because-it-says-standard-and-not-pro-or-advanced-and-I-won’t-use-standard-stuff”


#5

“video-best” :stuck_out_tongue: We really need a nice name. otherwise user want to install catalyst because of the cool name!

^ this. Yes :slight_smile:


#6

^ and there it is. It’s called “video-linux”. If something is wrong - please tell me. :grin:


#7

After installing video-linux, my inxi output now looks like that:

Graphics: Card: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/580]
bus-ID: 01:00.0 chip-ID: 1002:67df
Display Server: x11 (X.Org 1.19.6 ) drivers: ati,amdgpu (unloaded: modesetting,radeon)
Resolution: 2560x1440@143.86hz, 2560x1440@59.95hz
OpenGL: renderer: AMD Radeon RX 480 Graphics (POLARIS10 / DRM 3.23.0 / 4.15.4-2-MANJARO, LLVM 5.0.1)
version: 4.5 Mesa 17.3.4 (compat-v: 3.0) Direct Render: Yes

lspci however tells:

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/580] [1002:67df] (rev c7)
Subsystem: Micro-Star International Co., Ltd. [MSI] Radeon RX 480 [1462:3413]
Kernel driver in use: amdgpu

no problems found so far.


#8

@Lolix would it be possible for you to create a gnome installer image, based on unstable, with linux 4.15?

mhwd-db-0.6.2dev-1 should be in unstable now. So this would be interesting to test with the new ryzen APU and vega graphics in generall :grin:


Any support for the Ryzen 2200G and 2400G for Linux?
#9

inxi on a Ryzen 5 2400G:

System:    Host: spin Kernel: 4.15.4-2-MANJARO x86_64 bits: 64 gcc: 7.3.0 Desktop: KDE Plasma 5.12.1 (Qt 5.10.1)
           Distro: Manjaro Linux
Machine:   Device: desktop Mobo: ASRock model: AB350 Gaming-ITX/ac serial: N/A
           UEFI [Legacy]: American Megatrends v: P4.40 date: 01/08/2018
CPU:       Quad core AMD Ryzen 5 2400G with Radeon Vega Graphics (-MT-MCP-) arch: Zen rev.0 cache: 2048 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 28745
           clock speeds: max: 3600 MHz 1: 1665 MHz 2: 1522 MHz 3: 1500 MHz 4: 1465 MHz 5: 1562 MHz 6: 1504 MHz
           7: 1605 MHz 8: 1527 MHz
Memory:    Using dmidecode: root required for dmidecode
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon Vega 8 Mobile] bus-ID: 38:00.0
           Display Server: x11 (X.Org 1.19.6 ) driver: vesa Resolution: 1680x1050@0.00hz
           OpenGL: renderer: llvmpipe (LLVM 5.0, 128 bits) version: 3.3 Mesa 17.3.4 Direct Render: Yes
Audio:     Card-1 Advanced Micro Devices [AMD] Device 15e3 driver: snd_hda_intel bus-ID: 38:00.6
           Card-2 Advanced Micro Devices [AMD/ATI] Device 15de driver: snd_hda_intel bus-ID: 38:00.1
           Sound: Advanced Linux Sound Architecture v: k4.15.4-2-MANJARO
Network:   Card-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi bus-ID: 24:00.0
           IF: wlp36s0 state: down mac: 
           Card-2: Intel I211 Gigabit Network Connection driver: igb v: 5.4.0-k port: f000 bus-ID: 25:00.0
           IF: enp37s0 state: up speed: 1000 Mbps duplex: full mac: 
Drives:    HDD Total Size: 2370.5GB (21.4% used)
           ID-1: /dev/sda model: WDC_WD20EARX size: 2000.4GB
           ID-2: /dev/sdb model: Crucial_CT250MX2 size: 250.1GB
           ID-3: /dev/sdc model: Samsung_SSD_840 size: 120.0GB
Partition: ID-1: / size: 49G used: 8.3G (18%) fs: ext4 dev: /dev/dm-3
           ID-2: /usr size: 49G used: 9.8G (22%) fs: ext4 dev: /dev/dm-1
           ID-3: /boot size: 976M used: 121M (14%) fs: ext4 dev: /dev/sdb1
           ID-4: /home size: 81G used: 59G (78%) fs: ext4 dev: /dev/dm-4
           ID-5: /var size: 49G used: 21G (45%) fs: ext4 dev: /dev/dm-2
Sensors:   System Temperatures: cpu: No active sensors found. Have you configured your sensors yet? mobo: N/A
Info:      Processes: 279 Uptime: 1 min Memory: 1515.3/14020.8MB Init: systemd Gcc sys: 7.3.0
           Client: Shell (bash 4.4.181) inxi: 2.3.56

#10

@stfn could you try to boot with:

https://cloud.fabi.sh/index.php/s/9fxfFynd49dKHSg this iso file and post the output of

mhwd -li 

would be nice to know :slight_smile: Also for everyone else. This iso is with linux 4.15+video-linux.


#11

@Tids I see you solved by yourself :grin:


#12

thanks to your hint on how to do it :grin: so again - thank you


#13

@Tids your iso locks up my system while booting. Last line i see is always something about loading RF kill switch. Only hard reset is working. When I add nomodeset to the boot options I get further but it hangs at this:

System is responsive and ctr+alt+del works


#14

why do all people add nomodeset :joy: it wont help a bit, since the whole graphicsstack is depending on it.

dont add nomodeset. try verbose as option. maybe we can get more info why it freezes.

Because it could just be the Kernel itself. while there is support for 2200/2400 it’s not stable yet. For now it’s just important to know that video-linux loads up and wont block anything


#15

It boots when I add verbose. I didn’t know about that, good to know.

mhwd -li:

Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/catalyst/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-bumblebee/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/nvidia-304xx/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/nvidia-340xx/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/virtualbox/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/xf86-video-amdgpu/MHWDCONFIG' is invalid!
Warning: No installed PCI configs!
Warning: No installed USB configs!

mhwd -l

Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/catalyst/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-bumblebee/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/nvidia-304xx/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/nvidia-340xx/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/virtualbox/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/xf86-video-amdgpu/MHWDCONFIG' is invalid!
> 0000:38:00.0 (0300:1002:15dd) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.02.15                true            PCI
            video-vesa            2017.03.12                true            PCI

#16

Nothing to do with that. verbose just shows more output that is hidden otherwise. But just like i’ve said, its not stable for 2200/2400.

The strange part is that mhwd seems to have a ‘xf86-video-amdgpu’ config. That should not be there anymore.

€dit:
something is wrong with that installation image. I’ll rebuild it tomorrow. for some reason the mhwd-db package is not in a usable state on that media. No Idea why. Lets see :slight_smile:


#17

@Tids I’m using mhwd-db-0.6.2dev-1 and radeon driver but does not look anywhere in manjaro-settings-manager and looks like I don’t have any driver installed.

╰─ mhwd -li 
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
             video-ati            2017.03.24                true            PCI

╰─ mhwd -l 
> 0000:01:00.0 (0300:1002:6611) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.02.15                true            PCI
video-amdgpu-experimental            2017.06.17                true            PCI
video-hybrid-radeon-amdgpu-experimental-prime            2017.11.23                true            PCI
            video-vesa            2017.03.12                true            PCI


#18

You can just Install Video-Linux. It will remove the last parts of video-ati.


#19

Boot with your ISO, modesetting driver gets loaded.

[manjaro@manjaro-gnome ~]$ mhwd -li
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/catalyst/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-bumblebee/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/nvidia-304xx/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/nvidia-340xx/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/virtualbox/MHWDCONFIG' is invalid!
Warning: config '/var/lib/mhwd/db/pci/graphic_drivers/xf86-video-amdgpu/MHWDCONFIG' is invalid!
Warning: No installed PCI configs!
Warning: No installed USB configs!
[manjaro@manjaro-gnome ~]$ 
[manjaro@manjaro-gnome ~]$ inxi -Fxxxz
Resuming in non X mode: xrandr not found. For package install advice run: inxi --recommends
System:    Host: manjaro-gnome Kernel: 4.15.4-2-MANJARO x86_64 bits: 64 gcc: 7.3.0
           Desktop: Gnome 3.26.2 (Gtk 3.22.28) info: gnome-shell dm: gdm Distro: Manjaro Linux
Machine:   Device: laptop System: LENOVO product: 80WG v: Lenovo ideapad 110S-11IBR serial: N/A
           Mobo: LENOVO model: Kant v: SDK0J91216 WIN serial: N/A UEFI: LENOVO v: 4HCN07WW date: 08/11/2016
           Chassis: type: 10 v: Lenovo ideapad 110S-11IBR serial: N/A
Battery    BAT1: charge: 30.7 Wh 95.0% condition: 32.3/32.7 Wh (99%) volts: 8.6/7.6
           model: Intel SR 1 Harris Beach Li-ion serial: <filter>status: Charging cycles: 8
CPU:       Dual core Intel Celeron N3060 (-MCP-) arch: Airmont rev.4 cache: 1024 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 6400
           clock speeds: min/max: 480/2480 MHz 1: 1044 MHz 2: 783 MHz
Graphics:  Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller
           bus-ID: 00:02.0 chip-ID: 8086:22b1
           Display Server: N/A driver: i915 tty size: 144x37
Audio:     Card Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0 chip-ID: 8086:2284
           Sound: Advanced Linux Sound Architecture v: k4.15.4-2-MANJARO
Network:   Card: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter
           driver: rtl8821ae port: 1000 bus-ID: 03:00.0 chip-ID: 10ec:8821
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 35.9GB (55.4% used)
           ID-1: /dev/mmcblk0 model: N/A size: 31.3GB serial: <filter>
           ID-2: /dev/sda model: LITEONIT_LSS size: 32.0GB serial: <filter>
           ID-3: USB /dev/sdb model: Silicon size: 3.9GB serial: <filter>
Partition: ID-1: / size: 1.4G used: 32M (3%) fs: overlay dev: N/A
Sensors:   System Temperatures: cpu: 43.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 180 Uptime: 4 min Memory: 1002.3/1845.3MB Init: systemd v: 237 Gcc sys: N/A
           Client: Shell (bash 4.4.181 running in gnome-terminal-) inxi: 2.3.56 

#20

^ broken because of reasons :joy:

€dit: New iso build will be there soon. This time with a working config (at least for me)