linux

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

smpl, in What is the point of dbus?
@smpl@discuss.tchncs.de avatar

I will conveniently avoid any dbus talk, because the why is not so interesting as the how and direct you to this path /var/run/wpa_supplicant. You would probably send SCAN_RESULTS on the socket, you could also initiate a SCAN first to include the strength of stations you’re not connected to. If you want deeper access to wireless, you use netlink to communicate with the kernel (see /usr/include/linux/nl80211.h) and poke some NL80211_STA_INFOs… or the other direction (everything is a file) you just parse /proc/net/wireless without any special permissions for the current signal strength.

Oh… and btw dbus has a simple binary protocol underneath all the XML/interface fluff and uses a UNIX socket.

DrRatso, in I didn't know where else to ask this, if there is another comm i should ask please lmk. Do you have any suggestions for wireless headphones i can use with linux?

At 80 I would urge you to consider wired again or save up. Otherwise I would look for the cheapest amazon / ali headset you can find a decent review online (off amazon) for.

fossphi, in Gentoo goes Binary (packages)

I’m enthralled by this. It really makes it easier to support other people’s gentoo installations while allowing one to still optimise the ever last drop of life blood out of one’s own packages! Love to see it!

Badabinski, (edited ) in eGPU docks?

I have an AKiTiO Node Titan eGPU enclosure with a GTX 1070 hooked up to an Ubuntu 22.04 laptop and it's working pretty well. I'm doing PCI passthrough to an Arch Linux VM, since my company mandated that all Linux users must use Ubuntu. To stave off comments about this, I'll say that it's not just that I dislike Ubuntu. They're requiring me to lock down so much stuff that I can't do my job. Plus, the endpoint security sensor on the host plays absolute hell with anything that uses heavy multiprocessing. The GPU (with external monitors), second NVMe drive, mouse, keyboard, audio interface, microphone, webcam, 30 gigs of RAM, and 11 CPU cores are passed to the VM, and the host OS gets the laptop GPU + monitor and my continuing disdain.

I've been using this setup for a month. My experience thus far has been positive. I start the computer up with or without the GPU connected, connect the GPU if I haven't yet, launch my VM via libvirt, and things just work. I really thought I'd have more problems with the GPU, but the USB passthrough stuff has been the truly problematic part (I can't just pass the whole PCI USB controller for IOMMU reasons). It's important to note that the GPU displays directly to external monitors. I think it's possible to like, send the data back to your laptop screen? But I really didn't want that.

(As an aside, the security people at my company have no problems with VMs lol. They know what I've done and they don't seem to care).

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…

isotope, in I've started building a TUI for Lemmy

Looks good! You might want to join forces with github.com/LunaticHacker/lemmy-terminal-viewer

chaorace, (edited ) in Laptop keyboard unresponsive - I think my (unknown) laptop is affected by the kernel Zen IRQ regressions - how do I work around this?
@chaorace@lemmy.sdf.org avatar

Your best bet is probably figuring out why the graphical session isn’t working and then going from there. Since you’re on NixOS odds are all the logs you need are right there in journald.

Worst case scenario: you might need to pin your system nixpkgs to ~January 2021 until the issue sorts itself out. You can still install newer userland packages if you separately manage them as a flake (this is a common and well-supported pattern in home-manager)

EDIT: found a discussion with good configuration.nix examples for pinning the system nixpkgs. Once you find a workable pin you could also try inching it up to get a better idea of what broke (January 2021 is a good starting point because it’s the last month before 5.11 released, a newer pin is very likely possible)

Splatsune,
@Splatsune@beehaw.org avatar

I believe that the issue might be that the amdgpu driver is too new, judging by this string of errors:


<span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (EE) AMDGPU(0): [drm] Failed to open DRM device for pci:0000:05:00.0: Invalid argument
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (II) AMDGPU(1): [KMS] Kernel modesetting enabled.
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (EE) AMDGPU(1): [drm] Failed to open DRM device for pci:0000:05:00.0: Invalid argument
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (EE) Screen 0 deleted because of no matching config section.
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (II) UnloadModule: "amdgpu"
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (EE) Screen 0 deleted because of no matching config section.
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (II) UnloadModule: "amdgpu"
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (EE) Device(s) detected, but none match those in the config file.
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (EE)
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: Fatal server error:
</span><span style="color:#323232;">Dec 20 21:30:54 minion xserver-wrapper[1080]: (EE) no screens found(EE)
</span>

So if this doesn’t end up working, I’ll definitely look into the pinning thing, because 5.10 seems like my best shot.

chaorace,
@chaorace@lemmy.sdf.org avatar

Hmm… what’s the purpose of loading amdgpu at all if you’re using an NVIDIA card? Optimus?

ElderWendigo, (edited ) in Where can I post questions on how do construct formulas in Onlyoffice/Libreoffice spreadsheets?

A spreadsheet is always going to be a bad fit for a problem like this. You want something like the command line tools sed and awk (maybe combined with some simple regex) to parse a stream of input like this. These tools were literally built to solve this kind of problem. If you are stuck in windows, the Windows Subsystem for Linux will have these tools.

SteveTech, in need help fixing a hardware problem using linux

I do kinda agree with the others that this is a power issue, but I was thinking it wouldn’t harm to run a memtest, maybe whatever part of RAM the iGPU is mapped to is dying or something like that.

M500, in eGPU docks?

Makes me wonder if this is a possible future. Just get a small nuc like computer and connect it to an egpu.

Aties,

I went down this path, but mini itx nucs with a GPU slot seemed to be better as long as you’re not using the egpu on multiple devices; if you are, then it might be worth considering just making a PC a host and running sunshine/moonlight. While I haven’t tried connecting to my host on the steamdeck, I have on my laptop and felt like it could be used for gaming

jcarax,

I think dynamic graphics switching would be far preferable for a desktop scenario, but for a laptop an eGPU is an attractive proposition.

Matty_r,
@Matty_r@programming.dev avatar

For sure. It’s something I’ve considered for a while simply because I don’t need that extra heat/noise created by the GPU when I’m only doing my day job.

M500,

My only problem with this is that the docks are like $300. I guess igpus are getting good enough that I’ll probably never need a dgpu again.

Still surprised how well the steamdeck can handle resident evil 4 remake.

I really don’t need better graphics than that. In fact, they don’t even need to be that good.

ursakhiin,

It definitely is, but likely comes with a slight performance sacrifice due to bus speeds.

sparky,
@sparky@lemmy.federate.cc avatar

It’s more than slight! I ran a 3090 in an eGPU for a while and it lost around 40% of performance compared to when it was in my case.

ursakhiin, (edited )

That can depend on a lot of factors, though. From the bus of the enclosure to the speed of the USB port and cables you used.

I wouldn’t have expected a 40 percent drop on the modern USB standards, but I’d still expect a drop. I was thinking closer to 20 percent.

gens, in What is the point of dbus?

Because not using OOP is hard for gui devs.

nix, in I've started building a TUI for Lemmy
@nix@merv.news avatar

How did you upload a video?

crunchpaste,
@crunchpaste@lemmy.dbzer0.com avatar

Uploaded it to catbox.moe and then just pasted the link in the url field when creating the post. Hope that helps :)

Spectacle8011, in Writing program
@Spectacle8011@lemmy.comfysnug.space avatar

I know you said don’t suggest Vim, but I use Neovim for my writing and write in markdown. Any markdown editor will do. Marker is fine. It’s really easy to convert to another format like HTML or EPUB with pandoc. Markdown has minimal formatting, too, so it shouldn’t bug you so much.

FocusWriter is another good suggestion if that’s more what you’re interested in.

mesamunefire, in I've started building a TUI for Lemmy

Something like rtv would be great!

LainOfTheWired, in Writing program
@LainOfTheWired@lemy.lol avatar

If you don’t need all the features of a full office suit then check out markdown and and editor like ghostwriter

rodbiren,

I second the motion on ghostwriter. Had a nice focus mode, looks good, isn’t distracting. I use syncthing to backup everything. It’s my jam.

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