rickysarraf / laptop-mode-tools

Power Savings tool for Linux
https://www.researchut.com/tags/laptop-mode-tools/
GNU General Public License v2.0
557 stars 46 forks source link

Insert USB device causes eth0 be disabled #161

Closed akikaede6 closed 3 years ago

akikaede6 commented 3 years ago

Describe the bug My laptop has two network port, named eth0 and eth1, and my battery driver has some problems, it doesn't have ac info, laptop-mode always identify it using battery, when i insert USB device, my eth0 network will be down.

Here is my /etc/laptop-mode/conf.d/ethernet.conf

# Note: If you don't know how to find the speed of your ethernet card, leave the                                        
# following values as it is.                                                                                            
THROTTLE_SPEED="slowest"                                                                                                                                                                                                                        # Disable wakeup-on-LAN? This will disable wakeup-on-LAN unconditionally,                                               
# independent of battery power. It will save power while your laptop is turned                                          
# off or in standby mode.                                                                                               
DISABLE_WAKEUP_ON_LAN=1                                                                                                                                                                                                                         # A list of the ethernet devices that should be controlled.                                                             
ETHERNET_DEVICES="eth0"                                                                                                                                                                                                                                                                                                                                                 # In practise, most of the times a user is on battery, she is using the wireless device                                 
# Under such cases, you might want to disable your ethernet interface completely, when                                  
# on battery.
#                                                                                                           
# Set below setting to 1, to disable ethernet interface when on battery and                                            
# when no carrier is detected on the interface (e.g., no active cable is                                                
# plugged in).                                                                                                          
DISABLE_ETHERNET_ON_BATTERY=1

I test my another laptop, when I unlplug the battery adapter, my eth0 be down, it was expected, and I use ifconfig eth0 up, then I insert the USB device, it makes my eth0 down too. I fond that in /lib/udev/rules.d/99-laptop-mode.rules, ACTION=="add", SUBSYSTEM=="usb", RUN+="lmt-udev force", then lmt-udev force will exec /usr/sbin/laptop_mode, load /etc/laptop-mode/conf.d, it makes my eth0 down, but it confuses me, why insert USB device will get my eth0 down? does it used to save power?

Important Information:

rickysarraf commented 3 years ago

It could be for various reasons depending on what hardware you have. Is your Ethernet LOM or is it on the USB bus ? What driver does is use ? What does dmesg/journalctl say about the error message ?

There are just too many questions. Once you answer the above ones, we may be in a better position to make a guess.

akikaede6 commented 3 years ago

Thank you for reply! My test computer is macbook pro 2011 with ubuntu 18.04, one hour before I test it in my friend's thinkpad T490 whit ubuntu 20.04, USB event doesn't affect network, maybe ubuntu have fixed it, I'll try ubuntu 20.04 in my macbook pro later.

akikaede6 commented 3 years ago

I tried ubuntu 20.04 in my macbook pro, it's network got down too.Here's journalctl -f massage following, added loglevel=7 systemd.log_level=debug debug=y in grub, network got down in 14:24:49

1月 14 14:24:46 aki-MacBookPro kernel: usb 2-1.2: new high-speed USB device number 5 using ehci-pci
1月 14 14:24:46 aki-MacBookPro kernel: usb 2-1.2: New USB device found, idVendor=14cd, idProduct=6116, bcdDevice= 2.20
1月 14 14:24:46 aki-MacBookPro kernel: usb 2-1.2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
1月 14 14:24:46 aki-MacBookPro kernel: usb 2-1.2: Product: USB Mass Storage Device
1月 14 14:24:46 aki-MacBookPro kernel: usb 2-1.2: Manufacturer: Generic
1月 14 14:24:46 aki-MacBookPro kernel: usb 2-1.2: SerialNumber: 116AC2101219
1月 14 14:24:46 aki-MacBookPro kernel: usb-storage 2-1.2:1.0: USB Mass Storage device detected
1月 14 14:24:46 aki-MacBookPro kernel: scsi host6: usb-storage 2-1.2:1.0
1月 14 14:24:46 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:46 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:46 aki-MacBookPro systemd-udevd[12524]: Successfully forked off '(spawn)' as PID 12525.
1月 14 14:24:46 aki-MacBookPro mtp-probe[12525]: checking bus 2, device 5: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.2"
1月 14 14:24:46 aki-MacBookPro mtp-probe[12525]: bus: 2, device: 5 was not an MTP device
1月 14 14:24:46 aki-MacBookPro systemd-udevd[12524]: created db file '/run/udev/data/c189:132' for '/devices/pci0000:00/0000:00:1d.7/
usb2/2-1/2-1.2'
1月 14 14:24:46 aki-MacBookPro systemd-udevd[12524]: Successfully forked off '(spawn)' as PID 12526.
1月 14 14:24:46 aki-MacBookPro laptop-mode[12580]: enabled, active
1月 14 14:24:46 aki-MacBookPro systemd[1]: Got message type=method_call sender=:1.104 destination=org.freedesktop.systemd1 path=/org/
freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=LookupDynamicUserByUID cookie=2 reply_cookie=0 signature=u err
or-name=n/a error-message=n/a
1月 14 14:24:46 aki-MacBookPro systemd[1]: Sent message type=method_return sender=n/a destination=:1.104 path=n/a interface=n/a membe
r=n/a cookie=746 reply_cookie=2 signature=s error-name=n/a error-message=n/a
1月 14 14:24:46 aki-MacBookPro systemd[1]: Got message type=method_call sender=:1.105 destination=org.freedesktop.systemd1 path=/org/
freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=LookupDynamicUserByUID cookie=2 reply_cookie=0 signature=u err
or-name=n/a error-message=n/a
1月 14 14:24:46 aki-MacBookPro systemd[1]: Sent message type=method_return sender=n/a destination=:1.105 path=n/a interface=n/a membe
r=n/a cookie=747 reply_cookie=2 signature=s error-name=n/a error-message=n/a
1月 14 14:24:46 aki-MacBookPro kernel: tg3 0000:02:00.0 enp2s0f0: Link is down
1月 14 14:24:46 aki-MacBookPro systemd-resolved[9233]: Removing scope on link enp2s0f0, protocol dns, family *
1月 14 14:24:46 aki-MacBookPro systemd[1]: systemd-resolved.service: Got notification message from PID 9233 (WATCHDOG=1)
1月 14 14:24:46 aki-MacBookPro kernel: EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro,commit=600
1月 14 14:24:47 aki-MacBookPro kernel: scsi 6:0:0:0: Direct-Access        Mass  Storage Device        PQ: 0 ANSI: 0
1月 14 14:24:47 aki-MacBookPro kernel: sd 6:0:0:0: Attached scsi generic sg2 type 0
1月 14 14:24:47 aki-MacBookPro kernel: sd 6:0:0:0: [sdb] 937703086 512-byte logical blocks: (480 GB/447 GiB)
1月 14 14:24:47 aki-MacBookPro kernel: sd 6:0:0:0: [sdb] Write Protect is off
1月 14 14:24:47 aki-MacBookPro kernel: sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
1月 14 14:24:47 aki-MacBookPro kernel: sd 6:0:0:0: [sdb] No Caching mode page found
1月 14 14:24:47 aki-MacBookPro kernel: sd 6:0:0:0: [sdb] Assuming drive cache: write through
1月 14 14:24:47 aki-MacBookPro systemd-udevd[13610]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:47 aki-MacBookPro systemd-udevd[13610]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:47 aki-MacBookPro systemd-udevd[13610]: passed 138 byte device to netlink monitor 0x555af4fa4cd0
1月 14 14:24:47 aki-MacBookPro kernel:  sdb: sdb1 sdb2 sdb3
1月 14 14:24:47 aki-MacBookPro kernel: sd 6:0:0:0: [sdb] Attached SCSI disk
1月 14 14:24:48 aki-MacBookPro root[14307]: Device /sys/bus/usb/devices/1-0:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14326]: Device /sys/bus/usb/devices/1-1 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14343]: Device /sys/bus/usb/devices/1-1.1 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14371]: Device /sys/bus/usb/devices/1-1.1:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14378]: Device /sys/bus/usb/devices/1-1.2 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14382]: Device /sys/bus/usb/devices/1-1.2:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14386]: Device /sys/bus/usb/devices/1-1.2:1.1 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14393]: Device /sys/bus/usb/devices/1-1:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14416]: Device /sys/bus/usb/devices/2-0:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14425]: Device /sys/bus/usb/devices/2-1 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14432]: Device /sys/bus/usb/devices/2-1.1 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14436]: Device /sys/bus/usb/devices/2-1.1:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14443]: Device /sys/bus/usb/devices/2-1.2 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14447]: Device /sys/bus/usb/devices/2-1.2:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14451]: Device /sys/bus/usb/devices/2-1:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14455]: Device /sys/bus/usb/devices/3-0:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro root[14459]: Device /sys/bus/usb/devices/4-0:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:48 aki-MacBookPro systemd-udevd[12524]: passed 681 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:48 aki-MacBookPro systemd-udevd[362]: passed 300 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:48 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:48 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:48 aki-MacBookPro systemd-udevd[12524]: created db file '/run/udev/data/+usb:2-1.2:1.0' for '/devices/pci0000:00/0000:00
:1d.7/usb2/2-1/2-1.2/2-1.2:1.0'
1月 14 14:24:48 aki-MacBookPro systemd-udevd[12524]: Successfully forked off '(spawn)' as PID 14485.
1月 14 14:24:48 aki-MacBookPro laptop-mode[14542]: enabled, active
1月 14 14:24:48 aki-MacBookPro systemd[1]: Got message type=method_call sender=:1.107 destination=org.freedesktop.systemd1 path=/org/
freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=LookupDynamicUserByUID cookie=2 reply_cookie=0 signature=u err
or-name=n/a error-message=n/a
1月 14 14:24:48 aki-MacBookPro systemd[1]: Sent message type=method_return sender=n/a destination=:1.107 path=n/a interface=n/a memb$
r=n/a cookie=748 reply_cookie=2 signature=s error-name=n/a error-message=n/a
1月 14 14:24:48 aki-MacBookPro systemd[1]: Got message type=method_call sender=:1.108 destination=org.freedesktop.systemd1 path=/org/
freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=LookupDynamicUserByUID cookie=2 reply_cookie=0 signature=u err
or-name=n/a error-message=n/a
1月 14 14:24:48 aki-MacBookPro systemd[1]: Sent message type=method_return sender=n/a destination=:1.108 path=n/a interface=n/a membe
r=n/a cookie=749 reply_cookie=2 signature=s error-name=n/a error-message=n/a
1月 14 14:24:48 aki-MacBookPro kernel: EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro,commit=600
1月 14 14:24:49 aki-MacBookPro avahi-daemon[9455]: Interface enp2s0f0.IPv6 no longer relevant for mDNS.
1月 14 14:24:49 aki-MacBookPro avahi-daemon[9455]: Leaving mDNS multicast group on interface enp2s0f0.IPv6 with address fe80::1e26:3e
a6:1683:8a18.
1月 14 14:24:49 aki-MacBookPro NetworkManager[9440]: <info>  [1610605489.0070] manager: NetworkManager state is now CONNECTED_SITE
1月 14 14:24:49 aki-MacBookPro avahi-daemon[9455]: Interface enp2s0f0.IPv4 no longer relevant for mDNS.
1月 14 14:24:49 aki-MacBookPro avahi-daemon[9455]: Leaving mDNS multicast group on interface enp2s0f0.IPv4 with address 10.2.11.183.
1月 14 14:24:49 aki-MacBookPro systemd-resolved[9233]: Got DNS stub UDP query packet for id 28727
1月 14 14:24:49 aki-MacBookPro avahi-daemon[9455]: Withdrawing address record for fe80::1e26:3ea6:1683:8a18 on enp2s0f0.
1月 14 14:24:49 aki-MacBookPro systemd-resolved[9233]: Looking up RR for daisy.ubuntu.com IN A.
1月 14 14:24:49 aki-MacBookPro avahi-daemon[9455]: Withdrawing address record for 10.2.11.183 on enp2s0f0.
1月 14 14:24:49 aki-MacBookPro whoopsie[11670]: [14:24:49] Cannot reach: https://daisy.ubuntu.com
1月 14 14:24:49 aki-MacBookPro whoopsie[11670]: [14:24:49] offline
1月 14 14:24:49 aki-MacBookPro systemd-resolved[9233]: Sending response packet with id 28727 on interface 1/AF_INET.
1月 14 14:24:49 aki-MacBookPro systemd-resolved[9233]: Processing query...
1月 14 14:24:49 aki-MacBookPro systemd-resolved[9233]: Got DNS stub UDP query packet for id 28727
1月 14 14:24:49 aki-MacBookPro dbus-daemon[9412]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit=
'dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.15' (uid=0 pid=9440 comm="/usr/sbin/NetworkManager --no-daemon " label=
"unconfined")
1月 14 14:24:49 aki-MacBookPro systemd-resolved[9233]: Looking up RR for daisy.ubuntu.com IN A.
1月 14 14:24:49 aki-MacBookPro dhclient[11634]: receive_packet failed on enp2s0f0: Network is down
1月 14 14:24:49 aki-MacBookPro systemd-resolved[9233]: Sending response packet with id 28727 on interface 1/AF_INET.
1月 14 14:24:49 aki-MacBookPro systemd-resolved[9233]: Processing query...
1月 14 14:24:49 aki-MacBookPro systemd[1]: Got message type=signal sender=org.freedesktop.DBus destination=org.freedesktop.systemd1 p
ath=/org/freedesktop/DBus interface=org.freedesktop.systemd1.Activator member=ActivationRequest cookie=71 reply_cookie=0 signature=s
error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freede
sktop/DBus interface=org.freedesktop.DBus member=AddMatch cookie=750 reply_cookie=0 signature=s error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: Trying to enqueue job NetworkManager-dispatcher.service
/start/replace
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: Installed new job NetworkManager-dispatcher.service/st$
rt as 1661
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: Enqueued job NetworkManager-dispatcher.service/start as
 1661
1月 14 14:24:49 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=751 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=JobNew cookie=752 reply_cookie=0 signature=uos error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.1 path=n/a inter
face=n/a member=n/a cookie=72 reply_cookie=750 signature=n/a error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: Match type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='
org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.nm_dispatcher' successfully installed.
1月 14 14:24:49 aki-MacBookPro systemd[1]: Detaching egress BPF program from cgroup failed: No such file or directory
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: Passing 0 fds to service
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: About to execute: /usr/lib/NetworkManager/nm-dispatcher
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: Forked /usr/lib/NetworkManager/nm-dispatcher as 15403
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: Changed dead -> start
1月 14 14:24:49 aki-MacBookPro systemd[1]: Starting Network Manager Script Dispatcher Service...
1月 14 14:24:49 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1/unit/Ne
tworkManager_2ddispatcher_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=753 reply_cookie=0 sign
ature=sa{sv}as error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1/unit/Ne
tworkManager_2ddispatcher_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=754 reply_cookie=0 sign
ature=sa{sv}as error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1/job/166
1 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=755 reply_cookie=0 signature=sa{sv}as error-name=n/a erro
r-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: systemd-journald.service: Got notification message from PID 336 (FDSTORE=1)
1月 14 14:24:49 aki-MacBookPro systemd[15403]: NetworkManager-dispatcher.service: Executing: /usr/lib/NetworkManager/nm-dispatcher
1月 14 14:24:49 aki-MacBookPro systemd[1]: systemd-journald.service: Added fd 90 (n/a) to fd store.
1月 14 14:24:49 aki-MacBookPro systemd-logind[9398]: Got message type=signal sender=:1.1 destination=n/a path=/org/freedesktop/system
d1/unit/NetworkManager_2ddispatcher_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=753 reply_coo
kie=0 signature=sa{sv}as error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd-logind[9398]: Got message type=signal sender=:1.1 destination=n/a path=/org/freedesktop/system
d1/unit/NetworkManager_2ddispatcher_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=754 reply_coo
kie=0 signature=sa{sv}as error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd-logind[9398]: Got message type=signal sender=:1.1 destination=n/a path=/org/freedesktop/system
d1/job/1661 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=755 reply_cookie=0 signature=sa{sv}as error-na
e=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_call sender=:1.32 destination=org.freedesktop.systemd1 path=/o
rg/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=StopUnit cookie=34 reply_cookie=0 signature=ss error-name=n
/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: gnome-user-share-webdav.service: Failed to load configuration: No such file or directo
ry
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/fr
eedesktop/DBus interface=org.freedesktop.DBus member=GetConnectionUnixUser cookie=256 reply_cookie=0 signature=s error-name=n/a error
-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.0 path=n/a i
nterface=n/a member=n/a cookie=73 reply_cookie=256 signature=u error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=error sender=n/a destination=:1.32 path=n/a interface=n/a member=n/a
 cookie=257 reply_cookie=34 signature=s error-name=org.freedesktop.systemd1.NoSuchUnit error-message=Unit gnome-user-share-webdav.ser
