Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#693025: xmobar: unable to read CoreTemp and BatteryP is blank on ThinkPad

136 views
Skip to first unread message

Martin Kjær Jørgensen

unread,
Nov 12, 2012, 2:50:01 AM11/12/12
to
Package: xmobar
Version: 0.14-3
Severity: important

Dear Maintainer,
I'm using xmobar with XMonad. When using CoreTemp in .xmobarrc i get:
"Prelude.read: no parse" instead of the core temperature.
When using BatteryP I get " 0%" instead of the actual <left> value.

I've tried purge the xmobar package from apt/dpkg, and installed xmobar 0.15
from cabal-install. cabal-install required several ghc packages to be upgraded
and warned me that it could break the xmonad.contrib package. I installed it
anyway, as an ordinary user, installed the new xmobar 0.15 and the CoreTemp
error disappeared and the BatteryP showed correct <left> value.

The cabal-intall package upgrades somehow did break my xmonad,
which all of a sudden could not find any namespaces (import's) when i
tried recompile (mod+q).

Removing the .cabal and .ghc dir's fixed xmonad recompile problem.

Forgive my ignorance. I'm new to haskell and xmonad.

-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=da_DK.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xmobar depends on:
ii libc6 2.13-35
ii libffi5 3.0.10-3
ii libgmp10 2:5.0.5+dfsg-2
ii libiw30 30~pre9-8
ii libx11-6 2:1.5.0-1
ii libxext6 2:1.3.1-2
ii libxft2 2.3.1-1
ii libxinerama1 2:1.1.2-1
ii libxrandr2 2:1.3.2-2

Versions of packages xmobar recommends:
ii curl 7.26.0-1

Versions of packages xmobar suggests:
ii xmonad 0.10-4+b2

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Apollon Oikonomopoulos

unread,
Nov 12, 2012, 11:40:01 AM11/12/12
to
Hi,

On 08:39 Mon 12 Nov , Martin Kjær Jørgensen wrote:
> Dear Maintainer,
> I'm using xmobar with XMonad. When using CoreTemp in .xmobarrc i get:
> "Prelude.read: no parse" instead of the core temperature.

Can you please attach the output of `cat /sys/bus/platform/devices/coretemp.0/temp1_label'?

> When using BatteryP I get " 0%" instead of the actual <left> value.

Can you also attach your xmobar config, so that I can have a look at the
template you're using?

Thanks,
Apollon

Apollon Oikonomopoulos

unread,
Nov 12, 2012, 1:20:02 PM11/12/12
to
On 18:43 Mon 12 Nov , Martin Kjær Jørgensen wrote:
> On Mon, Nov 12, 2012 at 06:32:04PM +0200, Apollon Oikonomopoulos wrote:
> > Hi,
> >
> > On 08:39 Mon 12 Nov , Martin Kjær Jørgensen wrote:
> > > Dear Maintainer,
> > > I'm using xmobar with XMonad. When using CoreTemp in .xmobarrc i get:
> > > "Prelude.read: no parse" instead of the core temperature.
> >
> > Can you please attach the output of `cat /sys/bus/platform/devices/coretemp.0/temp1_label'?
>
> /sys/bus/platform/devices/coretemp.0/temp1_label = Physical id 0
>

Ok, this is a known bug fixed upstream in 0.15. I'll see if I can backport the
fix, it should be a non-issue.

> >
> > > When using BatteryP I get " 0%" instead of the actual <left> value.
> >
> > Can you also attach your xmobar config, so that I can have a look at the
> > template you're using?
>
> The .xmobarrc is attached in this email. I have commented out the
> BatteryP and CoreTemp lines because it doesnt work.

Most likely you need to use the -c parameter for BatteryP to point it to the
correct file under /sys/class/power/<BAT>/, see the manpage for details and
give it a try if you can. 0.15 does some autodiscovery and doesn't need the -c
flag anymore.

Regards,
0 new messages