There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

linux

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

cmnybo , in Installing CH340 drivers in Linux Mint running 5.15.0-88 kernel

Why are you trying to install a driver for a CH340? The driver is already built into the kernel. Just plug it in and it will work.

30p87 ,

Like nearly all drivers lol

Drivers I needed to pay special attention to:

  • NVidia (we all know the official stance on that topic)
  • e1000e needs patching because my Laptops NIC somehow reports the wrong NVM checksum
  • Some obscure chinese “USB to DVI-D” adapter
  • The fingerprint sensor in my Laptop, as it’s still experimental
JustEnoughDucks ,
@JustEnoughDucks@feddit.nl avatar

Drawing tablet drivers!

To be fair, it actually does work out of the box, but shortcut mapping doesn’t really work well outside of the buttons on the pen itself and pressure curves isn’t customizable yet, at least on KDE.

NOOBMASTER ,

Whoa, you got the fingerprint sensor working? What laptop brand is it, and what distro are you using?

30p87 ,

It’s a Dell Latitude 5420, with a Broadcom Corp. 58200. Per wiki.archlinux.org/title/Laptop/Dell#Latitude, the 5420 is supported with libfprint-2-tod1-broadcom. And of course, I use Arch btw.

sntx ,

This.

However sometimes the user can’t access the device. Depending on your system, I recommend adding your user to the dialout/serial group.

I.e. quick online search

cmnybo ,

Another issue is that brltty can take over the serial port. The easiest fix is to just uninstall it if you don’t use a braille display.

Jallu , in Installing CH340 drivers in Linux Mint running 5.15.0-88 kernel

Doesn’t look like the executable you are trying to run is with executable rights.


<span style="color:#323232;">chmod +x ch34x.c
</span>

And retry.

(I don’t have any knowledge of this driver or installing it. Just wanted to give some directions.)

Jallu ,

Yeah, I know. It is a source code file…

sping ,

You don’t execute C source files. They have to be compiled.

First point as someone else commented, that driver is already present in any mainstream kernel. It’s very unlikely you have any need to build it.

But if you really want to build it the command will be make that will get instructions from Makefile on how to build the driver. But there will be other tools and libraries needed.

boredsquirrel ,
@boredsquirrel@slrpnk.net avatar

No, the user is doing something very wrong here and this is way worse. Please dont give wrong advice.

Someonelol OP , in Installing CH340 drivers in Linux Mint running 5.15.0-88 kernel
@Someonelol@lemmy.dbzer0.com avatar

I did what abominable_panda suggested and it returned a “wait_queue_t” and a couple of pointer type errors. I’m not sure if that’s something that could be fixed with installing something else, but I’m not at all familiar with troubleshooting on this OS yet. The troubleshooting part you mentioned is if it successfully installed but there are issues. It doesn’t quite explain the initial installation part.

As for cmnybo’s question, I’m trying to program a ESP32 module with the Arduino IDE. I’ve tried just plugging it in and hoping the driver would already be installed but lsusb doesn’t show it on the results.

cmnybo ,

If it’s not showing up in lsusb and there is no activity in syslog when connecting or disconnecting it, then the problem is not a driver. It’s likely a bad cable or you got a dead module.

Someonelol OP ,
@Someonelol@lemmy.dbzer0.com avatar

You’re right about the bad cable. I have a collection of about 10 USB A to USB micro cables and only one of them showed up on lsusb! Thanks for the advice!

boredsquirrel ,
@boredsquirrel@slrpnk.net avatar

True, the device should absolutely be shown on lsusb

helpimnotdrowning , in Installing CH340 drivers in Linux Mint running 5.15.0-88 kernel
@helpimnotdrowning@lemmy.sdf.org avatar

*.c files are C source files, you can’t run these directly. Run the makefile with sudo make or sudo make install (assuming you have make installed) to build (or build and install) the driver.

edit: Oops didn’t read far enough into your post, you’ve already tried make. What error does it give you?

Someonelol OP ,
@Someonelol@lemmy.dbzer0.com avatar

I get this as a result:

user@user-System-Product-Name:~/Downloads/CH341SER_LINUX$ sudo make Makefile

make: Nothing to be done for ‘Makefile’.

umami_wasbi ,

You don’t pass in Makefile to make as it will read that file automatically. Nor you need sudo with make as compiling doesn’t need any special privileges.

Step:

  1. make: compile the code to binary
  2. sudo make install: install the binary to your system
