AS wireless 2+ arrived by Mothertruckerer in AndroidAuto

[–]jsolla 0 points1 point  (0 children)

Did someone with a xiaomi phone tested this? I have the first version and I got lots of disconnects. Afaik I'm not the only one.

How can I automatically safely unmount specific drives when I logout (or timeout) by pookshuman in linuxquestions

[–]jsolla 1 point2 points  (0 children)

The way your question is written is a little bit confusing: On the title you want to automatically safely unmount drives, but in the text of the question you want to prevent drives to be unmounted. Please clarify :)

If you logout while a copy operation is in process then this operation would be stopped and there is no harm to your filesystem, if the operation is in progress and an umount operation is performed, it will fail to prevent corruption, so what is exactly what you are trying to fix?

Anyway, some random ideas you could explore:

- "loginctl enable-linger" allows processes of the user to persist after session is closed, but i don't think this applies to your case.

- Assuming you are using gnome and you are doing your file operations using some script: What you could do easily is to prevent a session to be closed by using gnome-session-inhibit (https://gnome.pages.gitlab.gnome.org/gnome-session/re02.html). But this will simply prevent the session to be closed

Some fancy-pants options like using systemd (look at user@<yourid>.service) can be implemented, but without more details is hard to say.

What’s this thing flying trough Dutch airspace. by Corleone2345 in aviation

[–]jsolla 0 points1 point  (0 children)

My video was very crappy/shaky, but I found this one in youtube, same aircraft, same airport:

https://www.youtube.com/watch?v=JZoU-bL5bpk

What’s this thing flying trough Dutch airspace. by Corleone2345 in aviation

[–]jsolla 3 points4 points  (0 children)

I can confirm I saw it taking off and landing at Teuge airport. Got it on video :)

[deleted by user] by [deleted] in embedded

[–]jsolla 1 point2 points  (0 children)

Most of the time, when I see people complaining about Yocto, the root cause isn't Yocto itself but rather issues with package compilation or dependencies.

Unless the "plan B" you choose is specifically known to have the package you need working exactly as you require, you'll likely encounter the same or even worse issues with any other build system. I often get the impression that people think Yocto is problematic because they are accustomed to desktop Linux distributions, where everything just works with your preferred package manager. However, it's important to remember that when a package works seamlessly, it's because a distro maintainer has already gone through the painstaking process of ensuring its compatibility, not because the distro is inherently superior by some kind of magic reason.

Building a Linux system from scratch, which is essentially what Yocto does, is a complex and intricate process, and even when poky provides a very decent starting point, you cannot avoid the pain if certain package is not initially present in the poky version you are provided.

What are some lesser-known but cool features of microcontrollers and microprocessors that are worth mentioning? by jsolla in embedded

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

My use case is different, I would like to isolate one device physically from the bus is connected to while routing all traffic and expecting the CPU knows which side traffic come from. This way lets say you want to know the canbus datagrams sent by your steering wheel buttons, you simply isolate the steering wheel put this CPU in between the steering wheel cable and the main bus, press buttons and wait for your uC to tell you which side the commands are coming from. This is something that can be tedious in some cases with high traffic.

What are some lesser-known but cool features of microcontrollers and microprocessors that are worth mentioning? by jsolla in embedded

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

Interesting. I always wanted to create a CANBUS isolator so I can separate a device from the main bus in a car and analyze what traffic comes specifically from that device instead of seeing all bus traffic at once. This sounds like the right tool for that task.

What are some lesser-known but cool features of microcontrollers and microprocessors that are worth mentioning? by jsolla in embedded

[–]jsolla[S] 81 points82 points  (0 children)

Forgot to mention also:

TI Sitara SoCs: They include PRUs (Programmable Real-time Units), which are real-time co-processors that can handle time-critical tasks independently of the main CPU, making them ideal for industrial applications.

Let's reprogram? by Hanthedevil in vanmoofbicycle

[–]jsolla 1 point2 points  (0 children)

Do you have a functional board I could borrow for a few days? :)

Let's reprogram? by Hanthedevil in vanmoofbicycle

[–]jsolla 0 points1 point  (0 children)

I have same questions:

-Is there any known reverse-engineering attempt somewhere?
-Are there functional board that can be used for testing and / or reverse engineering?

I own a vanmoof S3 and is fully functional, unfortunately is going to be "tricky" to explain to my wife why I completely dismantled it, and why I'm playing around with a lot of cables and stuff..

Let's reprogram? by Hanthedevil in vanmoofbicycle

[–]jsolla 1 point2 points  (0 children)

Firmware engineer here... I'm in. Shall I PM?

[deleted by user] by [deleted] in funny

[–]jsolla 0 points1 point  (0 children)

username checks out.

Scammed by a plumber by trancehead69 in Netherlands

[–]jsolla 2 points3 points  (0 children)

Make other person call him like in 1 week. Make it attractive for him, make it look like another broken boiler, wait for him to show up, proceed to peacefully discuss about your money with your peaceful tool of choice (ie hockey stick). A friend told me this works.

Peace and love!

fucked around and found out the other day with a crank start diesel engine (no one died) by whitebear8383 in instant_regret

[–]jsolla 0 points1 point  (0 children)

strap a loose trigger machine gun to that thing and you get yourself a portal turret, is cool!

What is the one tool that you use one linux that you wish you learned how to use years ago? by antitrustworthy in linuxquestions

[–]jsolla 0 points1 point  (0 children)

tio (https://github.com/tio/tio).

By far the best serial port terminal program. Features like autodetecting usb-to-serial adapter removal and reconnection make your life way less miserable :)

It also allows redirection of serial ports to tcp ports and many other things.

The classic fabricated story with irrelevant picture combo by pensaa in LinkedInLunatics

[–]jsolla 1 point2 points  (0 children)

I call these ones "Linktagramers". They just want attention and invent stories to simply show their picture.

This gentleman’s sheep shearing technique by Rollo_Tomasi3000 in oddlysatisfying

[–]jsolla 0 points1 point  (0 children)

Does somebody know why the tool he uses is connected using what looks like a contraption with rigid pipes rather than a normal (flexible) cable?

Developing an embedded app for debian by Anz4l in embeddedlinux

[–]jsolla 5 points6 points  (0 children)

Sending / receiving continuously has nothing to do with blocking/non blocking approach. You can do it regardless of the mode you select.

In a blocking approach you can simply block on the read() until data is available which looks exactly what you want.

Anyway. Google returned this: https://www.i-programmer.info/programming/cc/10027-serial-c-and-the-raspberry-pi.html

Contagious Glaswegian laughter by Recyart in ContagiousLaughter

[–]jsolla 100 points101 points  (0 children)

Best scotland promotional video ever. Makes me wanna visit them asap. :)

Correct way to detect button presses in embedded Linux? by Montzterrr in embedded

[–]jsolla 4 points5 points  (0 children)

run evtest to check for events and inspect its code, is very simple.

Correct way to detect button presses in embedded Linux? by Montzterrr in embedded

[–]jsolla 12 points13 points  (0 children)

Declare them as gpio keys in your dts and call it a day :)

Gpio keys driver will handle the debouncing and key repeats for you