codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

XMonad and xmobar wake up too often and are consuming more battery power #516

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start XMonad and/or xmobar
2. Check their wakeup frequency with powertop
3.

What is the expected output? What do you see instead?
About half year ago when I used XMonad for the first time the wakeup frequency 
was only 10 times per second, sometimes even less. Now it often gets to 100, 
especially in idle state.

What version of the product are you using? On what operating system?
Debian wheezy. XMonad 0.10-4+b2 from debian official repo.

Are you using an xmonad.hs?  Please attach it and the output of "xmonad
--recompile".
This issue is reproducible on my laptop with any configuration, including the 
default empty configuration. 

Please provide any additional information below.
When there's an active X program running (like the chromium browser I'm typing 
in now), wakeup freq of both xmonad and xmobar are likely to drop to about 
40/sec. But as keyboard and mouse become idle the freq rises up again.

Original issue reported on code.google.com by hpsMo...@gmail.com on 16 Oct 2012 at 2:58

GoogleCodeExporter commented 8 years ago
This is a GHC bug, http://hackage.haskell.org/trac/ghc/ticket/5991, and a fix 
will be in 7.6.2.

Original comment by nome...@gmail.com on 16 Oct 2012 at 7:54

GoogleCodeExporter commented 8 years ago
(I hope this doesn't try to "fix" my formatting...)
You can work around this by building xmonad manually, but each of the 
possibilities has flaws:

    ghc -threaded --make -i -ilib -fforce-recomp xmonad.hs -o xmonad-$(uname -m)-$(uname | tr A-Z a-z)

this will work but may cause problems with some extensions

    ghc -rtsopts -with-rtsopts=-V0 --make -i -ilib -fforce-recomp xmonad.hs -o xmonad-$(uname -m)-$(uname | tr A-Z a-z)

this may still interrupt too often but not as often as with the buggy runtime

If you don't have an xmonad.hs yet, a bare minimal one you can use with this is

    import XMonad
    main = xmonad defaultConfig

Original comment by allber...@gmail.com on 16 Oct 2012 at 3:04