The officially official Devuan Forum!

You are not logged in.

#1 Hardware & System Configuration » Daedalus and amdgpu, gaming, and lessons learned » 2023-04-04 15:24:31

bigrat
Replies: 0

I recently bought a Radeon RX 6700XT and went through some shenanigans getting things working correctly, and thought maybe my pain could be your gain.

I had most games running after installing the AMDGPU drivers from AMD's site, but Cyberpunk 2077 was eluding me - it would hang on startup, and nothing I could do would get it running, no version of wine or proton fixed it. I decided that my frankenbuild chimaera/daedalus hash probably wasn't helping, so I decided to rebuild everything, clean.

I also decided to cleanly update to daedalus from a thumbstick install of chimaera.

1. Install chimaera. I specifically did not network install or provide a network mirror.
2. Modified /etc/apt/sources.list to point to daedalus (main contrib non-free), and did a dist-upgrade. The upgrade happened to include kernel 6.1.0-7.

Upon reboot, the machine hung up, with the last messages indicating the following:
Waiting for /dev/to be fully populated...

Usually, this occurs because we're missing some firmware somewhere. I had tried repeatedly to install the usual firmware-linux-nonfree and firmware-amd-graphics, but neither of these fixed the problem. I even tried getting the firmware from the Linux kernel git repo and putting it in /lib/firmware/amdgpu/updates, but this didn't fix it either. In the end after many hours of swearing and throwing things, the only fix for it was to frankenbuild it, and download the following debs from Debian bookworm:

firmware-amd-graphics_20230210-4_all.deb
firmware-linux_20230210-4_all.deb
firmware-linux-free_20200122-1_all.deb
firmware-linux-nonfree_20230210-4_all.deb
firmware-misc-nonfree_20230210-4_all.deb

3. Now here is where I screwed up, repeatedly: I tried to install the amdgpu drivers from AMD. If you try this, you'll find that:
a. You have to modify the amdcpu-install script because AMD doesn't know about devuan, only Debian
b. The installer tries to download lots of packages not in the devuan or debian testing branches (the installer assumes you have Ubuntu jammy)
You can screw around with this and make it sort of work, but in the end you end up with an even worse frankenbuild than can ever be fixed.

AMD recently got a number of updates merged into the kernel as of 6.1. This means that as long as you have recent firmware, you don't *need* to install any out-of-tree packages - you've already got the driver! So, on daedalus, do not install amdgpu packages from AMD.

4. Getting games to run - this was the whole point of this new card. In addition to OpenGL, many games use an API called Vulkan to provide 3D acceleration. The Mesa team in particular has their own implementation called RADV. While a generic Vulkan install and RADV can technically co-exist on the same machine, switching between the two requires setting environment variables and other tweaks, and recent RADV versions from Mesa perform quite well, so I'm sticking with that.
In general, I installed the following packages:

sudo apt-get install libgl1-mesa-glx \
libegl1-mesa \
mesa-va-drivers \
mesa-vdpau-drivers \
mesa-vulkan-drivers \
xserver-xorg-video-amdgpu \
libdrm-amdgpu1 \
libegl1-mesa \
mesa-va-drivers \
mesa-vdpau-drivers \
mesa-amdgpu-va-drivers \
vulkan-tools

Reboot when done.
This install will provide a tool called vkcube, which is a Vulkan test program something like glxgears. If you see a spinning cube when you run it, things are working.

5. The most frustrating problem I had is the one that took me the longest to figure out. At this point, I had working 3D acceleration, and Steam installed, but Cyberpunk 2077 still would not start! Additionally, Youtube videos (or any videos, for that matter) would not play at all. I messed with various packages for hours, thinking I had screwed up hardware video decoding, only to eventually find out that the problem was a sound issue.

Daedalus seems to include the new pipewire sound architecture. I hear lots of great things about this package, but as it turns out, this was the problem - I found it accidentally by switching my sound output - then videos started playing! Unfortunately, I had to switch the output every time I started a new video. I happen to be running the Cinnamon desktop environment, so perhaps there's some issue there, but in any case, I ran the following commands:

sudo apt-get remove pipewire* libpipewire*
sudo apt-get install pavucontrol pulseaudio

After this, Cyberpunk started normally, and played well with video settings on High, and all my pornh^H^H^HYoutube videos started playing again. I was also able to play DOOM 2016 and War Thunder without any issue, and at very good frame rates.

Daedalus is still in testing, so this sort of thing is to be expected, but hopefully this helps someone else struggling with AMD gpus.

#2 Re: Installation » Someone created an instance on scaleway.com with a devuan? » 2020-02-27 14:48:31

I have never used scaleway.com, so I don't know how their instances work. Here's how I create instances on AWS, it's probably applicable.

Create some linux instance. Any linux, as long as you can get access to "debootstrap".

Create a separate volume, and attach that volume to your instance (will likely require a reboot).

Once you can see the new volume (something like /dev/xvdb on AWS), run mkfs.ext4 on it, then mount to something like /mnt:

mount /dev/xvdb1 /mnt (your names may vary!)

run debootstrap:

debootstrap --arch amd64 ascii /mnt http://deb.devuan.org/devuan

This will take a while, and you may want to use a local mirror.

After it's done, you might want to chroot in and look around, and maybe add some packages.

mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
mount -o bind /proc /mnt/proc
chroot /mnt /bin/bash
apt-get update
<install packages normally here, you'll likely need cloud-init>
Add a user, and a base ssh key for that user, so you can log in.
exit

Then, unmount /mnt/dev, /mnt/sys, and /mnt/proc, and finally unmount /mnt.

Take a snapshot of the volume you created. If you (in AWS) then create an instance using this snapshot, and apply the necessary bootloader, it will boot up.

I'm probably missing a few steps here, haven't done this in a little while, but that should get you going. All of this is very AWS-centric, so your steps will likely vary somewhat.

#3 Re: Installation » Mate: Ascii to Beowulf Migration » 2020-02-25 17:09:55

Just upgraded to beowulf from ascii on my dev laptop (dell 9370) a few hours ago. The initial upgrade failed, possibly I lost network briefly. I had to apt --fix-broken-install, and then re-run apt-get dist-upgrade.

The upgrade succeeded, though somehow I ended up with exim4 installing, no idea how. When I removed it, there were no dependency complaints, and the system has behaved normally since then.

Upgraded to the 5.4 bpo3 kernel, from the 4.19 bpo6, and all is well. My VirtualBox install got broken and uninstalled somehow, but I only use that occasionally, so I can figure that one out later. KVM and docker are working fine.

I've done all sorts of unnatural things to this system, package-wise, so  I'm satisfied with the result.

#4 Re: Desktop and Multimedia » Thank you to whoever got Gnome desktop running » 2019-04-29 17:31:38

Bluetooth widget works, networking works, super key works, gnome-tweak-tool works (focus follows mouse is life). It appears to be functional enough to use.

#5 Re: Desktop and Multimedia » Thank you to whoever got Gnome desktop running » 2019-04-29 17:29:14

I'm using it right now! Looks like 3.22. Here's my sources.list:

root@n0p3:~# cat /etc/apt/sources.list
## package repositories
deb http://pkgmaster.devuan.org/merged ascii main contrib non-free
deb http://pkgmaster.devuan.org/merged ascii-updates main contrib non-free
deb http://pkgmaster.devuan.org/merged ascii-security main contrib non-free
deb http://pkgmaster.devuan.org/merged ascii-backports main contrib non-free

## source repositories
#deb-src http://pkgmaster.devuan.org/merged ascii main  
#deb-src http://pkgmaster.devuan.org/merged ascii-updates main  
#deb-src http://pkgmaster.devuan.org/merged ascii-security main  
#deb-src http://pkgmaster.devuan.org/merged ascii-backports main  

#6 Desktop and Multimedia » Thank you to whoever got Gnome desktop running » 2019-04-29 17:17:12

bigrat
Replies: 8

I was having issues with various xfce and MATE bugs today, losing my window decorators, all kinds of stupid things. I was looking through apt-cache to see what packages might be missing, when all of a sudden I see:

gip - IP calculator for GNOME desktop environment
gir1.2-budgie-desktop-1.0 - GNOME introspection library for budgie-desktop
gir1.2-gnomedesktop-3.0 - Introspection data for GnomeDesktop
***gnome - Full GNOME Desktop Environment, with extra components***
gnome-accessibility-themes - Accessibility themes for the GNOME desktop
gnome-backgrounds - Set of backgrounds packaged with the GNOME desktop

I know this wasn't available earlier, which one of you magnificent bastards got this working systemd-free?

#8 Re: Documentation » HOWTO: ASCII on Dell XPS 15 9570 » 2018-08-25 06:21:36

Updated with some video efficiency improvement.

#9 Documentation » HOWTO: ASCII on Dell XPS 15 9570 » 2018-08-25 05:23:33

bigrat
Replies: 2

Hi all -

I've just got done fighting to get Devuan on my new laptop, and I thought I'd share some of the things that were necessary to get a working system.

The XPS 15 9570 is a new (as of Aug 2018) Coffeelake-based laptop. As such, it's got a lot of new hardware in it, and a couple of "gotchas".

INSTALLATION:

Devuan ASCII installs in UEFI mode just fine - but you'll find that it won't boot afterwards. Moreover, you will find that this laptop won't boot an MBR-based install at all from the internal /dev/nvme drive at all!

The Devuan install process apparently does not write some critical EFI information that "registers" the Devuan EFI boot binary with the bios, so we have to add it by hand.

1) Write the Devuan ASCII iso to a flash drive. Insert the flash drive, and mash F12 on startup - this will bring you to a boot menu. Choose the *2nd* partition on your flash drive, under the UEFI partitions to boot.

2) When the Devuan installer screen pops up, be sure to choose the UEFI install. The graphical install works just fine, but you'll find that the mouse doesn't work. Oh well.

3) Follow the basic prompts to install. When you get to the partitioner, you will need *at least* the following partitions, in order:

a) a 500MB FAT32 partition, for EFI
b) a swap partition (I used 8GB)
c) a partition for / (I used a 30GB partition, ext4)

OPTIONAL: I usually keep /home on a separate partition. I would recommend using the mount options of "discard, noatime" on /, and /home (if yours is separate)

4) Go through the rest of the install. A word of caution: If you like using the Cinnamon desktop, as I do, avoid it at this time on this laptop - it's crashy, and can't seem to run the compositor in hardware mode. I defaulted to LXqt, and then installed Budgie later. I will note that the install process complains about missing firmware for the Killer Wireless (ath10k), but wireless works anyway.

BIOS:

5) When the install finishes, and the laptop reboots, mash F12 again, and go into the BIOS setup. You're going to want to go into the UEFI setup, and add a UEFI boot selection. This is the part that seems to work automatically for Ubuntu, but not for Devuan. If you have just one boot option, as I do, the menu will list your EFI partition. At the bottom of this screen, you'll be able to "browse" to the EFI/devuan/grubx64.efi, and give the boot option a label. I used "Devuan". Once you save this, the laptop will able to boot from this Devuan install!

FIRMWARE:

6) Now that you're in, you'll find that the fan spins up quite a lot, bluetooth is not functional, and *dmesg* reports lots of missing firmware .bin files. We'll fix those.

a) Install Git:

sudo apt-get install build-essential git 

b) Install the following packages:

sudo apt-get install firmware-linux firmware-linux-nonfree firmware-misc-nonfree

c) Clone the firmware tree:

git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/

There are three firmware trees we're interested in here:

./i915
./nvidia
./ath10k/QCA6174

It seems safe to copy in the following firmware trees:

cp -rp i915 /lib/firmware/
cp -rp ath10k/QCA6174 /lib/firmware/ath10k

The nvidia firmware tree seems a mixed bag. The firmware files include missing firmware for gp102 and gp107 that don't currently exist on Devuan ASCII, but I find that the *nouveau* driver gets "explody" if you use them. They might be necessary for the nonfree nVidia drivers, though. Use with caution!

PCI IDs:

The existing PCI Bus ID list is not updated enough for this hardware. If you want to make sense of all those hex ids in *lspci*, update your pci ID list:

 sudo update-pciids 

KERNEL:

The existing 4.9 kernel really doesn't know what to with a lot of the hardware in this machine. We need a newer kernel to take advantage of the hardware here, and as it happens, 4.18.4 seems to run pretty well. Using the excellent guide by batmore here: https://dev1galaxy.org/viewtopic.php?id=564, get the latest stable kernel source, and build a kernel and modules for 4.18.4. I will note that I used gcc-6.

POWER

In an effort to bring down the power usage, I've added the *tlp* package, and installed the Intel Vulkan drivers, and added some options to the i915 driver:

sudo apt-get install mesa-vulkan-drivers

* /etc/modprobe.d/i915.conf * (create if this does not exist):

options i915 enable_fbc=1 enable_guc=3

Before these changes were made, I would hear my laptop fan spin up and down constantly, even when not under load. Now, I am not hearing that at all. The battery meter estimate in Budgie went from a max of 8 hours or so at full charge to 11 hours. YMMV.

4K Displays
I'm using an external 4k display, a Seiki 39" SE39UY04. This is by no means state-of-the-art, but it's a functional 4k display. The monitory seems to work, out-of-the-box, with all the changes I've made above. Sometimes it doesn't get detected correctly, but that seems pretty much par for the course. I just turn it off, and then back on. HiDPI seems to "just work" with MATE.

TODO:

* In MATE, the marco hardware compositor works, but uses significantly more cpu than the software compositor does. I also note that the Cinnamon hardware compositor will not start up. I think the video drivers have to catch up here.
* I haven't tried the optimus video switching at all, yet
* I didn't have much luck with the close-source nVidia drivers, yet.

KNOWN WORKING:

Nostrilcam (webcam)
Bluetooth
USB ports
SD Card reader

NEEDS IMPROVEMENT:

Power management (battery life seems good, but could be better. I'm looking into that.)
Nouveau driver (I don't think the driver works too well on the nVidia GeForce GTX 1050 Ti Mobile yet)
Intel Graphics (I haven't updated this driver either, probably some improvements here as well)

Hopefully someone finds this helpful.

Board footer

Forum Software