Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [clock]

The tag has no usage guidance.

0
votes
1answer
25 views

system clock is wrong when I boot in to any one of the OS in my dual boot ubuntu-windows setup

I have a dual booted laptop with windows and ubuntu installed side by side. whenever I boot in to any one these operating systems, the system clock shows the time I booted in the said OS last time. ...
-1
votes
1answer
36 views

Since which version does linux support system clock with nano precision?

We are using centos7 and with the date command we came to know that system clock support nano precision. date +"%s %9N" 1537941601 130559008 So, we were to know that from which version did linux ...
2
votes
1answer
131 views

How do I permanently sync the system clock with the hardware clock?

I have a cronjob running that checks for server updates, installs them one by one, and then checks if a reboot is needed. If a reboot is needed, the script will reboot the server. The hardware clock ...
2
votes
0answers
69 views

Time measurment in Linux kernel: how are clock_gettime, gettimeofday and getrusage related?

I am trying to understand how time is measured by the Linux kernel. I tried to go through the kernel code, but I miss the big picture to understand the code that I'm reading, even if this article ...
2
votes
1answer
391 views

What is /etc/timezone used for?

On my Manjaro linux box, I have a file /etc/timezone which contains: Asia/Bangkok Another Manjaro forum user also has the same file. That thread on the whole contains some prior art on this question....
1
vote
0answers
15 views

Trigger some action on system clock change?

I would like to have something occur - say, I would like to run a certain script - whenever the system clock is adjusted (hardware clock and/or offset from hardware clock, including the timezone). ...
0
votes
0answers
47 views

What are the possible cause of “__rtc_set_alarm: err=-22” error message in dmesg?

What are the possible cause of "__rtc_set_alarm: err=-22" error message in dmesg? I am seeing this in my log files but I do not try to set the alarm or schedule it anywhere.
0
votes
0answers
29 views

Laptop clock time advanced when booting to Linux [duplicate]

Everytime I log into Linux mint, the laptop internal clock advances an hour. When i log out and back into Windows the time stays advanced and I have to manually change the time back one hour. Anyone ...
0
votes
0answers
163 views

clock_gettime call not using vDSO?

I already asked a question on a similar topic (vDSO file path in Android x86 kernel) but I encountered another problem. I am working on a school research on Dirty CoW vulnerability. I found out ...
2
votes
1answer
212 views

Hardware and system clock gets offset by roughly 7 minutes on each boot although locale and time zone are correct

On each boot into Arch, I see that the time is off by a few minutes. The RTC time is off (as far as I understood, it has "drifted".) and affects the hardware clock. $ timedatectl status ...
2
votes
2answers
281 views

Change default sounds of gnome-clocks app

I'm use gnome-clocks for its timer option. This app is very simple and effective. But I can't change the default sounds of the alarm and the timer. I tried setting the configurations in dconf and ...
0
votes
1answer
224 views

How do you hardcode the format of sudo hwclock

Hey there so I just received a new RTC for my Raspberry Pi. When I run this command: sudo hwclock The output looks like the following: 2018-01-08 13:06:5.441956+0100 But, on my other Raspberry Pi ...
0
votes
0answers
24 views

Why /proc/diskstats overlap UINT_MAX?

In function diskstats_show, kernel outputs io_ticks by jiffies_to_msecs(part_stat_read(hd, io_ticks)), However I noticed this value overlaps UINT_MAX and starts again from 0 every several weeks, on ...
0
votes
1answer
479 views

Lubuntu 17.10 login screen has a white font clock

I noticed that my Lubuntu's clock in login screen has a white font clock. I do not know why but no matter what I do it won't change. I tried resetting the panel and configuration files of LXDE, but ...
1
vote
1answer
88 views

Why is the number of ticks inaccurate?

I checked the numbers in proc/stat to the the number of clock ticks the CPU has had and I saw that the sum of the numbers in CPU1-4 is not equal to the numbers written in front of CPU as a whole. Why ...
0
votes
1answer
65 views

RTC management in desktop and embedded environments

When working on an embedded environment (current one: Raspberry Pi with Debian Stretch) with an external RTC module (i.e. DS1307) I have to manually keep in sync both system and RTC clock. This can ...
3
votes
1answer
580 views

Clock instability in Debian 9 (stretch)

I have a machine running Debian 8 (jessie) downgraded to kernel 3.2-rt. This is running an application which is set to realtime priority (SCHED_RR), wakes up every 1ms to do some processing, and ...
1
vote
1answer
623 views

Manually setting date time in Lubuntu does not update the hardware clock

Lubuntu is not changing the bios date-time when I set the date-time manually using the Time and Date Application. Due to which, when I reboot it synchronises the time with the wrong time in bios. I ...
1
vote
0answers
43 views

Check for clock skews on machines where I can only submit jobs

I need to check for a clock skew in many remote machines. What is the best way to check for a clock skew on a Linux machine? I don't need to sync clocks, just to check how accurate it is. I don't ...
2
votes
1answer
519 views

Invalid time on FreeBSD

Problem My FreeBSD is always 2 hours behind when I'm offline although my BIOS clock shows the UTC time and my time zone is set to CET in /etc/localtime. I'd like FreeBSD to look at the clock in BIOS,...
0
votes
1answer
909 views

No such schema 'org.gnome.shell.clock' error

The command that I am trying to run is: gsettings set org.gnome.shell.clock show-date true but then I get the message saying No such schema 'org.gnome.shell.clock' error I don't know why this is? I ...
0
votes
1answer
1k views

How to change date/time format Linux gnome? [duplicate]

I have installed Gnome on my Linux 18 mint and I see the time at the top says: Basically it says Sun May 7, 00:26, and I would like for it to say May 7, 2017 | 12:26 AM. I remember being able to ...
1
vote
1answer
318 views

11 minute mode when more than 30 minutes out of sync

In ntpd the kernel copies the system time to the hardware clock every 11 minutes. However, if the system time and hardware clock are more than 30 minutes out of sync this copy does not happen and the ...
2
votes
1answer
784 views

Is there any way to adjust the clock granularity under tmux?

It seems like, by default, the tmux status bar clock granularity is set to 2s, however it would be nice to be able to bring that up to a one-second granularity. Is there any way to set the ...
1
vote
1answer
383 views

Why 'hwclock' command applies a positive offset for local time, while the 'date' command applies a negative offset?

I am having some problems working with timezones. Can someone please explain these results to me? Why does the hwclock command apply a positive offset for local time, while the date command applies a ...
3
votes
2answers
261 views

Slowdown the system clock in Linux server

I have Centos server, in which I don't want to jump back the time to one hour during time change. instead I want to slow down the system clock few hour before the time change so that when the time ...
1
vote
2answers
161 views

How to revert date?

I changed the system date using the following command in Ubuntu: date -s="1999/01/01 12:34:56" Now, I want to revert the date call so the date is correct again. What should I do?
1
vote
1answer
56 views

Digital clock in Lubuntu 16.04 shows one hour more under CET ZT

The digital clock is synchronized with internet servers, set to Europe/Madrid ZT (i.e. CET), but shows one hour more, at the time of posting this question it is 20:31. I've tried to remove and add it ...
0
votes
1answer
324 views

'Function not implemented' nouveau clocking

I have a NVidia GTX 580 running under nouveau. It is currently running at 03 (the lowest state). However, when I try to change the clock rate to any setting, including the original state 03, it fails. ...
0
votes
1answer
836 views

Linux Mint clock is sometimes wrong, sometimes fine

I'm running linux mint on an asus laptop. Throughout multiple installs of linux (always mint, but different environments), the clock is always wrong sometimes. It's not off by an even multiple of an ...
0
votes
1answer
194 views

How to enable the clock after removing it from the taskbar in XFCE?

My clock was off so I decided to remove it, change the settings, and put it back in the right-hand corner on the taskbar, but I can't seem to be able to do that after removing it. I searched in the ...
0
votes
1answer
630 views

hwclock for non root user

How to make a non root user to view the hardware time other than hwclock command in centos 7 My requirement is to make a non root user to view the time alone
5
votes
1answer
7k views

How to change the Gnome panel time format?

Gnome panel displays the time with 24hrs format but I want to change it to am/pm.
1
vote
1answer
355 views

xclock with nanosecond (or fractional second) resolution

I currently run: xclock -digital -update 1 -strftime '%a %d %b %Y %H:%M:%S' and am reasonably happy with the resulting xclock, but don't find it quite annoying enough. Is there any way I can add ...
1
vote
0answers
24 views

