View previous topic :: View next topic |
Author |
Message |
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Sat May 27, 2006 7:11 pm Post subject: [RC] Far convivere softlevel per la rete e per cpufreq |
|
|
Ciao a tutti,
da un po' di tempo mi sta capitando un fastidioso inconveniente sul portatile.
Tenete presente che:
eth1 = rj45
eth2 = wifi
in pratica cosa succede: stoppo eth1 e tiro su eth2 per far andare la wireless; dopo un po' (avviene circa ad ogni ora) mi accorgo che non riesco più ad uscire sulla eth2, guardo, controllo e scopro che la eth1 è di nuovo su.... chi cavolo la tira su??? chi la vuole?!?!
sta cosa mi sta mandando ai matti.
Per ora ho provato a settare in /etc/conf.d/rc RC_NET_STRICT_CHECKING="lo" o altro, ma non cambia nulla... ora sono tornato a "no"
qualche idea???
EDIT: ah dimenticavo: non state nemmeno a pensare che tipo ho l'rj45 attaccato e quindi qualche nano nel pc da il "link up" e tira su lo script. Il cavo non c'è! _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Last edited by Peach on Mon Aug 14, 2006 10:47 am; edited 1 time in total |
|
Back to top |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Sat May 27, 2006 7:34 pm Post subject: |
|
|
Se il cavo non c'è escluderei ifplug....
boh mi sembra un problema alquanto singolare... _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Sat May 27, 2006 8:53 pm Post subject: |
|
|
Cazzantonio wrote: | Se il cavo non c'è escluderei ifplug....
boh mi sembra un problema alquanto singolare... |
eh si...
cmq sia. sto indagando al momento: non so se c'entra, ma tra gli script del runlevel corrente eth2 non c'è.. non vorrei che qualcuno facesse lo scherzo di richiederlo e lo tira su.
E' possibile che uno script avviato, che si basa su eth1, decida di tirarlo su? (al di là del fatto che è assurdo che uno script decida di basarsi su uno script di rete specifico e non su una interfaccia attiva e basta) _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Sat May 27, 2006 9:18 pm Post subject: |
|
|
Peach wrote: | Cazzantonio wrote: | Se il cavo non c'è escluderei ifplug....
boh mi sembra un problema alquanto singolare... |
eh si...
cmq sia. sto indagando al momento: non so se c'entra, ma tra gli script del runlevel corrente eth2 non c'è.. non vorrei che qualcuno facesse lo scherzo di richiederlo e lo tira su.
E' possibile che uno script avviato, che si basa su eth1, decida di tirarlo su? (al di là del fatto che è assurdo che uno script decida di basarsi su uno script di rete specifico e non su una interfaccia attiva e basta) |
posta l'elenco di script di avvio nei vari run-levels (rc-status -a)
luigi _________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Sat May 27, 2006 9:29 pm Post subject: |
|
|
prima aggiungo questo messaggio che m'è venuto fuori in dmesg:
Code: | ADDRCONF(NETDEV_UP): eth1: link is not ready |
ripetuto più volte
ora l'elenco:
Code: | Runlevel: battery
gpm [ started ]
xdm [ started ]
xfs [ started ]
ntp-client [ started ]
fsfn [ started ]
keymaps [ started ]
acpid [ started ]
clock [ started ]
ivman [ started ]
local [ started ]
spamd [ started ]
vixie-cron [ started ]
syslog-ng [ started ]
consolefont [ started ]
hostname [ started ]
net.eth1 [ off ]
netmount [ started ]
cpufreqd [ started ]
Runlevel: boot
keymaps [ started ]
clock [ started ]
localmount [ started ]
consolefont [ started ]
modules [ started ]
hostname [ started ]
net.lo [ started ]
serial [ started ]
urandom [ started ]
checkroot [ started ]
rmnologin [ started ]
bootmisc [ started ]
checkfs [ started ]
alsasound [ started ]
Runlevel: default
gpm [ started ]
xdm [ started ]
xfs [ started ]
ntp-client [ started ]
fsfn [ started ]
keymaps [ started ]
acpid [ started ]
clock [ started ]
ivman [ started ]
local [ started ]
spamd [ started ]
vixie-cron [ started ]
syslog-ng [ started ]
consolefont [ started ]
coldplug [ started ]
hostname [ started ]
net.eth1 [ off ]
netmount [ started ]
cpufreqd [ started ]
Runlevel: nonetwork
gpm [ started ]
xdm [ started ]
xfs [ started ]
fsfn [ started ]
acpid [ started ]
ivman [ started ]
local [ started ]
vixie-cron [ started ]
syslog-ng [ started ]
cpufreqd [ started ]
Runlevel: single
Runlevel: wireless
gpm [ started ]
xfs [ started ]
ntp-client [ started ]
fsfn [ started ]
keymaps [ started ]
acpid [ started ]
clock [ started ]
ivman [ started ]
local [ started ]
spamd [ started ]
vixie-cron [ started ]
syslog-ng [ started ]
consolefont [ started ]
hostname [ started ]
net.eth2 [ started ]
netmount [ started ]
cpufreqd [ started ]
Runlevel: UNASSIGNED
Runlevel: UNASSIGNED
alsasound.new [ off ]
apache2 [ off ]
aumix [ off ]
bluetooth [ off ]
cpufrequtils [ off ]
crypto-loop [ off ]
cupsd [ off ]
dbus [ started ]
distccd [ off ]
domainname [ off ]
esound [ off ]
famd [ off ]
fancontrol [ off ]
festival [ off ]
gkrellmd [ off ]
hald [ started ]
hdparm [ off ]
hibernate-cleanup [ off ]
hotplug [ off ]
hylafax [ off ]
ifplugd [ off ]
ip6tables [ off ]
iptables [ off ]
kismet [ off ]
l2tpd [ off ]
lm_sensors [ off ]
mysql [ off ]
net.eth0 [ off ]
net.ppp0 [ off ]
nfs [ off ]
nfsmount [ off ]
nscd [ off ]
ntpd [ off ]
numlock [ off ]
pcmcia [ off ]
portmap [ off ]
powersave [ off ]
pure-ftpd [ off ]
racoon [ off ]
rsyncd [ off ]
samba [ off ]
shorewall [ off ]
slapd [ off ]
slurpd [ off ]
smartd [ off ]
sshd [ off ]
syndaemon [ off ]
timidity [ off ]
wpa_supplicant [ off ] |
puff pant... _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
shogun_panda Guru
Joined: 30 Jul 2004 Posts: 411 Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe
|
Posted: Sun May 28, 2006 8:55 am Post subject: |
|
|
Ma quanti runlevel hai? Pensavo di essere io esagerato!
In ogni caso...non mi pare di scorgere nessuna dipendenza strana...
Per di più gli script di certo non si avviano da soli e se li avviassi tu, certamente te ne accorgeresti che tirano su eth1.
Non è che in realtà qualche programma autoconfigura eth1 ma SENZA usare gli initscript, del tipo che gli da l'indirizzo 192.168.0.1 tanto per avere l'interfaccia up? _________________ Greetings by the Shogun! - Home page
1-"Prima di dare consigli agli altri, sperimentateli su voi stessi..."
2-"In medio stat virtus!" |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Sun May 28, 2006 9:02 am Post subject: |
|
|
shogun_panda wrote: | Ma quanti runlevel hai? Pensavo di essere io esagerato! |
si è il risultato di 2 anni di tentativi per sitemare la rete e la batteria
Quote: | In ogni caso...non mi pare di scorgere nessuna dipendenza strana...
Per di più gli script di certo non si avviano da soli e se li avviassi tu, certamente te ne accorgeresti che tirano su eth1.
Non è che in realtà qualche programma autoconfigura eth1 ma SENZA usare gli initscript, del tipo che gli da l'indirizzo 192.168.0.1 tanto per avere l'interfaccia up? |
no, la cosa assurda che quello che noto è che mi trovo proprio /etc/init.d/net.eth1 come started!!! e non semplicemente l'interfaccia up. _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
knefas l33t
Joined: 21 Dec 2003 Posts: 828
|
Posted: Sun May 28, 2006 9:08 am Post subject: |
|
|
E' possibile che sia colpa di coldplug/hotplug? |
|
Back to top |
|
|
shogun_panda Guru
Joined: 30 Jul 2004 Posts: 411 Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe
|
Posted: Sun May 28, 2006 9:14 am Post subject: |
|
|
Peach wrote: | shogun_panda wrote: | Ma quanti runlevel hai? Pensavo di essere io esagerato! |
si è il risultato di 2 anni di tentativi per sitemare la rete e la batteria
Quote: | In ogni caso...non mi pare di scorgere nessuna dipendenza strana...
Per di più gli script di certo non si avviano da soli e se li avviassi tu, certamente te ne accorgeresti che tirano su eth1.
Non è che in realtà qualche programma autoconfigura eth1 ma SENZA usare gli initscript, del tipo che gli da l'indirizzo 192.168.0.1 tanto per avere l'interfaccia up? |
no, la cosa assurda che quello che noto è che mi trovo proprio /etc/init.d/net.eth1 come started!!! e non semplicemente l'interfaccia up. |
Premettendo che non so di preciso come funzionano gli initscript...
Ho l'impressione che quando dai rc-status, lo script deve controlla se l'interfaccia è up ed in quel caso segnala net.eth1 come attivo...Mi sbaglio?
Cmq prova a postare dmesg ed un log di sistema... _________________ Greetings by the Shogun! - Home page
1-"Prima di dare consigli agli altri, sperimentateli su voi stessi..."
2-"In medio stat virtus!" |
|
Back to top |
|
|
fabius Guru
Joined: 29 Nov 2004 Posts: 525
|
Posted: Sun May 28, 2006 9:29 am Post subject: |
|
|
Che versione della baselayout usi? Prova a vedere RC_COLDPLUG in /etc/conf.d/rc |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Sun May 28, 2006 10:26 am Post subject: |
|
|
fabius wrote: | Che versione della baselayout usi? Prova a vedere RC_COLDPLUG in /etc/conf.d/rc |
ultima versione stabile: 1.11.14-r8
in rc non c'è RC_COLDPLUG _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
fabius Guru
Joined: 29 Nov 2004 Posts: 525
|
Posted: Sun May 28, 2006 1:38 pm Post subject: |
|
|
Peach wrote: | fabius wrote: | Che versione della baselayout usi? Prova a vedere RC_COLDPLUG in /etc/conf.d/rc |
ultima versione stabile: 1.11.14-r8
in rc non c'è RC_COLDPLUG |
Nella versione 1.12.x, che diventerà stabile nell'immediato futuro, c'è la variabile RC_COLDPLUG
Code: | # Dynamic /dev managers can trigger coldplug events which cause services to
# start before we are ready for them. If this happens, we can defer these
# services to start in the boot runlevel. If you don't want this then set
# RC_COLDPLUG to no.
# For more fine grained control you can list full service names to allow
# them to coldplug and prefix them with ! so they don't coldplug.
# Example - RC_COLDPLUG="net.wlan !net.*"
# This allows net.wlan and any service not matching net.* to coldplug.
|
Io uso
Code: | RC_COLDPLUG="!net.*" |
per gestire l'inizializzazione delle varie interfacce a mano lanciando i vari script /etc/init.d/net.xxx |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Sun May 28, 2006 2:11 pm Post subject: |
|
|
fabius wrote: | Io uso
Code: | RC_COLDPLUG="!net.*" |
per gestire l'inizializzazione delle varie interfacce a mano lanciando i vari script /etc/init.d/net.xxx |
bellissimo, ma stento a credere che questo risolva il mio problema, al di là del fatto che non ho intenzione di spostarmi nel ramo unstable di baselayout.
Resta il problema che ho qualche str***o che mi tira su lo script di rete.
una cosa non ho ancora provato a vedere: se tiro su l'interfaccia di rete con un ifconfig up, lo script in init si auto avvia? o è impossibile un comportamento del genere? _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Mon Aug 14, 2006 10:47 am Post subject: [RC] Far convivere softlevel per la rete e per cpufreq |
|
|
Aggiorno un po' questo post cambiandogli il titolo da rc: fastidioso problema net.eth1 net.eth2 a [RC] Far convivere softlevel per la rete e per cpufreq.
E questo perché nel tentativo di capire (senza tra l'altro investigare realmente a riguardo ) cosa cavolo stia succedendo nel mio portatile sono giunto a questa misera conclusione: non riesco a far convivere i softlevel da me creati in precedenza per la gestione delle varie situazioni di reti (default (rete fissa), wireless, nonetwork) con quelli poi creati per la gestione del risparmio energetico (fondamentalmente battery e default) dopo aver seguito la guida relativa sul sito di gentoo.
Mi domando se devo crearmi un casino pazzesco: duplicando tutti i livelli per avere lo stato in batteria, così come avviene per il default. Ma è possibile gestirli con gli script di cpufreqd?
Qualcuno ha soluzionato in maniera pulita questo problema?
Il mio principale problema è che la rete fissa sia tirata su solo quando c'è un cavo inserito, ma che la wireless sia avviata su richiesta all'avvio. Certo la soluzione più semplice sembra essere non avere nessuna rete avviata e tirare su la rete che serve quando voglio solo via console...
mah... _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
|