Questions tagged [dmesg]
37 questions
1
vote
1 answer
Have dmesg print human readable time
I would like dmesg to print human readable date times without passing the -T parameter. Is there a way to do this without setting up an alias? In config files maybe?
dmesg output:
# dmesg | tail -1
[ 6.639729] IPv6: enp03: link becomes ready
in…

testfile
- 2,145
- 1
- 12
- 31
1
vote
2 answers
dmesg convert timestamps to human format
I have the following sample of dmesg:
throttled log output.
57458] bar 3: test 2 on bar 8 is available
[ 19.696163] bar 1403: test on bar 1405 is available
[ 19.696167] foo: [ 19.696168] bar 3: test 5 on bar 1405 is available
[ 19.696178]…

Maxim_united
- 1,911
- 1
- 14
- 23
0
votes
0 answers
Failing to measure timer accuracy in linux kernel version 4.4.0-66-generic
I am using hrtimer to set a timer for 10 ms(need accuracy in ns). So while trying to check the timer accuracy I tried using getnstimeofday() and was printing the time and was comparing with the time of next timer call but the time difference between…

Shubham Sharma
- 1
- 1
0
votes
2 answers
How to forward dmesg live output through SSH on Linux
On VMWare or on bare metal, Linux display by default live dmesg content directly to stdout.
But when I'm connected through SSH, it doesn't show up even to the command succeeds
How do I forward every dmesg log through SSH ?
dmesg -wH, watch or tail…

Tangogow
- 23
- 4
0
votes
0 answers
What's the meaning of __schedule+0x1de/0x700 in crash tool?
I've just modified the kernel source. The kernel got crashed when I tried to trigger related functions. What does 0x__schedule+0x1de/0x700 mean in the dmesg mentioned above?

0x80000000
- 29
- 4
0
votes
0 answers
USB coding using udev
I'm using raspberry pi b+ and trying to implement a USB code using udev.
When I give 'dmesg' command in linux, i get
[1297970.514980] usb 1-14.1: New USB device found, idVendor=0951, idProduct=1666, bcdDevice= 1.10
[1297970.514986] usb 1-14.1: New…

user8423741
- 3
- 1
0
votes
1 answer
watch dmesg, exit after first occurrence
I have a script which watches dmesg and kills a process after a specific log message
#!/bin/bash
while sleep 1;
do
# dmesg -w | grep --max-count=1 -q 'protocol'
dmesg -w | sed '/protocol/Q'
mkdir -p /home/user/dmesg/
eval "dmesg -T >…

tilch
- 11
- 2
0
votes
1 answer
Tail pointer for overwrite functionality in circular buffer implementation
I am trying to implement a circular buffer for logging messages. I have implemented a fairly basic solution which seems to work but I am confused about how push should work in real case scenario. Should head overwrite the tail? if yes do we modify…

Priyank Pandya
- 23
- 6
0
votes
1 answer
Bash script using dmesg to see a message on terminal when a mouse is plugged and unplugged
I am trying to get my hands dirty with bash scripting and dmesg. I want to write a script which does the following :
When the mouse is plugged in, and your script is run, it will print “mouse is present” when the mouse is unplugged and the script is…

Marlborough321
- 11
- 1
0
votes
2 answers
Run a program when new line appears in dmesg
sudo dmesg -w|grep "Manufacturer: Keychron K1"| xargs -I{} xset r rate 250 70
It does not work, why?
I am trying to reset keyboard settings when the keyboard is reconnected, but I cannot get dmesg -w|xargs... combination to work. It supposed to be…

exebook
- 32,014
- 33
- 141
- 226
0
votes
0 answers
dmesg log to file, and check number of lines
i trying to drop last new lines(if exists) of dmesg to a file. I want to echo it if there is new lines that file. There isn't much of it, but i have something like this:
flog=$DIR/dmlog
dm=$(dmesg > $flog)
lines=$(wc -l $flog) <--- for example there…

Vvojtek
- 43
- 6
0
votes
0 answers
How to find process by dmesg message in Solaris?
There is a "Oracle Solaris 11.4" system, where we have a flood messages in dmesg.
genunix: [ID 200113 kern.warning] WARNING: symlink creation failed,
error 2
This messages appears every 15 minutes, but I didn't find any crontab job with this…

Ivan Niagara
- 1
- 2
0
votes
1 answer
How to match usb device listed with lsusb with usb serial number displayed with dmesg?
I have a setup here with a lot of USB devices connected
this is my lsusb output:
Bus 003 Device 013: ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb
Bus 003 Device 014: ID 16c0:05dc Van Ooijen Technische Informatica…
0
votes
1 answer
What does memory allocation failure in Kernel Logs mean?
Here is the output of a dmesg command on an instance running Linux potentially dealing with memory crunch. Any help on what do these logs mean?
dmesg | tail -n 25
[23498.234294] warn_alloc+0x114/0x1c0
[23498.238447] ena 0000:00:05.0 eth0: refilled…

haltTm
- 534
- 1
- 6
- 25
0
votes
0 answers
Python script killed by oom-killer on ec2 amazon linux
I'm trying to run a training session using keras the total dataset(1000 80 x 80 images) is very small (20 mb in total) on Amazon ec2 free tier cloud instance(1GB of memory) however The process gets killed after running model.fit() 2 epochs(and it…
user12690225