Skip to content

u/tinywrkb

In this archive from May 2019 to May 2023

9
posts
331
comments
2
media
1.5k
score

Thanks for the posting this, I'm waiting for Raptor Lake to finally upgrade from Broadwell, so I'm also planning to explore this.

Ideally, we shouldn't need to set this, and having system specific setting (AllowedCPUs property) is far from optimal, as it means admins will have to set a different setting when deploying to systems with different CPUs.

Anyway, I would set the user slice on efficiency cores, and then make sure that apps are associated with app slice.
This way, if I'm not wrong, you won't need to figure out how to deal with desktop environment processes, they will be assigned to the user slice. For example, Flatpak already assigns its apps to the app slice.
Your desktop environment's launcher should also do this. If it doesn't, then I suggest filing a bug report.

All my apps are Flatpaks except the launcher and terminal, so I'm already pretty much covered, and the latter two I just assign to the app slice.

1 points

It's flexible, powerful, rich in features, and there's nothing that comes close to it. The alternatives are too limited, and can't get the job done.
For example, with sd-boot:

  • You can't globally append kernel parameters to multiple boot entries
  • You can't bundle/hardcode loader config with the bootloader's EFI binary
  • Auto-detection and creation of boot entries is minimal, not flexible, and only support unified binaries
  • Auto-detection of system/rootfs path must be hardcoded in the loader config or cmdlline in the unified image.

With a GRUB script, I can get all these done and more.

2 points

Sorry, I don't have qemu on my system ATM to give you a more relevant example, but maybe the following could help. This is how I booted my last ARMv7 VM.

$ qemu-system-arm -machine vexpress-a9 -cpu cortex-a9 -m 1024M \
-kernel alarm-armv7-01-boot/zImage \
-dtb alarm-armv7-01-boot/dtbs/vexpress-v2p-ca9.dtb \
--initrd alarm-armv7-01-boot/initramfs-linux.img \
-drive if=sd,file=alarm-armv7-01.raw,format=raw \
-append 'root=/dev/mmcblk0p2 console=ttyAMA0' -serial stdio -display none

You don't actually need a rootfs, as just having an initramfs is enough to look around the boot system.

1 points

Wow! I just noticed that Arch Linux ARM dropped ARMv5 and ARMv6 support.
ARMv5 removal is really an end of an era, though with their limited RAM, I don't think these devices can even boot compressed kernels anymore.

The official Python Docker image support arm32v6, so that's an option.

If you're booting an ARMv6 VM, then maybe use a more generic machine than the raspi1ap. I haven't booted an ARM VM for a while, and I didn't need to use this really at the time, so I don't remember much.
What I can recommend is to use qemu --help option to list machines, match this to available device-tree configs in the distro image/tarball you're using.
The vexpress machines should be a good choice if you have one that is matching the architecture.
Use qemu's -dtb option to specify the specific device-tree (compiled) config for the selected machine.

And have a look at this guide.

1 points

Maintaining a Chromium based browser is PITA, I wouldn't want to do this.
Vivaldi sourced for the Arch Linux package as a binary release, so maintenance is quite minimal.
Brave, on the other hand, is complied from source, and that's not fun to maintain and build, even with ccache turned on and debug symbols disabled.

18 points

Install and run org.freedesktop.Platform.VaInfo//21.08, it should tell you if something is wrong with Flatpak or it just this app.
We're using the 21.08 branch because it's on the same runtime version as the Spotify app.
I suspect this is just this app, it's probably using an outdated CEF release. And no, this is not an Electron app.

1 points

I have no keyboard input in emergency shell,

If you can't get into an emergency shell when initrd fails to switch root (not an uncommon systemd annoyance), then it's possible to explicitly instruct the initrd to enter a debug shell using the kernel parameter break see mkinitcpio.8 man page.

1 points

Yea how do i dare to ask questions and try to understand and learn things.

The first thing you need to understand is how to use and debug the initrd. You have there an emergency shell, so nothing is stopping you in trying to mount the rootfs manually, read the journal log, list storage devices in /dev/ and find out it something is missing there, etc.
If you can't get into an emergency shell when initrd fails to switch root (not an uncommon systemd annoyance), then it's possible to explicitly instruct the initrd to enter a debug shell using the kernel parameter break see mkinitcpio.8 man page.

2 points

Why are you building a kernel if you don't understand the boot process?

The problem here is pretty clear, the initrd can't find the rootfs filesystem, so it's not being mounted to the switch_root target.
Possible reasons why this is happening:

  • You don't have the filesystem type module in your initramfs image. Filesystems like btrfs, ext4, etc, are not built-in, so you need to have the module in the initramfs image.
  • You don't have the storage module for your hardware, or modules used by it, or maybe you need to load it early (in the kernel cmdline or with the initrd).
  • Your kernel might be building a driver as a module while Arch Linux kernel builds it as built-in, so you're not aware that you need to explicitly load it or load it early. For example, the ahci and libahci storage related drivers were previously compiled as modules, but nowadays are built-in, and when I was switching between linux and linux-lts, I didn't understand why my machine is failing to boot.

I hope this points you in the right direction, I can't help much more, as I don't use mkinitcpio, and never tried to understand it. I prefer dracut.

7 points

You want to look for something that supports driverless printing and scanning.
Driverless printing is easy, probably anything with network connectivity from recent years should do, but to be on the safe side, look for AirPrint compatibility.
Driverless scanning is harder, maybe look at the list in the sane-airscan repo.

Do you need color printing? Color laser AIO are not very compact.
Flatbed scanner? ADF? Dual-sided ADF? I'm not sure that there are AIO with dual-sided ADF scanner.

If you only care about scanning from ADF, then maybe consider getting a dedicated network ADF scanner.
These can do dual-sided scanning, upload to an SMB share or cloud services, and automatically generate a PDF with OCR.
This way, you can have a more compact printer instead of AIO color laser that can be quite large, not have to deal with scanner drivers if driverless scanning is not supported.
I have Brother ADS-1700W in my wish list, though I have multiple AIO already that I need to get rid of first.

2 points

No, but I'm following some of its methodology.
I have A/B system update set up, and the switch is atomic, just a file rename, though I will switch to use an EFI var instead.
OS is immutable, which is a pre-condition to measured boot, and I plan to look into this, though waiting first to see the fs-verity support in ostree being improved, and I actually need to start using ostree.

I wouldn't know where to put on disk the top level of the root filesystem, as the stateless part of the system is just /usr, so it's easier for me to let the initrd generate the top level in tmpfs, and then bind mount /usr, and the stateful subvolume /var.

3 points

Any ideas what can be going on?

No idea, I don't use lxd much, but did you follow this?

To get more details, run the container in foreground mode
Additional information can be obtained by setting the --logfile and --logpriority options

If this doesn't get you enough debug info, then you can run with strace -ff, and look for a failing system call next to the error message.

1 points

This should work without any extra configuration when Gnome 41 will be released and xdg-desktop-portal-gtk will be updated.

Currently, you need to set XDG_CURRENT_DESKTOP as Sway in your environment and xdg-desktop-portal.service's environment. You can read here about this issue.

It goes without saying that xdg-desktop-portal-wlr should be installed in your system.

But this just for the screencopy type of buffer copy, which is a bit wasteful. The zero-copy dmabuf is being figure out right now.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.