Skip to content
This repository

xmobar-0.14 coretemp error: Prelude.read: no parse #38

Closed
gkonst opened this Issue February 23, 2012 · 10 comments

4 participants

Konstantin Grigoriev jao skinner33 Brandon Thomson
Konstantin Grigoriev

I have a problem with xmobar coretemp plugin.
Instead of temperature coretemp plugin shows 'error: Prelude.read: no parse'. Problem is reproducible with default plugin config. With xmobar-0.13 everything is ok.

What is the problem? Can anybody help?

skinner33

As far as i can tell, 0.14 looks into other files than 0.13.

I suspect that those could be empty, could you check for directories or files under /sys/bus/platform/devices/coretemp for their content.

As i don't have coretemp facilities i can't really tell you what to look for ...

Konstantin Grigoriev

This is my directory content:


# ls /sys/bus/platform/devices/coretemp.0/
driver  modalias  power      temp1_crit        temp1_input  temp1_max   temp2_crit_alarm  temp2_label  temp3_crit        temp3_input  temp3_max
hwmon   name      subsystem  temp1_crit_alarm  temp1_label  temp2_crit  temp2_input       temp2_max    temp3_crit_alarm  temp3_label  uevent

I don't see anything criminal here, 'temp_input' files contain temperature. May be something wrong with core/file numbering?

jao
Owner
jaor commented March 07, 2012

The structure of your coretemp.0 files looks fine except for the odd numbering... you could try linking coretemp.0 to coretemp.1 to see if that helps. Unfortunately, my current laptop doesn't have coretemp facilities either to check by myself...

Brandon Thomson

Seems like the issue is still present in 0.15. I'm using this shell script instead for now:

#!/bin/sh
for i in [1,2,3,4]; do
echo `cat /sys/bus/platform/devices/coretemp.0/temp${i}_input | cut -c 1,2`
done
jao
Owner
jaor commented May 04, 2012

Hmm. Could you please tell me what does cat temp1_label show? What about cat tem1_input?

Thanks!

Brandon Thomson
% cat /sys/bus/platform/devices/coretemp.0/temp1_label 
Physical id 0
% cat /sys/bus/platform/devices/coretemp.0/temp1_input
44000

% cd  /sys/bus/platform/devices/coretemp.0
% for i in *; do echo $i; cat $i; echo; done 
driver
cat: driver: Is a directory

hwmon
cat: hwmon: Is a directory

modalias
platform:coretemp

name
coretemp

power
cat: power: Is a directory

subsystem
cat: subsystem: Is a directory

temp1_crit
98000

temp1_crit_alarm
0

temp1_input
44000

temp1_label
Physical id 0

temp1_max
80000

temp2_crit
98000

temp2_crit_alarm
0

temp2_input
44000

temp2_label
Core 0

temp2_max
80000

temp3_crit
98000

temp3_crit_alarm
0

temp3_input
41000

temp3_label
Core 1

temp3_max
80000

temp4_crit
98000

temp4_crit_alarm
0

temp4_input
41000

temp4_label
Core 2

temp4_max
80000

temp5_crit
98000

temp5_crit_alarm
0

temp5_input
42000

temp5_label
Core 3

temp5_max
80000

uevent
DRIVER=coretemp
MODALIAS=platform:coretemp
jao jaor referenced this issue from a commit May 05, 2012
jao Possible solution for coretemp files reading (github issue #38)
Apparently, temp1_label does not follow the same naming pattern as the
rest of label files.
0b11325
jao
Owner
jaor commented May 04, 2012

Thanks a lot, @bthomson ... the problem could be that temp1_label is not following the same naming pattern as the rest: i've tried to remedy that in a patch i just pushed to the master branch. I you have a chance to try it out, please let me know how it works... Thanks again!

Konstantin Grigoriev
gkonst commented May 05, 2012

Thanks a lot, @jaor , It's working now!

jao
Owner
jaor commented May 05, 2012

Excellent. Closing!

jao jaor closed this May 05, 2012
Brandon Thomson

works here too, thanks very much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.