LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-01-2016, 12:27 PM   #1
zpimp
Member
 
Registered: Oct 2014
Posts: 73

Rep: Reputation: Disabled
wrong time on laptop


i use antix linux 15 on lots of systems
but on my 2016 laptop, the time is wrong

i keep the battery out of the laptop
if this has anything to do wih it
 
Old 11-01-2016, 12:39 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
look for ntp
 
Old 11-01-2016, 12:44 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
What is the make/model of your 2016 laptop?

What is the time displayed on the laptop compared to your local time?

If the computer uses the battery to maintain the hardware clock or if antix expects its time to be UTC and it is actually local time this will result with it being wrong.
 
Old 11-01-2016, 01:20 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,101
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Code:
root@biker:/home/harry# ls -l /etc/localtime
-rw-r--r-- 1 root root 3559 Oct 13 21:52 /etc/localtime
root@biker:/home/harry# exit
exit
harry@biker:~
$ inxi
CPU~Dual core Intel Core i5 M 520 (-HT-MCP-) speed/max~1333/2400 MHz Kernel~4.8.1-antix.1-686-smp-pae i686 Up~24 min Mem~300.1/8021.7MB HDD~60.0GB(47.9% used) Procs~180 Client~Shell inxi~2.3.0
However. My time is 13:15 locally, not 21:52, and what is displayed in my Icewm task bar clock and conky display.

One can set the display time using

Code:
# dpkg-reconfigure tzdata

Current default time zone: 'America/Chicago'
Local time is now:      Tue Nov  1 13:17:46 CDT 2016.
Universal Time is now:  Tue Nov  1 18:17:46 UTC 2016.
I set mine for Chicago even though I live on the Mexican border in Texas.
 
Old 11-01-2016, 02:08 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by zpimp View Post
i use antix linux 15 on lots of systems
but on my 2016 laptop, the time is wrong

i keep the battery out of the laptop
if this has anything to do wih it
You need to get more pixie dust into it! I would suggest drinking some good milkshakes and breathing at it -- really at it!
Hope that works.
 
Old 11-07-2016, 01:14 PM   #6
zpimp
Member
 
Registered: Oct 2014
Posts: 73

Original Poster
Rep: Reputation: Disabled
sorry for the delay
its a lenovo b50-80/i3-5010u
i set the date with
sudo date --set="7 nov 2016 21:10:00"
now its fine
as i said ive taken the battery out, dont know if it has a bios battery, or if the main battery is responsible for the clock
 
Old 11-09-2016, 08:25 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
set it to local time maybe help as the coms battery should keep the time in BIOS intact
mine I set like this
Code:
userx@voided1.what~>> cat /etc/rc.conf
# /etc/rc.conf - system configuration for void

# Set the host name.
#
# NOTE: it's preferred to declare the hostname in /etc/hostname instead:
# 	- echo myhost > /etc/hostname
#
#HOSTNAME="void-live"

# Set RTC to UTC or localtime.
#HARDWARECLOCK="UTC"
HARDWARECLOCK="localtime"

# Set timezone, availables timezones at /usr/share/zoneinfo.
TIMEZONE=America/Chicago
the command line
Code:
sudo date +%T -s "03:30pm"
sudo hwclock -w
adding the actual time . looks like you know how to do both date and time.

Last edited by BW-userx; 11-09-2016 at 08:29 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
syslog time wrong - but date returns the correct time? falc410 Linux - Newbie 7 04-05-2020 10:04 PM
[SOLVED] NTP Sets time wrong every time (26 seconds) themrrobert Linux - Server 2 02-21-2016 09:07 PM
[SOLVED] Weird time changes, correct time and date but wrong hour metaschima Slackware 24 08-03-2014 01:14 PM
my time is wrong and calender is also wrong Paxmaster Linux - General 6 12-16-2004 12:46 AM
Setting System Time: kernel in wrong time zone warrenweiss Linux - General 7 05-15-2004 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration