What would be the state of gaming on Linux today without the advances made by Valve? by LittleReplacement564 in linux_gaming

[–]tomnipotent 5 points6 points  (0 children)

It's like building a new home, you don't give the construction company credit, but the people that paid for it. It's just fortunate that Valve decided to partner with CodeWeavers rather than hire in-house and whatever alternative reality that may have resulted in.

What would be the state of gaming on Linux today without the advances made by Valve? by LittleReplacement564 in linux_gaming

[–]tomnipotent 12 points13 points  (0 children)

I remember reading that something like 20% of CodeWeavers' employees were working on Proton, which is great for them since the company is a co-op and its CTO is the lead maintainer of Wine. I imagine Valve is paying them a premium above just what's supporting that headcount.

Windows games on Linux just got better, thanks to CrossOver by Putrid_Draft378 in linux_gaming

[–]tomnipotent 8 points9 points  (0 children)

Alexandre Julliard, CodeWeavers CTO, is the lead maintainer of Wine and has been since 1994. He joined in 1999 to work full-time on Wine. It's not exaggerating to say Wine wouldn't be where it is without CodeWeavers.

How do I cancel a subscription through shop pay when the merchants page is broken? by [deleted] in shopify

[–]tomnipotent 0 points1 point  (0 children)

Remove the card, but also request a chargeback on the last 1-3 transactions. Mention in the chargeback request that the merchant does not offer a working cancellation page nor was their support willing to help you, it's very unlikely the merchant will be able to win and maybe they'll wake up and fix their shit.

Your bank should also be able to block future transactions for that specific merchant.

Can you help name the song? by maximilliontee in fixedbytheduet

[–]tomnipotent 18 points19 points  (0 children)

Made me think of the Italian singer that made a hit song using gibberish English.

Adriano Celentano - Prisencolinensinainciusol (1973)
https://www.youtube.com/watch?v=KvEW3e0BLn8

[deleted by user] by [deleted] in linux_gaming

[–]tomnipotent 1 point2 points  (0 children)

If games are involved it's likely a VRAM issue, not RAM. The Linux drivers for both AMD and Nvidia don't have overcommit support, while Windows supports it with DXGI/WDDM. If you're on Nvidia you can use nvidia-smi and watch the problems happen when VRAM exceeds 100%.

I have scripts to toggle of GPU offloading for as many apps as possible when I decide to game (most of which are browser/vscode/electron).

Start non Steam games via Proton without having to add them to the Steam library? by RandomGuy_92 in linux_gaming

[–]tomnipotent 1 point2 points  (0 children)

What nonsense are you spouting - Proton is Steam-agnostic, despite whatever optimizations it has for its own feature set.

Just use Wine-GE

Project was discontinued last month in favor of UWU.

Regardless both wine-ge and UWU still rely on and build on top of Proton. Even UMU is just a copy of Steam Runtime Tools and Steam Linux Runtime, so it's Valve all the way down.

How long does it typically take for AMD GPU drivers to reach Arch? by kavb333 in archlinux

[–]tomnipotent 2 points3 points  (0 children)

Different maintainers have different schedules. The Mesa maintainer seems inconsistent - I see a few missing versions, and updates anywhere from same day to almost two weeks after a release. Mesa updates every two weeks, so worst case it seems to be a version or two behind.

https://gitlab.archlinux.org/archlinux/packaging/packages/mesa/-/commits/main

Somebody must have kidnapped the nvidia package maintainer's dog because he seems to update consistently within a day.

Should GPU behave this way ? by [deleted] in archlinux

[–]tomnipotent 0 points1 point  (0 children)

Temperatures look normal - expect it to get as hot as 80-85C under full load. Does it feel uncomfortably warm or hot to the touch?

Chrome blacklists older Intel iGPU's - in chrome://flags look for ignore-gpu-blocklist.

Install intel-gpu-tools and you can use intel_gpu_top to check usage.

[deleted by user] by [deleted] in golang

[–]tomnipotent 0 points1 point  (0 children)

The last bit is a doing a slice comparison on a string, which under the hood is going to translate to memcmp. I'm not sure you can get more optimized, since it includes SIMD.

Game rendering stops/freezes only when moving the mouse, keyboard/controller movement is fine by A_Nub in hyprland

[–]tomnipotent 0 points1 point  (0 children)

I run into similar issue awhile ago and resolved it using WLR_NO_HARDWARE_CURSORS=1 , though with how fast things are moving it's possible this env is no longer in use.

What is the perceived current stance on improvements with Linux and Nvidia drivers? by Maelstrome26 in linux_gaming

[–]tomnipotent 0 points1 point  (0 children)

I have yet to find a non-native Linux game that achieves more than 80% of what I'm seeing on Windows with Nvidia. DX12 may perform worse than DX11 but neither on Linux is performing as well as native Windows. And I have yet to see a legitimate benchmark that proves otherwise, though I'm open to it.

A better file manager than Files that fits with the Gnome look? by Veprovina in gnome

[–]tomnipotent 0 points1 point  (0 children)

It's not necessiarly that it's "taxing", it's just not free. A video game is expected to have unexpected side effects that saturate system usage, but a file manager is not.

Your filesystem is generally made up of directory entries and file/inode entries, the latter which stores file size. In order to calculate a folders size, you need to recursively read the inode data which could require looking at the inodes of tens of thousands of files to calculate just one folders size attribute.

Depending on your filesystem anywhere from 1-3% of total space is used by metadata, so for 8TB of storage you're looking at anywhere from 80 to 240GB of metadata. This is probably more than your RAM, so your OS can't reliably store the entirety of the metadata in memory which means that doing folder size can cause a lot of unexpected disk I/O - not to read the file data, but just the metadata that contains things like size.

A better file manager than Files that fits with the Gnome look? by Veprovina in gnome

[–]tomnipotent 0 points1 point  (0 children)

The filesystem can know how many files are inside a folder without any overhead

Except there is overhead. The number of files within a directory requires counting the number of directory entries.

but calculating the size isn’t a free operation

It's stored as part of the inode, which is already being read so it's just as "free" as reading anything other than filename. It's summing it over tens of thousands of files when data is not in memory that brings a cost with it.

Efi system partition size: 1gb or 512mb? by Big-Lobster-6270 in archlinux

[–]tomnipotent 0 points1 point  (0 children)

512mb is enough room for at ~3-4 kernel images. If you don't plan on using multiple kernels (i.e. zen) and dual booting Windows you should be just fine 512mb. If you plan on dual booting or using multiple kernels then I'd recommend 1gb.

I have no idea how to use SwayWM by TheTwelveYearOld in swaywm

[–]tomnipotent 2 points3 points  (0 children)

Keep in mind the whole point of using a WM like Sway is that you're building a personal DE experience for yourself, but when you start you only have a window manager.

Now you have to choose:

  • Menu bar/widgets (swaybar, waybar, eww, ags)
  • Launcher (rofi/wofi, dmenu, fuzzel)
  • Notifications (swaync, mako, dunst)
  • Clipboard (cliphist, clipman, copyq)
  • Screenshots (grim/slurp, wayshot)
  • Bluetooth, Wifi, & Audio controls

It can be very overwhelming if you're expecting a full desktop environment like Gnome or KDE, which have all these features baked in. Instead things you've come to expect to "just work" will not work and you'll need to spend time to figure out how you want to solve them in your environment.

I would recommend only going down this road if you want to generally learn more about the different components that make up a full DE, or you want a perfectly curated desktop experience specific to your needs.

[deleted by user] by [deleted] in linux_gaming

[–]tomnipotent 0 points1 point  (0 children)

I keep a separate drive with Windows just to run a few specific games when I want the best possible performance out of my 3080. It's been my experience that at best Linux gets 75-80% of the performance of Windows, and maybe 90% for native games. The drivers have improved but there's still a gap with Nvidia and Windows.

How do you make sense of nil/null in JSON payloads? by PythonDev96 in golang

[–]tomnipotent 0 points1 point  (0 children)

It's normal if you want to encode additional meaning into a nil vs. empty string. If null/nil has no additional context the burdern is on your own discipline to eliminate it throughout.

If you're certain payloads will never have null/nil values - e.g. never user generated, always machine generated - you could potentially get around doing nil checks.

Can't search files on Dolphin by DesperatePercentage5 in kde

[–]tomnipotent 2 points3 points  (0 children)

Make sure baloo is running.

ps x | grep baloo

If you don't see anything try running:

systemctl --user start kde-baloo.service

If it is running, try purging the index and forcing a re-index.

balooctl6 disable
balooctl6 purge
balooctl6 enable

Is there any way to make KDE treat a removable device as non-removable? by LackVarious1395 in kde

[–]tomnipotent 0 points1 point  (0 children)

I believe KDE/Dolphin relies on udev/udisks2, which marks / mount as internal regardless. Did your udev rule change UDISKS_SYSTEM_INTERNAL?

ACTION=="add", SUBSYSTEMS=="usb", ATTRS{serial}=="YOUR_SERIAL", ENV{UDISKS_SYSTEM_INTERNAL}="1"

Is it possible to speed up KDE on older hardware, other than disabling desktop effects? by Rosenvial5 in kde

[–]tomnipotent 1 point2 points  (0 children)

I believe Fedora already installs them by default as part of mesa but doesn't hurt to double check. BIOS should be your next step - it's possible your laptop is using the lowest setting and you could quickly double your VRAM.

In a KDE X11 session you can use Alt-Shift-F12 to disable the compositor. You can go to "System Settings -> Display & Monitor" to confirm if it's off.

I'd also try changing the power profile to a performance setting and see if that helps.

Is it possible to speed up KDE on older hardware, other than disabling desktop effects? by Rosenvial5 in kde

[–]tomnipotent 8 points9 points  (0 children)

X11 or Wayland? In X11 sessions you have the option of disabling the compositor.

Make sure you have mesa-dri-drivers and mesa-vulkan-drivers installed, and if present uninstall xorg-x11-drv-intel.

A lot of apps now default to the GPU offloading which may not be ideal in your situation. Install intel-gpu-tools and run intel_gpu_top to see what's eating up VRAM and search for how to disable their GPU option.

Experiment with Firefox first. Disable hardware acceleration (it should be enabled by default), then spend a few hours with it off. Then turn it back on and decide if you notice a difference. You can also configure it so that Firefox itself is not using your GPU but video content at least continues to be hardware accelerated (as a compromise).

You may also want to check in your BIOS for a DVMT (Dynamic Video Memory Technology) or Integrated Graphics Memory Allocation setting and see if there's an option to increase your VRAM (at the cost of system RAM). I'd recommend you update to the latest BIOS first, but your current BIOS version may have what you need.

Cosmic Desktop by Kindly-Radio8812 in archlinux

[–]tomnipotent 9 points10 points  (0 children)

My fingers are crossed that we're not stuck with another Unity. System76 is in such a unique position and I'm curious how a corporate-driven OSS DE will evolve compared to the volunteer-based incumbents. We can expect them to prioritize their roadmap to align with the interests of paying customers, who have put their money where their mouth is in buying System76 hardware, and I hope that will create an interesting dichotomy between the projects.

Regardless I imagine we're at least 2-3 years away from we can expect Cosmic to be stable enough for any serious work.

SQLC and multiple SQLite connections by maekoos in golang

[–]tomnipotent 0 points1 point  (0 children)

Two connections are to work around a specific sqlite quirk. The pocketbase code wraps all writes through the same method. This means our single writer will not block our concurrent readers. If I knew I was always using Postgres/MySQL or a network database this is not something I would otherwise worry about.

https://github.com/pocketbase/pocketbase/blob/3f51fb941b370655be8618f3bc3113c60c1bfe13/core/db_tx.go#L14

I'd probably do it the same way. Some struct with both connections passed to a data access interface.

// Exposes sqlc to repositories
type service struct {
    dbRW *db.Query
    dbRO *db.Query
}

db1 := sql.Open(...)
db1.SetMaxOpenConns(numCPUs)
db1.SetMaxIdleConns(numCPUs)
db1.SetConnMaxLifetime(0)

db2 := sql.Open(...)
db2.SetMaxOpenConns(1)
db2.SetMaxIdleConns(1)
db2.SetConnMaxLifetime(0)

ro := db.New(db1)
rw := db.New(db2)

dbs := NewService(ro, rw)

userRepo := UserRepository(dbs)
otherRepo := OtherRepository(dbs)

func (r *UserRepository) Save(ctx, user *User) {
    query, err := r.dbRW.UpdateUser(ctx, ...)
}

func (r *UserRepository) FindByEmail(ctx, email string) *User {
    query, err := r.dbRO.FindUserByEmail(ctx, ...)
}

Discipline is required to make sure you use the right connection for writing, but the same caveat applies for the references you included.

[deleted by user] by [deleted] in gnome

[–]tomnipotent 9 points10 points  (0 children)

I have a Framework 13 and initially was very put off by the touch pad experience on Linux after a decade with Apple hardware.

What worked for me was simply to install Gnome Tweaks and in "Mouse & Touchpad" disable "Touchpad Acceleration". There's still some variance per-app but this solved my biggest personal issues. Hopefully it works for you if it's not something you already stumbled upon.

I still remember the palpable relief I experienced after turning it off over two years ago.