vice not loaded.
1月 14 14:24:49 aki-MacBookPro dbus-daemon[9412]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Failed to process message type=method_call sender=:1.32 destination=org.freedesktop.sy
stemd1 path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=StopUnit cookie=34 reply_cookie=0 signature=s
s error-name=n/a error-message=n/a: Unit gnome-user-share-webdav.service not loaded.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: gnome-user-share-webdav.service: Collecting.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_call sender=:1.32 destination=org.freedesktop.systemd1 path=/o
rg/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=StopUnit cookie=35 reply_cookie=0 signature=ss error-name=n
/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: rygel.service: Failed to load configuration: No such file or directory
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/fr
eedesktop/DBus interface=org.freedesktop.DBus member=GetConnectionUnixUser cookie=258 reply_cookie=0 signature=s error-name=n/a error
-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.0 path=n/a i
nterface=n/a member=n/a cookie=74 reply_cookie=258 signature=u error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=error sender=n/a destination=:1.32 path=n/a interface=n/a member=n/a
 cookie=259 reply_cookie=35 signature=s error-name=org.freedesktop.systemd1.NoSuchUnit error-message=Unit rygel.service not loaded.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Failed to process message type=method_call sender=:1.32 destination=org.freedesktop.sy
stemd1 path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=StopUnit cookie=35 reply_cookie=0 signature=s
s error-name=n/a error-message=n/a: Unit rygel.service not loaded.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: rygel.service: Collecting.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_call sender=:1.32 destination=org.freedesktop.systemd1 path=/o
rg/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=StopUnit cookie=36 reply_cookie=0 signature=ss error-name=n
/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: gnome-remote-desktop.service: Failed to load configuration: No such file or directory
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/fr
eedesktop/DBus interface=org.freedesktop.DBus member=GetConnectionUnixUser cookie=260 reply_cookie=0 signature=s error-name=n/a error
-message=n/a
1月 14 14:24:49 aki-MacBookPro nm-dispatcher[15403]: req:1 'connectivity-change': new request (1 scripts)
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.0 path=n/a i
nterface=n/a member=n/a cookie=75 reply_cookie=260 signature=u error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro nm-dispatcher[15403]: req:1 'connectivity-change': start running ordered scripts...
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=error sender=n/a destination=:1.32 path=n/a interface=n/a member=n/a
 cookie=261 reply_cookie=36 signature=s error-name=org.freedesktop.systemd1.NoSuchUnit error-message=Unit gnome-remote-desktop.servic
e not loaded.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Failed to process message type=method_call sender=:1.32 destination=org.freedesktop.sy
stemd1 path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=StopUnit cookie=36 reply_cookie=0 signature=s
s error-name=n/a error-message=n/a: Unit gnome-remote-desktop.service not loaded.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: gnome-remote-desktop.service: Collecting.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_call sender=:1.32 destination=org.freedesktop.systemd1 path=/o
rg/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=StopUnit cookie=37 reply_cookie=0 signature=ss error-name=n
/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro gsd-sharing[12241]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit 
gnome-user-share-webdav.service not loaded.
1月 14 14:24:49 aki-MacBookPro gsd-sharing[12241]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit 
rygel.service not loaded.
1月 14 14:24:49 aki-MacBookPro systemd[1]: Got message type=signal sender=org.freedesktop.DBus destination=n/a path=/org/freedesktop/
DBus interface=org.freedesktop.DBus member=NameOwnerChanged cookie=73 reply_cookie=0 signature=sss error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: D-Bus name org.freedesktop.nm_dispatcher now registered
 by :1.110
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: Changed start -> running
1月 14 14:24:49 aki-MacBookPro systemd[1]: NetworkManager-dispatcher.service: Job NetworkManager-dispatcher.service/start finished, r
esult=done
1月 14 14:24:49 aki-MacBookPro systemd[1]: Started Network Manager Script Dispatcher Service.
1月 14 14:24:49 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=JobRemoved cookie=756 reply_cookie=0 signature=uoss error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/fr
eedesktop/DBus interface=org.freedesktop.DBus member=AddMatch cookie=262 reply_cookie=0 signature=s error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1/unit/Ne
tworkManager_2ddispatcher_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=757 reply_cookie=0 sign
ature=sa{sv}as error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: home.mount: Failed to load configuration: No such file or directory
1月 14 14:24:49 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1/unit/Ne
tworkManager_2ddispatcher_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=758 reply_cookie=0 sign
ature=sa{sv}as error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: home-aki.mount: Failed to load configuration: No such file or directory
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/fr
eedesktop/DBus interface=org.freedesktop.DBus member=GetConnectionUnixUser cookie=263 reply_cookie=0 signature=s error-name=n/a error
-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd-logind[9398]: Got message type=signal sender=:1.1 destination=n/a path=/org/freedesktop/system
d1 interface=org.freedesktop.systemd1.Manager member=JobRemoved cookie=756 reply_cookie=0 signature=uoss error-name=n/a error-message
=n/a
1月 14 14:24:49 aki-MacBookPro systemd-logind[9398]: Got message type=signal sender=:1.1 destination=n/a path=/org/freedesktop/system
d1/unit/NetworkManager_2ddispatcher_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=757 reply_coo
kie=0 signature=sa{sv}as error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd-logind[9398]: Got message type=signal sender=:1.1 destination=n/a path=/org/freedesktop/system
d1/unit/NetworkManager_2ddispatcher_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=758 reply_coo
kie=0 signature=sa{sv}as error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro gsd-sharing[12241]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit 
gnome-remote-desktop.service not loaded.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.0 path=n/a i
nterface=n/a member=n/a cookie=77 reply_cookie=263 signature=u error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: vino-server.service: Trying to enqueue job vino-server.service/stop/replace
1月 14 14:24:49 aki-MacBookPro systemd[11946]: vino-server.service: Installed new job vino-server.service/stop as 200
1月 14 14:24:49 aki-MacBookPro systemd[11946]: vino-server.service: Enqueued job vino-server.service/stop as 200
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/fr
eedesktop/DBus interface=org.freedesktop.DBus member=AddMatch cookie=264 reply_cookie=0 signature=s error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/fr
eedesktop/DBus interface=org.freedesktop.DBus member=GetNameOwner cookie=265 reply_cookie=0 signature=s error-name=n/a error-message=
n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.0 path=n/a i
nterface=n/a member=n/a cookie=79 reply_cookie=265 signature=s error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_return sender=n/a destination=:1.32 path=n/a interface=n/a me
mber=n/a cookie=266 reply_cookie=37 signature=o error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: home.mount: Collecting.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: home-aki.mount: Collecting.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 int
erface=org.freedesktop.systemd1.Manager member=JobNew cookie=267 reply_cookie=0 signature=uos error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.0 path=n/a i
nterface=n/a member=n/a cookie=76 reply_cookie=262 signature=n/a error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Match type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interfa
ce='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.gnome.Vino' successfully installed.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.0 path=n/a i
nterface=n/a member=n/a cookie=78 reply_cookie=264 signature=n/a error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Match type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interfa
ce='org.freedesktop.DBus',member='NameOwnerChanged',arg0=':1.32' successfully installed.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: vino-server.service: Job vino-server.service/stop finished, result=done
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 int
erface=org.freedesktop.systemd1.Manager member=JobRemoved cookie=268 reply_cookie=0 signature=uoss error-name=n/a error-message=n/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/fr
eedesktop/DBus interface=org.freedesktop.DBus member=RemoveMatch cookie=269 reply_cookie=0 signature=s error-name=n/a error-message=n
/a
1月 14 14:24:49 aki-MacBookPro systemd[11946]: vino-server.service: Collecting.
1月 14 14:24:49 aki-MacBookPro systemd[11946]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/fr
eedesktop/DBus interface=org.freedesktop.DBus member=RemoveMatch cookie=270 reply_cookie=0 signature=s error-name=n/a error-message=n
/a
1月 14 14:24:50 aki-MacBookPro root[16298]: Device /sys/bus/usb/devices/1-0:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16317]: Device /sys/bus/usb/devices/1-1 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16334]: Device /sys/bus/usb/devices/1-1.1 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16362]: Device /sys/bus/usb/devices/1-1.1:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16369]: Device /sys/bus/usb/devices/1-1.2 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16373]: Device /sys/bus/usb/devices/1-1.2:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16377]: Device /sys/bus/usb/devices/1-1.2:1.1 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16384]: Device /sys/bus/usb/devices/1-1:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16407]: Device /sys/bus/usb/devices/2-0:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16416]: Device /sys/bus/usb/devices/2-1 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16423]: Device /sys/bus/usb/devices/2-1.1 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16427]: Device /sys/bus/usb/devices/2-1.1:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16434]: Device /sys/bus/usb/devices/2-1.2 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16438]: Device /sys/bus/usb/devices/2-1.2:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16442]: Device /sys/bus/usb/devices/2-1:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16446]: Device /sys/bus/usb/devices/3-0:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro root[16450]: Device /sys/bus/usb/devices/4-0:1.0 is blacklisted, skipping auto suspend.
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: passed 395 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 194 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: passed 195 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 197 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: passed 198 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 320 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: created db file '/run/udev/data/+usb:2-1.2:1.0' for '/devices/pci0000:00/0000:00
:1d.7/usb2/2-1/2-1.2/2-1.2:1.0'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: passed 396 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 294 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro upowerd[11587]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.2/2-1.2:1
.0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: created db file '/run/udev/data/c189:132' for '/devices/pci0000:00/0000:00:1d.7/
usb2/2-1/2-1.2'
1月 14 14:24:50 aki-MacBookPro upowerd[11587]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.2
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: passed 682 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 209 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: passed 209 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 238 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: path '[module/sg](null)' is '/sys/module/sg'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: passed 248 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 224 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 220 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[13610]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[13610]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16474]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16474]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[13610]: passed 220 byte device to netlink monitor 0x555af4fa4cd0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16474]: created empty file '/run/udev/data/c21:2' for '/devices/pci0000:00/0000:00:1d.7/
usb2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg2'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16474]: passed 256 byte device to netlink monitor 0x555af4f9f7c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: created empty file '/run/udev/data/c244:2' for '/devices/pci0000:00/0000:00:1d.7
/usb2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: passed 251 byte device to netlink monitor 0x555af4fb3840
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: Successfully forked off '(spawn)' as PID 16477.
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: passed 224 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.7/usb
2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: Successfully forked off '(spawn)' as PID 16481.
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: Successfully forked off '(spawn)' as PID 16492.
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.7/usb
2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: passed 943 byte device to netlink monitor 0x555af4f8db60
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0.device:
 Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0.device: Changed dead
-> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-sdb.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:
0-6:0:0:0-block-sdb.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0.device:
 Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0.device: Changed dead
-> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-sdb.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:
0-6:0:0:0-block-sdb.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 274 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 274 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 274 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0.device: Cha
nged dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0.device: Changed dead -> p
lugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-sdb.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:0-6:
0:0:0-block-sdb.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=759 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=760 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=761 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=762 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: created db file '/run/udev/data/b8:18' for '/devices/pci0000:00/0000:00:1d.7/usb
2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb2'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: Successfully forked off '(spawn)' as PID 16499.
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: created db file '/run/udev/data/b8:19' for '/devices/pci0000:00/0000:00:1d.7/usb
2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb3'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: Successfully forked off '(spawn)' as PID 16500.
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: created db file '/run/udev/data/b8:17' for '/devices/pci0000:00/0000:00:1d.7/usb
2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: Successfully forked off '(spawn)' as PID 16501.
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: created db file '/run/udev/data/b8:18' for '/devices/pci0000:00/0000:00:1d.7/usb
2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb2'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16476]: passed 1487 byte device to netlink monitor 0x555af4f8db60
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2duuid-27699b9a\x2dddc4\x2d4d16\x2d8004\x2d58906a581fe0.device: Changed d
ead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0\x2dpar$
2.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2dpartuuid-bb56c8b6\x2de382\x2d47d2\x2d8de4\x2d351a6e93317c.device: Chang
ed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0\x2dpart2.device: Chan
ged dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-sdb2.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:
0-6:0:0:0-block-sdb-sdb2.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2duuid-27699b9a\x2dddc4\x2d4d16\x2d8004\x2d58906a581fe0.device: Changed d
ead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0\x2dpart
2.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2dpartuuid-bb56c8b6\x2de382\x2d47d2\x2d8de4\x2d351a6e93317c.device: Chang
ed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0\x2dpart2.device: Chan
ged dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-sdb2.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:
0-6:0:0:0-block-sdb-sdb2.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2duuid-27699b9a\x2dddc4\x2d4d16\x2d8004\x2d58906a581fe0.device: Changed dead
-> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0\x2dpart2.de
vice: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2dpartuuid-bb56c8b6\x2de382\x2d47d2\x2d8de4\x2d351a6e93317c.device: Changed d
ead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0\x2dpart2.device: Changed
dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-sdb2.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:0-6:
0:0:0-block-sdb-sdb2.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=763 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=764 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=765 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interf$
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=767 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=768 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: created db file '/run/udev/data/b8:19' for '/devices/pci0000:00/0000:00:1d.7/usb
2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb3'
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2duuid-de518f29\x2db69d\x2d4f9d\x2da902\x2d9bbf5e62967e.device: Changed d
ead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0\x2dpart
3.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2dpartuuid-afce03b7\x2de314\x2d458f\x2d94c4\x2dc712485c3ae4.device: Chang
ed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0\x2dpart3.device: Chan
ged dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-sdb3.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:
0-6:0:0:0-block-sdb-sdb3.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd-udevd[12524]: passed 1480 byte device to netlink monitor 0x555af4fa74c0
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: created db file '/run/udev/data/b8:17' for '/devices/pci0000:00/0000:00:1d.7/usb
2/2-1/2-1.2/2-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: passed 1419 byte device to netlink monitor 0x555af4fb3840
1月 14 14:24:50 aki-MacBookPro systemd-udevd[362]: passed 249 byte device to netlink monitor 0x555af4fdcf80
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: value '[dmi/id]sys_vendor' is 'Apple Inc.'
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2duuid-0138\x2d1457.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0\x2dpart
1.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2dpartuuid-ef5376dc\x2d023f\x2d44fe\x2d8739\x2d9ba3baed2a7d.device: Chang
ed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0\x2dpart1.device: Chan
ged dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: dev-sdb1.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11946]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:
0-6:0:0:0-block-sdb-sdb1.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: path '[module/sg](null)' is '/sys/module/sg'
1月 14 14:24:50 aki-MacBookPro systemd-udevd[16475]: passed 249 byte device to netlink monitor 0x555af4fb3840
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2duuid-de518f29\x2db69d\x2d4f9d\x2da902\x2d9bbf5e62967e.device: Changed dead
-> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0\x2dpart3.de
vice: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2dpartuuid-afce03b7\x2de314\x2d458f\x2d94c4\x2dc712485c3ae4.device: Changed d
ead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0\x2dpart3.device: Changed
dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-sdb3.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:0-6:
0:0:0-block-sdb-sdb3.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=769 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=770 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=771 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=772 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=773 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[1]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/systemd1 interfa
ce=org.freedesktop.systemd1.Manager member=UnitNew cookie=774 reply_cookie=0 signature=so error-name=n/a error-message=n/a
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2duuid-de518f29\x2db69d\x2d4f9d\x2da902\x2d9bbf5e62967e.device: Changed d
ead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0\x2dpart
3.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2dpartuuid-afce03b7\x2de314\x2d458f\x2d94c4\x2dc712485c3ae4.device: Chang
ed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-disk-by\x2did-usb\x2dMass_Storage_Device_116AC2101219\x2d0:0\x2dpart3.device: Chan
ged dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: dev-sdb3.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[11530]: sys-devices-pci0000:00-0000:00:1d.7-usb2-2\x2d1-2\x2d1.2-2\x2d1.2:1.0-host6-target6:0:
0-6:0:0:0-block-sdb-sdb3.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2duuid-0138\x2d1457.device: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:00:1d.7\x2dusb\x2d0:1.2:1.0\x2dscsi\x2d0:0:0:0\x2dpart1.de
vice: Changed dead -> plugged
1月 14 14:24:50 aki-MacBookPro systemd[1]: dev-disk-by\x2dpartuuid-ef5376dc\x2d023f\x2d44fe\x2d8739\x2d9ba3baed2a7d.device: Changed $

Here is my network hardware, I'm sorry that I don't know how to check if my ethernet LOM or in the USB bus, I found that my macbook pro wired net is connected by RJ-45.

02:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM57765 Gigabit Ethernet PCIe (rev 10)
03:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4331 802.11a/b/g/n (rev 02)
akikaede6 commented 3 years ago

Does this conf ACTION=="add", SUBSYSTEM=="usb", RUN+="lmt-udev force" in /lib/udev/rules.d/99-laptop-mode.rules lack of consideration?USB event will force to load laptop-mode conf, it will set all the config that set on, not only network conf, I fond that my DPMS also set to 300 when I insert USB device, maybe it will cause other problems.

rickysarraf commented 3 years ago

Thank you for reply! My test computer is macbook pro 2011 with ubuntu 18.04, one hour before I test it in my friend's thinkpad T490 whit ubuntu 20.04, USB event doesn't affect network, maybe ubuntu have fixed it, I'll try ubuntu 20.04 in my macbook pro later.

Thanks. Every machine is different. And depending on what bus the device is, and how good/crappy the device driver is, there will be some side-effects. As a data point, you've already known now that this issue is not see on another machine.

rickysarraf commented 3 years ago

Does this conf ACTION=="add", SUBSYSTEM=="usb", RUN+="lmt-udev force" in /lib/udev/rules.d/99-laptop-mode.rules lack of consideration?USB event will force to load laptop-mode conf, it will set all the config that set on, not only network conf, I fond that my DPMS also set to 300 when I insert USB device, maybe it will cause other problems.

It shouldn't cause any problems as such. There are only 2 states that LMT cares about, ON_BATT and ON_AC. When ON_BATT, it does a bunch of power saving tweaks. The additional rule is just to re-enforce the same, when you plug-in any new usb device.

rickysarraf commented 3 years ago

The behavior of losing the network, has probably to do with your hardware. As in, when you switch to power saving mode, the network chip resets. I recollect having such reports in the past, which is why it led me to disable ethernet power saving, by default.

Yes. I can confirm that in https://github.com/rickysarraf/laptop-mode-tools/blob/bc4bf873fab2966f115836d6c410f994b9e398cd/etc/laptop-mode/conf.d/ethernet.conf#L26

Can you set CONTROL_ETHERNET to 0 in /etc/laptop-mode/conf.d/ethernet.conf and then reboot and do the same usb plug/unplug exercise ? I think that'll solve your problem.

akikaede6 commented 3 years ago

The behavior of losing the network, has probably to do with your hardware. As in, when you switch to power saving mode, the network chip resets. I recollect having such reports in the past, which is why it led me to disable ethernet power saving, by default.

Yes. I can confirm that in

https://github.com/rickysarraf/laptop-mode-tools/blob/bc4bf873fab2966f115836d6c410f994b9e398cd/etc/laptop-mode/conf.d/ethernet.conf#L26

Can you set CONTROL_ETHERNET to 0 in /etc/laptop-mode/conf.d/ethernet.conf and then reboot and do the same usb plug/unplug exercise ? I think that'll solve your problem.

That works! But I'm wondering if I want my laptop get my eth network down when in a emergy power, and don't want USB event affect it, should I set this conf to auto? In what situation auto mode will start to work?

rickysarraf commented 3 years ago

That works! But I'm wondering if I want my laptop get my eth network down when in a emergy power, and don't want USB event affect it, should I set this conf to auto? In what situation auto mode will start to work?

No. auto is synonymous to 1. See this section about auto modules https://github.com/rickysarraf/laptop-mode-tools/blob/bc4bf873fab2966f115836d6c410f994b9e398cd/etc/laptop-mode/laptop-mode.conf#L135

In your case, the hardware is not able to switch to power saving mode without a device reset, which results in losing the network and then reconnecting momentarily. Unfortunately, there's not much laptop-mode-tools can do here. That's an oddity of the device driver for your network card.

rickysarraf commented 3 years ago

@akikaede6 I'm closing this bug report as there's not much laptop-mode-tools can do other than blacklist the device/module. If you have any new findings, please do feel free to re-open this bug.