I use a laptop, and have only just been able to finally connect an ethernet cable to it. However, ethernet doesn’t work on Linux, returning this “Cable Unplugged” message, whereas it does work on dual-booted Windows.

I tried running “lspci -v” to get a list of where my drivers were located, but I could not find any entry for “Ethernet controller,” or something of the like. That being said, I’m assuming I just don’t have an Ethernet driver?? and I was wondering how I get one :)

  • yol@lemmy.world
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    1 year ago

    It’s probably a missing driver. You can boot into a live environment with Linux and download the driver from there if it recognizes it.

    If it’s a fresh install it might be simpler to reinstall and make sure to check the box that allows for proprietary drivers to be installed if necessary.

    You can also find out the model of your network card and then download the driver package on another PC and move it over on a flash drive.

  • damium@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    If it isn’t showing up in lspci then it isn’t currently attached to a PCI port. lspci will show all devices with or without a driver, known and unknown. You can try lsusb to see if it is attached internally to USB (very uncommon). It might also have a firmware level power saving disconnect feature that needs to be either disabled or managed by the OS in some way. It might also be showing up as a different device than you expect (also very uncommon) most cards will show as either Ethernet controller: or Network controller:.

    Make and model of the laptop and any identification details from the ethernet device under windows would be helpful for diagnosis.

  • Efwis@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    1 year ago

    However, Ethernet doesn’t work on Linux….

    This part of the comment is not correct. This is more of an Ubuntu 22.04 issue. I haven’t used Ubuntu in like 4 years and never had this problem occur on any new version of Linux OSes that I have used. I have been able to hotswap Ethernet connections ootb on every distro I have ran without having to install a driver for it.

    I am curious about one thing though. Is your Ethernet port integrated or are you using a usb dongle to connect. If it’s a dongle, then that might be your problem.

    What does lspci without the -v show for connections?