boredsquirrel ,
@boredsquirrel@slrpnk.net avatar

Please dont just run whatever command with sudo.

Please read a bit of stuff before trying out crazy stuff.

Do you even need that driver?

chaotic_disorganizer , in Installing CH340 drivers in Linux Mint running 5.15.0-88 kernel

can’t really tell much without knowing this package, but ./ is not what you’re looking for. try just “make” or “make clean”, as this is standard syntax for Makefiles. if you are wondering what happens, make looks for a file called “Makefile” in the current directory and executes whatever is inside. in your case it will most likely compile the .c file into an executable

stuner , (edited ) in Installing CH340 drivers in Linux Mint running 5.15.0-88 kernel

The driver should already be installed but there seems to be an issue with brltty registering the corresponding USB ID when they shouldn’t. You can probably fix it by following this guide: koen.vervloesem.eu/…/how-to-stop-brltty-from-clai… (or this one: unix.stackexchange.com/a/670637)

Edit: Perhaps this has since been fixed in Mint 21 / Ubuntu 22.04.

KrapKake ,

Some time ago I wasted about 2 hours of time because of that damn brltty, wondering why the tf the arduino was not being detected until I followed dmesg. I was very upset at the time when I found out what brltty was. Like I get some people need that but if the user did not connect a braille display during install then the daemon should never be enabled or just uninstalls during os installation.

bsergay , in Must have packages/extentions/etc?

Distrobox for accessing any package from any other repo; including those belonging to other distros.

possiblylinux127 ,

Your description is a bit misleading. Distrobox allows you to run a container that is integrated with the system. This means you can have a command line that is basically the other distro but you can still access files and run GUI apps.

flappy ,

Interesting, thanks!

boredsquirrel , in what does this mean for Flatpak?
@boredsquirrel@slrpnk.net avatar

Every app with home or even host access can modify its own permissions.

This is why apps need to implement portals.

boredsquirrel , (edited ) in Installing CH340 drivers in Linux Mint running 5.15.0-88 kernel
@boredsquirrel@slrpnk.net avatar

Please dont follow windows workflows.

If you run a random script with or without sudo, you can easily get malware or break your system.

A .c file is also not ran, it is a C source file and needs to be compiled

i.e. you are doing something completely wrong and followed some strange advice.

Instead,

  1. Try if the USB cable is the only issue
  2. Drivers are in the kernel, so you cannot just install them
  3. Ask Linux Mint people how to do this, or Ubuntu or Debian people (the distros are related)
trevor ,

I agree with your sentiment. Just one small thing: .c files are usually C source code, and are meant to be compiled into binaries.

It doesn’t change OP’s situation at all though.

bloodfart , in what does this mean for Flatpak?

This is good news for flatpack!

lily33 , in Is NixOS at the advent of an implosion? | Community inquiry on recent drama

In September the NixOS constitutional assembly should finish their work, and the community will be able to elect governance. I’m guessing that’s when the drama will start getting resolved.

In the meantime, there are multiple maintainers that have left because of the drama - which is more troublesome than the board members leaving - but nixpkgs has a LOT of maintainers, and there are new ones joining all the time. It’s still healthy and won’t implode so quickly.

bsergay OP ,

Informative post. Thank you!

JustEnoughDucks ,
@JustEnoughDucks@feddit.nl avatar

Is Nix really so important to the world that it needs a constitutional assembly, a board of directors, and general elections?

I always gathered that it was a niche project within the niche of Linux distro projects.

Is it a bunch of people playing out a company governance fantasy or is it actually a large, well valued company?

I am also quite out of the loop I feel…

someacnt_ ,

I heard developers find it rather easy to do reproducible build in Nix, so it is more utilized over dev landscape. Basically a competitor of docker, and quite significant one at that. That’s why it is considered big, despite that it is niche from desktop linux pov.

natecox , in Is NixOS at the advent of an implosion? | Community inquiry on recent drama
@natecox@programming.dev avatar

It’s probably wise to simply ignore the drama. Open source seems to invite this at the “top” for whatever reason, but for the casual user there is usually little to no impact.

Unless you’re trying to be a top contributor to nix, I would just carry on with normal usage and all the current drama will blow over.

JetpackJackson ,

Idk imo knowing about the drama makes me hesitant to go back, especially since I switched all my development environments from Nix to Guix and I dont want to have three package managers lol Plus the Guix community seems really close knit

Also, happy cake day!

fartsparkles , (edited )

Conway’s Law applies in this respect; the mess in governance of Nix has produced a product that reflects that mess. Nix started a beautiful movement but like many first movers, they rarely reap long-term rewards.

JetpackJackson ,

Oof. That sucks. Didn’t know that was a thing

possiblylinux127 ,

I would avoid getting locked in to one platform. Portable and flexible is better

JetpackJackson ,

Yeah that makes sense. I still have my old nix shell files so I can use them if need be for my environments

natecox ,
@natecox@programming.dev avatar

All good reasons to make a decision, I’m not trying to sway anyone in a direction.

I just feel bad when people see drama in a community and wonder if that thing is “safe”. I’ve seen this kind of thing many times before in other communities—PERL, Python, Ruby, Rust, etc—and it never seems to lead to sweeping changes the normal user would notice. It’s pretty safe to assume that day-to-day users of thing can just carry on if they don’t care about the community upset.

JetpackJackson ,

That’s true. That’s what I’ve been seeing in places, people just saying to continue on and ignore the drama. And I know I shouldn’t let a group idea/thing dictate whether I use nix but like I was already starting to not like how it seemed like a lot of people were like “write all your stuff in nix (configs, etc)” and I didn’t want to get locked in. Plus I got busy and didn’t feel like tinkering with it. Idk. I was already losing interest in a weird way. I still think immutable/reproducible distros are cool though. I’m now just currently running Guix on top of arch and using aconfmgr to emulate some reproducibility.

Auli ,

NixOS is never going mainstream. When the answer to everything is oh just write a package for it. Unless their is a nice gui to edit your configuration file also it well always be niche.

gramgan ,

Not to add fuel to the flame by asking, but how’s it been on Guix? I’ve heard Guix does a lot of things better, but also that there’s far less packages and it’s harder on modern hardware.

ShadyGrove , (edited )

I’m not the op, but I’ve been using guix for several months on a new fairly top of the line desktop PC and it’s going great. I’ve been able to play steam games and set up my dev environment with basically no issues.

The catch is you need to use non-official repositories (i.e. github.com/nonguix/nonguix) to use the non-libre kernel and other software not on the official channel.

There’s also this nice little search engine - https://toys.whereis.みんな/ - where you can look for packages from other repos (or channels as they are called in guix).

I use Nix on my macos work laptop to set up my dev environment, but I definitely prefer guix so far, mostly due to the it being configured in guile over the weird nix language. The biggest advantage I see of Nix is that it has a bit more features and lots more packages.

I am a pretty hardcore emacs user and lisp lover though, so ymmv.

toastal ,

gitlab.com/nonguix/nonguix

They literally have this as the link in all their docs so I am not sure why you would choose the mirror on the fully-proprietary, Microsoft-owned code forge.

ShadyGrove ,

I chose the mirror cause I was just writing that comment super quickly on my phone. But uh, thanks for the right link I guess?

JetpackJackson ,

I haven’t tried running a full Guix system yet but im really liking it as a package manager on top of arch. Yes, hardware support can be iffy, but there is an unofficial channel called nonguix that packages the standard Linux kernel instead of linux-libre, and yes there are less packages but honestly packages are so much more fun to write? I’ve written a few package definitions for both my own use and ive made a request to add one to the official channel. And I feel like, if I really needed something that would not be packaged due to complexity or something, I could try and use flatpak or an appimage or something. I think its definitely worth checking out.

nublug ,

uh, the drama being what it is about people in positions of power blocking efforts to make a welcoming and diverse nixos community, persisting right wing concern trolling, and especially what appears to be maybe a military tech company takeover of nixos, it’s hella understandable people would want to reconsider using this tech on their own hardware and it’s pretty sus to respond to this with ‘ah just drama it’ll blow over’…

electricprism ,

Just like the xz backdoor I agree “nothing to see here, move along” seems like bad advice.

It is curious to wonder how much state actors and militaries are involved in weaponizing FOSS culture to purge potential perceived opponents.

For this reason sticking to technological merit and leaving personal beliefs out of FOSS seems wise.

FOSS shouldn’t be state actor’s play thing. When leadership behaves radically and is exclusive it looses my respect & support.

refalo ,

military tech company

wait until they find out where computers and the internet came from. or Tor… GPS, etc etc.

Auli ,

Of how much “militsry” contributed to FOSS. Or how Linux is no longer the lone programmer hacking on code in there spare time. But the vast majority of FOSS is done by companies.

Auli ,

If you think that’s a military take over. Don’t look under the rug of Linux/foss at large.

delirious_owl ,
@delirious_owl@discuss.online avatar

Worst case the community forks. This is the benefit of open source.

Tenkard ,
nmtake , in SOLVED: River WM - Find an app-id

I think git.sr.ht/~leon_plickat/lswt may work.

pukeko OP ,

That does, indeed, help. And I got to the 3rd page of google/kagi results without seeing any hint of it. Thank you so much.

dino ,

Can you provide a little more info? I cant even see how to install this from the provided link, nor what it does.

nmtake ,

The repository has Makefile so you can build the executable with make:


<span style="color:#323232;">$ cd /tmp
</span><span style="color:#323232;">$ git clone https://git.sr.ht/~leon_plickat/lswt
</span><span style="color:#323232;">$ cd lswt
</span><span style="color:#323232;">$ make
</span><span style="color:#323232;">$ ./lswt
</span><span style="color:#323232;">$ sudo make install (optional)
</span>
dino ,

Okay but I am not going to make something where I have to read the sourcecode in order to get any info. Thanks anyway.

communism ,
@communism@lemmy.ml avatar

You don’t have to read the source code. You just clone the repo and run make to install it. Then just run the lswt command which will show you app-ids of any running apps.

j4k3 , (edited ) in Installing CH340 drivers in Linux Mint running 5.15.0-88 kernel
@j4k3@lemmy.world avatar

Have you setup a rules file for USB? You must have a udev rule setup that gives your user access to the hardware. It is trivial to create, but is one of those little headaches you learn as you go. Sparkfun and Adafruit should both have good tutorials if you search either of them for udev rules.

Mine for a ch340 is done like this:


<span style="color:#323232;">$ cd  /etc/udev/rules.d
</span><span style="color:#323232;">$ sudo nano 69-my-usb-serial-devices.rules
</span><span style="color:#323232;"># ch340
</span><span style="color:#323232;">SUBSYSTEM="USB", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="1a86", ATTR{idProduct}=="7523", MODE="0666"
</span>

I just told you to enter the terminal editor nano and enter a note that will help you remember that this is for the ch340 # ch340 followed by a line that sets the permissions for the device using a rule for which users have access to the device. I’m assigning the rule based on the vendor and product ID numbers. You can find these numbers by using the $ lsusb command. FYI, the $ is standard shorthand for command line as your standard user. This is opposed to # which is short for the root user at the command line.

Once you enter this line in nano, follow the instructions to save the file in nano :qw IIRC. The next time you plug in the device, the kernel should use this rule to set the permissions for the device to 0666 which means everyone can read write, but not execute stuff from the port; with execute would be 0777.

When you are trying to find info about a USB device the following may be helpful:


<span style="color:#323232;">$ sudo dmesg | grep -F "USB device number" 
</span>

Note that the last line should be the most recently connected device. $ dmesg is the system-d boot log. Depending on how system-d is configured, you’ll probably see timestamps on the left. The initial bootup devices will show up with a tightly grouped time stamp, while later connections will show a much larger number.

There have been some recent changes in Fedora that have broken a script I wrote to help me with all the various places where USB hardware is located and finding the right info. I’m trying to parse that script for the key elements. The first step is to find the location of the hardware. You are looking for something like /dev/bus/usb/003/003 or wherever the new device got mounted. This is only the start, because different parts of the device may be mounted in different locations. I’m not just talking about the CH340, but like, if you are doing microcontrollers stuff that gets more complicated like forth, micropython and circuit python where there will be more going on than just the serial port, or you need to know low level stuff. Once you know the specific port, you can use $ udevadm info --attribute-walk --path=$(udevadm info --query=path --name=/dev/bus/usb/003/003) # enter the port for the device in question.

In the past, my script used $ dmesg to retrieve the device location, then used $ lsusb -D *device location* to get the basic info. Then I went a layer deeper with the udevadm command to see everything related to the device. The command $ fdisk -l might also help with some STM32 type stuff that has a dfu bootloader and identifies as a USB drive when plugged in… At least, I think that was the reason I kept that option in my script, it has been awhile since I used one of those.

Edit: I can get the actual port location of a device now using $ lsusb -t -vv.

bjoern_tantau , in Looking for a Mac OS9 style desktop environment
@bjoern_tantau@swg-empire.de avatar

I’d look at kde-look.org if there’s something.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines