Search found 7 matches

by jjh
Wed Aug 14, 2019 3:35 am
Forum: Hardware Support
Topic: How to detect when LAN cable is physically connected?
Replies: 11
Views: 309

Re: How to detect when LAN cable is physically connected?

Weird, it works perfectly fine on my system. Plugged in: $ cat /sys/class/net/enp1s0/carrier 1 Plug pulled: $ cat /sys/class/net/enp1s0/carrier 0 Are you using a non-standard kernel that does not expose that for some reason? Anyway, here's a log based approach, you'll have to adapt that a little: h...
by jjh
Tue Aug 13, 2019 4:54 am
Forum: Hardware Support
Topic: How to detect when LAN cable is physically connected?
Replies: 11
Views: 309

Re: How to detect when LAN cable is physically connected?

1. I don't think you can do that with udev directly, <-Is your comment means (i can't do with udev. but you or someone can do) ? I checked your link but it dosen't work. so i find file system check loop. it is under link. https://knight76.tistory.com/entry/inotify-%ED%95%A8%EC%88%98-%EC%98%88%EC%A0...
by jjh
Tue Aug 13, 2019 4:50 am
Forum: Hardware Support
Topic: How to detect when LAN cable is physically connected?
Replies: 11
Views: 309

Re: How to detect when LAN cable is physically connected?

Why don't you want Network Manager? It's really useful for managing your network connections. You can do the management activities in a terminal, if you want, but a GUI brings convenience into play. Your choice, of course. Because i want to control on our python program about wifi and ethernet. So ...
by jjh
Mon Aug 12, 2019 9:24 pm
Forum: Hardware Support
Topic: How to detect when LAN cable is physically connected?
Replies: 11
Views: 309

Re: How to detect when LAN cable is physically connected?

1. I don't think you can do that with udev directly, so you'll have to handle it in your script, e.g. https://stackoverflow.com/questions/24548088/ubuntu-wait-for-network-link-up-and-execute-a-bash-command#24562724 2. Depends, what's your goal? If you just want to wait for the network to come up th...
by jjh
Mon Aug 12, 2019 9:16 pm
Forum: Hardware Support
Topic: How to detect when LAN cable is physically connected?
Replies: 11
Views: 309

Re: How to detect when LAN cable is physically connected?

Pierre wrote:
Mon Aug 12, 2019 4:21 am
when the Ethernet Cable is connected, & there is an valid Ethernet Connection,
- then there should be an Notification, that the Ethernet is Now Connected.
this is part of the Network Manager, already.
but i want to do without Network Manager
Is there a solution ?
by jjh
Mon Aug 12, 2019 1:25 am
Forum: Hardware Support
Topic: How to detect when LAN cable is physically connected?
Replies: 11
Views: 309

How to detect when LAN cable is physically connected?

I use mint os 19.1. I can do when i put in or out usb, some command run. into /etc/udev/rules.d. and add new rules like a 10-usb.rules 10-usb.rules (ACTION=="add|remove", RUN+="/bin/sh -c 'echo HELLO ! > /home/udev_test_log.txt'") but i want to run command. when i put in lan cable(Ethernet) I look f...
by jjh
Thu Jul 11, 2019 1:36 am
Forum: Wireless
Topic: I wonder how to turn off the option.
Replies: 1
Views: 168

I wonder how to turn off the option.

I use mint os 19.1 GUI mode I try to connect wifi on terminal by nmcli but i have a problem, when i try under command. #nmcli dev wifi con "Wifi-name" password "Wrong WIFI-password" Appears pop up display about "Wi-fi Network Authentication Required" . I want when i try wrong password, i just want t...

Go to advanced search