imbruxo n00b
Joined: 23 Mar 2024 Posts: 14
|
Posted: Sat Apr 27, 2024 12:12 pm Post subject: dhcpcd (LAN connection) stop working after suspend (solved) |
|
|
Hey , I have problem that my Lan connection in laptop (nvidia + intel) stop working after a suspend (both using loginctl suspend and s2ram)
I am using dhcpcd + wpa_supplicant with openrc
i compiled openrc with-netifrc useflag
I have swap and added it to grub cmd line with resume=LABEL=SWAP
here is my dhcpcd config :
Code: | # A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
controlgroup wheel
#set a profile for enp
#get it work
#speed it up
noarp
#only selected
# Inform the DHCP server of our hostname for DDNS.
interface enp0s31f6
dhcp
interface wlan0
dhcp
# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
duid
# Persist interface configuration when dhcpcd exits.
persistent
# vendorclassid is set to blank to avoid sending the default of
# dhcpcd-<version>:<os>:<machine>:<platform>
vendorclassid
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search
option classless_static_routes
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu
# Request a hostname from the network
option host_name
# Most distributions have NTP support.
#option ntp_servers
# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# Generate SLAAC address using the Hardware Address of the interface
#slaac hwaddr
# OR generate Stable Private IPv6 Addresses based from the DUID
slaac private
|
and even if I do rc-service dhcpcd restart it not working unless I do a reboot system
and I got that when I do suspend in (ip a) my enp0s31f6 shows :
Code: | enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 |
and it has inet6 with ip and stuff
but their is no inet working after suspend
I installed resolvconf package too
any help whould be thankful
it's really crazy problem I am working so hard to find solution , I feel stupid
EDIT : fixed by reinstalling iwd and dhcpcd and reconfig dhcpcd and change some linux-firmware use flags and update system and everything works
TL'DR : I replaced wpa_supplicant with iwd because of weried problemes |
|