this post was submitted on 29 Sep 2024
35 points (100.0% liked)

Linux

5278 readers
708 users here now

A community for everything relating to the linux operating system

Also check out [email protected]

Original icon base courtesy of [email protected] and The GIMP

founded 1 year ago
MODERATORS
top 25 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 month ago (2 children)

I was trying to figure this out until like 3AM last night. How do I set environment variables to be loaded into my X session when XFCE loads? I'm on Arch btw. I want to set DRI_PRIME=1 so that applications started from the launcher actually use the discrete graphics card by default. Right now it only works like that if I launch from the terminal.

I tried multiple potential config files to put it at, and the one time it actually worked, I lost my window manager... The other times, the desktop environment didnt even load or start the session. Undid everything and decided to come back later.

[–] anzo 3 points 1 month ago (1 children)

I was thinking of either /etc/environment or /etc/profile which would be standard way to set up global variables. But the archwiki mentions using a script in /etc/X11/xinit/xinitrc.d/ so make a file there, add the executable permition and write export DRI_PRIME=1

[–] [email protected] 3 points 1 month ago

well, good news is: it works. Bad news is, it borks my window manager. After so many attempts, I am forced to admit defeat. So, at least a few of my different methods that I tried did work, but with that comes a problem that my window manager does not want to run on my discrete GPU and then I get a bare desktop with no panels or proper windows.

Quake does launch correctly at that point but I rather have the rest of my DE actually function, and I did figure out how to set individual applications to launch on the second GPU. I'll consider this solved for my use case.... This combo of intel onboard graphics and AMD GPU was always my headache with this machine even in the times of windows.

[–] [email protected] 1 points 1 month ago (1 children)

I'm kind of out of date with modern Linux stuff, but can't you throw that in the .xsessionsrc or .xinitrc file?

[–] [email protected] 2 points 1 month ago

I tried certain iterations of those, and the usual result is that my session fails to initiate. I'm probably doing that wrong.

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)

Hello,

I have a desktop PC which I'll be running Kubuntu 24.04 LTS as my main OS. No Windows dualboot or anything.

I have 2 hard drives.

  • My main one is a 1TB SSD NVME disk which will contain my Linux OS on a single BTRFS partition.
  • My second one is a 1TB HDD NTFS formatted disk which contains only my data files (Pictures, Documents, Downloads, Desktop, Music, Videos, etc. Symlinked in my /home/user directory to replace the folders of the same name)

Since I'll be using BTRFS, I'll be performing snapshots (daily, weekly, monthly) with a certain retention for each.

But I want to also take snapshots of my whole system on a monthly basis or so on an external 8TB external backup drive (one of those big ones as big as a book that's permanently hooked up to my PC) for safety's sake.

My external USB backup HDD is exFAT formatted (out of the box).

Doing an rsync from from my NTFS data drive to my external drive won't be a problem. But I can't do an rsync from my BTRFS SDD to my external drive because of permissions, ownership, etc.

What do you suggest I do in that case for my SDD drive?

I was thinking of creating a mountable ext4 disk image of maybe 2-4TB and mounting it at boot, then doing an rsync to that disk image on a monthly basis.

Another option would be to straight up tar bzip the drive, or at least select directories like /home and /etc.

And lastly, just straight up use dd or clonezilla to create a snapshot. But I want to be able to mount it and view the files though.

What do you think?

[–] [email protected] 1 points 1 month ago (1 children)

Do you have things on the external that precludes you formatting it? You aren't doing it too often, so a tarball might work, but you'll be wasting a lot of time doing it that way. Then again, if it's once a month, that doesn't seem like a huge deal. I just use rsync now and then for my external backup and it doesn't take long at all.

[–] [email protected] 1 points 1 month ago

Yeah, but since my external drive is formatted in exFAT, I can't simply rsync to it. I gotta either partition it, or create a mountable ext4 filesystem image on which I can.

[–] [email protected] 2 points 1 month ago

You guys should check out [email protected]

Give that community a bit of love.

[–] [email protected] 2 points 1 month ago (1 children)

Is there a way for me to limit the framerate of my wayland session, before my window manager is launched? I have to do this, because qtile wayland crashes before reaching my autostart script.

[–] [email protected] 3 points 1 month ago (1 children)

What graphics card are you using? AMD? NVIDIA? And what distro? Version? Wayland version? Desktop Environment? Can you please provide more details?

I know this really isn't the answer you're looking for, but maybe don't use QTile yet? Their documentation states that "some functionality may not yet be implemented". Or revert to X11?

[–] [email protected] 2 points 1 month ago (1 children)

I am on arch, using intel. It doesn't seem to like my 240fps display, since it's fine, when only connected to it, or my other displays, but crashes when connected to my all my displays at once.

[–] [email protected] 1 points 1 month ago (1 children)

What graphics card do you have?

[–] [email protected] 1 points 1 month ago (1 children)

Integrated Graphics i5-1340P

[–] [email protected] 4 points 1 month ago (1 children)

Hold up....

According to the specs on your CPU its max resolution is 4096x2304 @ 120Hz on an integrated flat panel. (Assuming you have a Laptop.)

Otherwise, on the HDMI and DPI output, the limit is 60hz. It can't run at 240Hz. It's like 4 times its max framerate for an external display!

Make sure your Wayland configuration is set up so that all your displays have the same framerate of 60Hz

If you want to have your display work at that framerate, you'll need to get a proper GPU.

[–] [email protected] 1 points 1 month ago (1 children)

Thats what I want to achieve.

[–] [email protected] 2 points 1 month ago (1 children)
[–] [email protected] 1 points 1 month ago (1 children)

I want to force wayland to limit my fps to 60, but don't know how to do it, since wlr-randr doesn't work, because qtile crashes before reaching it in my autostart.sh.

[–] [email protected] 1 points 1 month ago

Is Qtile installed alongside another DE? Maybe use the other DE just to configure your Wayland and switch back to Qtile after.

But again, Qtile still has issues with Wayland, so maybe either don't use Qtile or don't use Wayland. Pick one.

[–] [email protected] 1 points 1 month ago (1 children)

My network adapters send corrupted packets unless I disable RX/TX offloading with ethtool (this feature is turned on by default). Is this normal? Should I be able to do checksum and TCP session offloading?

[–] anzo 1 points 1 month ago (1 children)

I'd say you need to check for drivers or firmware upgrades...

[–] [email protected] 1 points 1 month ago (1 children)

I think the driver is up to date because I'm on the latest 6.8 kernel. Firmware, TP-Link offers none for their junk.

Is there a way I can check if it's a driver or a firmware issue? I took a look at the driver code to TBF I'm not enough of an expert to understand how it actually talks to the device.

[–] anzo 2 points 1 month ago (1 children)

On this matter, I'm an ignorant myself too. Perhaps searxing with the model name and brand there's a post somewhere that shares some insight. Hardware support on linux is great, until it isn't ;/

[–] [email protected] 2 points 1 month ago (1 children)

True, but you gotta give Linux some slack. All of this driver work is reverse engineered. It would be so much easier if the vendor just published information about their hardware.

[–] anzo 1 points 1 month ago