View previous topic :: View next topic |
Author |
Message |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Sun Apr 04, 2010 7:10 am Post subject: [RISOLTO] Problemi con l'orologio di sistema |
|
|
Salve a tutti,
ho un problema con l'orologio di sistema sul mio notebook.
In pratica se imposto l'orologio tramite il comando date o con ntpdate (manualmente) al successivo riavvio mi trovo l'ora spostata.
Credo che sia un problema del fatto che la modifica dell'ora io non la stia facendo dal bios. Inoltre ho notato che se aggiustassi l'ora da windows, questo problema non si verificherebbe. È come se quando imposto l'ora da Linux, questa sia solo una cosa temporanea, mentre se la imposto da BIOS o da windows no.
Sul mio pc fisso utilizzo ntpdate che mi aggiorna l'ora ad ogni reboot (come minimo), ma qui sul portatile, dove non sempre ho a disposizione una connessione a internet, la cosa è pressoché impossibile. Allora da cosa dipende questa anomalia?
Grazie per l'aiuto _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Last edited by fbcyborg on Sun Apr 04, 2010 1:56 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ago Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/6180337614ab953ee61ee4.jpg)
Joined: 01 Mar 2008 Posts: 1527 Location: Milan, Italy
|
Posted: Sun Apr 04, 2010 8:42 am Post subject: |
|
|
qualche impostazione errata....hai anche windows su quel pc? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Peach Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/113917422347ec3b2cbcf21.gif)
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Sun Apr 04, 2010 9:47 am Post subject: |
|
|
hai settato "clock_systohc" a YES in /etc/conf.d/hwclock?
hai guardato se il kernel ti sputa messaggi d'errore legati al dispositivo rtc? Se si controlla di aver almeno abilitato nel kernel il dispositivo rtc generico _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
k01 Arch/Herd Tester
![Arch/Herd Tester Arch/Herd Tester](/images/ranks/rank_rect_5_at_ht.gif)
![](images/avatars/6198034074bb90f886d986.jpg)
Joined: 13 Feb 2008 Posts: 619 Location: Milano
|
Posted: Sun Apr 04, 2010 10:04 am Post subject: |
|
|
prova a impostarla con
hwclock --set --date='HH:MM:SS' |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Sun Apr 04, 2010 1:52 pm Post subject: |
|
|
ago88 wrote: | qualche impostazione errata....hai anche windows su quel pc? |
Si c'è windows ma non lo avvio mai, quindi non credo sia quello il problema, per questo menzionavo anche il bios.
Peach wrote: | hai settato "clock_systohc" a YES in /etc/conf.d/hwclock?
hai guardato se il kernel ti sputa messaggi d'errore legati al dispositivo rtc? Se si controlla di aver almeno abilitato nel kernel il dispositivo rtc generico |
Ecco, l'opzione "clock_systohc" effettivamente era settata su NO. Ora l'ho messa su YES. Vediamo che succede.
Ad ogni modo nel log del kernel non c'è alcun messaggio relativo a rtc.
The Extremer wrote: | prova a impostarla con
hwclock --set --date='HH:MM:SS' |
OK, intanto provo di nuovo con ntpdate, ora che ho messo su YES quell'opzione. Vediamo che succede, poi vi faccio sapere!
Per il momento grazie a tutti!
EDIT:
OK, risolto, era quell'opzione nel file /etc/conf.d/hwclock
Grazie ancora!!! _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
oRDeX Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1093511417417ec3ee2e62c.jpg)
Joined: 19 Oct 2003 Posts: 1325 Location: Italy
|
Posted: Mon Apr 05, 2010 5:51 pm Post subject: |
|
|
visto che erano state proposte più soluzioni vorrei aggiungere che anche la seconda era altrettanto valida.
L'impostazione su YES fà soltanto sì che venga lanciato il comando
ad ogni shutwodn del sistema ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|