[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-list
Subject:    Re: Warm boot after Windows 10 boot - I'm not getting a dhcpd address from router?
From:       "Michael D. Setzer II via users" <users () lists ! fedoraproject ! org>
Date:       2021-09-21 10:13:58
Message-ID: 6149B066.22625.134A9C2B () mikes ! guam ! net
[Download RAW message or body]

[Attachment #2 (Multipart/Alternative)]


On 21 Sep 2021 at 18:47, Tim via users wrote:

Subject:        	Re: Warm boot after Windows 10 boot - I'm 
not getting a dhcpd
	address from router?
To:             	users@lists.fedoraproject.org
Date sent:      	Tue, 21 Sep 2021 18:47:44 +0930
Send reply to:  	Community support for Fedora 
users <users@lists.fedoraproject.org>
From:           	Tim via users 
<users@lists.fedoraproject.org>
Copies to:      	Tim <ignored_mailbox@yahoo.com.au>

> On Tue, 2021-09-21 at 02:04 +1000, Michael D. Setzer II via users
> wrote:
> > Sometimes I miss hitting the F12 key to select the 
> > flash for UEFI or standard USB boot from flash. Thus the 
> > machine boots to windows.
> 
> You might have a hardware solution for that.  On my UEFI, it can
> provide the boot menu, and it can configure the timeout.  No fighting
> with GRUB or Windows configuration.  (Though in my case, the choices
> are really only boot Linux or an install DVD-ROM).
> 
> > Problem, if I do a restart after the windows boots and go to the my
> > projects linux, it loads fine, but it will not get IP from dhcpd
> > server of my wifi router. Have to do a full power off on system. Then
> > it will boot ok.
> 
> I have motherboards with wonky ethernet, too:
> 
> If the cable is unplugged, or an ethernet switch gets de-powered, the
> network must be stopped, then restarted, manually (I use the network
> icon in the MATE taskbar to disconnect, wait a moment, then reconnect
> to a network).  It just repeatedly hiccups if you don't do that.  On
> one PC the network interface is manually preconfigured with a static
> IP, on the other it uses DHCP.

I have 5 machines that are linux only, and just the one 
that is Windows. Been using it to test setup of my G4L 
project for regular usb boot using grub4dos, and UEFI 
boot using grub2. Both work fine, but the issue is 
windows puts the nic in some state when it does a warm 
restart that messages the dhcpc setup from the linux 
client. Added the following line to the script that does the 
dhcpc setup.

echo 1 > $(find /sys | grep $(lspci | grep -i ethernet | cut -f1 -d\ ) |grep reset)

finds the pci device for the ethernet, and then sets the 
reset to 1

That seems to handle the process of fixing what windows 
breaks.. Will have to look at modifying it to handle 
systems that might have more than 1 ethernet device?

Thanks for the reply.



>  
> -- 
>  
> uname -rsvp
> Linux 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
>  
> Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
> I will only get to see the messages that are posted to the mailing list.
>  
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-leave@lists.fedoraproject.org
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Attachment #5 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
</head>
<body>
<div align="left"><font face="DejaVu Serif" size="4"><span style=" font-size:14pt">On \
21 Sep 2021 at 18:47, Tim via users wrote:</span></font></div> <div \
align="left"><font face="DejaVu Serif" size="4"><span style=" font-size:14pt"><br /> \
</span></font></div> <div align="left"><font face="DejaVu Serif" size="4"><span \
style=" font-size:14pt">Subject:&#160;&#160;&#160;&#160;&#160;&#160;&#160; \
&#160;&#160;Re: Warm boot after Windows 10 boot - I'm  not getting a \
dhcpd</span></font></div> <div align="left"><font face="DejaVu Serif" size="4"><span \
style=" font-size:14pt">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;address \
from router?</span></font></div> <div align="left"><font face="DejaVu Serif" \
size="4"><span style=" \
font-size:14pt">To:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \
&#160;&#160;&#160;&#160;&#160;users@lists.fedoraproject.org</span></font></div> <div \
align="left"><font face="DejaVu Serif" size="4"><span style=" font-size:14pt">Date \
sent:&#160;&#160;&#160;&#160;&#160; Tue, 21 Sep 2021 18:47:44 \
+0930</span></font></div> <div align="left"><font face="DejaVu Serif" size="4"><span \
style=" font-size:14pt">Send reply to:&#160; \
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Community support for Fedora  \
users &lt;users@lists.fedoraproject.org&gt;</span></font></div> <div \
align="left"><font face="DejaVu Serif" size="4"><span style=" \
font-size:14pt">From:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \
&#160;&#160;Tim via users  &lt;users@lists.fedoraproject.org&gt;</span></font></div>
<div align="left"><font face="DejaVu Serif" size="4"><span style=" \
font-size:14pt">Copies to:&#160;&#160;&#160;&#160;&#160; &#160;Tim \
&lt;ignored_mailbox@yahoo.com.au&gt;</span></font></div> <div align="left"><font \
face="DejaVu Serif" size="4"><span style=" font-size:14pt"><br /> \
</span></font></div> <div align="left"><font face="DejaVu Serif" color="#7f0000" \
size="4"><span style=" font-size:14pt">&gt; On Tue, 2021-09-21 at 02:04 +1000, \
Michael D. Setzer II via users</span></font></div> <div align="left"><font \
face="DejaVu Serif" color="#7f0000" size="4"><span style=" font-size:14pt">&gt; \
wrote:</span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt; &gt; Sometimes I miss \
hitting the F12 key to select the </span></font></div> <div align="left"><font \
face="DejaVu Serif" color="#7f0000" size="4"><span style=" font-size:14pt">&gt; &gt; \
flash for UEFI or standard USB boot from flash. Thus the </span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; &gt; machine boots to windows.</span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; </span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt; You might have a hardware \
solution for that.&#160; On my UEFI, it can</span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; provide the boot menu, and it can configure the timeout.&#160; \
No fighting</span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt; with GRUB or Windows \
configuration.&#160; (Though in my case, the choices</span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; are really only boot Linux or an install \
DVD-ROM).</span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt; </span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; &gt; Problem, if I do a restart after the windows boots and go \
to the my</span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt; &gt; projects linux, it \
loads fine, but it will not get IP from dhcpd</span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; &gt; server of my wifi router. Have to do a full power off on \
system. Then</span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt; &gt; it will boot \
ok.</span></font></div> <div align="left"><font face="DejaVu Serif" color="#7f0000" \
size="4"><span style=" font-size:14pt">&gt; </span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; I have motherboards with wonky ethernet, \
too:</span></font></div> <div align="left"><font face="DejaVu Serif" color="#7f0000" \
size="4"><span style=" font-size:14pt">&gt; </span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; If the cable is unplugged, or an ethernet switch gets \
de-powered, the</span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt; network must be stopped, \
then restarted, manually (I use the network</span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; icon in the MATE taskbar to disconnect, wait a moment, then \
reconnect</span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt; to a network).&#160; It \
just repeatedly hiccups if you don't do that.&#160; On</span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; one PC the network interface is manually preconfigured with a \
static</span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt; IP, on the other it uses \
DHCP.</span></font></div> <div align="left"><font face="DejaVu Serif" color="#7f0000" \
size="4"><span style=" font-size:14pt"><br /> </span></font></div>
<div align="left"><font face="DejaVu Serif" size="4"><span style=" font-size:14pt">I \
have 5 machines that are linux only, and just the one  that is Windows. Been using it \
to test setup of my G4L  project for regular usb boot using grub4dos, and UEFI 
boot using grub2. Both work fine, but the issue is 
windows puts the nic in some state when it does a warm 
restart that messages the dhcpc setup from the linux 
client. Added the following line to the script that does the 
dhcpc setup.</span></font></div>
<div align="left"><font face="DejaVu Serif" size="4"><span style=" \
font-size:14pt"><br /> </span></font></div>
<div align="left"><font face="DejaVu Serif" size="2"><span style=" \
font-size:10pt">echo 1 &gt; $(find /sys | grep $(lspci | grep -i ethernet | cut -f1 \
-d\ ) |grep reset)</span></font></div> <div align="left"><font face="DejaVu Serif" \
size="2"><span style=" font-size:10pt"><br /> </span></font></div>
<div align="left"><font face="DejaVu Serif" size="4"><span style=" \
font-size:14pt">finds the pci device for the ethernet, and then sets the  reset to \
1</span></font></div> <div align="left"><font face="DejaVu Serif" size="4"><span \
style=" font-size:14pt"><br /> </span></font></div>
<div align="left"><font face="DejaVu Serif" size="4"><span style=" \
font-size:14pt">That seems to handle the process of fixing what windows  breaks.. \
Will have to look at modifying it to handle  systems that might have more than 1 \
ethernet device?</span></font></div> <div align="left"><font face="DejaVu Serif" \
size="4"><span style=" font-size:14pt"><br /> </span></font></div>
<div align="left"><font face="DejaVu Serif" size="4"><span style=" \
font-size:14pt">Thanks for the reply.</span></font></div> <div align="left"><font \
face="DejaVu Serif" size="4"><span style=" font-size:14pt"><br /> \
</span></font></div> <div align="left"><font face="DejaVu Serif" color="#7f0000" \
size="4"><span style=" font-size:14pt"><br /> </span></font></div>
<div align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt"><br /> </span></font></div>
<div align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt;&#160; </span></font></div> <div align="left"><font face="DejaVu \
Serif" color="#7f0000" size="4"><span style=" font-size:14pt">&gt; -- \
</span></font></div> <div align="left"><font face="DejaVu Serif" color="#7f0000" \
size="4"><span style=" font-size:14pt">&gt;&#160; </span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; uname -rsvp</span></font></div> <div align="left"><font \
face="DejaVu Serif" color="#7f0000" size="4"><span style=" font-size:14pt">&gt; Linux \
3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 \
x86_64</span></font></div> <div align="left"><font face="DejaVu Serif" \
color="#7f0000" size="4"><span style=" font-size:14pt">&gt;&#160; \
</span></font></div> <div align="left"><font face="DejaVu Serif" color="#7f0000" \
size="4"><span style=" font-size:14pt">&gt; Boilerplate:&#160; All unexpected mail to \
my mailbox is automatically deleted.</span></font></div> <div align="left"><font \
face="DejaVu Serif" color="#7f0000" size="4"><span style=" font-size:14pt">&gt; I \
will only get to see the messages that are posted to the mailing \
list.</span></font></div> <div align="left"><font face="DejaVu Serif" color="#7f0000" \
size="4"><span style=" font-size:14pt">&gt;&#160; </span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; \
_______________________________________________</span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; users mailing list -- \
users@lists.fedoraproject.org</span></font></div> <div align="left"><font \
face="DejaVu Serif" color="#7f0000" size="4"><span style=" font-size:14pt">&gt; To \
unsubscribe send an email to users-leave@lists.fedoraproject.org</span></font></div> \
<div align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; Fedora Code of Conduct: \
https://docs.fedoraproject.org/en-US/project/code-of-conduct/</span></font></div> \
<div align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; List Guidelines: \
https://fedoraproject.org/wiki/Mailing_list_guidelines</span></font></div> <div \
align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; List Archives: \
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org</span></font></div>
 <div align="left"><font face="DejaVu Serif" color="#7f0000" size="4"><span style=" \
font-size:14pt">&gt; Do not reply to spam on the list, report it: \
https://pagure.io/fedora-infrastructure</span></font></div> <div align="left"><font \
face="DejaVu Serif" size="4"><span style=" font-size:14pt"><br /> \
</span></font></div> <div align="left">&nbsp;&nbsp;</div>
</body>
</html>


[Attachment #6 (text/plain)]

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic