FS#31288 - [xmonad] eats up battery

Attached to Project: Community Packages
Opened by Edward O'Callaghan (evocallaghan) - Sunday, 26 August 2012, 10:39 GMT
Last edited by Jelle van der Waa (jelly) - Thursday, 03 January 2013, 14:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Thomas Dziedzic (tomd123)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Thread-using code built with current ghc's non-threaded runtime spins.

Description:
XMonad is coming up top on powertop. After some investigation it seems to be a ghc bug. The report does suggest to rebuild XMonad with different compiler switches, i.e.
"If we're going to ship this GHC, then this bug should at least be cloned
to xmonad and it made to build with -threaded. That seems to work well
for me."

Additional info:
[edward@dexter ~]$ xmonad --version
xmonad 0.10
[edward@dexter ~]$ ghc -v
Glasgow Haskell Compiler, Version 7.4.2, stage 2 booted by GHC version 7.4.1
Using binary package database: /usr/lib/ghc-7.4.2/package.conf.d/package.cache
wired-in package ghc-prim mapped to ghc-prim-0.2.0.0-7d3c2c69a5e8257a04b2c679c40e2fa7
wired-in package integer-gmp mapped to integer-gmp-0.4.0.0-af3a28fdc4138858e0c7c5ecc2a64f43
wired-in package base mapped to base-4.5.1.0-6e4c9bdc36eeb9121f27ccbbcb62e3f3
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-haskell-2.7.0.0-2bd128e15c2d50997ec26a1eaf8b23bf
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags: -static
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting:
ghc: no input files
Usage: For basic information, try the `--help' option.


Background:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677096
This task depends upon

Closed by  Jelle van der Waa (jelly)
Thursday, 03 January 2013, 14:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed with the new release of 0.11
Comment by Jelle van der Waa (jelly) - Sunday, 26 August 2012, 11:11 GMT
iirc you can fix it like this.

ghc --make -threaded xmonad.hs -i -ilib -fforce-recomp -o xmonad-x86_64-linux
Comment by Edward O'Callaghan (evocallaghan) - Sunday, 26 August 2012, 11:17 GMT
Thank you Jelle,
That worked I believe. Could this be applied to the package or a note added perhaps?
Comment by Jelle van der Waa (jelly) - Sunday, 26 August 2012, 11:26 GMT
I will have to look into the problem, i don't know for sure if devs recommended building XMonad threaded
Comment by Thomas Dziedzic (tomd123) - Sunday, 14 October 2012, 17:43 GMT
according to http://hackage.haskell.org/trac/ghc/ticket/5991#comment:18
which is the bug report for this in ghc, it seems that the patch will be included in 7.6.2 so hang tight until the next release
Comment by Jelle van der Waa (jelly) - Sunday, 14 October 2012, 20:15 GMT
Ok awesome, we will wait till 7.6.2 (yay another rebuild) and then build XMonad threaded.
Comment by Jelle van der Waa (jelly) - Sunday, 14 October 2012, 20:17 GMT
ohwait threaded doesn't seem the best way to build XMonad with, will ask on irc
Comment by Edward O'Callaghan (evocallaghan) - Wednesday, 02 January 2013, 06:50 GMT
+jelly

I just updated today to the lastest Xmonad and all _seems_ to be well in powertop.
xmobar still seems to be pretty high, should I report a bug on that also? How did
you investigate this issue?

Kind regards,
Edward.
Comment by Jelle van der Waa (jelly) - Wednesday, 02 January 2013, 19:08 GMT
I just updated to 0.11, so maybe they fixed that bug there. Please create a seperate bug for XMobar ( I should also investigate this issue since I use it too on my laptop ;) )
Comment by Edward O'Callaghan (evocallaghan) - Thursday, 03 January 2013, 00:43 GMT
+jelly

Thanks dude! I opened the isse  FS#33277 
Glad we use the same software and care about its detail of correctness!

Cheers,
Edward.

Loading...