Is it possible to change the clocking for an audio codec from Linux (userland or driver)?

I have an i.MX6 evaluation board with an audio codec from Cirrus Logic (WM8958). The board also supports PTP hardware clocking. Is it somehow possible to change the reference frequency for the audio ...
1
vote
0answers
91 views

Display all declared clocks and their frequency

I would like to know how to display all clocks and their associated driver in Linux. It is possible to do it by looking at the device tree file but I was wondering if there is a sysfs entry that ...
3
votes
0answers
299 views

How do I actually make use of the kvm-clock clock driver?

According to copious sources, the KVM clock driver is loaded as shown here: cat /sys/devices/system/clocksource/clocksource0/current_clocksource These sources all seem to think that this ...
3
votes
1answer
2k views

Why don't Linux utils use a system call to get the current time?

I'm really trying to understand why our guest VMs aren't using the kvm-clock driver "like they're supposed to". They're running RHEL 7.2, glibc-2.17, kern 3.10.0. Programs such as date and perl -e '...
1
vote
0answers
1k views

Linux set hardware clock in UTC and system time in local time

Due to some reasons, I have to remotely set hardware clock time in UTC and system time in local time. My OS is OpenSUSE 13.1 and my tool is only the hwclock command. What I do so far: 1. Synchronize ...
0
votes
1answer
379 views

RedHat + what is the variable ARC in the /etc/sysconfig/clock file

from redhat doc we can see the following: The /etc/sysconfig/clock file controls the interpretation of values read from the system hardware clock. ARC=, where is the following: false or no — This ...
0
votes
2answers
355 views

red hat Linux + UTC properties and hw clock

from redhat documentation The /etc/sysconfig/clock file controls the interpretation of values read from the system hardware clock. UTC= where is one of the following boolean values: true or yes — ...
3
votes
2answers
406 views

how does the gnu coreutils `date` work? [closed]

I did not see any similar questions on this site. The manpage, while helpful in describing how to use date, did not have much background info. Even the info page (as prescribed in the manpage: info '(...
1
vote
1answer
750 views

rtcwake not working on Ubuntu 14.04 installed on MacBook Air (mid 2012)

I have installed Ubuntu 14.04 GNU/Linux on a MacBook Air (mid 2012). I'm trying to use rtcwake to implement a "delayed hibernation from suspend", as in https://askubuntu.com/a/33192 (the particular ...
0
votes
1answer
246 views

Is clock_getres the proper function for obtaining the resolution for Ubuntu 16.04 clock_gettime()?

Is clock_getres the proper function for obtaining the resolution for Ubuntu 16.04 clock_gettime()? If it is , how do I use the result to do this calculation? 64 bit integer has 15 base 10 digits of ...
4
votes
1answer
84 views

PC with short-lived RTC battery - how to immediately time-sync on boot and avoid time jumps

I've got a 64-bit Intel PC running Debian 8 with a capacitor-based clock, which means after 3 days without power the time is lost from the hardware clock. To help work-around this, I was thinking we ...
2
votes
1answer
1k views

Switch off 11-minute kernel mode

If ntpd works, then the kernel copies system time to hardware clock every 11 minutes. It is shown by command adjtimex --print I want to stop the kernel eleven mode. If I run hwclock --hctosys ...
5
votes
2answers
583 views

UNIX Seconds, TAI (SI) Seconds, Leap Seconds, and Real-World Code

I've read a lot about UNIX Time lately, most of it incoherent, much of it contradictory. I am trying to reconcile conversions between UNIX Time (hereafter, for simplicity, UXT), TAI, and UTC, and to ...
0
votes
0answers
488 views

RedHat:how to make system read /etc/sysconfig/clock settings without restarting system

In legacy red hat enterprise linux system which do not provide hwclock, I am changing UTC value in /etc/sysconfig/clock and when I check in /etc/adjtime this value is not reflected with expected value....
15
votes
2answers
3k views

Does crond handles summer time +1 hour change?

Last weekend we had to change the time from 02:00 to 03:00. Question: What would happen if there was a cronjob at 02:30? crond is a very old solution for scheduling, it should probably handle it, ...
1
vote
1answer
117 views

Linux Voyager Desktop clock bug

Hello everyone , as you can see I have a problem with the desktop clock , I tried switching main language and it didn't work . I couldn't find any other forums with the same problem either . I am not ...