Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RC] Far convivere softlevel per la rete e per cpufreq
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Sat May 27, 2006 7:11 pm    Post subject: [RC] Far convivere softlevel per la rete e per cpufreq Reply with quote

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
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sat May 27, 2006 7:34 pm    Post subject: Reply with quote

Se il cavo non c'è escluderei ifplug....
boh mi sembra un problema alquanto singolare... :roll:
_________________
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
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Sat May 27, 2006 8:53 pm    Post subject: Reply with quote

Cazzantonio wrote:
Se il cavo non c'è escluderei ifplug....
boh mi sembra un problema alquanto singolare... :roll:


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
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Sat May 27, 2006 9:18 pm    Post subject: Reply with quote

Peach wrote:
Cazzantonio wrote:
Se il cavo non c'è escluderei ifplug....
boh mi sembra un problema alquanto singolare... :roll:


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
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Sat May 27, 2006 9:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
shogun_panda
Guru
Guru


Joined: 30 Jul 2004
Posts: 411
Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe

PostPosted: Sun May 28, 2006 8:55 am    Post subject: Reply with quote

:lol: Ma quanti runlevel hai? Pensavo di essere io esagerato! :D

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
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Sun May 28, 2006 9:02 am    Post subject: Reply with quote

shogun_panda wrote:
:lol: Ma quanti runlevel hai? Pensavo di essere io esagerato! :D

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
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Sun May 28, 2006 9:08 am    Post subject: Reply with quote

E' possibile che sia colpa di coldplug/hotplug?
Back to top
View user's profile Send private message
shogun_panda
Guru
Guru


Joined: 30 Jul 2004
Posts: 411
Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe

PostPosted: Sun May 28, 2006 9:14 am    Post subject: Reply with quote

Peach wrote:
shogun_panda wrote:
:lol: Ma quanti runlevel hai? Pensavo di essere io esagerato! :D

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
View user's profile Send private message
fabius
Guru
Guru


Joined: 29 Nov 2004
Posts: 525

PostPosted: Sun May 28, 2006 9:29 am    Post subject: Reply with quote

Che versione della baselayout usi? Prova a vedere RC_COLDPLUG in /etc/conf.d/rc
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Sun May 28, 2006 10:26 am    Post subject: Reply with quote

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
View user's profile Send private message
fabius
Guru
Guru


Joined: 29 Nov 2004
Posts: 525

PostPosted: Sun May 28, 2006 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Sun May 28, 2006 2:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Mon Aug 14, 2006 10:47 am    Post subject: [RC] Far convivere softlevel per la rete e per cpufreq Reply with quote

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 :-P ) 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... :twisted:
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum