@Rustmilian@lemmy.world cover
@Rustmilian@lemmy.world avatar

Rustmilian

@[email protected]

Privacy & Foss advocate, and Linux user.
Ace 🖤🩶🤍💜

Anti Commercial-AI license (CC BY-NC-SA 4.0)

This profile is from a federated server and may be incomplete. View on remote instance

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

Hell yeah!! So many needed fixes that have been bugging me for a while are finally fixed!!

Anti Commercial-AI license (CC BY-NC-SA 4.0)

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

Why should we have the same standard for two fundamentally different languages with distinct design philosophies and features?
Even if the C coding standard was used, it fundamentally will not make Rust more legible to C-only kernel devs. Imposing the C coding standard on Rust would be fundamentally counterproductive, as it would undermine Rust's safety and productivity features. Rust's coding guidelines align with its design principles, promoting idiomatic Rust code that leverages language features like ownership, borrowing, and lifetimes.
This ensures that Rust code in the kernel is safe, concurrent, and maintainable, while adhering to the language's best practices.
While the C coding standard served its purpose well for the procedural C language, it is ill-suited for a modern language like Rust, which has different priorities and language constructs. Having separate coding standards allows each language to shine in its respective domain within the kernel, leveraging their strengths while adhering to their respective design philosophies. Having separate coding standards for C and Rust within the kernel codebase is the sensible approach.

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

In any case, it's the temporary file directory so it should be fine to delete them manually.
Just make sure that podman isn't running while you're deleting them, assuming it is podman.

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

On KDE plasma the fractional scaling also plays a role in text rendering. Then there's also the "Legacy Application Scaling" for X11 apps on the Wayland session.

Rustmilian ,
@Rustmilian@lemmy.world avatar

Font rendering is complex and depends on several settings and features lining up perfectly. Anti-aliasing, DPI, fractional scaling, hinting, and subpixel rendering are all important factors that contribute to the quality and appearance of text on a digital display.

Rustmilian ,
@Rustmilian@lemmy.world avatar

What's the WINE error message you get with the proprietary driver?

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

This error is caused by a compatibility issue between Wine's RandR (X11 display extension) implementation and the NVIDIA proprietary drivers.

a. Install winetricks and run winetricks orm=backbuffer glsl=disable
This will configure Wine to use a different rendering method that is compatible with the NVIDIA drivers.

&/Or

b. Use a tool like Q4Wine to configure the Wine prefix and set the "UseRandR" option to "N"
This will disable Wine's use of the RandR extension and use a fallback method instead.

That should fix it.

What am I doing wrong (OpenSuse)?

I've been trying Tumbleweed for my gaming needs and so far it seems to be working relatively well. My issue is about removed packages. When I first installed TW, I removed quite a few packages I did not want (KSudoku, LibreOffice, and a few others). It has been a little since I've turned on my PC but yesterday I noticed that...

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

Are you perhaps accidentally booting from a system snapshot?

Rustmilian ,
@Rustmilian@lemmy.world avatar

Check your install paths when you uninstall them. Do the files from the packages still exist?

Rustmilian ,
@Rustmilian@lemmy.world avatar

Possibly. But from my research it seems to really depend.

the USB-C ports on the two PCs need to support USB OTG (On-The-Go) functionality, which allows the ports to dynamically switch between host and device modes. This is what enables the direct PC-to-PC communication over the USB-C connection.

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

I found some directions that might help.

Enabling USB-C OTG Device Mode :
Ensure the Linux device has a USB-C port that supports OTG functionality.
In the device tree, set the dr_mode property of the USB OTG controller to "peripheral" or "otg" to enable device mode.
Configure the TUSB320 USB-C controller (or equivalent) to operate in UFP (Upstream Facing Port) mode, which allows the device to act as a USB peripheral.
Configuring USB Gadget Drivers :
Load the appropriate Linux USB gadget driver for the desired functionality, such as g_ether for Ethernet over USB, g_serial for a serial device, etc.
Manually configure the USB network interface, such as assigning an IP address to usb0.
Connecting to a Host :
Use a USB-C to USB-C or USB-C to USB-A cable to connect the Linux device in OTG device mode to a host PC.
The host PC should then detect the Linux device as a USB peripheral, allowing file transfer, network connectivity, or other functionality depending on the configured gadget driver.

