this post was submitted on 09 Aug 2023
47 points (100.0% liked)

Linux

48208 readers
1557 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I apologize if this seems like a trivial matter, but I have a laptop (a Lenovo Ideapad 3 to be exact) and I can't get WiFi (or Bluetooth) to work on anything other than Ubuntu 23.04 and its flavors. I tried OpenSUSE Leap and Debian 12, both couldn't detect the built-in WiFi card. I also tried Ubuntu-based distros such as Linux Mint, KDE Neon, and Zorin OS, same problem. I tried Kubuntu 22.04 LTS and even that couldn't detect the WiFi card! So for the mean time, I'm stuck with using Ubuntu 23.04. Any ideas to get around this? Can I use Ubuntu to figure the exact WiFi card that's being used then download its driver? If so, how can I do that exactly? Note that my Laptop doesn't have a built-in Ethernet port, and I don't want to buy a USB Ethernet adapter only for it not work out of the box either! Any help would be appreciated!

top 15 comments
sorted by: hot top controversial new old
[–] noddy@beehaw.org 6 points 1 year ago (1 children)

Drivers are usually there in the kernel and usually works out of the box. You shouldn't need to manually install drivers with linux generally (except for proprietary drivers cough nvidia cough). But if your laptop is quite new, you need to have a new enough kernel. That would explain why ubuntu 23.04 works but not not 22.04. The kernel in 22.04 is probably too old to have the drivers for your network interface. Check what kernel version is shipped with ubuntu 23.04 and make sure that whatever distro you try have at least that version. Stable LTS distros often don't work on brand new hardware.

[–] josephsh5@lemm.ee 1 points 1 year ago (1 children)

I understand that. But what's making me scratch my head is that I tried running Linux Mint 21.2 and Debian 12, both of which to my knowledge were released very recently, and yet both failed to detect my WiFi card. Are they running an older linux kernel?

[–] djsaskdja@endlesstalk.org 6 points 1 year ago* (last edited 1 year ago) (1 children)

Yeah they’re running an LTS kernel. Debian 12 is on 6.1 when we’re on about 6.48. I’m not sure about Linux Mint, but I know it uses LTS too so it must be 6.1 or older. Not sure if upgrading the kernel would help you, but just throwing that out there.

[–] noddy@beehaw.org 1 points 1 year ago

Mint is based om LTS ubuntu, so same as 22.04.

[–] axzxc1236@lemmy.world 5 points 1 year ago (2 children)

Try posting output of lspci command here, gives us more information about your laptop hardware.

[–] 0v0@lemmy.world 5 points 1 year ago

and lshw -C network. On ubuntu 23.04 (where it works) it will show the driver and driver version.

[–] axzxc1236@lemmy.world 2 points 1 year ago

On Ubuntu 22.04 based distro, you can try install HWE (hardware enablement) kernels but you need a phone that can share WIFI/mobile connection through USB cable.

sudo apt update; sudo apt install linux-generic-hwe-22.04

[–] Successful_Try543@feddit.de 4 points 1 year ago

You can try searching (google) for the output of lspci or lsusb: like "1234:5678 firmware". Alternatively, search for your chip in the Linux Wireless data base.

[–] Dotdev@programming.dev 3 points 1 year ago (1 children)

In mint have you tried the latest kernel through update manager ?

[–] Diplomjodler@feddit.de 1 points 1 year ago* (last edited 1 year ago) (2 children)

Real question: if your WiFi doesn't work and you don't have a wired connection available, what do you do to update the kernel? Can you just download it on another machine and then update with a USB drive?

[–] sylana@feddit.de 4 points 1 year ago* (last edited 1 year ago)

You can connect it to your phone via USB (which should be available usually) and then activate USB tethering. That way the PC can be connected to internet, with the help of the phone

[–] skankhunt42@lemmy.ca 1 points 1 year ago

Yeah, you'll slso need all the dependencies but it'll work.

[–] undualies@lemm.ee 3 points 1 year ago* (last edited 1 year ago)

You could also check the symlinks for the device in the sysfs. The word after "drivers" below for a given network interface (eth0 below) is usually the name of the driver (cpsw below):

$ ls -l /sys/class/net/eth0/device/driver   
lrwxrwxrwx 1 root root 0 Aug  9 10:41 /sys/class/net/eth0/device/driver -> ../../../../bus/platform/drivers/cpsw

Or run lsmod and see if anything jumps out.

Either way, once you find the driver name, run modinfo to get version and other information about specific drivers.

Edit: formatting

[–] ChojinDSL@discuss.tchncs.de 1 points 1 year ago

You're probably just missing the corresponding firmware package.

lspci -v should show you which hardware chips your system has. Then just search the packages for any firmware packages that contain that chip's name. E.g. realtek.