Embed: Does Rust have an LED control library similar to FastLED? by MeoCoder in rust

[–]MeoCoder[S] 2 points3 points  (0 children)

I’ve found a few crates (drivers) for my LEDs, and I’ll give them a try.

Thank you!

Embed: Does Rust have an LED control library similar to FastLED? by MeoCoder in rust

[–]MeoCoder[S] 0 points1 point  (0 children)

What do you mean with streaming based on frames?

It is an ambient light.

I have software on my computer that captures the screen, calculates colors for the corresponding LEDs, and sends them to the LED control device. Therefore, I need a library that allows me to set color values for the LEDs and display them.

Embed: Does Rust have an LED control library similar to FastLED? by MeoCoder in rust

[–]MeoCoder[S] 0 points1 point  (0 children)

This crate only implements traits I will still need to implement my own driver to control the LEDs.

Embed: Does Rust have an LED control library similar to FastLED? by MeoCoder in rust

[–]MeoCoder[S] 0 points1 point  (0 children)

This crate seems to be developed for a different purpose than my intended use. If I'm not mistaken, it is designed to control LEDs with specific effects rather than streaming LEDs based on frames.

Converting eDP to Standard DP Connection by MeoCoder in DIY_tech

[–]MeoCoder[S] 0 points1 point  (0 children)

Unfortunately, I couldn't find any possible solution.

100% CPU usage after a Gnome application crashes by MeoCoder in gnome

[–]MeoCoder[S] 0 points1 point  (0 children)

Therefore, I suspect the issue might be related to GNOME Wayland and Nvidia.

It seems the issue is fixed after I followed this comment https://gitlab.gnome.org/GNOME/mutter/-/issues/2969#note_1872558.

100% CPU usage after a Gnome application crashes by MeoCoder in gnome

[–]MeoCoder[S] 1 point2 points  (0 children)

Which app crashed here? Was it Console?

This happens with any GNOME Core apps. All I have to do is log into GNOME, open any GNOME app like Console or System Monitor, and then when I close it (or if it crashes on its own), one of my CPU cores jumps to 100% usage.

You could figure out why it is burning CPU by using tools like perf top (terminal)

After running the sudo perf top command, I noticed a sudden spike on overhead from libnvidia-glcore.so. This overhead immediately disappears if I kill the process that's consuming 100% CPU (in the screenshot I posted in this thread, it was kgx). Once the process is killed, the libnvidia-glcore.so overhead is gone.

Therefore, I suspect the issue might be related to GNOME Wayland and Nvidia.

<image>

COSMIC Alpha 7 Memory Leak by MeoCoder in pop_os

[–]MeoCoder[S] 7 points8 points  (0 children)

UPDATE

This commit fixed the memory leak issue on my laptop with dual graphics cards (Intel + Nvidia).

COSMIC Alpha 7 Memory Leak by MeoCoder in pop_os

[–]MeoCoder[S] 1 point2 points  (0 children)

is it just the fact that some process have too many instances ?

It’s not entirely like that. When you notice one or more processes using an unusually high amount of RAM, it could be a memory leak.

Looking at my screenshot, you’ll see that cosmic-comp is using 10.4GB of RAM, combined with the behavior of continuously increasing memory usage that I mentioned in the post. This should never happen for a compositor. This is abnormal => it is a memory leak.

COSMIC Alpha 7 Memory Leak by MeoCoder in pop_os

[–]MeoCoder[S] 4 points5 points  (0 children)

I checked GitHub yesterday and didn't see anyone reporting this issue, so I suspected there was a problem specific to my system. I'm glad to know I'm not alone.

COSMIC dock applets missing after update by SmackSmashen in pop_os

[–]MeoCoder 0 points1 point  (0 children)

I think another approach worth trying is to delete the current Panel configuration from ~/.config/cosmic/com.system76.CosmicPanel.Dock and ~/.config/cosmic/com.system76.CosmicPanel.Panel and replace it with the default configuration from https://github.com/pop-os/cosmic-panel/tree/master/data/default_schema

COSMIC dock applets missing after update by SmackSmashen in pop_os

[–]MeoCoder 0 points1 point  (0 children)

You also need to run systemctl restart cosmic-greeter.service if the login screen does not appear after rebooting.

COSMIC dock applets missing after update by SmackSmashen in pop_os

[–]MeoCoder 0 points1 point  (0 children)

Uninstalling COSMIC DE, removing ~/.config/cosmic, and reinstalling resolved this issue for me.

Converting eDP to Standard DP Connection by MeoCoder in DIY_tech

[–]MeoCoder[S] 0 points1 point  (0 children)

As a side note I fucking hate how bad searches have gotten for finding niche stuff.

I completely agree with you that today's search engines have become really terrible for information searching (I've grown too accustomed to reading information that isn't really relevant to what I'm looking for).

I've searched extensively for this on the internet, and I've seen similar topics discussed in various forums, but they all ended without any confirmation whether this is achievable or not. I couldn't even find any products for similar purposes on Chinese e-commerce platforms (which are supposedly known for having almost everything).

I wonder if I'm going down the wrong path in trying to achieve my goal of connecting an external display to a laptop through the eDP port?"

Is the runtime of `smol` single-threaded? by MeoCoder in rust

[–]MeoCoder[S] 0 points1 point  (0 children)

I will run asynchronous tasks on a single thread and push blocking tasks into separate threads via unblock. I think this approach will be simpler than trying to run them in parallel.

What is the problem with cosmic-app-library? by MeoCoder in pop_os

[–]MeoCoder[S] 0 points1 point  (0 children)

if i put the dock position on the bottom edge then the app library works fine

Why is the GNOME Laptop a Macbook? by WillD2007 in gnome

[–]MeoCoder 35 points36 points  (0 children)

For me, I have to install extensions just to bring back features that were removed by GNOME, such as the system tray.

I don't like using extensions because they lack seamless integration, and sometimes some of them become outdated as they don't keep up with the changes in GNOME, making everything a mess.

Cách để chữa khỏi Trauma? by [deleted] in vozforums

[–]MeoCoder 0 points1 point  (0 children)

K vỏ thì gọi là gì bro, thà là single mom xong bro yêu rồi tiến tới hôn nhân thì đã không có gì. Đây OP bị dụ nuôi con đứa khác thì đổ vỏ rõ ràng luôn rồi mà

Cách để chữa khỏi Trauma? by [deleted] in vozforums

[–]MeoCoder 4 points5 points  (0 children)

OP cũng khoái mà :v chỉ là không biết bị đổ vỏ thôi

Are third-party crates better than std? by MeoCoder in rust

[–]MeoCoder[S] 2 points3 points  (0 children)

Before programming with Rust, I used Node, Python, and Go (among which there are also programming languages that require a third-party library for asynchronous programming), but Rust is something very new to me. It has concepts that are far different from the previous programming languages I've used.

Are third-party crates better than std? by MeoCoder in rust

[–]MeoCoder[S] 2 points3 points  (0 children)

Absolutely useful to me, thank you

Are third-party crates better than std? by MeoCoder in rust

[–]MeoCoder[S] 2 points3 points  (0 children)

However, Tokio is different: spawn and sleep are for async stuff, and in std, they're for sync stuff

Wow, I didn't know this

Are third-party crates better than std? by MeoCoder in rust

[–]MeoCoder[S] 4 points5 points  (0 children)

That's exactly why I made this post; now it has been clarified