Gateworks.com Wiki Linux OTG
Kernel.org Driver-API USB Gadget
Collabora Blog Modern Linux USB Gadget integration with Systemd Part1

A tool :
gt
Rust library :
usb-gadget
C Library :
libusbgx

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

Not sure if that'll work for SteamDeck-to-LinuxPC connection, but I'm certain that works for SteamDeck-to-Android.
It is using USB gadgets, so it's worth a shot at least.

Rustmilian ,
@Rustmilian@lemmy.world avatar

It's should definitely work then. MTP usually doesn't leverage USB Gadget, but this one seems to.

Weird KDE Panel resizing bug. Thinking of a complete reinstall ( sh.itjust.works )

Whenever I resize the panel or the any other widget on the panel (e.g calendar widget) it doesn't remember its size. It's really annoying me. I am on Fedora 40, KDE 6.0.4. Nothing seems to fix it, thinking of a complete reinstall. Is anyone of you getting this bug?

Rustmilian ,
@Rustmilian@lemmy.world avatar

It is but it's also a main component so it's already plasma 6 compatible.

Rustmilian ,
@Rustmilian@lemmy.world avatar

I also have this bug. It seems that widget position saving is broken atm.

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

Idk about OP, but for me the entire widget menu position saving seems to be completely broken not just for the kickoff application launcher widget's menu. The position saving feature is a relatively new thing anyway so I'm not too worried about it. I didn't even notice it until OP's post, lol.

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

So basically it's a matter of transparency (or lack there of)?
Sorry, it's a lot to read and reading OCD doesn't help.

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

Why are identity politics even allowed to be discussed in an unrelated field (software development) in the first place? Seems it always just leads to people getting upset when you can just not talk about it as it's really not related at all to my knowledge.

I can kinda agree here. In the open source community, identity politics should be especially irrelevant. The FOSS licences are explicitly designed in a way to not discriminate based on such factors like race, religion, gender, nationality, biological sex, political views, etc.
However, from what I can gleam from the blog, it seems somehow related to the COC, maintainer behavior and a lack of transparency rather than "identity politics". In what way, idk because the blog doesn't seem to specify any specific verifiable incident, at least from what I can tell. But I will say, that if it is a matter of the COC, that the COC is supposed to be a protection of the right for an individual to be able to express themselves in an environment that won't prosecute them.
So, in this regard it'd make sense to if say someone was being miss gendered maliciously for example, it'd violate the COC. In this regard, the right to express oneself doesn't give someone the right to harass others because they disagree with how someone else is expressing themselves.

Edits : restructuring and clarification.

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

Thank you. Reading the blog was a complete train wreck that left me more confused then informed.

Rustmilian ,
@Rustmilian@lemmy.world avatar

alleges*

here's a better source thanks to OP for sharing it in a different thread.

Rustmilian ,
@Rustmilian@lemmy.world avatar

OP, you should add that link to the body of your post. It seems to be the best source so far.

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

Don't forget LMDE

Also, you read the last column wrong.

Rustmilian ,
@Rustmilian@lemmy.world avatar

This list isn't that well thought out.

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

Fedora Silverblue is in an entirely different ball game. You can't use dnf because it's an immutable image based system where you can't make direct changes to the Root system without making use of the rpm-ostree & VCS mechanisms. You're making a conscious choice by using Fedora Silverblue, and the pros out way the cons for most people making that choice.
In contrast Fedora Workstation allows you to use dnf just as normal because it's not an immutable image based system.
Ubuntu doesn't make use of any such system so their reliance on containerized user-space apps isn't a technical one.

Rustmilian ,
@Rustmilian@lemmy.world avatar

Does Linux Mint count as an "Ubuntu variant"?

Rustmilian ,
@Rustmilian@lemmy.world avatar

I think you have a typo in your last paragraph.
Flatpak should run better on Wayland compared to Snaps. Not to mention Flatpak has much better XDG Portal Integration.

Rustmilian ,
@Rustmilian@lemmy.world avatar

That space pinball game thing? It's available on Linux, I saw it in the AUR a few months ago.

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

I'll gladly provide 2 examples that I know of :

The entirety of the Tesla OS is based on Linux, meaning that their proprietary autopilot program running on their OS is directly dependent on the Linux kernel for its core functionality.

  • Tesla has been working to upstream support for their Full Self-Driving (FSD) SoC into the mainline Linux kernel.
  • Tesla's Autopilot HW3 computer is running Linux kernel 4.14.
  • Tesla has been enabling the Tesla FSD SoC for the upstream Linux kernel over the past year.

Lastly, NASA's Mars helicopter.

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

eBPF is looking great.

Are there any discrepancies between the resources an OS uses when running in a virtual machine vs being ran directly?

I recently found out about a Linux Distro named Q4OS and I wanted to test out their claim that it only requires 256 MB of ram when using the trinity desktop environment. However, when I used the live cd in virt-manager with 256 MB or ram, it just kernel panicked at boot. So I then tried it with 512 MB of ram. In addition to some...

Rustmilian ,
@Rustmilian@lemmy.world avatar

SteamOS doesn't run inside a container, it's just an immutable image based system.

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

Here's Some Alternatives to SimpMusic :
InnerTune (A Material 3 YouTube Music client for Android)
SpMp (A YouTube Music client with a focus on language and metadata customisation)
ViMusic (Seamlessly stream music from YouTube Music)
RiMusic (A multilingual Android application for streaming music from YouTube Music.) {ViMusic Fork}

Android app dependency? ( slrpnk.net )

I have found the translation from camera source feature useful in Google Translate and I use it from time to time. Last night was one such occasion, yet when I attempted to enable camera mode, I received the message shown in the screenshot, "Please install the latest Google app in order to use camera translation". I currently...

Rustmilian ,
@Rustmilian@lemmy.world avatar

You have to switch the ROM completely for that, this seems to be a stock pixel thing.

Rustmilian ,
@Rustmilian@lemmy.world avatar

linux-hardware.org and it's hw-probe tool are also very good.

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

The kernel driver for the RTL8852CE wireless card is driver rtw8852ce. This means that the driver is mainline, so it should work out of the box. Going to the git log for this particular driver, we can see it's initial work was as added back in 2022-03-10, therefore it's safe to assume that any Kernel released after that point will work. However, seeing that the latest fix was made in 2024-02-01, I highly recommend using any kernel after that date for the best experience. That said, go to releases and take a look at the chart; according to the chart and the previous information, you should be good with any Linux Kernel 6.1+. Heading back to the main page, the drivers you should be looking at are LTS (longterm) 6.1.87 and above, while I recommend stable 6.8.7+ for the lastest patches made to this driver.

I recommend using hw-probe and running :

sudo -E hw-probe -all -upload -max -check-extended -dump-acpi -decode-acpi 

For a full and complete probe of the system.

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

Using my knowledge of the Linux Kernel, I was about to locate the page. RTL8852CE's driver is rtw8852ce located in the Rtw89 driver family subset.

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

It'll likely just be an update and handled by the package manager accordingly. Old Gnome-based Cosmic is being retired afaik.

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

gksu and kdesu are unsupported for >10 years iirc

I know.

they were not more secure than sudo

No, they were, barely, but they were, they were wrappers around sudo that provided "a more user-friendly and secure way to run graphical applications with elevated privileges, by handling environment variables and permissions better than using sudo directly."
They've been deprecated in favor of pkexec.
sux is wrapper around su which transfers your X credentials, it sucks, don't use it.

There's no difference between running it via sudo or pkexec, however polkit provide additional protections to prevent running unsafe apps with elevated privileges.

pkexec literally uses Polkit and PAM under the hood.

pkexec runs the program in a "minimal known and safe environment" to avoid potential security issues like code injection through environment variables.
pkexec also sets the PKEXEC_UID environment variable to the user ID of the process invoking it, providing more information about the context.
pkexec is more secure than using sudo -i for running graphical applications, as it can prevent certain types of privilege escalation attacks.
This increased security is largely due to the use of PolicyKit (Polkit) with pkexec. Polkit is a framework that provides a way to define and enforce fine-grained access control policies for privileged operations.
With Polkit, the system administrator can define rules that determine which users or processes are allowed to perform specific privileged actions, like running a GUI application as root. This provides more granular control compared to the blanket root access granted by sudo.

PAM and GVFS are not "privilege elevation frameworks" whatever you mean by this.

You're right, PAM is an authentication framework and GVFS is a whole other thing that leverages polkit and authentication agents. My bad.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • All magazines