linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Corngood, (edited ) in Laptop keyboard unresponsive - I think my (unknown) laptop is affected by the kernel Zen IRQ regressions - how do I work around this?

Could you do:

Please share the output of grep -v /sys/class/dmi/id/* as a normal user (not root)

It looks like all the patches from that thread are in linux 6.6, so your board may still need quirks added.

Once you know the board name you try something like this:


<span style="color:#323232;">  boot.kernelPatches = [{
</span><span style="color:#323232;">      name = "acpi quirk";
</span><span style="color:#323232;">      patch = pkgs.writeText "acpi.patch" ''
</span><span style="color:#323232;">diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
</span><span style="color:#323232;">index 297a88587031..655332f3a5da 100644
</span><span style="color:#323232;">--- a/drivers/acpi/resource.c
</span><span style="color:#323232;">+++ b/drivers/acpi/resource.c
</span><span style="color:#323232;">@@ -524,6 +524,12 @@ static const struct dmi_system_id pcspecialist_laptop[] = {
</span><span style="color:#323232;"> 			DMI_MATCH(DMI_BOARD_NAME, "GM6BG0Q"),
</span><span style="color:#323232;"> 		},
</span><span style="color:#323232;"> 	},
</span><span style="color:#323232;">+	{
</span><span style="color:#323232;">+		/* [COMPUTER DESCRIPTION] */
</span><span style="color:#323232;">+		.matches = {
</span><span style="color:#323232;">+			DMI_MATCH(DMI_BOARD_NAME, "[BOARD_NAME]"),
</span><span style="color:#323232;">+		},
</span><span style="color:#323232;">+	},
</span><span style="color:#323232;"> 	{ }
</span><span style="color:#323232;"> };
</span><span style="color:#323232;">'';
</span><span style="color:#323232;">  }];
</span>

Just be careful that the indentation of the patch part doesn’t get changed.

Splatsune,
@Splatsune@beehaw.org avatar

Figured I’d do the pre-setup before I went to bed, so I’ve run the grep command and put the board_name from that output such that the patch now reads thus:


<span style="color:#323232;">  boot.kernelPatches = [{
</span><span style="color:#323232;">      name = "acpi quirk";
</span><span style="color:#323232;">      patch = pkgs.writeText "acpi.patch" '' 
</span><span style="color:#323232;">diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c 
</span><span style="color:#323232;">index 297a88587031..655332f3a5da 100644 
</span><span style="color:#323232;">--- a/drivers/acpi/resource.c 
</span><span style="color:#323232;">+++ b/drivers/acpi/resource.c 
</span><span style="color:#323232;">@@ -524,6 +524,12 @@ static const struct dmi_system_id pcspecialist_laptop[] = {
</span><span style="color:#323232;">                        DMI_MATCH(DMI_BOARD_NAME, "GM6BG0Q"), 
</span><span style="color:#323232;">                }, 
</span><span style="color:#323232;">        }, 
</span><span style="color:#323232;">+       { 
</span><span style="color:#323232;">+               /* Infinity E15-5A165-BM */ 
</span><span style="color:#323232;">+               .matches = { 
</span><span style="color:#323232;">+                       DMI_MATCH(DMI_BOARD_NAME, "GM5RG1E0009COM"), 
</span><span style="color:#323232;">+               }, 
</span><span style="color:#323232;">+       }, 
</span><span style="color:#323232;">        { } 
</span><span style="color:#323232;"> }; 
</span><span style="color:#323232;">'';
</span><span style="color:#323232;">  }];
</span>

I’ll report back with the results when I’m able.

Corngood, (edited )

Nice. Also it occurred to me that there might be a way to set that quirk through the kernel command line instead of having to compile a patched kernel. I haven’t had a chance to look it up though.

Edit: I couldn’t find anything obvious. This behaviour is buried pretty deep.

Splatsune,
@Splatsune@beehaw.org avatar
Corngood, (edited )

That’s great. If you get a chance, would you be able to test this patch?


<span style="color:#323232;">diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
</span><span style="color:#323232;">index 297a88587031..3204bed08b3c 100644
</span><span style="color:#323232;">--- a/drivers/acpi/resource.c
</span><span style="color:#323232;">+++ b/drivers/acpi/resource.c
</span><span style="color:#323232;">@@ -484,6 +484,18 @@ static const struct dmi_system_id tongfang_gm_rg[] = {
</span><span style="color:#323232;"> 			DMI_MATCH(DMI_BOARD_NAME, "GMxRGxx"),
</span><span style="color:#323232;"> 		},
</span><span style="color:#323232;"> 	},
</span><span style="color:#323232;">+	{
</span><span style="color:#323232;">+		.ident = "Infinity E15-5A165-BM"
</span><span style="color:#323232;">+		.matches = {
</span><span style="color:#323232;">+			DMI_MATCH(DMI_BOARD_NAME, "GM5RG1E0009COM"),
</span><span style="color:#323232;">+		},
</span><span style="color:#323232;">+	},
</span><span style="color:#323232;">+	{
</span><span style="color:#323232;">+		.ident = "Infinity E15-5A305-1M"
</span><span style="color:#323232;">+		.matches = {
</span><span style="color:#323232;">+			DMI_MATCH(DMI_BOARD_NAME, "GM5RGEE0016COM"),
</span><span style="color:#323232;">+		},
</span><span style="color:#323232;">+	},
</span><span style="color:#323232;"> 	{ }
</span><span style="color:#323232;"> };
</span><span style="color:#323232;"> 
</span>

I’d like to try to get it upstream, and that seems like the sanest way to do it.

You might need to be on linux 6.5+ for this patch to apply, and if you could verify that it’s still broken on 6.6 without the patch, that would be nice.

Splatsune,
@Splatsune@beehaw.org avatar

I did try kernel 6.6 without either patch before installing the new one, and I can confirm that the issue was still present on that version.

With the new patch though (after adding a comma to the end of each .ident string), everything is working as expected.

Corngood,

That’s great. Thanks!

Corngood,

git.kernel.org/pub/scm/linux/kernel/…/commit/?h=b…

FYI, I think the fix will make it into 6.8.

Splatsune,
@Splatsune@beehaw.org avatar

Exciting! Thank you so much for your help mate, it’s very much appreciated.

kerrigan778, in Could 2024 be the year of the diagonal linux desktop?

No.

Quazatron, in Gentoo goes Binary (packages)
@Quazatron@lemmy.world avatar

Good, I might try it now.

When you have more life behind you than ahead of you, time suddenly becomes precious.

LogicalDrivel, in Could 2024 be the year of the diagonal linux desktop?
@LogicalDrivel@sopuli.xyz avatar

I’m just going to leave this here …m.wikipedia.org/…/Betteridge's_law_of_headlines

taanegl, in Gentoo goes Binary (packages)

Wait, didn’t Gentoo have a binary cache? I seem to remember many years ago that I used one…

possiblylinux127, in What is the point of dbus?

Its so that your system can hold passengers

bus

maryjayjay,

*can hold dpassengers

norgur,
@norgur@discuss.tchncs.de avatar

Get into de bus?

dinckelman, in Does Wayland really break everything? (Nate Graham's OG post ref'd in the Phoronix article)

I’ve been using Wayland sessions as default since plasma 5.22 came around, and with other window managers before that too. Everything that has ever been broken for me, was broken because of X11 or XWayland. I’d rather take a considerably better experience with an occasional issue, that an experience that is held together by candy wrappers and hot glue, and is widely considered obsolete

PseudoSpock,
@PseudoSpock@lemmy.dbzer0.com avatar

Pics or it didn’t happen.

semperverus, (edited )
@semperverus@lemmy.world avatar

Im in the same boat. Been using wayland since around that version or a little later and it has only been uphill (except for right now since i am on the development build and Qt broke itself causing the system config menu to fail to load 80% of KCMs, but this is my fault for switching to alpha software lol)

BeardedBlaze, in Could 2024 be the year of the diagonal linux desktop?
@BeardedBlaze@lemmy.world avatar

This doesn’t work on Wayland lol

kugmo,
@kugmo@sh.itjust.works avatar

Based, X forever staying relevant.

fruitycoder,

Time to update “Are we Wayland yet?” With this breaking lack of feature support.

waigl,

Have you tried it? There is wlrandr, and at least according to how the command line looks, it could be supported.

BeardedBlaze,
@BeardedBlaze@lemmy.world avatar

Have you?

GermainRobitaille, (edited )

Are you talking about wlr-randr? Because its –transform argument only accepts normal|90|180|270|flipped|flipped-90|flipped-180|flipped-270, not any transformation matrix. Maybe its just a limitation of the command line tool and it could be modified, I don’t know, I haven’t been too deep in the code or the protocol specifications. It also looks like it only works with wlroots based compositor.

Gork, in Could 2024 be the year of the diagonal linux desktop?

I would constantly be turning my head, even though I wouldn’t need to, if my monitor were rotated at a weird angle like that.

russjr08, in Does Wayland really break everything? (Nate Graham's OG post ref'd in the Phoronix article)

My experience with Nvidia+ Wayland was… Less than desirable. Enough to make me pickup an AMD card.

However, once I did that my experience instantly better. Hell, even X11 worked better - I was never able to get the desktop to stay at a consistent 60FPS (I’m still on a 60Hz panel which I’m just now getting around to upgrading shortly) in X until I moved to my AMD card.

The 545 driver update just made things so much worse. So I’d say Wayland+Nvidia is not great (for others it works fine so maybe it’s down to what card you have?) however on my AMD card (and my old MacBook with Intel integrated graphics) it’s fantastic.

azvasKvklenko,

Nouveau + NVK is the hope 🙏

randomaside,
@randomaside@lemmy.dbzer0.com avatar

How do we as the community turn hope into help? Is there a way to contribute directly to the NVK developers?

warmaster,

Check their project page or hit them up on their repo. I’m sure any help will be welcomed.

Nibodhika, in Gentoo goes Binary (packages)

I stopped using Gentoo because compiling everything was a major waste of time, but I have missed world files since then. This is a great reason to reconsider Gentoo for my next machine.

Andy,
@Andy@programming.dev avatar

FWIW, Alpine Linux has a nice world file, too. And I am continually impressed by the selection of up to date packages in their Edge repos.

Nibodhika,

Can the file be split into different files like in Gentoo? I used to have different files for basic stuff, gaming, hardware specific, etc, so I could keep the parts of the Configs I wanted from one machine to another.

If so I’ll definitely check it out, been meaning to try Alpine since for what I understand it’s not GNU, right? Which should put a final nail in the GNU+Linux copy pasta hahahah.

Andy,
@Andy@programming.dev avatar

I don’t think apk would check multiple files for the world. But you could maintain them outside the apk mechanisms, just concatenating them into a single file, with tup/make/sh/whatever.

Nibodhika,

Makes sense, I actually have a tool for that sort of thing that I wrote for i3 configs (it’s called CFC and it’s here in case you want to use it gitlab.com/Nibodhika/cfc )

Drito, (edited )

Alpine Linux is the most sane distro I tried. The absence of glibc brought limitations unfortunately, but it is the fault of developers that uses that shit instead of pure libc.

throwawayish, in Dual Booting Windows 11 and Fedora Silverblue / Kinoite - how to shrink my Windows partition and where to go from there?

(Perhaps) unrelated background informationxD , I started writing a reply yesterday and it got unwieldy real quick. So, I got discouraged and not long after I fell asleep. In the morning, I was surprised to see that a lot of your questions still weren’t answered, so I mustered some motivation and here it is. Don’t expect a very thorough response, but you should find enough pointers to make this work.

Preface:

  • Last summer I tried dualbooting Windows 10 and Fedora Silverblue and succeeded. So I will be sharing my experiences based on that. I don’t know if doing this with Windows 11 will be different and/or more challenging (or not).

It’s also got an Nvidia GTX 4060 in it, which will probably not be optimal from what I hear (so any tips on that are much appreciated as well!).

Yup, the gist of it would be that Nvidia’s proprietary drivers are not found in the native repos of most distros. This also applies to Fedora. However, you should be able to acquire the proprietary drivers by following the instructions found on RPM Fusion. But, Nvidia’s proprietary drivers are known to not play nice and might require you to get into the nitty gritty later down the line to save your system. Don’t get me wrong; some people never have issues, but unfortunately this doesn’t apply to everybody. Therefore, it’s very good to approach this cautiously. If, instead, you’d prefer a managed solution; so one in which your input is left to a bare minimum but somehow Nvidia’s proprietary drivers are installed and (at times) fixed by some black magic shenanigans (or just good engineering) going on in the background, then look no further than uBlue’s Nvidia images. Delving further into what uBlue is and why IMO you should consume Fedora Silverblue through it would be out of scope for this comment.

How would I go about actually shrinking Windows 11 down to make space for Fedora? Is “partitioning” the right word to use here?

So, unfortunately I don’t quite remember what I did exactly. But I can’t imagine I would do anything beyond the following two scenarios:

  • I just did what I always do and used GParted to shrink the size of the Windows 10 installation.
  • I used Windows’ own tool to do the shrinking (assuming they even offer something to that effect).

After I shrink the partition, is it then just a matter of running the installer and using automatic partitioning with the unused space left over after shrinking Windows?

If memory serves me right, automatic partitioning by Fedora’s Anaconda installer was for some reason undesirable. I don’t remember the specifics, but it’s likely either one of the following:

  • It straight up took hold of the entire disk and thus wanted to remove Windows.
  • Issues related to the bootloader; either it just forgot about it or tried to coexist with Windows’ bootloader or tried to hijack Windows’ bootloader. Nonetheless, all of these might result into some issues later down the line. Therefore, ideally, it should have its own separate bootloader (or at least one it shares with other non-Fedora(-based) distros).

Therefore, I did something slightly different. If I recall correctly, one should adhere to the following instructions:

  1. After you’ve shrunk the Windows partition, make a new partition (preferably using GParted) with the following specifics:
    • 512MB (in size)
    • Set as file system "fat32"
    • Give the partition the “boot” and “esp” flags
  2. Reboot into Fedora Silverblue/Kinoite’s installer and when you get to the screen found below:

Click here to reveal image of the screenhttps://lemmy.ml/pictrs/image/235afe86-b7cb-4562-a570-92893b73192c.png

First select the disk you’d like to perform the installation on and then select Custom (optional: you’re free to choose the “Encrypt my data” option as well). After you’ve done this, press “Done” in the upper-left corner.

  1. A new screen should appear, in here I selected “Click here to create them automatically.”. This should apply the default partitioning on the empty disk space. However there are a couple of things to keep track off:
    • Ensure that nothing from your Windows partitions is touched.
      • This includes the EFI partition of your Windows; if Fedora wants to do anything with it, then ensure it remains untouched.
    • By default, at least in my case, a new EFI partition specifically for Fedora Silverblue wasn’t made. This is where the earlier created partition using GParted will play an important role;
      1. Select the earlier created 512MB partition
      2. Mount Point: change it from blank/empty to /boot/efi
      3. File System: Set it to EFI System Partition
      4. Ensure the checkbox with “Reformat” that’s found to the right of the selection box for “File System:” is enabled/blue/checked
      5. I don’t recall what I did exactly with the selection box under “Device Type:”, but it likely was Standard Partition. I didn’t encrypt it.
    • (Optional) You should have noticed that this screen also enables one to create partitions. There’s a chance I created mine using this instead of GParted, but that would mean I would have departed from my ways. If the method in which the partition is created with GParted didn’t work and you don’t know why, then it’s at least worth trying to create the partition here instead.
  2. After you’re done with the previous screen, select “Done” in the upper-left corner. This should prompt a popup screen that summarizes the changes. Ensure that this doesn’t do something strange to your Windows partitions and make sure that it looks otherwise as you’d expect. If you’re done, then select “Accept Changes”.
  3. The rest of the installation should progress like how you’d expect from there.
  4. (Post-install) Depending on how you’d like to have GRUB (read: default bootloader on Fedora) configured, you might have to do a thing or two to ensure you can access both Fedora Silverblue/Kinoite and Windows however suits you best.

I’d also love to know what kind of issues the docs are actually warning about as far as dual-booting. Will Windows wipe the bootloader on update or will Silverblue / Kinoite wipe Windows out somehow? If it’s Silverblue wiping Windows out, that may cause me to go with a different distro - but if Windows wipes Silverblue, it’ll be annoying but not a deal breaker

As long as the EFI partitions are separated, there’s nothing to worry about. And if anything, it’s Windows that might wipe out whatever Linux distro you’re dualbooting.

I plan to use Silverblue / Kinoite for development exclusively, so everything will be on GitHub.

Perhaps it’s worth mentioning one of uBlue’s most ambitious projects; Project Bluefin, or to be more precise; the Bluefin developer experience.

General tips:

  • Grab a USB with enough capacity (8 GB at the bare minimum), and use Ventoy to create a bootable USB drive out of it. Then, put the .iso files for both GParted and Fedora Silverblue (or uBlue) into the designated location (read: partition called “Ventoy”).
  • Regarding Ventoy, ensure to set it up specifically for your needs (GPT vs MBR, SecureBoot or not etc).
  • I recall to have greatly benefited from this excellent video guide on dualboot and multiboot by DorianDotSlash when I did my first dualboot ever. It’s very likely that I even watched it in its entirety before doing my most recent Windows 10 + Silverblue dualboot.

Please feel free to inquire if you so desire!

Cwilliams, in Gentoo goes Binary (packages)

This might get me to switch to Gentoo. I just broke my Arch again, so this is the perfect time…

Flaky,
@Flaky@iusearchlinux.fyi avatar

If you like having more finetuned control, Gentoo is pretty neat.

Cwilliams, (edited ) in Laptop keyboard unresponsive - I think my (unknown) laptop is affected by the kernel Zen IRQ regressions - how do I work around this?

I chose NixOS for stability

I think that’s the first time I’ve ever heard that

UntouchedWagons, in Could 2024 be the year of the diagonal linux desktop?
@UntouchedWagons@lemmy.ca avatar
trash,
@trash@lemm.ee avatar

I agree with Crab Man.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #