• 0 Posts
  • 24 Comments
Joined 2 years ago
cake
Cake day: June 15th, 2023

help-circle
  • If you want a second attempt, this might help.

    To get USB devices working inside a container, you need to map the device into the container, which can be tricky—especially if you’re running rootless containers.

    If you’re on Linux and want to avoid complicated setups with user namespaces, groups, or messing with udev rules, the easiest way to start is by manually recreating the device node inside a folder you control (like where your config is stored) using mknod.

    For example, if your USB device is /dev/ttyUSB0:

    1. Run ls -l /dev/ttyUSB0 You should see output like: crw-rw---- 1 root dialout 188, 0 Jan 1 1970 /dev/ttyUSB0

    2. Note the major (188) and minor (0) numbers.

    3. Change directory to the folder where you want to create the “clone” device node, then run: sudo mknod -m 666 ttyUSB0 c 188 0 (Use the major/minor numbers from your device — they differ by device.) This will create a device readable and writeable by anyone on the system so perhaps consider changing the mode from 666 to 660 and/or chown the file afterwards to your user and group. As I said, this is HACKY and not a secure solution.

    You will now have a device file you can then pass into your container with the Docker/PODMAN option: –device /path/to/your/folder/ttyUSB0:/dev/ttyUSB0

    I realize this is a pretty hacky and insecure workaround—feel free to downvote or ignore if you want something cleaner. But it’s a quick way to get your USB device accessible inside the container to get started. Later on, you can look into proper handling with udev or other methods if security is important.

    If you use Windows, you are on your own unfortunately, I do not have experience with podman/docker in Windows environments.


  • Subtitles are not always simple text files in the source. They can come in various formats like SRT, WebVTT, Teletext, and VobSub—if they are present at all.

    To integrate them into WebM, you must first determine if they exist, ensure they have the correct language tags (and tag them properly if they don’t), then extract them, convert them into a format compatible with the player, and finally remux them alongside the video and audio. This process can easily fail in an automated workflow if any of these conditions are unmet or if the subtitle format is incompatible.

    Given this complexity, it’s understandable why many choose to avoid the effort rather than addressing whether WebM supports subtitles.

    I am not defending anyone, but the process of it all makes it understandable, at least for me.



  • Were you using Windows XP Home, by any chance?

    That tool was only included with Windows XP Professional, and even then, it was a command-line utility—so unless you were specifically looking for it or browsing through the %windir%\system32 directory, you probably wouldn’t have noticed it.

    The article I referenced didn’t specify exactly which 32-bit versions it came with or when it was removed—it just mentioned that it was still included in 32-bit Windows after the DOS era. I didn’t write the article myself, so I can’t really speak to its accuracy.

    Personally, I used that edline a lot back in the DOS days starting around 1985, until I switched to Notepad in Windows 95 and later to VIM when I moved to Linux after Windows 98. I never really checked for it in newer versions of Windows after that. A quick Google search confirmed it wasn’t included in XP Home, which would explain why you never saw it.

    Link to the forum I found this information about XP in: http://murc.ws/forum/hardware/general-hardware-software/49698-omg-edlin-still-lives-in-xp#post755768

    (edit: fixed a typo, added reference link)








  • that is probably someone who is connecting / pairing your Zigbee bulbs to their network/mesh.

    it has nothing to do with the cloud service.

    if you are not using Zigbee yourself, they auto join open Zigbee networks after reset or when they are not connected to a Zigbee network, so if the other person is adding a new device he or she owns, the bulbs will also join his network in that process.

    unsure if you can switch Zigbee off in the app or not as I have never used the app, so you would have to figure out how to do that yourself or make them join a Zigbee network you own.

    hope this helps and hope you get it sorted.

    (edit, added line about cloud service)


  • Alright, let’s get into the nitty-gritty of Duckpower.

    First, let’s settle the “waddling vs. flying vs. swimming” debate. Horses aren’t big on flying, so we’re talking waddling power here. Until someone locates a Pegasus, we’re limited to the traditional land-bound horsepower. If you want swimming power, I guess you’d need to measure a seahorse?

    Now, here’s where it gets serious: according to the brilliant minds at Art of Engineering, we can calculate Duckpower using a clever formula. They took the mass of a duck, compared it to a horse, and ran it through Kleiber’s Law. The answer? One horsepower = 131.2 Duckpower. So, back to our math:

    3 horsepower = 3 x 131.2 Duckpower = 393.6 ducks waddling their hearts out.

    But wait! We probably don’t need all 393.6 ducks if we give them some solid shift schedules. Horses only get 3 HP so two can rest; following this logic, we’d only need around 100 well-rested ducks, provided they get naps and stay hydrated.

    So, let’s optimize our duck workforce with a shift schedule. Assuming we only need 100 ducks, here’s the plan:

    Duckpower Shift Schedule:

    Total Ducks: 100

    Working Ducks per Shift: 25

    Shift Duration: 2 hours on, 6 hours off (plenty of time for snacks and naps)

    In a day, we’d run 4 shifts like this:

    1. Shift 1: 25 ducks start strong at 8:00 AM, waddling with purpose.

    2. Shift 2: Fresh 25 ducks take over at 10:00 AM while Shift 1 ducks hit the ducky lounge for snacks and a nap.

    3. Shift 3: At 12:00 PM, another 25 ducks clock in to keep those wheels turning.

    4. Shift 4: Finally, at 2:00 PM, the last 25 ducks take over while the others catch up on R&R.

    With this cycle, each duck works only 2 hours out of every 8, staying energized, waddling at peak efficiency, and ready for action.

    TL;DR: 3 horsepower = 393.6 ducks waddling but if we set up a 4-shift system, we can pull this off with only 100 ducks working 2 hours each, plus snack breaks.


  • 3 horses = 3 horsepower, which translates to a whopping 393.6 Duckpower.

    Honestly, why are we still using horses as the standard here? Ducks are clearly the superior metric. So if you’re like me and prefer a more feathered approach, just remember:

    3 horses = 3 horsepower = 393.6 ducks You’re welcome.

    (PS: Just imagine 393.6 ducks handling 10Gb… now that’s efficiency.)



  • the halt command is like a handbrake for the kernel, so it basically shuts everything down hard and stops, but it does not power off the system without you telling it to, so that is why your LEDs stayed on after you used the other parameter.

    you could just try to downgrade/ upgrade the kernel, do s shutdown for a few hours during daytime when the computer is not beeing used, then turn it back on and check the percentage.

    you will see the drain if it’s not a full night, but it might not be so drastic.

    if it’s completely shut down there should be no loss in percentage, even for a short period of time as there probably is now…

    I’ll try to think up another solution, but a bit busy today as I mentioned on the last post


  • Hi, a bit busy today so I can investigate some more later, but the problem you are describing is in many cases related to the kernel version and has been resolved by up or downgrading the kernel version.

    it might be worth looking into, at least it’s a simple task, while I get some more time to investigate or offer more for you to look into.

    great that it worked so far, at least now you know where the problem is :)


  • let’s hope it’s a software issue, in general it’s much cheaper to fix software than hardware 🙂

    you can also try using the “sudo halt --poweroff” command.

    if it ks software related. that command will force an instant shutdown ignoring all normal shutdown run levels (use with caution if you have open files that need to be saved in advance).

    if that command succeeds as well after the battery test, you can be sure the problem lies within the shutdown run level scripts, which should help you narrow it down even more.



  • does this happen if you force it to shut down by holding the power button for +10sec, or if you remove and reinsert the battery after power off?

    forcing a shutdown or removing and installing the battery, will ensure that the laptop is indeed shut down and not just halting during the shutdown process.

    if you still have the same issue after this test I would guess your battery is dying, but if not you know that the issue is a software and not a hardware problem…

    anyway, best of luck getting it sorted


  • y0din@lemmy.worldtoLinux@lemmy.mlHP Laptop drains battery while turned off
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    edit-2
    9 months ago

    do you have any usb devices, like external hard drives, chargers or similar connected to it? a lot of the laptops allows for usb charging/supply of power even when switched off, and this could be one of the sources for the drainage.

    try disconnecting all USB cables if any are connected and see if the problem disappears?

    never mind, did not see the line about no connected usb cables until after posting