Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
Can't connect via Ethernet on NixOS
Post Body

Is anyone else running NixOS and has any pointers for getting the ethernet expansion card to work?

lsusb shows the card:

Bus 004 Device 002: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN

But ip a shows no carrier:

enp0s13f0u4c2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 9c:bf:0d:00:0e:88 brd ff:ff:ff:ff:ff:ff

Does anyone have an idea? I'm connected via Wifi, but that can be a bit unstable in my flat unfortunately. The cable is working, I tried it on my old Thinkpad, and I even tried the expansion card on my husband's Macbook and it did work there.

Edit: I figured it out: The usb autosuspend was too aggressive. Setting up a udev rule (ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20") or setting the corresponding kernel parameter (usbcore.autosuspend=20) fixed it

Author
Account Strength
0%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
23,228
Link Karma
13,843
Comment Karma
8,620
Profile updated: 6 months ago
Posts updated: 9 months ago
:linux: NixOS on 12th Gen DIY Batch 5

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago